|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Mirror Repo Plugin Snapshots configuration woesHi All,
To the point : I'm having trouble proxying the maven-checkstyle -plugin:2.4-SNAPSHOT, which resides in the apache.snapshots repo at http://repository.apache.org/snapshots. I've been at it for a few hours, I don't know if I'm missing something basic, or if something more exotic is going on. My project declares the plugin as such : <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.4-SNAPSHOT</version> </plugin> And the repository is declared in the parent project : <repository> <id>apache.snapshots</id> <url>http://repository.apache.org/snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> I'm using nexus for mirroring (on server named "spike"), and I've defined an apache.snapshots proxying repo, which is accessible through a dedicated snapshot virtual-repo. In my settings.xml I have : <mirror> <id>nexus-public</id> <mirrorOf>central,marketcetera,opensymphony-releases,java.net2,jboss</mirrorOf> <url>http://spike/m2repo/content/groups/public</url> </mirror> <mirror> <id>nexus-public-snapshots</id> <mirrorOf>apache.snapshots</mirrorOf> <url>http://spike/m2repo/content/groups/public-snapshots</url> </mirror> (If I use a mirror * config, everything works, but I don't want to do that because I want to keep the ability to connect to unmirrored repo) Although I can SEE the cached snapshot jar and pom in the repo manager, Maven won't download it. The expanded build log for a compile ("mvn -U -X compile") gives me this : ... [INFO] snapshot org.apache.maven.plugins:maven-checkstyle-plugin:2.4-SNAPSHOT: checking for updates from apache.snapshots [DEBUG] Using mirror: http://spike/m2repo/content/groups/public-snapshots (id: nexus-public-snapshots) [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http [DEBUG] Checking for pre-existing User-Agent configuration. [DEBUG] Adding User-Agent configuration. [DEBUG] Connecting to repository: 'nexus-public-snapshots' with url: 'http://spike/m2repo/content/groups/public-snapshots'. [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http [DEBUG] Skipping disabled repository central [DEBUG] maven-checkstyle-plugin: resolved to version 2.4-20091028.203841-3 from repository apache.snapshots [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:14 for project: null:maven-checkstyle-plugin:maven-plugin:2.4-SNAPSHOT from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:13 for project: org.apache.maven.plugins:maven-plugins:pom:14 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache:pom:6 for project: org.apache.maven:maven-parent:pom:13 from the repository. [DEBUG] maven-checkstyle-plugin: using locally installed snapshot [DEBUG] Skipping disabled repository zerobase-plugins-releases [DEBUG] Trying repository zerobase-plugins-snapshots [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http [DEBUG] Checking for pre-existing User-Agent configuration. [DEBUG] Adding User-Agent configuration. [DEBUG] Connecting to repository: 'zerobase-plugins-snapshots' with url: 'http://spike/m2repo/content/repositories/snapshots'. Downloading: http://spike/m2repo/content/repositories/snapshots/org/apache/maven/plugins/maven-checkstyle-plugin/2.4-SNAPSHOT/maven-checkstyle-plugin-2.4-SNAPSHOT.jar [DEBUG] Unable to locate resource in repository org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:139) at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116) ... It seems that Maven at least partially acknowledges that the file is there. Does anybody see what's wrong with my setup? Francis Lalonde Services de trésorerie CGI 514-228-8800 poste 2795 --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Mirror Repo Plugin Snapshots configuration woesFrancis,
have you added your apache-snapshot proxy to the public-snapshot group in nexus? On Mon, Nov 2, 2009 at 5:03 PM, Lalonde, Francis <francis.lalonde@...> wrote: Hi All, |
|
|
RE: Mirror Repo Plugin Snapshots configuration woesYeah, I did that. The issue lies with the name of the file to
download. I have no idea why, but when using a mirror * config, the plugin jar
gets downloaded correctly, with the name “maven-checkstyle-plugin-2.4-20091028.203841-3.jar”
rather than the “maven-checkstyle-plugin-2.4-SNAPSHOT.jar” that
gets used when I go for a split-mirror config. Why Maven changes the expected
filename based on mirror configuration is beyond me. This is what happens when
every goes right : [DEBUG] Connecting to repository: 'nexus-public' with url:
'http://spike/m2repo/content/groups/public'. Downloading:
http://spike/m2repo/content/groups/public/org/apache/maven/plugins/maven-checkstyle-plugin/2.4-SNAPSHOT/maven-checkstyle-plugin-2.4-20091028.203841-3.pom [DEBUG] attempting to create parent directories for destination:
maven-checkstyle-plugin-2.4-20091028.203841-3.pom.tmp … 9K downloaded
(maven-checkstyle-plugin-2.4-20091028.203841-3.pom) [DEBUG] Using Wagon implementation lightweight from default
mapping for protocol http [DEBUG] Artifact resolved [DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins:pom:14 for project:
null:maven-checkstyle-plugin:maven-plugin:2.4-SNAPSHOT from the repository. [DEBUG] Retrieving parent-POM:
org.apache.maven:maven-parent:pom:13 for project:
org.apache.maven.plugins:maven-plugins:pom:14 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache:pom:6 for
project: org.apache.maven:maven-parent:pom:13 from the repository. [DEBUG] maven-checkstyle-plugin: resolved to version
2.4-20091028.203841-3 from repository zerobase-plugins-snapshots [DEBUG] Trying repository zerobase-plugins-snapshots [DEBUG] Using mirror: http://spike/m2repo/content/groups/public
(id: nexus-public) [DEBUG] Using Wagon implementation lightweight from default
mapping for protocol http [DEBUG] Checking for pre-existing User-Agent configuration. [DEBUG] Adding User-Agent configuration. [DEBUG] Connecting to repository: 'nexus-public' with url:
'http://spike/m2repo/content/groups/public'. Downloading:
http://spike/m2repo/content/groups/public/org/apache/maven/plugins/maven-checkstyle-plugin/2.4-SNAPSHOT/maven-checkstyle-plugin-2.4-20091028.203841-3.jar [DEBUG] attempting to create parent directories for destination:
maven-checkstyle-plugin-2.4-20091028.203841-3.jar.tmp … 64K downloaded
(maven-checkstyle-plugin-2.4-20091028.203841-3.jar) [DEBUG] Using Wagon implementation lightweight from default
mapping for protocol http [DEBUG] Artifact resolved From: Fred Bricon
[mailto:fbricon@...] Francis, On Mon, Nov 2, 2009 at 5:03 PM, Lalonde, Francis <francis.lalonde@...> wrote: Hi All, |
|
|
Re: Mirror Repo Plugin Snapshots configuration woesDoes it work with the maven CLI?
If not, then it's not a m2e bug and you'll probably get more help with the maven and/or nexus user lists On Mon, Nov 2, 2009 at 5:37 PM, Lalonde, Francis <francis.lalonde@...> wrote:
|
|
|
RE: Mirror Repo Plugin Snapshots configuration woesYou’re right, this should’ve been posted on the maven users
list. Sorry. From: Fred Bricon
[mailto:fbricon@...] Does it work with the maven
CLI? On Mon, Nov 2, 2009 at 5:37 PM, Lalonde, Francis <francis.lalonde@...> wrote: Yeah, I did that. The issue lies with
the name of the file to download. I have no idea why, but when using a mirror *
config, the plugin jar gets downloaded correctly, with the name
“maven-checkstyle-plugin-2.4-20091028.203841-3.jar” rather than the
“maven-checkstyle-plugin-2.4-SNAPSHOT.jar” that gets used when I go for a
split-mirror config. Why Maven changes the expected filename based on mirror
configuration is beyond me. This is what happens when every goes right : [DEBUG] Connecting to repository:
'nexus-public' with url: 'http://spike/m2repo/content/groups/public'. [DEBUG] attempting to create parent
directories for destination:
maven-checkstyle-plugin-2.4-20091028.203841-3.pom.tmp … 9K downloaded
(maven-checkstyle-plugin-2.4-20091028.203841-3.pom) [DEBUG] Using Wagon implementation
lightweight from default mapping for protocol http [DEBUG] Artifact resolved [DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins:pom:14 for project:
null:maven-checkstyle-plugin:maven-plugin:2.4-SNAPSHOT from the repository. [DEBUG] Retrieving parent-POM:
org.apache.maven:maven-parent:pom:13 for project:
org.apache.maven.plugins:maven-plugins:pom:14 from the repository. [DEBUG] Retrieving parent-POM:
org.apache:apache:pom:6 for project: org.apache.maven:maven-parent:pom:13 from
the repository. [DEBUG] maven-checkstyle-plugin:
resolved to version 2.4-20091028.203841-3 from repository
zerobase-plugins-snapshots [DEBUG] Trying repository
zerobase-plugins-snapshots [DEBUG] Using mirror: http://spike/m2repo/content/groups/public
(id: nexus-public) [DEBUG] Using Wagon implementation
lightweight from default mapping for protocol http [DEBUG] Checking for pre-existing
User-Agent configuration. [DEBUG] Adding User-Agent configuration. [DEBUG] Connecting to repository:
'nexus-public' with url: 'http://spike/m2repo/content/groups/public'. [DEBUG] attempting to create parent
directories for destination:
maven-checkstyle-plugin-2.4-20091028.203841-3.jar.tmp … 64K downloaded
(maven-checkstyle-plugin-2.4-20091028.203841-3.jar) [DEBUG] Using Wagon implementation
lightweight from default mapping for protocol http [DEBUG] Artifact resolved From: Fred
Bricon [mailto:fbricon@...]
Francis, On
Mon, Nov 2, 2009 at 5:03 PM, Lalonde, Francis <francis.lalonde@...>
wrote: Hi All, |
| Free embeddable forum powered by Nabble | Forum Help |