Is there a way to make Maven build 1.5 and 1.6 byte bytes at the same time?
Is there a way to make maven build 1.5 and 1.6 byte bytes at the same time. I know I can use classifiers to name them, but that forces me to build them separately. Ultimately I would like to do the following:
mvn clean install
And in my target directory see something like:
fooSource.jar
foo-1.6.jar
foo-1.5.jar
+2
a source to share
2 answers
Is there a way to make maven build 1.5 and 1.6 byte bytes at the same time?
No, you will need to run two clean builds. I would use profiles and a CI engine maintaining a build matrix for this ( Hudson does ).
+1
a source to share
You can try using subprojects ( modules ) with different compiler configurations .
But other than installing the repository, it wouldn't be helpful. Instead, you can use maven profiles to generate different artifacts in different cases.
+1
a source to share