{"action":"opened","issue":{"url":"https://api.github.com/repos/abertschi/aspectj-archive-maven-plugin/issues/5","labels_url":"https://api.github.com/repos/abertschi/aspectj-archive-maven-plugin/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/abertschi/aspectj-archive-maven-plugin/issues/5/comments","events_url":"https://api.github.com/repos/abertschi/aspectj-archive-maven-plugin/issues/5/events","html_url":"https://github.com/abertschi/aspectj-archive-maven-plugin/issues/5","id":79135084,"number":5,"title":"fix incompatibility with maven 3.3.1","user":{"login":"abertschi","id":2311941,"avatar_url":"https://avatars.githubusercontent.com/u/2311941?v=3","gravatar_id":"","url":"https://api.github.com/users/abertschi","html_url":"https://github.com/abertschi","followers_url":"https://api.github.com/users/abertschi/followers","following_url":"https://api.github.com/users/abertschi/following{/other_user}","gists_url":"https://api.github.com/users/abertschi/gists{/gist_id}","starred_url":"https://api.github.com/users/abertschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abertschi/subscriptions","organizations_url":"https://api.github.com/users/abertschi/orgs","repos_url":"https://api.github.com/users/abertschi/repos","events_url":"https://api.github.com/users/abertschi/events{/privacy}","received_events_url":"https://api.github.com/users/abertschi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/abertschi/aspectj-archive-maven-plugin/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-21T19:44:57Z","updated_at":"2015-05-21T19:44:57Z","closed_at":null,"body":"Under maven 3.3.1, the mojo throws an exception claiming:\r\n```\r\nUnable to get version for dependency specified by ch.abertschi:test:compile, it was not provided in neither <dependencyManagement> nor <dependencies> sections. -> \r\n```\r\n\r\nThere seems to be an issue with the used Shrinkwrap Resolver version and maven 3.3.1.\r\n\r\nThis code fails:\r\n```\r\n PomEquippedResolveStage resolver = Maven.configureResolver()\r\n                .workOffline()\r\n                .fromFile(mavenConf)\r\n                .loadPomFromFile(\"pom.xml\")\r\n                .importCompileAndRuntimeDependencies();\r\n\r\nString identifier = ...\r\n\r\nList<JavaArchive> jarsForIdentifer = Arrays.asList(resolver.resolve(identifier).withTransitivity().as(JavaArchive.class));\r\n\r\n```\r\n\r\n```\r\nWaiting for Jenkins to finish collecting data[ERROR] Failed to execute goal ch.abertschi:aspectj-archive-maven-plugin:0.0.2:archive-weave (default)\r\nExecution default of goal ch.abertschi:aspectj-archive-maven-plugin:0.0.2:archive-weave failed: Unable to get version for dependency specified by ch.abertschi:test:compile, it was not provided in neither <dependencyManagement> nor <dependencies> sections. -> [Help 1]\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\r\n    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)\r\n    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)\r\n    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)\r\n    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)\r\n    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)\r\n    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)\r\n    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)\r\n    at org.jvnet.hudson.maven3.launcher.Maven32Launcher.main(Maven32Launcher.java:132)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n    at java.lang.reflect.Method.invoke(Method.java:606)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)\r\n    at jenkins.maven3.agent.Maven32Main.launch(Maven32Main.java:181)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n    at java.lang.reflect.Method.invoke(Method.java:606)\r\n    at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)\r\n    at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)\r\n    at hudson.remoting.UserRequest.perform(UserRequest.java:121)\r\n    at hudson.remoting.UserRequest.perform(UserRequest.java:49)\r\n    at hudson.remoting.Request$2.run(Request.java:324)\r\n    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)\r\n    at java.util.concurrent.FutureTask.run(FutureTask.java:262)\r\n    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n    at java.lang.Thread.run(Thread.java:745)\r\nCaused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal ch.abertschi:aspectj-archive-maven-plugin:0.0.2:archive-weave failed: Unable to get version for dependency specified by ch.abertschi:test:compile, it was not provided in neither <dependencyManagement> nor <dependencies> sections.\r\n    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)\r\n    ... 31 more\r\nCaused by: org.jboss.shrinkwrap.resolver.api.ResolutionException: Unable to get version for dependency specified by ch.abertschi:test:compile, it was not provided in neither <dependencyManagement> nor <dependencies> sections.\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.task.ResolveVersionFromMetadataTask.execute(ResolveVersionFromMetadataTask.java:122)\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.PomEquippedResolveStageBaseImpl.resolveVersion(PomEquippedResolveStageBaseImpl.java:85)\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolveDependency(ResolveStageBaseImpl.java:189)\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolveDependency(ResolveStageBaseImpl.java:184)\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolve(ResolveStageBaseImpl.java:78)\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolve(ResolveStageBaseImpl.java:43)\r\n    at ch.abertschi.aspectj.ArchiveWeaveMojo.resolveDependencies(ArchiveWeaveMojo.java:221)\r\n    at ch.abertschi.aspectj.ArchiveWeaveMojo.execute(ArchiveWeaveMojo.java:185)\r\n\r\n    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)\r\n    ... 32 more\r\n[ERROR] \r\n[ERROR] Re-run Maven using the -X switch to enable full debug logging.\r\n[ERROR] \r\n[ERROR] For more information about the errors and possible solutions, please read the following articles:\r\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException\r\n[ERROR] \r\n[ERROR] After correcting the problems, you can resume the build with the command\r\nWaiting for Jenkins to finish collecting data[ERROR] Failed to execute goal ch.abertschi:aspectj-archive-maven-plugin:0.0.2:archive-weave (default)\r\nExecution default of goal ch.abertschi:aspectj-archive-maven-plugin:0.0.2:archive-weave failed: Unable to get version for dependency specified by ch.abertschi:test:compile, it was not provided in neither <dependencyManagement> nor <dependencies> sections. -> [Help 1]\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\r\n    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)\r\n    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)\r\n    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)\r\n    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)\r\n    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)\r\n    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)\r\n    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)\r\n    at org.jvnet.hudson.maven3.launcher.Maven32Launcher.main(Maven32Launcher.java:132)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n    at java.lang.reflect.Method.invoke(Method.java:606)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)\r\n    at jenkins.maven3.agent.Maven32Main.launch(Maven32Main.java:181)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n    at java.lang.reflect.Method.invoke(Method.java:606)\r\n    at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)\r\n    at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)\r\n    at hudson.remoting.UserRequest.perform(UserRequest.java:121)\r\n    at hudson.remoting.UserRequest.perform(UserRequest.java:49)\r\n    at hudson.remoting.Request$2.run(Request.java:324)\r\n    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)\r\n    at java.util.concurrent.FutureTask.run(FutureTask.java:262)\r\n    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n    at java.lang.Thread.run(Thread.java:745)\r\nCaused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal ch.abertschi:aspectj-archive-maven-plugin:0.0.2:archive-weave failed: Unable to get version for dependency specified by ch.abertschi:test:compile, it was not provided in neither <dependencyManagement> nor <dependencies> sections.\r\n    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)\r\n    ... 31 more\r\nCaused by: org.jboss.shrinkwrap.resolver.api.ResolutionException: Unable to get version for dependency specified by ch.abertschi:test:compile, it was not provided in neither <dependencyManagement> nor <dependencies> sections.\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.task.ResolveVersionFromMetadataTask.execute(ResolveVersionFromMetadataTask.java:122)\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.PomEquippedResolveStageBaseImpl.resolveVersion(PomEquippedResolveStageBaseImpl.java:85)\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolveDependency(ResolveStageBaseImpl.java:189)\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolveDependency(ResolveStageBaseImpl.java:184)\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolve(ResolveStageBaseImpl.java:78)\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolve(ResolveStageBaseImpl.java:43)\r\n    at ch.abertschi.aspectj.ArchiveWeaveMojo.resolveDependencies(ArchiveWeaveMojo.java:221)\r\n    at ch.abertschi.aspectj.ArchiveWeaveMojo.execute(ArchiveWeaveMojo.java:185)\r\n\r\n    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)\r\n    ... 32 more\r\nWaiting for Jenkins to finish collecting data[ERROR] Failed to execute goal ch.abertschi:aspectj-archive-maven-plugin:0.0.2:archive-weave (default)\r\nExecution default of goal ch.abertschi:aspectj-archive-maven-plugin:0.0.2:archive-weave failed: Unable to get version for dependency specified by ch.abertschi:test:compile, it was not provided in neither <dependencyManagement> nor <dependencies> sections. -> [Help 1]\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\r\n    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)\r\n    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)\r\n    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)\r\n    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)\r\n    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)\r\n    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)\r\n    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)\r\n    at org.jvnet.hudson.maven3.launcher.Maven32Launcher.main(Maven32Launcher.java:132)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n    at java.lang.reflect.Method.invoke(Method.java:606)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)\r\n    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)\r\n    at jenkins.maven3.agent.Maven32Main.launch(Maven32Main.java:181)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n    at java.lang.reflect.Method.invoke(Method.java:606)\r\n    at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)\r\n    at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)\r\n    at hudson.remoting.UserRequest.perform(UserRequest.java:121)\r\n    at hudson.remoting.UserRequest.perform(UserRequest.java:49)\r\n    at hudson.remoting.Request$2.run(Request.java:324)\r\n    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)\r\n    at java.util.concurrent.FutureTask.run(FutureTask.java:262)\r\n    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n    at java.lang.Thread.run(Thread.java:745)\r\nCaused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal ch.abertschi:aspectj-archive-maven-plugin:0.0.2:archive-weave failed: Unable to get version for dependency specified by ch.abertschi:test:compile, it was not provided in neither <dependencyManagement> nor <dependencies> sections.\r\n    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)\r\n    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)\r\n    ... 31 more\r\nCaused by: org.jboss.shrinkwrap.resolver.api.ResolutionException: Unable to get version for dependency specified by ch.abertschi:test:compile, it was not provided in neither <dependencyManagement> nor <dependencies> sections.\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.task.ResolveVersionFromMetadataTask.execute(ResolveVersionFromMetadataTask.java:122)\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.PomEquippedResolveStageBaseImpl.resolveVersion(PomEquippedResolveStageBaseImpl.java:85)\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolveDependency(ResolveStageBaseImpl.java:189)\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolveDependency(ResolveStageBaseImpl.java:184)\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolve(ResolveStageBaseImpl.java:78)\r\n    at org.jboss.shrinkwrap.resolver.impl.maven.ResolveStageBaseImpl.resolve(ResolveStageBaseImpl.java:43)\r\n    at ch.abertschi.aspectj.ArchiveWeaveMojo.resolveDependencies(ArchiveWeaveMojo.java:221)\r\n    at ch.abertschi.aspectj.ArchiveWeaveMojo.execute(ArchiveWeaveMojo.java:185)\r\n\r\n    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)\r\n    ... 32 more\r\n```\r\n"}}