Jerome,
Thanks for responding. I am already referencing the gae specific group id:
*org.restlet.gae*:org.restlet:jar:2.0-M4 (see my original question).
Here is a sample POM which illustrates this problem:
http://pastebin.com/f6a64ef8a
...and below is the output from *mvn clean compile* on that POM. Note that
you'll want to run this mvn command with a completely empty local repository
else you may be using cached locally installed or previously download
dependencies.
Note that the org.osgi:osgi_R4_core:jar:4.0 is still missing (as Zsolt
mentioned) as well as the org.restlet.gae:org.restlet.lib.org.json:jar:2.0
dependency.
Thanks,
Kevin
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) *org.osgi:osgi_R4_core:jar:4.0*
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.osgi -DartifactId=osgi_R4_core
-Dversion=4.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.osgi -DartifactId=osgi_R4_core
-Dversion=4.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]
Path to dependency:
1) com.example.restlet:restlet-example:jar:1.0-SNAPSHOT
2) org.restlet.gae:org.restlet:jar:2.0-M4
3) org.osgi:osgi_R4_core:jar:4.0
2) *org.restlet.gae:org.restlet.lib.org.json:jar:2.0*
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.restlet.gae
-DartifactId=org.restlet.lib.org.json -Dversion=2.0 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.restlet.gae
-DartifactId=org.restlet.lib.org.json -Dversion=2.0 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.example.restlet:restlet-example:jar:1.0-SNAPSHOT
2) org.restlet.gae:org.restlet.ext.json:jar:2.0-M4
3) org.restlet.gae:org.restlet.lib.org.json:jar:2.0
Thanks,
Kevin
On Sat, Aug 22, 2009 at 9:59 AM, Jerome Louvel <[email protected]>wrote:
> Hi Kevin,
>
> The group ID of Restlet artifacts has changed to take into account the
> Restlet editions (JSE, JEE, Android, GWT and GAE).
>
> You need to update your POMs with group IDs like: "org.restlet.jse"
>
> See example POM:
>
> http://maven.restlet.org/org/restlet/jse/org.restlet.parent/2.0-M4/org.restl
> et.parent-2.0-M4.pom
>
> Best regards,
> Jerome Louvel
> --
> Restlet ~ Founder and Lead developer ~ http://www.restlet.org
> Noelios Technologies ~ Co-founder ~ http://www.noelios.com
>
>
>
>
> -----Message d'origine-----
> De : Kevin Shekleton [mailto:[email protected]]
> Envoyé : lundi 17 août 2009 14:39
> À : [email protected]
> Objet : Missing 2.0-M4 Maven artifacts
>
> While trying to download org.gae.restlet:org.restlet:2.0-M4 from the Maven
> repository, the below error was thrown. It looks like
> org.restlet:org.restlet.parent:2.0-M4 was not uploaded to the Maven
> repository at:
> http://maven.restlet.org/org/restlet/org.restlet.parent/
>
> Downloading:
>
> http://maven.restlet.org/org/restlet/gae/org.restlet/2.0-M4/org.restlet-2.0-
> M4.pom
> 767b downloaded (org.restlet-2.0-M4.pom)
> Downloading:
>
> http://maven.restlet.org/org/restlet/org.restlet.parent/2.0-M4/org.restlet.p
> arent-2.0-M4.pom
> [INFO] Unable to find resource 'org.restlet:org.restlet.parent:pom:2.0-M4'
> in repository maven-restlet (http://maven.restlet.org)
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
> Project ID: org.restlet.gae:org.restlet:jar:2.0-M4
>
> Reason: Cannot find parent: org.restlet:org.restlet.parent for project:
> org.restlet.gae:org.restlet:jar:2.0-M4
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=23843
> 14
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2386314
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2386398