update gwt-maven-plugin version to "1.2". The 1.1-* don't support gwt 2.0
2010/1/22 Joe Hudson <[email protected]> > sorry if this posts twice - I previously sent this message from an > email account that was not registered with this group... > > Hello, > > I just wanted to try out this maven plugin with GWT 2.0 (I am fairly > new). I ran into what is probably a dumb issue and was hoping to get > some advice. I have a standard POM generated from the archetype (with > just the 2.0.0 formal release modifications). > > As far as I can tell, I don't have a reference to gwt-dev in my POM. > but it seems that the classifier is maybe not valid anymore because > there doesn't seem to be a "windows" version anymore: > http://mirrors.ibiblio.org/pub/mirrors/maven2/com/google/gwt/gwt-dev/2.0.0/ > > I would really appreciate some help here. Thank you very much. > > Joe > > -------------- my POM file > ----------------------------------------------------------------- > <?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"> > <!-- > GWT-Maven archetype generated POM > --> > <modelVersion>4.0.0</modelVersion> > <groupId>com.test</groupId> > <artifactId>app</artifactId> > <packaging>war</packaging> > <version>1.0-SNAPSHOT</version> > <name>gwt-maven-archetype-project</name> > > <properties> > > <!-- convenience to define GWT version in one place --> > <gwt.version>2.0.0</gwt.version> > > <!-- tell the compiler we can use 1.5 --> > <maven.compiler.source>1.5</maven.compiler.source> > <maven.compiler.target>1.5</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> > > <!-- test --> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>4.4</version> > <scope>test</scope> > </dependency> > </dependencies> > > <build> > <outputDirectory>war/WEB-INF/classes</outputDirectory> > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>gwt-maven-plugin</artifactId> > <version>1.1-SNAPSHOT</version> > <executions> > <execution> > <goals> > <goal>compile</goal> > > <goal>generateAsync</goal> > <goal>test</goal> > </goals> > </execution> > </executions> > </plugin> > <!-- > If you want to use the target/web.xml > file mergewebxml produces, > tell the war plugin to use it. Also, > exclude what you want from the > final artifact here. <plugin> > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-war-plugin</artifactId> <configuration> > <webXml>target/web.xml</webXml> > > <warSourceExcludes>.gwt-tmp/**</warSourceExcludes> </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> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>gwt-maven-plugin</artifactId> > <version>1.1</version> > <executions> > <execution> > <goals> > <!-- gwt:* > goals to be executed during build --> > </goals> > </execution> > </executions> > </plugin> > > </plugins> > </build> > > </project> > > > ---------------------- build results > > ----------------------------------------------------------------------------------------------- > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'eclipse'. > [INFO] > ------------------------------------------------------------------------ > [INFO] Building gwt-maven-archetype-project > [INFO] task-segment: [eclipse:eclipse] > [INFO] > ------------------------------------------------------------------------ > [INFO] Preparing eclipse:eclipse > [INFO] [gwt:generateAsync {execution: default}] > [INFO] using GWT jars from project dependencies : 2.0.0 > Downloading: > http://mirrors.ibiblio.org/pub/mirrors/maven2/com/google/gwt/gwt-dev/2.0.0/gwt-dev-2.0.0-windows.jar > [INFO] Unable to find resource > 'com.google.gwt:gwt-dev:jar:windows:2.0.0' in repository ibiblio > (http://mirrors.ibiblio.org/pub/mirrors/maven2) > Downloading: > http://repo1.maven.org/maven2/com/google/gwt/gwt-dev/2.0.0/gwt-dev-2.0.0-windows.jar > [INFO] Unable to find resource > 'com.google.gwt:gwt-dev:jar:windows:2.0.0' in repository central > (http://repo1.maven.org/maven2) > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Failed to resolve artifact. > > GroupId: com.google.gwt > ArtifactId: gwt-dev > Version: 2.0.0 > > Reason: Unable to download the artifact from any repository > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=com.google.gwt > -DartifactId=gwt-dev -Dversion=2.0.0 -Dclassifier=windows > -Dpackaging=jar -Dfile=/path/to/file > > Alternatively, if you host your own repository you can deploy the file > there: > mvn deploy:deploy-file -DgroupId=com.google.gwt > -DartifactId=gwt-dev -Dversion=2.0.0 -Dclassifier=windows > -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] > > > com.google.gwt:gwt-dev:jar:2.0.0 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2), > ibiblio (http://mirrors.ibiblio.org/pub/mirrors/maven2) > > > > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 1 second > [INFO] Finished at: Fri Jan 22 09:06:30 EST 2010 > [INFO] Final Memory: 21M/223M > [INFO] > ------------------------------------------------------------------------ > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >
