#1 Maven Dependency

open
nobody
None
5
2 days ago
2010-11-25
Konrad Höffner
No

It would be nice if SimMetrics was uploaded to a maven repository, so that Maven Users can just add SimMetrics as a dependency in their pom.xml instead of having to download and adding it to the build path. When searching for this in google, I found the site http://maven.mse.jhu.edu/m2repository/uk/ac/shef/wit/simmetrics/maven-metadata.xml which contains the lines:

<groupId>uk.ac.shef.wit</groupId>
<artifactId>simmetrics</artifactId>
<version>1.6.2</version>

However when I add those lines together with <dependency> - tags to my projects pom.xml

Downloading: http://repo1.maven.org/maven2/uk/ac/shef/wit/simmetrics/1.6.2/simmetrics-1.6.2.pom
[INFO] Unable to find resource 'uk.ac.shef.wit:simmetrics:pom:1.6.2' in repository central (http://repo1.maven.org/maven2)
Downloading: http://repo1.maven.org/maven2/uk/ac/shef/wit/simmetrics/1.6.2/simmetrics-1.6.2.jar
[INFO] Unable to find resource 'uk.ac.shef.wit:simmetrics:jar:1.6.2' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Discussion