You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Donszelmann, Mark" <du...@slac.stanford.edu> on 2005/10/17 02:14:32 UTC

[m2rc] Failure to download jar file (because it is no published) should show where it can be downloaded.

Hi

when a pom is published on ibiblio without the jar (because of licensing issues)
the debug output looks somewhat like this:

--
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: ojdbc
ArtifactId: ojdbc
Version: 14

Reason: Unable to download the artifact from any repository
  ojdbc:ojdbc:14:jar

from the specified remote repositories:
  central (http://www.ibiblio.org/maven2),
  snapshots (http://snapshots.maven.codehaus.org/maven2)

--

it fails however to tell me where to download the jar file, which is specified in most cases 
in the "published" pom file, under downloadURL:

--
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>ojdbc</groupId>
  <artifactId>ojdbc</artifactId>
  <version>14</version>
  <name>Oracle JDBC Driver</name>
  <description>
    Oracle JDBC Driver
  </description>
  <url>http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html</url>
  <distributionManagement>
    <downloadUrl>http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html</downloadUrl>
  </distributionManagement>
</project>
--

Cosmetic change I guess.

Regards
Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org