Closed GoogleCodeExporter closed 9 years ago
Fixed in new Trunk.
Original comment by kahuxtable
on 12 Jun 2010 at 1:13
I found the source of the problem. It turns out that, when building your
project with pure maven on console only, it will not compile since you rely on
JDK dependency. By default maven discourages us from using JDK specific API.
While your project worked in Eclipse with maven plugin, it does not work
outside of this environment. However this can be fixed sealy. It's a small
enhancement to the pom.xml. Just add
<compilerArguments>
<bootclasspath>${java.home}\lib\rt.jar</bootclasspath>
</compilerArguments>
to <configuration> tag in your maven-compiler-plugin. I have attached a patch.
Then it compiles and creates the jar without any problem.
Original comment by Martin.Jozef@gmail.com
on 14 Jun 2010 at 2:51
Attachments:
Interesting. Apple has a different structure for their class libraries. It
works fine from the command line on my Mac. I'll look further into this.
Original comment by kahuxtable
on 14 Jun 2010 at 5:32
Okay, I added a profile for mac that specifies its rt (classes.jar) which is in
a different location and actually not needed. I then specified
${java.home}/lib/rt.jar for everything else. Why must Windows users use
backslashes for directories in Java, when it's platform independent and Windows
is the only system in the world that uses backslashes for directories. (A
terrible idea.)
Original comment by kahuxtable
on 14 Jun 2010 at 6:53
This issue was closed by revision r1532.
Original comment by kahuxtable
on 14 Jun 2010 at 6:56
Original issue reported on code.google.com by
Martin.Jozef@gmail.com
on 12 Jun 2010 at 12:56Attachments: