2010/11/10 jeb001 <[email protected]>: > Now, I'm looking for the best way to use maven profiles with my new project > organisation.. > I just wanna create 2 profiles, developpement and production, for each > project. > The production profile will have to package using src/main/resources-prod > directory, and thes > developpements one will package with the src/main/resources-dev directory..
Just curious, what are the differences between these two sets of resources? My best bet is that they differ in the addresses they point with essentially the same structure. If this is the case, you can filter your resources, using profiles only to add properties: http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html If you have a more complicated configuration, take a look at this: http://code.google.com/p/maven-config-processor-plugin/ Anyway the best option is to leave this kind of server-specific configuration on the server itself. For example, in JBoss under the directory: <jboss>/server/<myserver>/conf The files put there are accessible by Class.getResource Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
