I have a <repositories> entry that seems to be ignored, since it
produces the following output:

-----------------------------------------------------------
[EMAIL PROTECTED] eclipse-libraries]$ m2 --offline install
[INFO] Maven is running in offline mode.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Eclipse libraries
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] maven-install-plugin: resolved to version 2.0-beta-1-SNAPSHOT
from local repository
[INFO] maven-install-plugin: using locally installed snapshot
[INFO] maven-plugin-parent: using locally installed snapshot
[INFO] maven-assembly-plugin: using locally installed snapshot
[WARNING]
  ***** Using defaults for missing POM org.eclipse:libraries:pom:3.1
*****

[INFO]
----------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------
[INFO] Main Error:
  Unable to download the artifact from any repository
  org.eclipse:libraries:3.1:zip

from the specified remote repositories:
  http://repo1.maven.org/maven2
Path to dependency:
        1) net.agentis:eclipse-libraries:pom:1.0-SNAPSHOT
        2) org.eclipse:libraries:zip:3.1

Root error:
  Unable to download the artifact from any repository

-----------------------------------------------------------

An extract from my pom is:

  <repositories>
    <repository>
      <id>central</id>
      <name>Central Development Repository</name>
      <url>file://localhost/home/jas/agentis/repo/central</url>
                        <snapshotPolicy>always</snapshotPolicy>
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>org.eclipse</groupId>
      <artifactId>libraries</artifactId>
      <version>3.1</version>
      <type>zip</type>
    </dependency>
  </dependencies>

-----------------------------------------------------------

I think the integrity of my repository is OK - it has the format shown
below.  (I've also tried putting a "repository" directory above org).
I've tried the libraries-3.1.pom file with both packaging of 'pom' and
'zip', but no joy.  Maybe m2 doesn't support depending on zips?

/home/jas/agentis/repo/central/
|-- org
    `-- eclipse
        |-- libraries
            `-- 3.1
                |-- libraries-3.1.pom
                `-- libraries-3.1.zip





Reply via email to