Commit Graph

21 Commits

Author SHA1 Message Date
samskivert c4b1ec055f [maven-release-plugin] prepare for next development iteration
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2930 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-10-22 19:31:28 +00:00
samskivert 7b5bfd488a [maven-release-plugin] prepare release samskivert-1.1
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2928 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-10-22 19:31:22 +00:00
samskivert ef694f3060 Only GPG sign when we're actually deploying a release, not when we're doing a
local install.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2926 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-10-18 21:42:11 +00:00
samskivert 8e686f4bfe Maven 3 will no longer support RELEASE as a version, so we have to hardcode our
version numbers and then puzzle over why things don't work when we try to use
new plugin features and forget to check what version number said feature was
introduced into the plugin and be sure that we're using that version. Yay!


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2925 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-10-18 21:41:13 +00:00
samskivert bdf46ef4c7 No longer need to exclude these guys.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2923 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-10-15 15:51:16 +00:00
samskivert 5f5a261e0d Go ahead and build and ship the Velocity and Digester stuff. Most of the
Velocity stuff actually works with a non-hacked Velocity implementation, and
specifically VelocityUtil and ClasspathResourceLoader are used all over the
place for great justice, so we want to support that.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2881 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-11 04:28:04 +00:00
samskivert 58f0b9a067 A test of some basic HsqldbLiaison behavior, which I added to test other
things, which ended up being infeasible. But I'll leave this test machinery
here as it may be useful in the future if we want to add more
com.samskivert.jdcb unit tests.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2880 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-10 23:48:48 +00:00
samskivert 87731adf48 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2879 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-10 16:15:13 +00:00
samskivert 71f1a59668 [maven-release-plugin] prepare release samskivert-1.0
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2877 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-10 16:15:04 +00:00
samskivert 6c97376395 This only works when we fork the compiler. Also managed to bork my dash.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2876 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-10 16:09:49 +00:00
samskivert 6d2269e465 OMFG. The inmates are running the asylum.
Instead of fixing this utterly ridiculous problem, some guy submitted a patch
to detect when someone was using spaces in the text of <compilerArgument> and
spit out a warning, directing them to a new FAQ entry explaining the
limitation, and telling them this retarded workaround:
http://jira.codehaus.org/browse/MCOMPILER-130

He then included a bunch of code to allow this warning to be turned off.
WTFFFFFFFFFFFFFFFFFFFFF!?


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2875 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-10 16:02:38 +00:00
samskivert 9b55d58add We apparently need the current version to be a -SNAPSHOT version to perform a
release.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2874 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-10 15:12:54 +00:00
samskivert c201ac6d9f Add plugin declarations for these plugins so that we get the latest versions.
Sigh.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2870 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-09 20:17:26 +00:00
samskivert d1c37e5b36 Omit Javadocs for protected members. They clutter up the documentation of the
public interfaces and if you are making use of protected members, you should be
looking at the source.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2869 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-09 20:10:42 +00:00
samskivert db601ce31f Include our GWT source bits directly in the main jar.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2863 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-09 17:44:44 +00:00
samskivert eb4b4b90dd Not specifying a plugin version number is interpreted by Maven as "use whatever
fucking arbitrary version you like". Fortunately, it is possible to instruct
Maven to do what would be the sensible default: use the latest release version
of the plugin.

Now that I have done so, the magical insertion of a -link argument for the Java
API is working. Much to my chagrin, the associated <detectLinks> option of the
javadoc plugin is a cruel joke.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2862 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-09 04:44:52 +00:00
samskivert 5cae01afd6 Second entry into "Why Maven sucks" journal:
Sun "enhanced" the jar file specification to allow dependencies to be expressed
inside jar files, which cause the JVM to try to magically add dependent jar
files to the classpath. This is half-assed and wrong in too many ways to
enumerate here.

They then helpfully added activation.jar to mail.jar under the multiple
misguided assumptions that no one would ever possibly need to use mail.jar
without also having activation.jar in their classpath, with that exact name,
and located precisely in the same directory. I can't possibly imagine devating
from those implicit requirements.

Maven then upped the ante on this little fiasco by deciding that any time the
Java compiler generates a warning that they can't parse, they should fail the
build. Clearly it's critical that your build system be conversant in every
possible warning that might be emitted by your compiler. As a result, when I
fix their boneheaded default of suppressing warnings by default, the build now
fails with this demonstration of awesomeness:

  could not parse error message: warning: [path] bad path element
  "/home/mdb/.m2/repository/javax/mail/mail/1.4.1/activation.jar": no such file
  or directory

Thank you Sun, and thank you Maven.

Fortunately, I can tell javac to not emit warnings for these bogus jar
dependencies, which I have done.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2860 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-08 22:56:00 +00:00
samskivert 9699eceea7 First entry into "Why Maven sucks" journal:
1. Warnings and deprecations are not shown by default.

2. Documentation shows use of <compilerArgument> with mulitple arguments in a
single element:

  <compilerArgument>-foo -bar</compilerArgument>

which is a bald-faced lie. Only a single argument is allowed inside a
<compilerArgument> element. Web search turns up "helpful" advice to use
multiple elements:

  <compilerArgument>-foo</compilerArgument>
  <compilerArgument>-bar</compilerArgument>

Fair enough, and also a bald-faced lie. After spending a bunch of time
debugging why my compiler arguments were not working, I discovered that Maven
was just (silently) using the last one and ignoring/overwriting all of the
previous arguments.

I had noticed while poring over the documentation that it was also possible to
use the so-called "Map version" (whatever that means), which uses this
completely fucking stupid syntax:

  <compilerArguments>
    <foo/>
    <bar/>
  </compilerArguments>

Why is that syntax completely fucking stupid, you might ask? Well, dear reader,
because the arguments that I'm actually passing end up looking like this:

  <compilerArguments>
    <Xlint/>
    <Xlint:-serial/>
  </compilerArguments>

which is a case study in how not to represent information in XML. I didn't even
try that originally because I was sure that it would not work, given the wacky
non-[a-zA-z]+ nature of the argument I needed to supply. The fact that it does
work gives me the fear.

You might wonder if the following form would provide satisfaction:

  <compilerArguments>
    <compilerArgument>-Xlint</compilerArgument>
    <compilerArgument>-Xlint:-serial</compilerArgument>
  </compilerArguments>

Other than being absurdly verbose, it seems right in line with The Maven Way
(tm). However, that results in -compilerArgument=-Xlint and
-compilerArgument=-Xlint:-serial being passed to the compiler. Hilarity
naturally ensues.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2859 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-08 21:28:27 +00:00
samskivert 312d38c6b7 GPG plugin configuration, as Sonatype requires published artifacts to be GPG
signed.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2858 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-08 19:50:26 +00:00
samskivert e68daada41 Properly configure javadoc in our POM build. The POM is now approaching the
line count of the build.xml file, but I suppose that's just because XML is
absurdly verbose (and Maven annoyingly chose to do things like
<quiet>true</quiet> instead of a quiet="true" attribute). I wonder if there's a
Maven plugin that allows you to specify your pom.xml in YAML or some less
verbose format and which automatically converts it to XML. That'd probably cut
the line count by 2/3.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2853 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-08 19:04:33 +00:00
samskivert ff243af527 Hosting our own Ivy repository is a burden on library users. We really want to
publish our bits to the Maven central repository, which means we need to gird
our loins and wade into the ninth circle of hell: a Mavenized build.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2847 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2010-09-08 16:22:48 +00:00