There are some artifacts in shrinkwrap which does not require JDK 1.7 to build, like:
requries JDK 1.7 to build
But currently, it can be built only in JDK 1.7 environment, even for the artifacts which can be built in JDK 1.6, I think it would be better to make a profile to distinguish the artifacts built in JDK1.6+ and JDK1.7+, so that those artifacts which can be built in JDK1.6 will still build successfully in JDK 1.7 environment?
<profiles> <profile> <id>jdk7</id> <activation> <jdk>1.7</jdk> </activation> <modules> <module>api-nio2</module> <module>depchain-java7</module> <module>impl-nio2</module> </modules> </profile> </profiles>
And also, some enforce rules and compiler plugin configurations need to be specified in the profile.