Alternately, setting the properties maven.compiler.source and
maven.compiler.target (via -D) or via the properties section in
pom.xml eradicates the necessity to configure maven-compiler-plugin.
So you could do:
mvn -Dmaven.compiler.source=1.5 -Dmaven.compiler.target=1.5 package
or do the
Ty. just switched to -M8.
here is my pom.xml:
project
xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
Maybe someone will know the answer, but for now:
Try mvn compile
Try adding -e and/or -X to the maven command.
-
Franz Bettagfr...@bett.ag wrote:
Ty. just switched to -M8.
here is my pom.xml:
project
xmlns=http://maven.apache.org/POM/4.0.0;
Try adding this:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.0.2/version
configuration
source1.6/source
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
this