Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Dependency resolution for mvn site goal

All,

I was able to get a working site build by adding -Dtycho.mode=maven to
the command line. Is this the preferred way to accomplish this? Why
would a mode change affect something like site generation?

Thank you,

Ben

On Tue, Apr 24, 2012 at 1:17 PM, Ben Abernathy <ben.abernathy@xxxxxxxxx> wrote:
> All,
>
> I am attempting to generate a checkstyle report for a tycho project
> and am getting dependency resolution errors that, to the best of my
> knowledge, do not occur when executing the package goal. I've tried
> generating the reports either by tying them to the site goal or by
> executing the checkstyle goal directly and am getting the same error.
> So far, it appears it is only happening in a set of bundles we had
> copied from eclipse to fix some bugs. I've been able to pull those
> bundles out into a separate project and still get the errors.
>
> Here is a snippet of the stack trace. I can provide a minimal project
> if you want it.
>
> Thank you,
>
> Ben
>
>
> ERROR] Failed to execute goal on project
> org.eclipse.equinox.http.jetty7: Could not resolve dependencies for
> project example:org.eclipse.equinox.http.jetty7:eclipse-plugin:3.0.0-SNAPSHOT:
> Could not find artifact
> example:org.eclipse.equinox.http.servlet:jar:1.1.300-SNAPSHOT in nexus
> (https://maven.someco.com/nexus/content/groups/public) -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal on project org.eclipse.equinox.http.jetty7: Could not
> resolve dependencies for project
> example:org.eclipse.equinox.http.jetty7:eclipse-plugin:3.0.0-SNAPSHOT:
> Could not find artifact
> example:org.eclipse.equinox.http.servlet:jar:1.1.300-SNAPSHOT in nexus
> (https://maven.someco.com/nexus/content/groups/public)
>        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
>        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
>        at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
>        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
>        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:320)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>        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:409)
>        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.project.DependencyResolutionException:
> Could not resolve dependencies for project
> example:org.eclipse.equinox.http.jetty7:eclipse-plugin:3.0.0-SNAPSHOT:
> Could not find artifact
> example:org.eclipse.equinox.http.servlet:jar:1.1.300-SNAPSHOT in nexus
> (https://maven.someco.com/nexus/content/groups/public)
>        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189)
>        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
>        ... 22 more
> Caused by: org.sonatype.aether.resolution.DependencyResolutionException:
> Could not find artifact
> example:org.eclipse.equinox.http.servlet:jar:1.1.300-SNAPSHOT in nexus
> (https://maven.someco.com/nexus/content/groups/public)
>        at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
>        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183)
>        ... 23 more
> Caused by: org.sonatype.aether.resolution.ArtifactResolutionException:
> Could not find artifact
> example:org.eclipse.equinox.http.servlet:jar:1.1.300-SNAPSHOT in nexus
> (https://maven.someco.com/nexus/content/groups/public)
>        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.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
>        ... 24 more
> Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException:
> Could not find artifact
> example:org.eclipse.equinox.http.servlet:jar:1.1.300-SNAPSHOT in nexus
> (https://maven.someco.com/nexus/content/groups/public)
>        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:947)
>        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:941)
>        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:669)
>        at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
>        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)


Back to the top