How to use maven command line to download 2.8 snapshot?

1,502 views
Skip to first unread message

Alex Luya

unread,
Jul 10, 2015, 1:01:07 AM7/10/15
to google-we...@googlegroups.com
Hello,
     I am complete new to maven,after some googling I got command lines like this:

mvn dependency
:get \
   
-DrepoUrl=https://oss.sonatype.org/content/repositories/google-snapshots/com/google/ \
   
-Dartifact=gwt:gwt:2.8.0-SNAPSHOT



and ran it,got errors like this:

>     -DrepoUrl=https://oss.sonatype.org/content/repositories/google-snapshots/com/google/ \
>     -Dartifact=gwt:gwt:2.8.0-SNAPSHOT
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
[INFO] Scanning for projects...
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:get (default-cli) @ standalone-pom ---
[WARNING] repositoryUrl parameter is deprecated. Use remoteRepositories instead
[INFO] Resolving gwt:gwt:jar:2.8.0-SNAPSHOT with transitive dependencies
Downloading: https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/gwt/2.8.0-SNAPSHOT/maven-metadata.xml
Downloaded: https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/gwt/2.8.0-SNAPSHOT/maven-metadata.xml (353 B at 0.2 KB/sec)
Downloading: https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/gwt/2.8.0-SNAPSHOT/gwt-2.8.0-20150709.054321-1.pom
Downloaded: https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/gwt/2.8.0-SNAPSHOT/gwt-2.8.0-20150709.054321-1.pom (3 KB at 4.8 KB/sec)
Downloading: https://oss.sonatype.org/content/repositories/google-snapshots/com/google/com/google/web/bindery/requestfactory/2.8.0-SNAPSHOT/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/google/web/bindery/requestfactory/2.8.0-SNAPSHOT/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/repositories/google-snapshots/com/google/com/google/web/bindery/requestfactory/2.8.0-SNAPSHOT/requestfactory-2.8.0-SNAPSHOT.pom
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/google/web/bindery/requestfactory/2.8.0-SNAPSHOT/requestfactory-2.8.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.798 s
[INFO] Finished at: 2015-07-10T12:30:19+08:00
[INFO] Final Memory: 15M/271M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:get (default-cli) on project standalone-pom: Couldn't download artifact: Unable to get dependency information for gwt:gwt:jar:2.8.0-SNAPSHOT: Failed to process POM for gwt:gwt:jar:2.8.0-SNAPSHOT: Non-resolvable import POM: Could not find artifact com.google.web.bindery:requestfactory:pom:2.8.0-SNAPSHOT in temp (https://oss.sonatype.org/content/repositories/google-snapshots/com/google/)
[ERROR] gwt:gwt:jar:2.8.0-SNAPSHOT
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false),
[ERROR] temp (https://oss.sonatype.org/content/repositories/google-snapshots/com/google/, releases=true, snapshots=true)
[ERROR] Path to dependency:
[ERROR] 1) org.apache.maven.plugins:maven-downloader-plugin:jar:1.0
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


It seems like,requestfactory can't be fetched,so how to fix this problem?
Message has been deleted

LiPeng Han

unread,
Jul 18, 2015, 5:32:51 AM7/18/15
to google-we...@googlegroups.com
https://gwt-maven-plugin.github.io/gwt-maven-plugin/

Using the Archetype

 mvn archetype:generate \
   -DarchetypeGroupId=org.codehaus.mojo \
   -DarchetypeArtifactId=gwt-maven-plugin \
   -DarchetypeVersion=2.8.0-SNAPSHOT

update your pom.xml

<repositories>
    <repository>
      <id>google-snapshots</id>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>

mvn clean install
mvn gwt:run

Thomas Broyer

unread,
Jul 18, 2015, 6:15:05 AM7/18/15
to google-we...@googlegroups.com, alexand...@gmail.com


On Friday, July 10, 2015 at 7:01:07 AM UTC+2, Alex Luya wrote:
Hello,
     I am complete new to maven,after some googling I got command lines like this:

mvn dependency
:get \
   
-DrepoUrl=https://oss.sonatype.org/content/repositories/google-snapshots/com/google/ \
   
-Dartifact=gwt:gwt:2.8.0-SNAPSHOT



The repository is https://oss.sonatype.org/content/repositories/google-snapshots/ and the groupId (first part of the artifact coordinates) is com.google.gwt.
Also, the com.google.gwt:gwt artifact is useless for you: it's not a JAR. You'll want to get com.google.gwt:gwt-user, com.google.gwt:gwt-dev and com.google.gwt:gwt-codeserver (and possibly com.google.gwt:gwt-servlet and/or com.google.web.bindery:requestfactory-server and com.google.web.bindery:requestfactory-apt).
 
Reply all
Reply to author
Forward
0 new messages