MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
joao.mota
Post subject: maven test directories and web project deployment question  PostPosted: Jul 30, 2008 - 06:26 PM



Joined: Jul 30, 2008
Posts: 1

Hello,

I am using MyEclipse 6.5.1-GA-20080715.

i am trying to trying to migrate our applications from eclipse+.m2eclipse to myeclipse with the maven4MyEclipse.

I checked out an already mavenized web project from the svn.
Edited the .project file to add the build command:
Code:

<buildCommand>
         <name>org.maven.ide.eclipse.maven2Builder</name>
         <arguments>
         </arguments>
</buildCommand>


and replaced the project nature from

Code:

<nature>org.maven.ide.eclipse.maven2Nature</nature>


to

Code:

<nature>com.genuitec.eclipse.maven.maven2Nature</nature>


Everything compiled ok.

But when i went to run on a server i started to run into problems. My testcases (defined under /src/test/java) are getting deployed, but the dependencies that they have are correctly not being added (since they are marked with test scope).

Do i have a workaround for this situation besides removing the src/test/java and src/test/resources from the build path?


best regards,

Joao
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: maven test directories and web project deployment questi  PostPosted: Jul 31, 2008 - 11:03 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Joao,

Maven4MyEclipse is a custom implementation of m2eclipse, so for the most part executing your POM and resolving dependencies is still handled under the covers by the main maven libraries (just as m2eclipse delegated).

If you are deploying your project to a server, and running command-line "mvn" to run the different goals and it's failing, I don't think this is related to Maven4MyEclipse necessarily... could you clarify your running situation on the server and why you think they are connected? (I'm a bit of a Maven novice and I might have missed some obvious detail here).

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits