Hello,
I have a very simple pom.xml that has a dependency on a jar
that build as a separate module and is installed in the local repository.
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>edu.wisc.east</groupId>
<artifactId>course-guide</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>Course Guide</name>
<dependencies>
.........
<dependency>
<groupId>edu.wisc.east</groupId>
<artifactId>shared</artifactId>
<version>1.0-SNAPSHORT</version>
</dependency>
</dependencies>
</project>
The dependency is installed in the local repository under the correct
groupId, artifactId and version number:
localRepository$ ls edu/wisc/east/shared/1.0-SNAPSHOT/
maven-metadata-local.xml shared-1.0-SNAPSHOT.jar shared-1.0-SNAPSHOT.pom
No user configuration for Maven is set, only global in
$MAVEN_HOME/config/settings.xml.
Local repository path is set there to
<localRepository>/export/projects/east/utils/maven-2.0.1/localRepository</localRepository>
When I run 'mvn compile', I get the error that a dependency artifact
could not be resolved:
granite:/export/projects/east/build/dev/east/CourseGuide$ mvn -o compile
[INFO] NOTE: Maven is executing in offline mode. Any artifacts not
already in your local
repository will be inaccessible.
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Course Guide
[INFO] task-segment: [compile]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
required artifacts missing:
edu.wisc.east:shared:jar:1.0-SNAPSHORT
for the artifact:
edu.wisc.east:course-guide:war:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
Any help would be appreciated,
Ev
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]