i have installed archiva and set it up as a proxy.
when i download artifact the first time when i install a project (mvn install), it can download the artifact from ibiblio. but when i try to use it offline (i disconnected the internet) and i empty my local repos, it says that it can't find the artifact to download. here is some of the message:

project-execute
[DEBUG]maven-resources-plugin: using locally installed snapshot
[DEBUG]Artifact not found - using stub model: Unable to determine the latest version
[DEBUG]
[DEBUG]  org.apache.maven.plugins:maven-resources-plugin:pom:LATEST
[DEBUG]
[DEBUG]Using defaults for missing POM org.apache.maven.plugins:maven-resources-plugin:pom:LATEst
[DEBUG]maven-resources-plugin: using locally installed snapshot
[DEBUG]Artifact not found - using stub model: Unable to determine the release version
[DEBUG]
[DEBUG]  org.apache.maven.plugins:maven-resources-plugin:pom:RELEASE
[DEBUG]
[DEBUG]Using defaults for missing POM org.apache.maven.plugins:maven-resources-plugin:pom:RELEASE

[INFO]------------------------------------------------------------------------

[ERROR]BUILD ERROR

[INFO]------------------------------------------------------------------------

[INFO]The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version could be found

[INFO]------------------------------------------------------------------------

[DEBUG]Trace

org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1011) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:975) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:453) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:382)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:171)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:689) at org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaExecutor.java:161) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)

_______________________________________________________________________________________________________________________________
here is my archiva.xml:


<?xml version="1.0" encoding="UTF-8"?><configuration>

<repositories>

  <repository>

    <directory>E:\dev\repos\archiva\snapshots</directory>

    <includeSnapshots>true</includeSnapshots>

    <id>codeforx-archiva-snapshots</id>

    <name>CodeForx Archiva Snapshots Repository</name>

  </repository>

  <repository>

    <directory>E:\dev\repos\archiva\repos</directory>

    <id>codeforx</id>

    <name>CodeForx Central Repository</name>

  </repository>

</repositories>

<proxiedRepositories>

  <proxiedRepository>

    <url>http://www.ibiblio.org/maven2/</url>

    <managedRepository>codeforx-archiva-snapshots</managedRepository>

    <snapshotsPolicy>daily</snapshotsPolicy>

    <releasesPolicy>disabled</releasesPolicy>

    <id>ibiblio-snapshots</id>

    <name>Ibiblio Central Snapshots Repository</name>

  </proxiedRepository>

  <proxiedRepository>

    <url>http://dist.codehaus.org</url>

    <managedRepository>codeforx</managedRepository>

    <id>codehaus</id>

    <name>CodeHaus Central Repository</name>

  </proxiedRepository>

  <proxiedRepository>

    <url>http://www.ibiblio.org/maven2/</url>

    <managedRepository>codeforx</managedRepository>

    <useNetworkProxy>true</useNetworkProxy>

    <id>ibiblio</id>

    <name>Ibiblio Central Repository</name>

  </proxiedRepository>

</proxiedRepositories>

<localRepository>C:\Documents and Settings\blackid\.m2\repository</localRepository>

<indexPath>E:\dev\repos\archiva\index</indexPath>

<proxy>

  <username></username>

  <password></password>

  <host></host>

</proxy>

</configuration>


Reply via email to