On 3/11/06, Poitras , Alexandre <[EMAIL PROTECTED]> wrote:
> You have to declare it as mirror of central in your settings.xml file.

OK. I added these lines to my settings.xml:

    <mirrors>
        <mirror>
            <id>wolloxmirror</id>
            <name>wollox mirror</name>
            <url>http://localhost:1516/repository</url>
            <mirrorOf>central</mirrorOf>
        </mirror>
    </mirrors>

And I modified my pom.xml so that there are no repository nor 
pluginRepositories specifications anymore.

Now, when calling "mvn clean" the following happens:

[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for 
updates from central
[DEBUG] repository metadata for: 'artifact 
org.apache.maven.plugins:maven-clean-plugin' could not be found on repository
: central
[DEBUG] maven-clean-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the latest 
version

  org.apache.maven.plugins:maven-clean-plugin:pom:LATEST


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

  org.apache.maven.plugins:maven-clean-plugin:pom:RELEASE


[DEBUG] Using defaults for missing POM 
org.apache.maven.plugins:maven-clean-plugin:pom:RELEASE
[INFO] 
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
----------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-clean-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-clean-plugin' does no
t exist or no valid version could be found
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1247)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1483)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:9
79)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:
943)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:450)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a: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.plugin.version.PluginVersionNotFoundException: The 
plugin 'org.apache.maven.plugins:maven-cl
ean-plugin' does not exist or no valid version could be found
        at 
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.
java:225)
        at 
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.
java:87)
        at 
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:160)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1218)
        ... 18 more


And my maven-proxy instances shows:

Y:\maven-proxy>java -jar maven-proxy-standalone-0.2-app.jar 
maven-proxy.properties
maven-proxy Unversioned
2006-03-12 09:14:36,265 [INFO ] proxy.config.RepoConfiguration  - Disabling 
snapshot cache
2006-03-12 09:14:36,281 [INFO ] proxy.config.RepoConfiguration  - Disabling 
snapshot cache
2006-03-12 09:14:36,281 [INFO ] proxy.config.RepoConfiguration  - 
Repo[www-ibiblio-org]: Enabling cache with period of 3
600 seconds
2006-03-12 09:14:36,281 [INFO ] proxy.config.RepoConfiguration  - 
Repo[dist-codehaus-org]: Enabling cache with period of
 3600 seconds
Saving repository at U:///Modules/maven/remote-repo
Scanning repository: file:///U:///Modules/maven/remote-repo
Scanning repository: file:///./target/repo-local
Scanning repository: http://www.ibiblio.org/maven
Scanning repository: http://dist.codehaus.org
Starting...
Prefix: 'repository'
Started.
Add the following to your ~/build.properties file:
   maven.repo.remote=http://localhost:1516/repository
The proxy can be managed at http://localhost:1516
The repository can be browsed at http://localhost:1516/repository
Repository searching is enabled.
2006-03-12 09:14:55,078 [INFO ] proxy.servlets.RepositoryServlet  - Received 
request: /org/apache/maven/plugins/maven-clean-plugin/maven-metadata.xml
2006-03-12 09:14:55,078 [DEBUG] proxy.engine.DownloadEngine  - Request: 
source=127.0.0.1, path=/org/apache/maven/plugins 
/maven-clean-plugin/maven-metadata.xml, lastModified=-1, headOnly=false, 
ifModifiedSince=-1
2006-03-12 09:14:55,093 [WARN ] proxy.engine.DownloadEngine  - Neither 
If-Modified-Since nor Last-Modified are set
2006-03-12 09:14:55,093 [DEBUG] proxy.config.FileRepoConfiguration  - 
Repo[global]: Checking last modified time for 
U:\Modules\maven\remote-repo\org\apache\maven\plugins\maven-clean-plugin\maven-metadata.xml
2006-03-12 09:14:55,093 [DEBUG] proxy.config.FileRepoConfiguration  - 
Repo[local-repo]: Checking last modified time for 
.\target\repo-local\org\apache\maven\plugins\maven-clean-plugin\maven-metadata.xml
2006-03-12 09:14:55,093 [DEBUG] components.impl.DefaultSnapshotCache  - Unable 
to find /org/apache/maven/plugins/maven-clean-plugin/maven-metadata.xml in 
snapshot cache
2006-03-12 09:14:55,109 [INFO ] proxy.config.HttpRepoConfiguration  - 
Repo[www-ibiblio-org]: Checking last modified time
 for 
http://www.ibiblio.org/maven/org/apache/maven/plugins/maven-clean-plugin/maven-metadata.xml
2006-03-12 09:14:56,390 [INFO ] components.impl.DefaultSnapshotCache  - Adding 
/org/apache/maven/plugins/maven-clean-plugin/maven-metadata.xml to snapshot 
cache
2006-03-12 09:14:56,390 [DEBUG] components.impl.DefaultSnapshotCache  - Unable 
to find /org/apache/maven/plugins/maven-clean-plugin/maven-metadata.xml in 
snapshot cache
2006-03-12 09:14:56,390 [INFO ] proxy.config.HttpRepoConfiguration  - 
Repo[dist-codehaus-org]: Checking last modified time for 
http://dist.codehaus.org/org/apache/maven/plugins/maven-clean-plugin/maven-metadata.xml
2006-03-12 09:14:56,750 [INFO ] components.impl.DefaultSnapshotCache  - Adding 
/org/apache/maven/plugins/maven-clean-plugin/maven-metadata.xml to snapshot 
cache
2006-03-12 09:14:56,750 [INFO ] proxy.engine.DownloadEngine  - Artifact not 
found: /org/apache/maven/plugins/maven-clean-plugin/maven-metadata.xml


So there seems to be still something else that is not correct.

> It is very important to understand that a proxy is not a true
> repository. It is always confused because a lot of people share their
> proxy *cache* (where the artifacts are copied) and their internal
> corporation repository in case their internet access go down.
> Well that's what I do.

Regards
Gerald


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

Reply via email to