-----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>
~        <directory>src/main/java</directory>
~        <excludes>
~          <exclude>**/*.java</exclude>
~        </excludes>
~      </resource>
~    </resources>
~  </build>
</project>

If you're using the default location of src/main/resources, this
configuration becomes unnecessary.

HTH,

john

phillip rhodes wrote:
| 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 using maven 2?
|
| Thanks!
|
|
| Phillip Rhodeshttp://www.jsso.org Open source Java Identity and
Authorization Serviceshttp://www.rhoderunner.com Open Source Java
Ecommerce Suite
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDQ/M+K3h2CZwO/4URAsVLAJ45KaBc7yduu378t8Kbu9OwISDtLwCglzsE
mJRew+t7EG9BR+/PiHFbIag=
=ZGcA
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to