You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Evguenia Krylova <ev...@doit.wisc.edu> on 2006/02/22 23:53:04 UTC
[m2] dependency is not fetched from local repository
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] dependency is not fetched from local repository
Posted by Alexandre Poitras <al...@gmail.com>.
There is a typo in your pom, you wrote SNAPSHORT instead of SNAPSHOT.
> <version>1.0-SNAPSHORT</version>
On 2/22/06, Evguenia Krylova <ev...@doit.wisc.edu> wrote:
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Alexandre Poitras
Québec, Canada
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org