[Geoserver-devel] Manually adding dependency archive

I thought this worked a couple days ago but it isn't today. Don't know if it is a typo or if something in the system isn't working.

The following is my output:

E:\geotools\svntrunkbase\gt\modules\unsupported\db2>mvn -U install:install-file
-Dfile=e:\temp\db2jcc.jar -DgroupId=ibm.com -DartifactId=db2jcc -Dversion=9 -Dpa
ckaging=jar -DgeneratePom=true

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] snapshot org.codehaus.mojo:jalopy-maven-plugin:1.0-SNAPSHOT: checking for updates from codehaus-snapshot-plugins
[INFO] snapshot org.codehaus.mojo:jalopy-maven-plugin:1.0-SNAPSHOT: checking for updates from refractions
[INFO] snapshot org.codehaus.mojo:mojo:10-SNAPSHOT: checking for updates from codehaus-snapshot-plugins
[INFO] snapshot org.codehaus.mojo:mojo:10-SNAPSHOT: checking for updates from refractions
[INFO] artifact org.apache.maven.plugins:maven-source-plugin: checking for updates from central
Downloading: http://repo1.maven.org/maven2/org/geotools/maven/gt2-jar-collector/9/gt2-jar-collector-9.pom
Downloading: http://www.ibiblio.org/maven2/org/geotools/maven/gt2-jar-collector/9/gt2-jar-collector-9.pom
Downloading: http://lists.refractions.net/m2/org/geotools/maven/gt2-jar-collector/9/gt2-jar-collector-9.pom
Downloading: http://maven.geotools.fr/repository/org/geotools/maven/gt2-jar-collector/9/gt2-jar-collector-9.pom
Downloading: http://repo1.maven.org/maven2/org/geotools/maven/gt2-jar-collector/9/gt2-jar-collector-9.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

Project ID: org.geotools.maven:gt2-jar-collector

Reason: POM 'org.geotools.maven:gt2-jar-collector' not found in repository: Unable to download the artifact from any repository

  org.geotools.maven:gt2-jar-collector:pom:9

from the specified remote repositories:
  codehaus-snapshot-plugins (http://snapshots.repository.codehaus.org/),
  geotools (http://maven.geotools.fr/repository),
  refractions (http://lists.refractions.net/m2),
  ibiblio (http://www.ibiblio.org/maven2),
  central (http://repo1.maven.org/maven2)
for project org.geotools.maven:gt2-jar-collector

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27 seconds
[INFO] Finished at: Thu Aug 02 12:30:21 EDT 2007
[INFO] Final Memory: 3M/8M
[INFO] ------------------------------------------------------------------------

David Adler ha scritto:

I thought this worked a couple days ago but it isn't today. Don't know if it is a typo or if something in the system isn't working.

The few times I see this, I do a full build and it usually goes away.
Cheers
Andrea

The GeoTools environment must somehow override install:install-file. I did mvn clean install and it still failed. I was able to get it to work by running the command outside the GeoTools code tree.

Andrea Aime wrote:

David Adler ha scritto:

I thought this worked a couple days ago but it isn't today. Don't know if it is a typo or if something in the system isn't working.

The few times I see this, I do a full build and it usually goes away.
Cheers
Andrea

David Adler ha scritto:

The GeoTools environment must somehow override install:install-file. I did mvn clean install and it still failed. I was able to get it to work by running the command outside the GeoTools code tree.

Interesting, I had no idea about this because I never ran the mvn
install command inside the source tree (I keep an external folder
for jars that aren't in the maven repos, called extralibs).

Cheers
Andrea