pax runner reads .m2/settings.xml but doesn't respect snapshot value

Description

When pax runner is ran without needed packages in local repo, but correct repo in settings.xml it refuses to load snapshots.

<repositories>
<repository>
<id>bjarne</id>
<url>http://bjarne.pats.no:8081/artifactory/repo</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>

when running it it gives:

-> Collecting versions from repository http://bjarne.pats.no:8081/artifactory/repo/,releases=true,snapshots=false
-> Skipping repository http://bjarne.pats.no:8081/artifactory/repo/,releases=true,snapshots=false, reason: Snapshots not enabled

In paxrovision this problem is even worse, since it refuses to accept even the "--repositories=+http://bjarne.pats.no:8081/artifactory/repo@snapshots" from the runner.args file. This works in pax-runner....

Environment

Darwin xxxx 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31 22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386

Activity

Show:
Alin Dreghiciu
September 25, 2009, 3:00 PM

This has to be a Pax Construct problem as there are specific tests about this in pax runner and also tested manually right now. Snapshots are read correctly.
But in case of pax construct the plugin overrides all repositories using --repositories (without a starting +) but pax runner does not honor the snapshots setting.

StuartS
September 25, 2009, 3:10 PM

This has already been fixed in trunk (I think sometime last year) - you'll need to use the 1.5-SNAPSHOT of the pax plugin, or build it from trunk.

Anders Storsveen
September 26, 2009, 11:04 AM

Well, when using pax-runner with this settings-file, I shouldn't get:

-> Collecting versions from repository http://bjarne.pats.no:8081/artifactory/repo/,releases=true,snapshots=false
-> Skipping repository http://bjarne.pats.no:8081/artifactory/repo/,releases=true,snapshots=false, reason: Snapshots not enabled

This is with 1.2.0.

Assignee

StuartS

Reporter

Anders Storsveen

Labels

None

Fix versions

Priority

Critical
Configure