• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while executing a maven goal

 
Anil Kumar
Ranch Hand
Posts: 38
Eclipse IDE Tomcat Server Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
    Posts: 3275
    5
    Eclipse IDE Java Mac OS X
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Why are you needing to use that build helper plugin?
     
    Anil Kumar
    Ranch Hand
    Posts: 38
    Eclipse IDE Tomcat Server Ubuntu
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 3275
    5
    Eclipse IDE Java Mac OS X
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Ok, in that case you have to provide the path to your alternatve source in your <source> section
     
    Anil Kumar
    Ranch Hand
    Posts: 38
    Eclipse IDE Tomcat Server Ubuntu
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Pie
    Posts: 10444
    227
    IntelliJ IDE Ubuntu
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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/
     
    Anil Kumar
    Ranch Hand
    Posts: 38
    Eclipse IDE Tomcat Server Ubuntu
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
     
    I agree. Here's the link: http://aspose.com/file-tools
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic