Hi everybody,

I'm using maven-proxy as described in the doco "Using Maven in a corporate
environment"
(http://docs.codehaus.org/display/MAVENUSER/Using+Maven+in+a+corporate+environment),
 and everything works well except for snapshots.

I have snaphots of some of my components deployed in the inner snapshot
repository (they are *not* deployed with a unique name, though, but only
"SNAPSHOT"). When I build a projet that references those snapshots, I get
the following error (with -e) :

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

required artifacts missing:
  com.inetpsa.fwk:fwk-sql:jar:2.1.0-SNAPSHOT
  com.inetpsa.fwk:fwk-vrn:jar:2.1.0-SNAPSHOT
  com.inetpsa.fwk:fwk-noyau:jar:2.1.0-SNAPSHOT

for the artifact:
  com.inetpsa.xxx:xxxMetier:jar:1.0.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: required artifacts
missing:
  com.inetpsa.fwk:fwk-sql:jar:2.1.0-SNAPSHOT
  com.inetpsa.fwk:fwk-vrn:jar:2.1.0-SNAPSHOT
  com.inetpsa.fwk:fwk-noyau:jar:2.1.0-SNAPSHOT

for the artifact:
  com.inetpsa.xxx:xxxMetier:jar:1.0.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:547)
        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:
  com.inetpsa.fwk:fwk-sql:jar:2.1.0-SNAPSHOT
  com.inetpsa.fwk:fwk-vrn:jar:2.1.0-SNAPSHOT
  com.inetpsa.fwk:fwk-noyau:jar:2.1.0-SNAPSHOT

for the artifact:
  com.inetpsa.xxx:xxxMetier:jar:1.0.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

        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:1165)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:386)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
        ... 16 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 36 seconds
[INFO] Finished at: Wed Feb 08 14:20:13 MET 2006
[INFO] Final Memory: 5M/14M
[INFO]
----------------------------------------------------------------------------
=================================================================================


It says it can't  find the snapshots on "central
(http://repo1.maven.org/maven2)". But when I look on my maven-proxy web
interface, I can see those files located in the inner snapshot repository
and referenced by maven-proxy.

For information, here is my "settings.xml":

=================================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<settings>
        <interactiveMode>false</interactiveMode>
        <mirrors>
                <mirror>
                        <id>maven-proxy</id>
                        <name>Maven-Proxy Mirror</name>
                        <url>http://h239807:9091/maven/repository</url>
                        <mirrorOf>central</mirrorOf>
                </mirror>
        </mirrors>
        <pluginGroups>
                <pluginGroup>com.inetpsa.jip.plugins</pluginGroup>
        </pluginGroups>
</settings>
=================================================================================

Where could the problem come from ?
Do I need to add extra information in my project's POM or in the
settings.xml? Do I need to change a configuration parameter in maven-proxy?

Thanks in advance for your answers!

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  [EMAIL PROTECTED]


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

Reply via email to