Hi all,

I'm trying to set up Maven 2 to work with mirrors of the IBiblio
repository and I don't think it is working.

I have my mirrors defined in settings.xml, but when I run mvn compile on
my project, it doesn't seem to contact any of the mirrors.

Do I need to specify a switch for the mirrors to be utilized or am I
missing something obvious?

Thanks,
Elliot


Here is my settings.xml:
<settings>

  <profiles>
      <!--
         |
         -->
  </profiles>

  <servers>
      <!--
         |
         -->
  </servers>

  <mirrors>
    <mirror>
      <id>dotsrc.org</id>
      <url>http://mirrors.dotsrc.org/maven2</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
    <mirror>
      <id>ggi-project.org</id>
      <url>http://ftp.ggi-project.org/pub/packages/maven2</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
    <mirror>
      <id>sunsite.dk</id>
      <url>http://mirrors.sunsite.dk/maven2</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
    <mirror>
      <id>planetmirror.com</id>
      <url>http://public.planetmirror.com/pub/maven2</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
    <mirror>
      <id>lsu.edu</id>
      <url>http://ibiblio.lsu.edu/main/pub/packages/maven2</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
    <mirror>
      <id>ibiblio.net</id>
      <url>http://www.ibiblio.net/pub/packages/maven2</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
  </mirrors>

</settings>

Here is the output of mvn -e compile:
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Hermes Portlet
[INFO]    task-segment: [compile]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://maven.mse.jhu.edu/m2repository/org/hibernate/hibernate3/3.1.2/hibernate3-3.1.2.pom
[WARNING] Unable to get resource from repository bajor-m2
(http://maven.mse.jhu.edu/m2repository)
Downloading:
http://www.ibiblio.net/pub/packages/maven2/org/hibernate/hibernate3/3.1.2/hibernate3-3.1.2.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://maven.mse.jhu.edu/m2repository/org/springframework/spring-context/2.0-m2/spring-context-2.0-m2.pom
[WARNING] Unable to get resource from repository bajor-m2
(http://maven.mse.jhu.edu/m2repository)
Downloading:
http://www.ibiblio.net/pub/packages/maven2/org/springframework/spring-context/2.0-m2/spring-context-2.0-m2.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://maven.mse.jhu.edu/m2repository/org/hibernate/hibernate3/3.1.2/hibernate3-3.1.2.jar
[WARNING] Unable to get resource from repository bajor-m2
(http://maven.mse.jhu.edu/m2repository)
Downloading:
http://www.ibiblio.net/pub/packages/maven2/org/hibernate/hibernate3/3.1.2/hibernate3-3.1.2.jar
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

required artifacts missing:
  org.hibernate:hibernate3:jar:3.1.2

for the artifact:
  edu.jhu.library.hermes:msel-hermes-portlet:jar:1.0.5-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  bajor-m2 (http://maven.mse.jhu.edu/m2repository)


[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: required
artifacts missing:
  org.hibernate:hibernate3:jar:3.1.2

for the artifact:
  edu.jhu.library.hermes:msel-hermes-portlet:jar:1.0.5-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  bajor-m2 (http://maven.mse.jhu.edu/m2repository)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:548)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by:
org.apache.maven.artifact.resolver.ArtifactResolutionException: required
artifacts missing:
  org.hibernate:hibernate3:jar:3.1.2

for the artifact:
  edu.jhu.library.hermes:msel-hermes-portlet:jar:1.0.5-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  bajor-m2 (http://maven.mse.jhu.edu/m2repository)

        at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:251)
        at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211)
        at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:182)
        at
org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1120)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:369)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
        ... 16 more

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to