This page is no longer maintained — Please continue to the home page at www.scala-lang.org

scala maven plugin - not copying resources

2 replies
Michael Neale
Joined: 2008-12-18,
User offline. Last seen 42 years 45 weeks ago.

When I run mvn clean package (or test etc) - i note that it doesn't
seem to copy anything from the /resources ? (either test or main).

david.bernard
Joined: 2009-01-08,
User offline. Last seen 1 year 27 weeks ago.
Re: scala maven plugin - not copying resources
Hi,

The "copy" of resources from src/main/resources to target/classes (and then include them into the jar) is not done by the maven-scala-plugin. It's done by the regular maven plugin (http://maven.apache.org/plugins/maven-resources-plugin/).
Do you redefine the location of resources, define filter, override configuration of the maven-resources-plugin?
Could you provide some details :
* pom.xml,
* listing/tree/layout of the project
* output (log + directory content) of mvn clean package

/davidB

On Wed, Feb 25, 2009 at 11:53, Michael Neale <michael.neale@gmail.com> wrote:
When I run mvn clean package (or test etc) - i note that it doesn't
seem to copy anything from the /resources ? (either test or main).



--
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com

Michael Neale
Joined: 2008-12-18,
User offline. Last seen 42 years 45 weeks ago.
Re: scala maven plugin - not copying resources

My mistake, mvn clean package does in fact copy what I want.

Sorry about that ;)
(not sure what crazy thing cause it in my lack of caffeinated state).

On Wed, Feb 25, 2009 at 11:25 PM, David Bernard
wrote:
> Hi,
>
> The "copy" of resources from src/main/resources to target/classes (and then
> include them into the jar) is not done by the maven-scala-plugin. It's done
> by the regular maven plugin
> (http://maven.apache.org/plugins/maven-resources-plugin/).
> Do you redefine the location of resources, define filter, override
> configuration of the maven-resources-plugin?
> Could you provide some details :
> * pom.xml,
> * listing/tree/layout of the project
> * output (log + directory content) of mvn clean package
>
> /davidB
>
> On Wed, Feb 25, 2009 at 11:53, Michael Neale
> wrote:
>>
>> When I run mvn clean package (or test etc) - i note that it doesn't
>> seem to copy anything from the /resources ? (either test or main).
>>
>>
>>
>> --
>> Michael D Neale
>> home: www.michaelneale.net
>> blog: michaelneale.blogspot.com
>
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland