combination of Eclipse 3.4, Subclipse 1.4.x and m2eclipse 0.9.4.20080603

(I am not really sure who cause the problem) mostly halt my Eclipse when
I do Update Project Config.... 

For those success, or those I remove-and-reimport, I am facing the
resources 
issue I described....

Just wonder, previously when I am using m2Eclipse 0.9.0 + Eclipse 3.3, 
resources folders are using the src folder directly as the output
folder, and
my unit tests can load resources inside it.  However, now when I use 
m2Eclipse 0.9.4 + Eclipse 3.4, even I manually change the output folder,
it still fail.  

Will have a try to remove the run config of unit tests as u suggested :)
Wish that solve my problem.

After reading your blog entry, is that correct if I say: it is suggested
to separate
eclipse's output folder (as described in the blog entry) if I have to
use 
command line mvn to build my project?


Thanks for kindly help

Adrian

-----Original Message-----
From: Eugene Kuleshov [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 03, 2008 9:57 PM
To: [email protected]
Subject: Re: [m2eclipse-user] Removal of target-eclipse, and project
conf in Eclipse 3.4


Adrian Shum wrote:

>  Message ...I found that in the newly imported projects, default  
> output directory for resources is target/classes and  
> target/test-classes. For my existing projects, it is  
> src/main/resources and src/test/resources. I found my JUnit tests no  
> longer be able to load resources in test/resources (I have some unit  
> tests needs to load Spring's app context xml).  It seems to me that  
> the default output directory cause problem for resources loading in  
> Eclipse's JUnit tests.  It can be solved by either
 > 1) Removing resources from build path, and add them as Class Folder 
in Libraries, or
 > 2) Remove the Exclude filter of resources folder in build path.
>  Eclipse will then copy the files to target directory (However,  
> everytime I change my resource, it triggers a lengthy (near 10
>  second) automatic build)

  Have you tried to run "Maven / Update Project Configuration" action on

your projects? You may also have to recreate your saved launch 
configurations for those junit tests. Anyways we don't recommend to 
change project configuration by hands, because it will get out of sync 
with your Maven build.

  Also see my blog entry on how to configure Maven project to use 
different output folders. 
http://www.jroller.com/eu/entry/configuring_separate_maven_output_folder
s
 
  regards,
  Eugene



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email




This email is confidential. If you are not the intended recipient, please 
delete it from your system and notify the sender immediately. Any unauthorized 
use, disclosure, dissemination or copying of this email is prohibited. Taifook 
Securities Group, its group companies and their content providers ("Parties") 
shall not be responsible for the accuracy or completeness of this email or its 
attachment, if any, which could contain virus, be corrupted, destroyed, 
incomplete, intercepted, lost or arrive late.   The Parties do not accept 
liability for any damage caused by this email.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to