Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Using Aether for classpath management

Dear Ben and Benjamin,

thanks for your quick and helpful replies.
I managed to write my own WorkspaceReader for backwards-traversal
of dependencies in multimodule projects in the file system.

I have one final issue that I do not understand:
When trying to resolve an artifact that is in the local repository
but not in the global repository, I get the exception below.
Is this the expected behavior?
If yes, why is the global repository queried, if the artifact is locally available?
If no, what might be the cause of this problem?

Kind regards and thanks in advance,
Alex

----

org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact net.sourceforge.jadex:jadex-commons:jar:2.1-SNAPSHOT in central (http://repo1.maven.org/maven2) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)
    at maventest.MavenHandler.loadDependencies(MavenHandler.java:186)
    at maventest.MavenHandler.loadDependencies(MavenHandler.java:89)
    at maventest.MavenTest2.main(MavenTest2.java:21)
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact net.sourceforge.jadex:jadex-commons:jar:2.1-SNAPSHOT in central (http://repo1.maven.org/maven2) at org.sonatype.aether.connector.async.AsyncRepositoryConnector$3.wrap(AsyncRepositoryConnector.java:1542) at org.sonatype.aether.connector.async.AsyncRepositoryConnector$3.wrap(AsyncRepositoryConnector.java:1537) at org.sonatype.aether.connector.async.AsyncRepositoryConnector$GetTask.flush(AsyncRepositoryConnector.java:1035) at org.sonatype.aether.connector.async.AsyncRepositoryConnector.get(AsyncRepositoryConnector.java:409) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:457)
    ... 6 more

Am 13.10.2011 12:48, schrieb Benjamin Bentmann:
Alexander Pokahr wrote:

Does this mean that there is no public API
available for this purpose and I have to re-implement the conversion
myself?

Yes.


Benjamin
_______________________________________________
aether-users mailing list
aether-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aether-users



Back to the top