Continuum

Data management cli doesn't read settings.xml

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.1-beta-2, 1.1-beta-3
  • Fix Version/s: 1.1
  • Component/s: Data Management
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

DMC doesn't read settings.xml file (proxy + Continuum beta-4 stage repository)

settings.xml file is located under ${user.home}/.m2/

Here is what I get when I try to execute DMC and then dependency:resolve with DMC pom file.

DMC alone :

[robot@CC ~]$ java -jar data-management-cli-1.1-beta-4-app.jar ...
0 [main] INFO org.apache.maven.continuum.management.DataManagementCli

  • Processing Continuum database...
    Exception in thread "main"
    org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException:
    Missing:
    ----------
    1) org.apache.maven.continuum:data-management-jdo:jar:1.1-beta-4

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.continuum
-DartifactId=data-management-jdo \
-Dversion=1.1-beta-4 -Dpackaging=jar -Dfile=/path/to/file

Path to dependency:
1) dummy:dummy:pom:1.0
2) org.apache.maven.continuum:data-management-jdo:jar:1.1-beta-4

----------
1 required artifact is missing.

for artifact:
dummy:dummy:pom:1.0

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

at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:305)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:272)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:243)
at org.apache.maven.continuum.management.DataManagementCli.downloadArtifact(DataManagementCli.java:304)
at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:185)
at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:158)

<= same session, same maven 2, same settings.xml =>

Then, with DMC pom file :

[robot@CC ~]$ mvn dependency:resolve
[INFO] Scanning for projects...
Downloading: http://people.apache.org/builds/maven/continuum/1.1-beta-4/org/apache/maven/continuum/continuum-data-management/1.1-beta-4/continuum-data-management-1.1-beta-4.pom
2K downloaded
Downloading: http://people.apache.org/builds/maven/continuum/1.1-beta-4/org/apache/maven/continuum/continuum-parent/1.1-beta-4/continuum-parent-1.1-beta-4.pom
25K downloaded
...

Maven itself finds settings.xml and its configuration, but DMC fails.

Issue Links

Activity

Hide
Emmanuel Venisse added a comment -

Fixed.

Show
Emmanuel Venisse added a comment - Fixed.
Hide
Mick Knutson added a comment -

I seem to be having an issue where my settings.xml is not picked up in continuum beta-4. If this is the same issue and it is fixed, when can I get the fixed version?

Show
Mick Knutson added a comment - I seem to be having an issue where my settings.xml is not picked up in continuum beta-4. If this is the same issue and it is fixed, when can I get the fixed version?
Hide
Olivier Lamy added a comment -

in final 1.1

Show
Olivier Lamy added a comment - in final 1.1
Hide
a w added a comment -

it doesn't seem to be fixed in 1.1 (data-management-cli-1.1-app.jar).

i try the following command:

java -Xmx512m -jar data-management-cli-1.1-app.jar -buildsJdbcUrl jdbc:derby:/export/home/svn/tools/continuum-1.1/data/continuum/database -mode EXPORT -directory backups

and get this error:

1 [main] INFO org.apache.maven.continuum.management.DataManagementCli - Processing Continuum database...
Exception in thread "main" org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
----------
1) org.apache.derby:derby:jar:10.1.3.1

Try downloading the file manually from the project website.
....
....

org.apache.derby:derby:jar:10.1.3.1 is installed in my local repo which is referenced in my settings.xml

Any help on how I can manage to do my export from my Continuum 1.1?

Show
a w added a comment - it doesn't seem to be fixed in 1.1 (data-management-cli-1.1-app.jar). i try the following command: java -Xmx512m -jar data-management-cli-1.1-app.jar -buildsJdbcUrl jdbc:derby:/export/home/svn/tools/continuum-1.1/data/continuum/database -mode EXPORT -directory backups and get this error: 1 [main] INFO org.apache.maven.continuum.management.DataManagementCli - Processing Continuum database... Exception in thread "main" org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing: ---------- 1) org.apache.derby:derby:jar:10.1.3.1 Try downloading the file manually from the project website. .... .... org.apache.derby:derby:jar:10.1.3.1 is installed in my local repo which is referenced in my settings.xml Any help on how I can manage to do my export from my Continuum 1.1?

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: