[ http://jira.codehaus.org/browse/MOJO-187?page=all ]
     
Brett Porter closed MOJO-187:
-----------------------------

     Assign To: Brett Porter
    Resolution: Won't Fix

thanks for this. We really appreciate the contribution!

It seems someone has already done this: 
http://mojo.codehaus.org/build-helper-maven-plugin/add-source-mojo.html (it may 
have been more recent actually)

Just as a pointer for the future - we definitely prefer not to have LGPL 
licensed code in the project if avoidable (ASL, BSD or MIT are preferred). In 
addition, the groups/packages would need to be changed not to include company 
names :)

> New plugin which allows the addition of additional source directories to be 
> defined
> -----------------------------------------------------------------------------------
>
>          Key: MOJO-187
>          URL: http://jira.codehaus.org/browse/MOJO-187
>      Project: Mojo
>         Type: New Feature

>     Reporter: ruel loehr
>     Assignee: Brett Porter
>  Attachments: maven-addSources-plugin.zip
>
>
> I've noticed on the user list  a couple of people have said they have written 
> a plugin which allows a user to configure additional directories to be 
> treated as source.   I have had to do this as well, and think that it should 
> be a plugin available to the masses so that work will not have to be 
> duplicated.
> The plugin is very simple.  It allows a user to specify a list of 
> directories.   The plugin then adds these as compile source roots.
> Usage is as follows:
>          <plugin>
>             <groupId>org.jboss.mojo.plugins.sources</groupId>
>             <artifactId>maven-addSources-plugin</artifactId>
>             <executions>
>                <execution>
>                   <phase>generate-sources</phase>
>                   <configuration>
>                      <additionalDirs>
>                         <additionalDir>${basedir}/src/examples</additionalDir>
>                      </additionalDirs>
>                  </configuration>
>                  <goals>
>                     <goal>addsources</goal>
>                  </goals>
>                </execution>
>             </executions>
>          </plugin>
> I'm more than happy to make any necessary changes to make this plugin 
> conform, but this is my first contribution so I may need some direction.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to