Hi
For changing Resources location you can give the following :
<build>
<resources>
<resource>
<directory>src/main/java</directory>
</resource>
</resources>
</build>
and place the properties file in the directory src/main/java .
Then the properties file will be incuded in your generated jar file .
Thanks
Saritha SV
On 11/5/07, KedarMhaswade <[EMAIL PROTECTED]> wrote:
>
>
> I have two questions, answers to which were not obvious.
>
> 1- What is the current working directory (i.e.
> System.getProperty("user.dir"))? Can this be printed
> when one does "mvn -X ..."?
> 2- In our company we have resources (properties files for resource
> bundles)
> along side the Java sources
> because we have an ongoing strategy for Localized Strings where the
> developers prefer to keep the
> strings used by com.example.Foo at the same location in a file named
> "LocalStrings.properties".
> I added:
> <build>
> <resources>
> <resource directory="src/main/java"/>
> </resources>
> </build>
>
> for my resources to get copied into target folder upon "mvn package".
> But
> I get:
> Project ID: org.bykedar:learnmvn
> POM Location: /Users/kedar/Personal/bnevins/projects/learnmvn/pom.xml
> Validation Messages:
>
> [0] 'build.resources.resource.directory' is missing.
>
>
> Reason: Failed to validate POM for project org.bykedar:learnmvn at
> /Users/kedar/Personal/bnevins/projects/learnmvn/pom.xml
>
> Is there an example somewhere of how to do this?
>
> Thanks,
>
> Kedar
> --
> View this message in context:
> http://www.nabble.com/Maven%27s-current-working-directory-and-changing-resources-location-...-tf4752607s177.html#a13589892
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>