Hello,
I am using -
Maven 2.0.9
exec-maven-plugin 1.1.1
cobertura-maven-plugin 2.1
Java version: 1.5.0_17
OS name: "linux" version: "2.6.18-128.el5pae" arch: "i386" Family: "unix"
When I am running cobertura:cobertura goal from the command line, I am
getting the following error:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] One or more required plugin parameters are invalid/missing for
'exec:exec'
[0] Inside the definition for plugin 'exec-maven-plugin' specify the
following:
<configuration>
...
<executable>VALUE</executable>
</configuration>
-OR-
on the command line, specify: '-Dexec.executable=VALUE'
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring:
org.codehaus.mojo:exec-maven-plugin. Reason: Invalid or missing parameters:
[Mojo parameter [name: 'executable'; alias: 'null']] for mojo:
org.codehaus.mojo:exec-maven-plugin:1.1.1:exec
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:587)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:924)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:767)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:529)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginParameterException: Error
configuring: org.codehaus.mojo:exec-maven-plugin. Reason: Invalid or missing
parameters: [Mojo parameter [name: 'executable'; alias: 'null']] for mojo:
org.codehaus.mojo:exec-maven-plugin:1.1.1:exec
at
org.apache.maven.plugin.DefaultPluginManager.checkRequiredParameters(DefaultPluginManager.java:1042)
at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:659)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:429)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 20 more
I am running the following command at the root_dir, command line and getting
the error mentioned above
mvn clean cobertura:cobertura -X
I have the following directory structure
<root dir> *- packaging in pom.xml is pom*
- < sub dir 1>* - contains source files and a pom.xml with packaging as
Jar*
- < sub dir 2>* - contains source files and a pom.xml with packaging as
Jar*
- < sub dir 3>* - contains source files and a pom.xml with packaging as
Jar*
But When I run mvn clean exec:exec *the build is successful* and do not get
any error
The pom.xml contains the entry as below
* <build>
<plugins>
<plugin>
<inherited>false</inherited>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
* <executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>../java-service-wrapper/createJavaServiceWrapperConfig.sh</executable>
<arguments>
<!-- Node home directory -->
<argument>/opt/metro/plato</argument>
<!-- Broker title -->
<argument>PlatoBroker</argument>
<!-- Relative location of the Java Service Wrapper files
-->
<argument>../java-service-wrapper</argument>
<!-- Architecture -->
<argument>32</argument>
</arguments>
</configuration>*
</plugin>
...
</build>
*If the section in red above in pom.xml is removed, it works fine*.
*Please help me to resolve this issue!!*
*--
Thanks & Regards,
Soumen Trivedi
+44 (0) 751 544 6779
Email: [email protected]