[ http://jira.codehaus.org/browse/MOJO-343?page=comments#action_62212 ]
Dan Tran commented on MOJO-343: ------------------------------- i think you can setup your pom.xml to point the resource back to src/main/java with filter > build-helper-maven-plugin: Add resources > ----------------------------------------- > > Key: MOJO-343 > URL: http://jira.codehaus.org/browse/MOJO-343 > Project: Mojo > Type: Improvement > Components: build-helper > Reporter: David Blevins > > > 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
