artifact not found?

View: New views
3 Messages — Rating Filter:   Alert me  

artifact not found?

by Mark Bartel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm new to maven (and to this mailing list), so forgive me if I'm
missing the obvious.  I'm defining maven builds for several libraries.
 I'm trying to create my own internal "remote" repository (accessible
via HTTP) and have dependent libraries retrieved from there.  Maven
seems to retrieve the dependencies (it tells me how much it downloaded
and the values make sense) but then it errors out due to "Failed to
resolve artifact".  This makes no sense: it finds it, downloads it,
and then complains it wasn't found!

I have attached the pom.xml and the log (names have been changed in
the pom and log due to policies about unreleased codenames <sigh>).

Maven version: 2.0.9
Java version: 1.5.0_17
OS name: "linux" version: "2.6.26-2-amd64" arch: "amd64" Family: "unix"

Now, of course I can just place the dependencies in my local
repository (or just mvn install on the dependency) on my local machine
and indeed I am doing that to move forward, but in the end I need the
remote repository to work.

Help!

-Mark

+ Error stacktraces are turned on.
Maven version: 2.0.9
Java version: 1.5.0_17
OS name: "linux" version: "2.6.26-2-amd64" arch: "amd64" Family: "unix"
[DEBUG] Building Maven user-level plugin registry from: '/home/mbartel/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: '/usr/share/maven2/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - ca.foo.common:foo-common:jar:1.0
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-resources-plugin:maven-plugin:2.2 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8 for project: null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project: org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG] Plugin dependencies for:

org.apache.maven.plugins:maven-resources-plugin:2.2

are:

org.apache.maven:maven-plugin-api:jar:2.0:runtime
org.apache.maven:maven-project:jar:2.0:runtime
org.apache.maven:maven-model:jar:2.0:runtime
org.codehaus.plexus:plexus-utils:jar:1.1:runtime


[DEBUG] org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-plugin-api:jar:2.0 from the repository.
[DEBUG] Adding managed dependencies for org.apache.maven:maven-plugin-api
[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4
[DEBUG]   org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime)
[DEBUG] Adding managed dependencies for unknown:maven-project
[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4
[DEBUG]   org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5
[DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for runtime)
[DEBUG] Adding managed dependencies for unknown:maven-profile
[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4
[DEBUG]   org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5
[DEBUG]     org.apache.maven:maven-profile:jar:2.0:runtime (selected for runtime)
[DEBUG] Adding managed dependencies for org.apache.maven:maven-model
[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4
[DEBUG]   org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5
[DEBUG]       org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
[DEBUG]         junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]         classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
[DEBUG]     org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime)
[DEBUG] Adding managed dependencies for org.apache.maven:maven-artifact-manager
[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4
[DEBUG]   org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5
[DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0:runtime (selected for runtime)
[DEBUG] Adding managed dependencies for org.apache.maven:maven-repository-metadata
[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4
[DEBUG]   org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0:runtime (selected for runtime)
[DEBUG] Adding managed dependencies for org.apache.maven:maven-artifact
[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4
[DEBUG]   org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5
[DEBUG]   org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5
[DEBUG]       org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
[DEBUG]       org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime)
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
[DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
[DEBUG]   org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for project: null:plexus-utils:jar:1.1 from the repository.
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for runtime)
[DEBUG]  The following artifacts were filtered out for plugin: org.apache.maven.plugins:maven-resources-plugin:2.2 because they're already in the core of Maven:

org.apache.maven:maven-plugin-api:jar:2.0:runtime
org.apache.maven:maven-project:jar:2.0:runtime
org.apache.maven:maven-model:jar:2.0:runtime

These will use the artifact files already in the core ClassRealm instead, to allow them to be included in PluginDescriptor.getArtifacts().


[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.2:resources' -->
[DEBUG]   (f) filters = []
[DEBUG]   (f) outputDirectory = /home/mbartel/workspace/foo-common/target/classes
[DEBUG]   (f) project = MavenProject: ca.foo.common:foo-common:1.0 @ /home/mbartel/workspace/foo-common/pom.xml
[DEBUG]   (f) resources = [Resource {targetPath: null, filtering: false, FileSet {directory: /home/mbartel/workspace/foo-common/src/main/resources, PatternSet [includes: {}, excludes: {}]}}]
[DEBUG] -- end configuration --
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] ca.foo.common:foo-common:jar:1.0 (selected for null)
[DEBUG] Trying repository foo-repository
Downloading: http://s3.amazonaws.com/maven.foo.ca/ca/foo/aws/foo-aws/1.1/foo-aws-1.1.pom
1/1K 1K downloaded
[DEBUG] Unable to get resource 'ca.foo.aws:foo-aws:pom:1.1' from repository foo-repository (http://s3.amazonaws.com/maven.foo.ca)
[DEBUG] Trying repository central
Downloading: http://repo1.maven.org/maven2/ca/foo/aws/foo-aws/1.1/foo-aws-1.1.pom
[DEBUG] Unable to get resource 'ca.foo.aws:foo-aws:pom:1.1' from repository central (http://repo1.maven.org/maven2)
[DEBUG] Artifact not found - using stub model: Unable to download the artifact from any repository

  ca.foo.aws:foo-aws:pom:1.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  foo-repository (http://s3.amazonaws.com/maven.foo.ca)

[DEBUG] Using defaults for missing POM ca.foo.aws:foo-aws:pom:1.1:compile
[DEBUG]   ca.foo.aws:foo-aws:jar:1.1:compile (selected for compile)
[DEBUG] Trying repository foo-repository
Downloading: http://s3.amazonaws.com/maven.foo.ca/ca/foo/aws/foo-aws/1.1/foo-aws-1.1.jar
1/31K 1/31K 2/31K 3/31K 5/31K 6/31K 8/31K 9/31K 10/31K 12/31K 13/31K 15/31K 16/31K 18/31K 19/31K 20/31K 22/31K 23/31K 25/31K 26/31K 27/31K 29/31K 30/31K 31/31K 31K downloaded
[DEBUG] Unable to get resource 'ca.foo.aws:foo-aws:jar:1.1' from repository foo-repository (http://s3.amazonaws.com/maven.foo.ca)
[DEBUG] Trying repository central
Downloading: http://repo1.maven.org/maven2/ca/foo/aws/foo-aws/1.1/foo-aws-1.1.jar
[DEBUG] Unable to get resource 'ca.foo.aws:foo-aws:jar:1.1' from repository central (http://repo1.maven.org/maven2)
[DEBUG] Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=ca.foo.aws -DartifactId=foo-aws -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=ca.foo.aws -DartifactId=foo-aws -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
        1) ca.foo.common:foo-common:jar:1.0
        2) ca.foo.aws:foo-aws:jar:1.1


  ca.foo.aws:foo-aws:jar:1.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  foo-repository (http://s3.amazonaws.com/maven.foo.ca)

org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=ca.foo.aws -DartifactId=foo-aws -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=ca.foo.aws -DartifactId=foo-aws -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
        1) ca.foo.common:foo-common:jar:1.0
        2) ca.foo.aws:foo-aws:jar:1.1


  ca.foo.aws:foo-aws:jar:1.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  foo-repository (http://s3.amazonaws.com/maven.foo.ca)

        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:311)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:288)
        at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1415)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:405)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:331)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
        ... 22 more
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) ca.foo.aws:foo-aws:jar:1.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=ca.foo.aws -DartifactId=foo-aws -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=ca.foo.aws -DartifactId=foo-aws -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
  1) ca.foo.common:foo-common:jar:1.0
  2) ca.foo.aws:foo-aws:jar:1.1

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

for artifact:
  ca.foo.common:foo-common:jar:1.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  foo-repository (http://s3.amazonaws.com/maven.foo.ca)


[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
----------
1) ca.foo.aws:foo-aws:jar:1.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=ca.foo.aws -DartifactId=foo-aws -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=ca.foo.aws -DartifactId=foo-aws -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
  1) ca.foo.common:foo-common:jar:1.0
  2) ca.foo.aws:foo-aws:jar:1.1

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

for artifact:
  ca.foo.common:foo-common:jar:1.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  foo-repository (http://s3.amazonaws.com/maven.foo.ca)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:575)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
----------
1) ca.foo.aws:foo-aws:jar:1.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=ca.foo.aws -DartifactId=foo-aws -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=ca.foo.aws -DartifactId=foo-aws -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
  1) ca.foo.common:foo-common:jar:1.0
  2) ca.foo.aws:foo-aws:jar:1.1

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

for artifact:
  ca.foo.common:foo-common:jar:1.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  foo-repository (http://s3.amazonaws.com/maven.foo.ca)

        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:324)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:288)
        at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1415)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:405)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
        ... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Wed Jul 01 23:21:44 EDT 2009
[INFO] Final Memory: 5M/150M
[INFO] ------------------------------------------------------------------------

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>ca.foo.common</groupId>
  <artifactId>foo-common</artifactId>
  <version>1.0</version>
  <repositories>
  <repository>
  <id>foo-repository</id>
  <name>foo-repository</name>
  <url>http://s3.amazonaws.com/maven.foo.ca</url>
  </repository>
  </repositories>
  <dependencies>
  <dependency>
  <groupId>ca.foo.aws</groupId>
  <artifactId>foo-aws</artifactId>
  <version>1.1</version>
  </dependency>
  </dependencies>
</project>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

Re: artifact not found?

by Stephen Connolly-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have you got the correct MD5 and SHA1 sums in the remote repository?

2009/7/2 Mark Bartel <mbartel@...>

> I'm new to maven (and to this mailing list), so forgive me if I'm
> missing the obvious.  I'm defining maven builds for several libraries.
>  I'm trying to create my own internal "remote" repository (accessible
> via HTTP) and have dependent libraries retrieved from there.  Maven
> seems to retrieve the dependencies (it tells me how much it downloaded
> and the values make sense) but then it errors out due to "Failed to
> resolve artifact".  This makes no sense: it finds it, downloads it,
> and then complains it wasn't found!
>
> I have attached the pom.xml and the log (names have been changed in
> the pom and log due to policies about unreleased codenames <sigh>).
>
> Maven version: 2.0.9
> Java version: 1.5.0_17
> OS name: "linux" version: "2.6.26-2-amd64" arch: "amd64" Family: "unix"
>
> Now, of course I can just place the dependencies in my local
> repository (or just mvn install on the dependency) on my local machine
> and indeed I am doing that to move forward, but in the end I need the
> remote repository to work.
>
> Help!
>
> -Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

Re: artifact not found?

by Mark Bartel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oh, that would probably be the problem, thanks!  I had just taken what
install put in my local repository and uploaded that.  I'll see if I
can get deploy to do the right thing, unfortunately my repository (in
Amazon S3) is not writable via any standard protocol.

On Thu, Jul 2, 2009 at 1:46 AM, Stephen
Connolly<stephen.alan.connolly@...> wrote:

> Have you got the correct MD5 and SHA1 sums in the remote repository?
>
> 2009/7/2 Mark Bartel <mbartel@...>
>
>> I'm new to maven (and to this mailing list), so forgive me if I'm
>> missing the obvious.  I'm defining maven builds for several libraries.
>>  I'm trying to create my own internal "remote" repository (accessible
>> via HTTP) and have dependent libraries retrieved from there.  Maven
>> seems to retrieve the dependencies (it tells me how much it downloaded
>> and the values make sense) but then it errors out due to "Failed to
>> resolve artifact".  This makes no sense: it finds it, downloads it,
>> and then complains it wasn't found!
>>
>> I have attached the pom.xml and the log (names have been changed in
>> the pom and log due to policies about unreleased codenames <sigh>).
>>
>> Maven version: 2.0.9
>> Java version: 1.5.0_17
>> OS name: "linux" version: "2.6.26-2-amd64" arch: "amd64" Family: "unix"
>>
>> Now, of course I can just place the dependencies in my local
>> repository (or just mvn install on the dependency) on my local machine
>> and indeed I am doing that to move forward, but in the end I need the
>> remote repository to work.
>>
>> Help!
>>
>> -Mark
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...