-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find artifact org.xerial.sbt:sbt-sonatype:jar:0.2.1 in mvnrepository #37
Comments
Hi, I think there might be some libraries not in the maven central. So sbt-pack is available in the Maven central. And I also checked the dependency tree of sbt-pack:
But I couldn't find |
The "ears" jar is just the name of my project. Here's a complete pom.xml ryan@3G08:~/mvn_retest/my-app$ cat pom.xml com.mycompany.app my-app
ryan@3G08:~/mvn_retest/my-app$ mvn package -U [INFO][INFO] Building my-app 1.0-SNAPSHOT [INFO]Downloading: [INFO][INFO] BUILD FAILURE [INFO][INFO] Total time: 0.486s [INFO][ERROR] Failed to execute goal on project my-app: Could not resolve On Wed, Apr 30, 2014 at 2:19 PM, Taro L. Saito notifications@github.comwrote:
|
Thanks. sbt projects use a special project name like sbt-pack-(scala version)-(sbt-version), so wrong path is used if we reference sbt-pack in Maven. The correct path that should be used is: |
Looking at the link I get the impression that the correct maven dependency
But my build (complete pom below) still fails with "Could not find artifact However, if I manually download the jar from
com.mycompany.app my-app
On Thu, May 1, 2014 at 10:45 AM, Taro L. Saito notifications@github.comwrote:
|
I have no plan to support maven integration. Let me close this ticket. |
I'm trying to use a library which apparently depends on org.xerial.sbt. My builds fail when I try to include either one of the below dependencies:
Does xerial work only with sbt and not maven? Is there some extra repository I should be including?
For reference, here's the error I get when I try to compile with "mvn3 compile -U -X"
[ERROR] Failed to execute goal on project ears: Could not resolve dependencies for project com.hrl.miq:ears:jar:1.0-SNAPSHOT: Could not find artifact org.xerial.sbt:sbt-sonatype:jar:0.2.1 in mvnrepository (http://repo1.maven.org/maven2) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project ears: Could not resolve dependencies for project com.hrl.miq:ears:jar:1.0-SNAPSHOT: Could not find artifact org.xerial.sbt:sbt-sonatype:jar:0.2.1 in mvnrepository (http://repo1.maven.org/maven2)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
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:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project com.hrl.miq:ears:jar:1.0-SNAPSHOT: Could not find artifact org.xerial.sbt:sbt-sonatype:jar:0.2.1 in mvnrepository (http://repo1.maven.org/maven2)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:198)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
... 22 more
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact org.xerial.sbt:sbt-sonatype:jar:0.2.1 in mvnrepository (http://repo1.maven.org/maven2)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:192)
... 23 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact org.xerial.sbt:sbt-sonatype:jar:0.2.1 in mvnrepository (http://repo1.maven.org/maven2)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
... 24 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.xerial.sbt:sbt-sonatype:jar:0.2.1 in mvnrepository (http://repo1.maven.org/maven2)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1012)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
The text was updated successfully, but these errors were encountered: