[ http://jira.codehaus.org/browse/MBUILDHELPER-4?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=171754#action_171754 ]
luke w patterson commented on MBUILDHELPER-4: --------------------------------------------- A good use case for this is when I want to bring in a resource coming from dependency:unpack and tweak the resource targetPath. Rather than copying directly to the target folder and bypassing resources:resources, I could do something like you see in the attachment: http://jira.codehaus.org/secure/attachment/41089/add-resource.txt I think this would be consistent with add-source and attach-artifact in that you would "introduce" the resource to the active MavenProject instance. The MavenProject can then be aware of all the project resources. > build-helper-maven-plugin: Add resources > ----------------------------------------- > > Key: MBUILDHELPER-4 > URL: http://jira.codehaus.org/browse/MBUILDHELPER-4 > Project: Maven 2.x Build Helper Plugin > Issue Type: Improvement > Reporter: David Blevins > Attachments: add-resource.txt > > > Would be great if we could use the build-helper-maven-plugin to add > additional resources from a src dir to be included in the final jar, such as > *.properties files. I keep i18n properties files in our java source tree > which each java package able to have it's own properties file. Duplicating > and maintaining our java package structure under src/main/resources is not an > ideal option. > irc.codehaus.org/maven [transcript]: > [13:24] <dblevins> i want to keep i18n properties files in my > src/main/java tree, not src/main/resources > [13:24] <dblevins> is this possible? > [13:27] <jesse> dblevins: should be, just have to use buildhelper to > add it as a resource and it ought to be copied over for packaging > [13:34] <raphael> dblevins: > http://mojo.codehaus.org/build-helper-maven-plugin/ > [13:36] <dblevins> that doesn't quite look like what I'm after... > [13:37] <dblevins> more just looking to get > src/main/java/**/*.properties added to my jar > [13:39] <dblevins> raphael: according to the docs, build helper is > for adding additional source directories and additional artifacts for > install/deploy > [13:40] <dblevins> not really for adding additional file types for > inclusion in the produced jar > [13:40] <jesse> if not, it should > [13:42] <raphael> it should but don't, tonite checkout don't show > any AddResourceMojo nor AddTestResourceMojo -- 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 --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email