Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » IAM maven builder not copying resources?
IAM maven builder not copying resources? [message #20033] Thu, 28 May 2009 07:46 Go to next message
BenH is currently offline BenHFriend
Messages: 39
Registered: July 2009
Member
I just cleaned out my target/ folder and then did a Project > Clean.

target/classes and target/test-classes were recompiled, but resources
files (applicationContext.xml) seemed not to be copied over into
target/WEB-INF

So my unit tests failed from Eclipse JUnit runner, until I did a "mvn
install" from command line.

Known issue? Intended behavior?

-Ben
Re: IAM maven builder not copying resources? [message #20072 is a reply to message #20033] Thu, 28 May 2009 21:05 Go to previous message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
resources files are copied by default to target/classes and
target/test-classes, they are no copied to target/WEB-INF

if your project is a war and you expect them to be in
target/projectname/WEB-INF that happens during packaging phase, and you
shouldn't rely on them being there in your test files, it wont work in
IAM nor in Maven command line


On 5/28/09 12:46 AM, BenH wrote:
> I just cleaned out my target/ folder and then did a Project > Clean.
>
> target/classes and target/test-classes were recompiled, but resources
> files (applicationContext.xml) seemed not to be copied over into
> target/WEB-INF
>
> So my unit tests failed from Eclipse JUnit runner, until I did a "mvn
> install" from command line.
>
> Known issue? Intended behavior?
>
> -Ben
>
Re: IAM maven builder not copying resources? [message #569645 is a reply to message #20033] Thu, 28 May 2009 21:05 Go to previous message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
resources files are copied by default to target/classes and
target/test-classes, they are no copied to target/WEB-INF

if your project is a war and you expect them to be in
target/projectname/WEB-INF that happens during packaging phase, and you
shouldn't rely on them being there in your test files, it wont work in
IAM nor in Maven command line


On 5/28/09 12:46 AM, BenH wrote:
> I just cleaned out my target/ folder and then did a Project > Clean.
>
> target/classes and target/test-classes were recompiled, but resources
> files (applicationContext.xml) seemed not to be copied over into
> target/WEB-INF
>
> So my unit tests failed from Eclipse JUnit runner, until I did a "mvn
> install" from command line.
>
> Known issue? Intended behavior?
>
> -Ben
>
Previous Topic:IAM maven builder not copying resources?
Next Topic:how do you pass properties to the build configuration
Goto Forum:
  


Current Time: Thu Apr 18 16:12:58 GMT 2024

Powered by FUDForum. Page generated in 0.02002 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top