Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven2: can we have dependency for a plugin thats used in the build section
    primarykey
    data
    text
    <p>I am using a project's open source that consists of a set a parent POM and several children POM. Those children POM represent libraries, arch-types and a plug-in. This plugin depends on various of these children modules and is used within the section of dependent projects like mine.I have imported this Maven project to my Eclipse workspace.</p> <p>In my own project's POM (also in Eclipse) I can reference those modules via dependencies without a problem. However I would also like to use the plug-in in the build section but it cannot be used due to the following Maven2 error:</p> <p><code>Project build error: Unresolveable build extension: Plugin org.grouplens.lenskit:lenskit-eval-maven-plugin:2.1-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact org.grouplens.lenskit:lenskit-eval-maven-plugin:jar:2.1-SNAPSHOT</code></p> <p>This is because I am accessing the POM's directly via Eclipse's "resolve dependencies from workspace projects" and of course this snapshot version has not been deployed to a repository so this is the only way I can actually use it. </p> <p>I tried:</p> <ol> <li><p>Add any of the dependencies of lenskit-eval-maven-plugin: Their are several but I just added the only one of the project's module (others include stuff like maven-plugin-api):</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;org.grouplens.lenskit&lt;/groupId&gt; &lt;artifactId&gt;lenskit-test&lt;/artifactId&gt; &lt;version&gt;${project.version}&lt;/version&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; </code></pre></li> <li><p>placing a dependency for that plugin module before using the module in the section</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;org.grouplens.lenskit&lt;/groupId&gt; &lt;artifactId&gt;lenskit-eval-maven-plugin&lt;/artifactId&gt; &lt;version&gt;${lenskit.version}&lt;/version&gt; &lt;/dependency&gt; </code></pre></li> <li><p>adding a dependencies in the plug-in itself so:</p> <pre><code> &lt;build&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;artifactId&gt;lenskit-eval-maven-plugin&lt;/artifactId&gt; &lt;groupId&gt;org.grouplens.lenskit&lt;/groupId&gt; &lt;!-- TODO --&gt; &lt;version&gt;${lenskit.version}&lt;/version&gt; &lt;extensions&gt;true&lt;/extensions&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.grouplens.lenskit&lt;/groupId&gt; &lt;artifactId&gt;lenskit-eval-maven-plugin&lt;/artifactId&gt; &lt;version&gt;${lenskit.version}&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; </code></pre></li> <li><p>And using (0), (1) and (2) at the same time </p></li> </ol> <p>Ok, so I realize that attempt (2) is pushing it. So my question is: is their any way I can use a plug-in in the build section that is also a dependency? If so how? If the use of solution (1) is correct, could this be an issue with Eclipse's method of resolving to local workspace first?</p> <p>TIA</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload