mvn cannot find pom and jar inmaven central
David Niehaus <[email protected]> Tue, 9 Oct 2012 19:16:52 +0200
| Newsgroups | gmane.comp.java.prevayler |
|---|---|
| Message-ID | <[email protected]> |
Hi everybody,
I've tryed to get the dependency working for prevayler 2.5. Maven 2 as
well as maven 3 failed to resolve and download the files from maven
central.
//------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/prevayler/prevayler/2.5/prevayler-2.5.jar
[INFO] Unable to find resource 'org.prevayler:prevayler:jar:2.5' in
repository central (http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.prevayler:prevayler:jar:2.5
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.prevayler -
DartifactId=prevayler -Dversion=2.5 -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.prevayler -
DartifactId=prevayler -Dversion=2.5 -Dpackaging=jar -Dfile=/path/to/
file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) ggi.oodb:ggicm-oodb:jar:1.0
2) org.prevayler:prevayler:jar:2.5
----------
1 required artifact is missing.
for artifact:
ggi.oodb:ggicm-oodb:jar:1.0
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
//------------------------------------------------------------------------
//------------------------------------------------------------------------
I used the pom snippet provided here:
http://search.maven.org/#artifactdetails%7Corg.prevayler%7Cprevayler%7C2.5%7Cpom
It was a working pom. I just switched the local (repos) version 2.3
jar to the one in maven central.
<dependency>
<groupId>prevayler</groupId>
<artifactId>prevayler</artifactId>
<version>2.5</version>
</dependency>
<!-- local prevayler installation
<dependency>
<groupId>prevayler</groupId>
<artifactId>prevayler</artifactId>
<version>2.3</version>
<scope>compile</scope>
</dependency>
-->
I'd appreciate any hint to get that working.
thanks in advance
David
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
_______________________________________________
"Databases in Memoriam" -- http://www.prevayler.org