Hi,
i am currently developing a maven plugin that invokes several other plugins
while it is executed. Therefore i use MavenCli:

                StringBuffer commands = new StringBuffer();
                commands.append("org.codehaus.mojo:exec-maven-plugin:1.2:exec 
");
                commands.append("-Dexecutable=src/main/resources/test.sh ");

                MavenCli.main(commands.toString().split(" "),  new 
Classworld());

If i execute this code from a standard java class, this execution will work.
If I use this code in my plugin, and execute the plugin from an other
project, the following exception occurs:


Internal error in the plugin manager getting plugin
'org.codehaus.mojo:exec-maven-plugin': Plugin
'org.codehaus.mojo:exec-maven-plugin:1.2' has an invalid descriptor:
1) Plugin's descriptor contains the wrong group ID: tmp
2) Plugin's descriptor contains the wrong artifact ID:
generate-dependencies-maven-plugin
3) Plugin's descriptor contains the wrong version: 0.0.1-SNAPSHOT
4) Plugin's descriptor contains the wrong group ID: org.apache.maven.plugins
5) Plugin's descriptor contains the wrong artifact ID:
maven-dependency-plugin
6) Plugin's descriptor contains the wrong version: 2.4


I gooled this error and most people suggest wiping the local maven repo. But
this didnt help at all. Furthermore, this error does not depend on the exec
plugin. I have another part of my code, where i use the install plugin,
which causes the same error. 

Is the general approach of invoking the goals wrong? I cannot configure the
plugins, which are to be invoked, in the final project. My plugin needs to
invoke the other goals.

Ideas are highly welcome

--
View this message in context: 
http://maven.40175.n5.nabble.com/exec-maven-goals-from-java-fails-invalid-plugin-descriptor-tp5712214.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to