I have a scenario wherein my project needs to be compiled in different JDKs and the resulting artifact name should be different based on the JDK used. For example if the pro
Use Maven Profiles. Add this section inside the project tag of your pom.xml:
project
pom.xml
1.4 ${project.artifactId}-${project.version}-JDK1.4 1.5 ${project.artifactId}-${project.version}-JDK1.5
See this to know more about profiles.