M2: best way to include property file in a jar artifact?

2005-10-05 Thread phillip rhodes
I am using maven 2 and cannot find an example by which I can have a property file get put into my jar file. I have the property file sitting in with the java code in /src/main/java/com/ Is this best done via pom resource declaration or via pre-compile goals? Is there any complete examples

Re: M2: best way to include property file in a jar artifact?

2005-10-05 Thread John Casey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Typically, these kinds of non-code jar resources are kept separately under src/main/resources, but you can also specify the following: project ... ~ build ~ ... ~resources ~ resource ~directorysrc/main/java/directory ~