This has already been discussed, but I don't know if the fix was implemented (I'm using b6). If not, you must add theses lines at the end of the java:compile goal :
<copy todir="${maven.build.dest}">
<fileset dir="${maven.src.dir}" excludes="**/*.java"/>
</copy>
This will copy any resource (.properties, .preferences, images...)
present in the src directory at the same place in the build directory.
Best Regards,
David Garnier
le jeu 03-10-2002 � 22:11, Moritz Petersen a �crit :
> Hi List,
>
> maybe the answer to this question is similar to one of my previously
> posted questions. I have the following project structure for a pure
> Java application:
>
> /src/application.properties
> /src/my/package/Application.java
>
> etc.
>
> The application.properties file should be bundled to the final
> application. If I use Maven's dist goal, the .properties files are
> ignored and not copied to the compiled classes.
> How can I put the .properties into the classpath of the application
> using Maven?
>
> Thank you.
>
> Kind regards,
>
> Moritz.
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
signature.asc
Description: This is a digitally signed message part
