Hi Kevin,
I am fairly new to using maven. Our project is looking at moving to maven to replace our current ant builds.
One thing that we are doing in our build is building the same source with the 1.4 and 1.5 jdks. Basically, we build the modules source with the 1.5 jdk and package it in a module.jar artifact. Then the build will use the 1.4 jdk to build the same source. This is packaged in a module-14.jar artifact.
I have read about how to specify using a different jdk for compiling, but I am not quite sure how to do something like the above. Is it possible to do this from a single pom file project? Or do I need to split this up into multiple poms and multiple modules? There is probably something easy I am missing here, but I just cannot figure it out.
This *should* be possible by having two different profiles in a single
pom.xml file (one profile configures the maven-compiler plugin to use
JDK1.5 and the maven-jar-plugin to create an artifact with classifier
"jdk14" , the other one uses JDK1.4 and classifier "jdk15"). When
running maven you could then use the "-P<profile id>" option to
activate the corresponding profile.
The bad news: IIRC , I tried to do a similiar thing a few weeks ago and
got hit by
1.) http://jira.codehaus.org/browse/MDEPLOY-45 ( don't know if a fixed
plugin version is already released by now, I think I used either a
snapshot or compiled and installed the plugin from SVN myself )
2.) http://jira.codehaus.org/browse/MINSTALL-41
3.) http://jira.codehaus.org/browse/MDEPLOY-78
While I was able to get around bug #1 , I was unable to get around bug
#2 and #3 (but yeah, I'm lazy ... the issues already have patches
attached so I guess one could grab the plugins from SVN , apply the
patches and install them locally).
Maybe I did something wrong (hints anyone?) , I was quite surprised that
obvious Maven core features did not work.
Regards,
Tobias
Thanks
Kevin
Sent via BlackBerry by AT&T
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]