• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Error while executing a maven goal

 
Ranch Hand
Posts: 38
Eclipse IDE Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
     
    author
    Posts: 3285
    13
    Mac OS X Eclipse IDE Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    Posts: 3285
    13
    Mac OS X Eclipse IDE Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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 ?
     
    Sheriff
    Posts: 10445
    227
    IntelliJ IDE Ubuntu
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
     
    reply
      Bookmark Topic Watch Topic
    • New Topic