Snapshot and maven

118 views
Skip to first unread message

Julien Dramaix

unread,
Aug 21, 2014, 9:24:38 AM8/21/14
to google-web-tool...@googlegroups.com
Dear GWT lovers,

I'm trying to test the last GWT snapshot but I cannot configure maven to use it. 

I've added the following repo:

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

and use the following version: 2.7.0-SNAPSHOT

But Maven is not able to resolve dependencies:

[WARNING] The POM for com.google.gwt:gwt-user:jar:2.7.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for com.google.gwt:gwt-dev:jar:2.7.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for com.google.gwt:gwt-servlet:jar:2.7.0-SNAPSHOT is missing, no dependency information available

I've looked into the directories

and indeed the pom files are missing.

Am I missing something ?

Julien

Manuel Carrasco Moñino

unread,
Aug 21, 2014, 10:24:55 AM8/21/14
to google-web-tool...@googlegroups.com
The repo structure is ok, your maven should download the metadata file [1] which has a reference to the last snapshot index then it should continue downloading the pom [2] and jar [3] files.

Maybe something wrong in your local repo cache, try to force updating snapshots running:
 mvn -U clean package
or removing
 ~/.m2/repository/com/google/gwt/gwt-user/2.7.0-SNAPSHOT

- Manolo


--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CABb_3%3D4eduxbj5Z6FiVtw1H%2Bj%2BHhbzT6h1274Pq9VSJXF4wW0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Julien Dramaix

unread,
Aug 21, 2014, 10:33:27 AM8/21/14
to google-web-tool...@googlegroups.com
indeed mvn clean install -U does the trick...

Thanks Manolo


Colin Alworth

unread,
Aug 21, 2014, 10:35:08 AM8/21/14
to google-web-tool...@googlegroups.com
For what its worth, we use a slightly different snapshot url: https://oss.sonatype.org/content/repositories/google-snapshots/. This appears to only contain snapshots instead of releases and snapshots.

The /google/ url for whatever reason has a newer md5 and sha1 for the maven-metadata.xml file, but the dates/sizes on everything else seem to be consistent.



For more options, visit https://groups.google.com/d/optout.

Manuel Carrasco Moñino

unread,
Aug 21, 2014, 10:45:34 AM8/21/14
to google-web-tool...@googlegroups.com
Right, both contain the same snapshot versions. Our jenkins CI server is pushing to the google-snapshots folder, hence some process else should be mirroring to the google one after a while, that is the reason for differences in sha1/md5. I think the best choice is to point to the url you suggest.

- Manolo


Julien Dramaix

unread,
Aug 21, 2014, 10:53:21 AM8/21/14
to google-web-tool...@googlegroups.com
We should add a section on the website explaining how to install and use the snapshot.


Reply all
Reply to author
Forward
0 new messages