Maven Exec Plugin not reading configuration -


I am trying to execute my project using the Maven Spread exec and I want to configure it with this snippet Have tried:

  & lt; Plugin & gt; & Lt; Group & gt; Org.codehaus.mojo & lt; / Group & gt; & Lt; ArtifactId & gt; Executive-Maven-plugin & lt; / ArtifactId> & Lt; Version & gt; 1.1.1 & lt; / Edition & gt; & Lt; Configuration & gt; & Lt; Execution & gt; Java & lt; / Execution & gt; & Lt; Logic & gt; & Lt; Logic & gt; -jar $ {staging.dir} /project.jar</argument> & Lt; / Logic & gt; & Lt; / Configuration & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; Goals & gt; & Lt; Goal & gt; Executive & lt; / Target & gt; & Lt; / Targets & gt; & Lt; / Execution & gt; & Lt; / Hanging & gt; & Lt; / Plugin & gt;  

When I run mvn exec: exec I get the output:

  -------- - ------------------------------------------------ - ------------ [Error] Build error ------------------------------- - --------------------------------------- One or more required plugin parameters invalid / unavailable Specify the 'exec-maven-plugin' under definition for the 'Exec: exec' [0] plugin, as follows: & lt; Configure & gt; ... & lt; Executable & gt; VALUE & lt; / Executable & gt; & Lt; / Configuration & gt; On the -or-command line, specify: '-Dexec.executable = VALUE'  

I have & lt; Plugin & gt; has tried to reconstruct but does not matter anything? The project is not a pom jar.

Any thoughts?

I see that you have a problem with your code, you have your own logic If you do not do then you will get an error if you do not. It's a work example of one of my projects, it executes a jar which is packed into the target directory after executing the mvn package . If you still get the same error then I will try to remove the plugin from my local repository to get a new copy. Also make sure that the plugin does not contain the plugins management / <> code element, if it fails then post your entire POM.

  & lt; Plugin & gt; & Lt; Group & gt; Org.codehaus.mojo & lt; / Group & gt; & Lt; ArtifactId & gt; Executive-Maven-plugin & lt; / ArtifactId> & Lt; Version & gt; 1.1.1 & lt; / Edition & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; Goals & gt; & Lt; Goal & gt; Executive & lt; / Target & gt; & Lt; / Targets & gt; & Lt; / Execution & gt; & Lt; / Hanging & gt; & Lt; Configuration & gt; & Lt; Execution & gt; Java & lt; / Execution & gt; & Lt; WorkingDirectory & gt; / Target & lt; / WorkingDirectory & gt; & Lt; Logic & gt; & Lt; Logic & gt; Jar & lt; / Logic & gt; & Lt; Logic & gt; $ {Project.build.directory} / $ {project.build.finalName} .jar & lt; / Logic & gt; & Lt; / Logic & gt; & Lt; / Configuration & gt; & Lt; / Plugin & gt;  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -