Issue 34 in israfil-mojo: maven-dependency-plugin dependency

1 view
Skip to first unread message

codesite...@google.com

unread,
Mar 5, 2008, 2:25:26 AM3/5/08
to israfil-m...@googlegroups.com
Issue 34: maven-dependency-plugin dependency
http://code.google.com/p/israfil-mojo/issues/detail?id=34

New issue report by mr_n...@inbox.ru:
What steps will reproduce the problem?
My project consists of some modules, war-module use maven-dependency-plugin
version 2.0. But before this module is come to building flex-module
building starts with older version of dependency maven-dependency-plugin.
Then last module - war-module starts to building i get an error:

Internal error in the plugin manager executing goal 'org.apache.maven.plu
gins:maven-dependency-plugin:2.0-alpha-4:copy': Unable to find the mojo
'org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:copy' in the
plugin 'org.apache.maven.plugins:maven-dependency-plugin'

Then i typed "mvn dependency:resolve-plugins" i founded that dependency of
maven-dependency-plugin 2.0-alpha-4 comes from maven-flex2-plugin.

What is the expected output? What do you see instead?
I suggest to remove this dependency from your project.


What version of the product are you using? On what operating system?
maven-flex2-plugin 1.3

Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Mar 5, 2008, 11:21:07 AM3/5/08
to israfil-m...@googlegroups.com
Issue 34: maven-dependency-plugin dependency
http://code.google.com/p/israfil-mojo/issues/detail?id=34

Comment #1 by christianedwardgruber:
Unfortunately this is a necessary dependency, but if 2.0 is released,
then I will update the dependency to
support 2.0 or higher.

As a workaround, you can configure the dependencies of a plugin and
exclude the inappropriate dependency.
Examples of this are:

<dependency>
<groupId>group-a</groupId>
<artifactId>A</artifactId>
<version>2.0</version>
<exclusions>
<exclusion>
<groupId>group-b</groupId>
<artifactId>B</artifactId>
</exclusion>
</exclusions>
</dependency>

(Except you use that dependency within the plugin declaration)


Issue attribute updates:
Status: Accepted
Owner: christianedwardgruber
Labels: Affects-Release-1.1 Affects-Release-1.2 Affects-Release-1.3
Severity-High Complexity-Low Component-Configuration
Milestone-Release-1.4 Project-mojo-flex

codesite...@google.com

unread,
Mar 6, 2008, 3:24:16 AM3/6/08
to israfil-m...@googlegroups.com
Issue 34: maven-dependency-plugin dependency
http://code.google.com/p/israfil-mojo/issues/detail?id=34

Comment #2 by mr_n...@inbox.ru:
Sad to say your solution is not working. Could you correct me, if i
mistaken. Here is
example of my flex-module pom file.

.....
<build>
<plugins>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.0</version>
</plugin>
-->
<plugin>
<groupId>net.israfil.mojo</groupId>
<artifactId>maven-flex2-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<main>SimpleApp.mxml</main>
<extraParameters>
<parameter>
<name>services</name>

<values><value>${basedir}\src\main\resources\services-config.xml</value></values>
</parameter>
<parameter>
<name>context-root</name>
<values><value>project-web</value></values>
</parameter>
</extraParameters>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>net.israfil.mojo</groupId>
<artifactId>maven-flex2-plugin</artifactId>
<version>1.3</version>
<exclusions>
<exclusion>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
...

This is not working. But if i uncomment

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.0</version>
</plugin>

all works well.

Reply all
Reply to author
Forward
0 new messages