| Author |
Error while executing a maven goal
|
Anil Kumar
Ranch Hand
Joined: Nov 16, 2008
Posts: 34
|
|
While executing the maven goal I am getting an error message "[INFO] One or more required plugin parameters are invalid/missing for 'build-helper:add-source' [0] Inside the definition for plugin 'build-helper-maven-plugin' specify the following:
<configuration>
...
<sources>VALUE</sources>
</configuration> ".
Command given for executing the maven goal from command prompt.
mvn org.codehaus.mojo:build-helper-maven-plugin:add-source
Stack Trace
Code snippet (POM.xml file )
PS : If I give "mvn compile " command the required source are compiled successfully.
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3268
|
|
|
Why are you needing to use that build helper plugin?
|
Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
|
 |
Anil Kumar
Ranch Hand
Joined: Nov 16, 2008
Posts: 34
|
|
|
To add multiple source directory to the POM. My requirement was like initially I will compile all the files coming under my project source directory. Finally at the time of making the jar I need to selectively include and exclude certain files. The files which are to be included and excluded comes under my project source directory. Is there a better way to do this ? . Kindly let me know.
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3268
|
|
|
Ok, in that case you have to provide the path to your alternatve source in your <source> section
|
 |
Anil Kumar
Ranch Hand
Joined: Nov 16, 2008
Posts: 34
|
|
I had already added the path in the source tag .Coming back to the question. Why is that the goal is not executing ?.
Can you please help me out ?
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8143
|
|
My requirement was like initially I will compile all the files coming under my project source directory. Finally at the time of making the jar I need to selectively include and exclude certain files. The files which are to be included and excluded comes under my project source directory. Is there a better way to do this ? . Kindly let me know.
Try out the maven-assembly-plugin which allows a lot of customizations to the artifact output http://maven.apache.org/plugins/maven-assembly-plugin/
|
[My Blog] [JavaRanch Journal]
|
 |
Anil Kumar
Ranch Hand
Joined: Nov 16, 2008
Posts: 34
|
|
Jaikiran Pai wrote:
My requirement was like initially I will compile all the files coming under my project source directory. Finally at the time of making the jar I need to selectively include and exclude certain files. The files which are to be included and excluded comes under my project source directory. Is there a better way to do this ? . Kindly let me know.
Try out the maven-assembly-plugin which allows a lot of customizations to the artifact output http://maven.apache.org/plugins/maven-assembly-plugin/
I will try it out and let you know. Thanks
|
 |
 |
|
|
subject: Error while executing a maven goal
|
|
|