You are absolutly right! And the -X command was very helpful indeed, thanks!
justinedelson wrote: > > It appears to me that your property name doesn't match how you have the > compiler plugin configured. > > Property: > <maven.target.source>1.5</maven.target.source> > > Plugin Config: > <target>${maven.compiler.target}</target> > > Using the -X command line option or help:effective-pom is helpful in > diagnosing this type of problem. > > Justin > > -----Original Message----- > From: Dallas [mailto:dalla_man...@hotmail.com] > Sent: Thursday, June 25, 2009 8:20 AM > To: users@maven.apache.org > Subject: Newbie complience question > > > Hi > > I recently started using Maven, and I will hopefully be implementing in > for every single project I start from now on :-) > > However, I have some issues when building one of my gwt projects. > > I get an error like this > > [INFO] Compiling 1 source file to > F:\Data\Workspace\testapp\target\classes > [ERROR] > Mojo: > org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile > FAILED for project: > maven-test:testapp:war:0.0.1-SNAPSHOT > Reason: > Failure executing javac, but could not parse the error: > javac: source release 1.5 requires target release 1.5 > > > The Mojo plugin looks like this > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>2.0.2</version> > <configuration> > <source>${maven.compiler.source}</source> > <target>${maven.compiler.target}</target> > <encoding>UTF-8</encoding> > <!-- Fix for GWT issue #3439 --> > <excludes> > <exclude>javax/servlet/**</exclude> > </excludes> > </configuration> > </plugin> > > and my properties looks like this > > <properties> > <gwt.version>1.6.4</gwt.version> > <maven.compiler.source>1.5</maven.compiler.source> > <maven.target.source>1.5</maven.target.source> > <gwt.output.directory>${basedir}/target/gwt</gwt.output.directory> > <gwt.module.alias>Application</gwt.module.alias> > </properties> > > Why does the comiplier think I want to use something else for target > than > 1.5 ? > > Posting entire POM below > > <?xml version="1.0" encoding="UTF-8"?> > <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"> > <modelVersion>4.0.0</modelVersion> > <groupId>maven-test</groupId> > <artifactId>testapp</artifactId> > <packaging>war</packaging> > <version>0.0.1-SNAPSHOT</version> > <name>gwt-maven-archetype-project</name> > <properties> > <gwt.version>1.6.4</gwt.version> > <maven.compiler.source>1.5</maven.compiler.source> > <maven.target.source>1.5</maven.target.source> > > <gwt.output.directory>${basedir}/target/gwt</gwt.output.directory> > <gwt.module.alias>Application</gwt.module.alias> > </properties> > <dependencies> > > <!-- Test --> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>3.8.1</version> > <scope>test</scope> > </dependency> > > > <dependency> > <groupId>com.google.gwt</groupId> > <artifactId>gwt-user</artifactId> > <version>${gwt.version}</version> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>com.google.gwt</groupId> > <artifactId>gwt-servlet</artifactId> > <version>${gwt.version}</version> > <scope>runtime</scope> > </dependency> > </dependencies> > <build> > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > > <artifactId>gwt-maven-plugin</artifactId> > <version>1.1-SNAPSHOT</version> > <executions> > <execution> > <phase>process-classes</phase> > <configuration> > > <output>${gwt.output.directory}</output> > <logLevel>INFO</logLevel> > </configuration> > <goals> > <goal>compile</goal> > </goals> > > </execution> > </executions> > </plugin> > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-compiler-plugin</artifactId> > <version>2.0.2</version> > <configuration> > > <source>${maven.compiler.source}</source> > > <target>${maven.compiler.target}</target> > <encoding>UTF-8</encoding> > > <!-- Fix for GWT issue #3439 --> > <excludes> > > <exclude>javax/servlet/**</exclude> > </excludes> > </configuration> > </plugin> > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-resources-plugin</artifactId> > <version>2.3</version> > <configuration> > <encoding>UTF-8</encoding> > </configuration> > </plugin> > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-antrun-plugin</artifactId> > <version>1.2</version> > <executions> > <execution> > <id>war-folder-creation</id> > <phase>process-resources</phase> > <goals> > <goal>run</goal> > </goals> > <configuration> > <tasks> > <copy > todir="${gwt.output.directory}"> > <fileset > dir="${basedir}/src/main/webapp" /> > </copy> > </tasks> > </configuration> > </execution> > </executions> > </plugin> > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-war-plugin</artifactId> > <configuration> > <webResources> > <resource> > > <directory>${basedir}/target/${project.artifactId}-${project.version}/${ > gwt.module.alias}</directory> > > <targetPath>${gwt.module.alias}</targetPath> > </resource> > </webResources> > </configuration> > </plugin> > </plugins> > </build> > > > </project> > -- > View this message in context: > http://www.nabble.com/Newbie-complience-question-tp24202197p24202197.htm > l > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Newbie-complience-question-tp24202197p24215248.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org