IAM maven builder not copying resources? [message #20033] |
Thu, 28 May 2009 03:46  |
Eclipse User |
|
|
|
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 17:05  |
Eclipse User |
|
|
|
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 17:05  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.04170 seconds