So I have added a temporary hack (until gwt 2.1.0 is released). gwt-maven-plugin 2.1-SNAPSHOT are now available in https://nexus.codehaus.org/content/groups/snapshots-group
2010/10/18 Olivier Lamy <[email protected]>: > Hi, > This should more a question for mojo users. > But I can answer here. > The current gwt maven plugin need the gwt artifacts SNAPSHOT and this > means the pom must contains a SNAPSHOT repository : > https://oss.sonatype.org/content/repositories/google-snapshots/ > But the mojo parent pom thru an enforcer rule prevents using SNAPSHOT > repositories :-( > The solution for you is to build locally the mojo : > svn co https://svn.codehaus.org/mojo/trunk/mojo/gwt-maven-plugin && cd > gwt-maven-plugin && mvn clean install > > > > > 2010/10/18 Xavier Carpentier <[email protected]>: >> Hey, >> >> I work to migrate Gwt project (2.1-SNAPSHOT version) to maven project and I >> have a problem on dependency. >> >> Exception : "org.apache.maven.lifecycle.LifecycleExecutionException: Failed >> to execute goal org.codehaus.mojo:gwt-maven-plugin:1.2:compile (default) on >> project com.***.***.ui: artifact not found - Failure to find >> com.google.gwt:gwt-dev:jar:linux:2.1-SNAPSHOT in >> http://repository.codehaus.org/org/codehaus/mojo/ was cached in the local >> repository, resolution will not be reattempted until the update interval of >> codehaus-maven-repo has elapsed or updates are forced" >> >> I use Maven 3. >> >> Why this error ? How can I repair this ? >> >> Look at my pom.xml : >> >> <?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"> >> <!-- POM generated by gwt-maven-plugin archetype --> >> <modelVersion>4.0.0</modelVersion> >> <groupId>com.greenivory.greendget</groupId> >> <artifactId>com.greendget.rss.ui</artifactId> >> <packaging>war</packaging> >> <version>1.0-SNAPSHOT</version> >> <name>RssReader</name> >> <properties> >> >> <!-- convenience to define GWT version in one place --> >> <gwt.version>2.1-SNAPSHOT</gwt.version> >> <gxt.version>2.1.1</gxt.version> >> >> <!-- tell the compiler we can use 1.5 --> >> <maven.compiler.source>1.6</maven.compiler.source> >> <maven.compiler.target>1.6</maven.compiler.target> >> >> </properties> >> >> <dependencies> >> >> <!-- GWT dependencies (from central repo) --> >> <dependency> >> <groupId>com.google.gwt</groupId> >> <artifactId>gwt-servlet</artifactId> >> <version>${gwt.version}</version> >> <scope>runtime</scope> >> </dependency> >> <dependency> >> <groupId>com.google.gwt</groupId> >> <artifactId>gwt-user</artifactId> >> <version>${gwt.version}</version> >> <scope>provided</scope> >> </dependency> >> <dependency> >> <groupId>com.greenivory.plumpeacock</groupId> >> <artifactId>com.***.***.sdk.ui</artifactId> >> <version>1.0-SNAPSHOT</version> >> <type>jar</type> >> <scope>provided</scope> >> </dependency> >> <dependency> >> <groupId>com.extjs</groupId> >> <artifactId>gxt</artifactId> >> <version>${gxt.version}</version> >> <type>jar</type> >> <scope>provided</scope> >> </dependency> >> <!-- test --> >> <dependency> >> <groupId>junit</groupId> >> <artifactId>junit</artifactId> >> <version>4.7</version> >> <scope>test</scope> >> </dependency> >> </dependencies> >> >> <repositories> >> <repository> >> <id>codehaus-maven-repo</id> >> <name>Codehaus repo</name> >> <url>http://repository.codehaus.org/org/codehaus/mojo/</url> >> </repository> >> <repository> >> <id>google-maven-snapshot-repository</id> >> <name>Google Maven Snapshot Repository</name> >> <url>https://oss.sonatype.org/content/repositories/google-snapshots</url> >> <snapshots> >> <enabled>true</enabled> >> </snapshots> >> </repository> >> >> </repositories> >> >> <build> >> <outputDirectory>war/WEB-INF/classes</outputDirectory> >> <plugins> >> <plugin> >> <groupId>org.codehaus.mojo</groupId> >> <artifactId>gwt-maven-plugin</artifactId> >> <version>1.2</version> >> <executions> >> <execution> >> <goals> >> <goal>compile</goal> >> <goal>test</goal> >> </goals> >> </execution> >> </executions> >> <configuration> >> <runTarget>com.greendget.rss.ui.client.RssReader/Rss.html</runTarget> >> </configuration> >> </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> >> </configuration> >> </plugin> >> </plugins> >> </build> >> >> </project> >> >> >> Regards, >> -- >> >> Carpentier Xavier >> Ingénieur Développement - [email protected] >> <mailto:[email protected]> - http://www.greenivory.com >> <http://www.greenivory.com/> >> >> *GreenIvory Europe* >> 10 rue Saint Wendelin >> 67500 Haguenau >> France *GreenIvory America* >> Suite 200 >> 3608 Shannon Road >> Durham NC 27707 >> USA >> Tél. +33 9 50 53 10 34 Tel. +1 (617) 862-2319 >> Fax +33 9 50 53 10 34 Fax +1 (919) 493-8837 >> GSM +33 6 68 81 87 68 >> >> Consider the environment. Don't print this e-mail unless you need to. >> To avoid excessive data transfer, we've removed our logo. >> >> > > > > -- > Olivier > http://twitter.com/olamy > http://www.linkedin.com/in/olamy > -- Olivier http://twitter.com/olamy http://www.linkedin.com/in/olamy --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
