{"action":"created","issue":{"url":"https://api.github.com/repos/basepom/duplicate-finder-maven-plugin/issues/9","labels_url":"https://api.github.com/repos/basepom/duplicate-finder-maven-plugin/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/basepom/duplicate-finder-maven-plugin/issues/9/comments","events_url":"https://api.github.com/repos/basepom/duplicate-finder-maven-plugin/issues/9/events","html_url":"https://github.com/basepom/duplicate-finder-maven-plugin/issues/9","id":53887044,"number":9,"title":"Bug with \"No repo reference\" with a plugin dependency","user":{"login":"victornoel","id":160975,"avatar_url":"https://avatars.githubusercontent.com/u/160975?v=3","gravatar_id":"","url":"https://api.github.com/users/victornoel","html_url":"https://github.com/victornoel","followers_url":"https://api.github.com/users/victornoel/followers","following_url":"https://api.github.com/users/victornoel/following{/other_user}","gists_url":"https://api.github.com/users/victornoel/gists{/gist_id}","starred_url":"https://api.github.com/users/victornoel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victornoel/subscriptions","organizations_url":"https://api.github.com/users/victornoel/orgs","repos_url":"https://api.github.com/users/victornoel/repos","events_url":"https://api.github.com/users/victornoel/events{/privacy}","received_events_url":"https://api.github.com/users/victornoel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-09T16:39:09Z","updated_at":"2015-01-10T13:11:30Z","closed_at":null,"body":"Hi,\r\n\r\nI have a project in a multi-module set-up that is used only as a dependency to a plugin declared in the parent pom of other projects in this multi-module set-up (it's a project containing enforcer rules used by the other projects).\r\nThis module is deployed on a repository (ow2 snapshots) declared in my settings.xml.\r\n\r\nWhen I try to run the check goal of duplicate-finder-maven-plugin I get the following error:\r\n```\r\n[ERROR] Failed to execute goal org.basepom.maven:duplicate-finder-maven-plugin:1.1.0:check (check-duplicates) on project petals-commons-log: Execution check-duplicates of goal org.basepom.maven:duplicate-finder-maven-plugin:1.1.0:check failed: Found project reference to org.ow2.petals:petals-enforcer-rules:jar:1.0.4-SNAPSHOT but no repo reference! -> [Help 1]\r\n```\r\n\r\nI don't think it is normal, and moreover I don't see why it should look for it in a repository since it is part of the reactor build!\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/basepom/duplicate-finder-maven-plugin/issues/comments/69455254","html_url":"https://github.com/basepom/duplicate-finder-maven-plugin/issues/9#issuecomment-69455254","issue_url":"https://api.github.com/repos/basepom/duplicate-finder-maven-plugin/issues/9","id":69455254,"user":{"login":"victornoel","id":160975,"avatar_url":"https://avatars.githubusercontent.com/u/160975?v=3","gravatar_id":"","url":"https://api.github.com/users/victornoel","html_url":"https://github.com/victornoel","followers_url":"https://api.github.com/users/victornoel/followers","following_url":"https://api.github.com/users/victornoel/following{/other_user}","gists_url":"https://api.github.com/users/victornoel/gists{/gist_id}","starred_url":"https://api.github.com/users/victornoel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victornoel/subscriptions","organizations_url":"https://api.github.com/users/victornoel/orgs","repos_url":"https://api.github.com/users/victornoel/repos","events_url":"https://api.github.com/users/victornoel/events{/privacy}","received_events_url":"https://api.github.com/users/victornoel/received_events","type":"User","site_admin":false},"created_at":"2015-01-10T13:11:30Z","updated_at":"2015-01-10T13:11:30Z","body":"Hi, I created a test project for it that exhibit the problem!\r\nThe only difference with my case is that the nothing is deployed to an online repository but that shouldn't be a problem to me normally since everything is available from the reactor build or in the local m2 repository.\r\n\r\nIt is here: https://wwwsecu.irit.fr/FILEX/get?k=53nVEl2KJYh57vj1bPl\r\nThe bug appears when calling mvn clean install in the root of the multi-modules project.\r\nYou can also directly install test-plugin-dep with mvn clean install and then try again at the root to do a mvn clean install.\r\n\r\nIn both case it fails with this error:\r\n```\r\n[INFO] --- duplicate-finder-maven-plugin:1.1.0:check (default) @ test-failing-project ---\r\n[DEBUG] Configuring mojo org.basepom.maven:duplicate-finder-maven-plugin:1.1.0:check from plugin realm ClassRealm[plugin>org.basepom.maven:duplicate-finder-maven-plugin:1.1.0, parent: sun.misc.Launcher$AppClassLoader@626287d3]\r\n[DEBUG] Configuring mojo 'org.basepom.maven:duplicate-finder-maven-plugin:1.1.0:check' with basic configurator -->\r\n[DEBUG]   (f) checkCompileClasspath = true\r\n[DEBUG]   (f) checkRuntimeClasspath = true\r\n[DEBUG]   (f) checkTestClasspath = true\r\n[DEBUG]   (f) conflictingDependencies = []\r\n[DEBUG]   (f) failBuildInCaseOfConflict = false\r\n[DEBUG]   (f) failBuildInCaseOfDifferentContentConflict = true\r\n[DEBUG]   (f) failBuildInCaseOfEqualContentConflict = false\r\n[DEBUG]   (s) ignoredDependencies = []\r\n[DEBUG]   (f) preferLocal = true\r\n[DEBUG]   (f) printEqualFiles = false\r\n[DEBUG]   (f) quiet = false\r\n[DEBUG]   (f) resultFile = /home/victor/code/test-rootbuilder/test-failing-project/target/duplicate-finder-result.xml\r\n[DEBUG]   (f) resultFileMinClasspathCount = 2\r\n[DEBUG]   (f) skip = false\r\n[DEBUG]   (f) useDefaultResourceIgnoreList = true\r\n[DEBUG]   (f) useResultFile = true\r\n[DEBUG]   (f) project = MavenProject: test:test-failing-project:0.0.1-SNAPSHOT @ /home/victor/code/test-rootbuilder/test-failing-project/pom.xml\r\n[DEBUG] -- end configuration --\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Reactor Summary:\r\n[INFO] \r\n[INFO] test-plugin-dep .................................... SUCCESS [  1.583 s]\r\n[INFO] test-parent ........................................ SUCCESS [  0.215 s]\r\n[INFO] test-failing-project ............................... FAILURE [  0.163 s]\r\n[INFO] test-rootbuilder ................................... SKIPPED\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] BUILD FAILURE\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Total time: 2.166 s\r\n[INFO] Finished at: 2015-01-10T14:11:00+01:00\r\n[INFO] Final Memory: 12M/150M\r\n[INFO] ------------------------------------------------------------------------\r\n[ERROR] Failed to execute goal org.basepom.maven:duplicate-finder-maven-plugin:1.1.0:check (default) on project test-failing-project: Execution default of goal org.basepom.maven:duplicate-finder-maven-plugin:1.1.0:check failed: Found project reference to test:test-plugin-dep:jar:0.0.1-SNAPSHOT but no repo reference! -> [Help 1]\r\norg.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.basepom.maven:duplicate-finder-maven-plugin:1.1.0:check (default) on project test-failing-project: Execution default of goal org.basepom.maven:duplicate-finder-maven-plugin:1.1.0:check failed: Found project reference to test:test-plugin-dep:jar:0.0.1-SNAPSHOT but no repo reference!\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)\r\n\tat org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)\r\n\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)\r\n\tat org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)\r\n\tat org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)\r\n\tat org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)\r\n\tat org.apache.maven.cli.MavenCli.main(MavenCli.java:160)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)\r\nCaused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.basepom.maven:duplicate-finder-maven-plugin:1.1.0:check failed: Found project reference to test:test-plugin-dep:jar:0.0.1-SNAPSHOT but no repo reference!\r\n\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)\r\n\t... 19 more\r\nCaused by: java.lang.IllegalStateException: Found project reference to test:test-plugin-dep:jar:0.0.1-SNAPSHOT but no repo reference!\r\n\tat com.google.common.base.Preconditions.checkState(Preconditions.java:197)\r\n\tat org.basepom.mojo.duplicatefinder.artifact.ArtifactFileResolver.<init>(ArtifactFileResolver.java:87)\r\n\tat org.basepom.mojo.duplicatefinder.DuplicateFinderMojo.execute(DuplicateFinderMojo.java:300)\r\n\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)\r\n\t... 20 more\r\n[ERROR] \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\n[ERROR]   mvn <goals> -rf :test-failing-project\r\n```\r\nI have no extra repositories in my settings.xml neither."}}