aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Error while executing a maven goal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Error while executing a maven goal " Watch "Error while executing a maven goal " New topic
Author

Error while executing a maven goal

Anil Kumar
Ranch Hand

Joined: Nov 16, 2008
Posts: 38

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: 3274
        
        5

    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: 38

    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: 3274
        
        5

    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: 38

    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: 10102
        
    165

    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: 38

    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
     
    subject: Error while executing a maven goal