Re: MyEclipse and Maven: Directory conflict

2007-05-08 Thread Wayne Fay

If this works and you're happy, then you can safely ignore this message...

Any particular reason you can't just tell MyEclipse to deploy from
target/ instead? Your webapp files should be copied there during the
build process.

Wayne

On 5/8/07, Nick Stolwijk <[EMAIL PROTECTED]> wrote:

I have found a solution, only not very clean.

You can add to your pom:


   
${basedir}/src/main/webapp/WEB-INF/classes

 maven-clean-plugin
 
   
 
   ${basedir}/src/main/webapp/WEB-INF/classes
   
 **
   
 

  



Note: Second part (maven clean extension) I just made up (With help of [1]), 
and probably needs some tweaking, but I hope you get the idea.

Hth,

Nick Stolwijk

[1]
http://maven.apache.org/plugins/maven-clean-plugin/examples/delete_additional_files.html

Jon Strayer wrote:
> Did you ever get an answer to this?
>
> On 9/18/06, Nick Stolwijk <[EMAIL PROTECTED]> wrote:
>>
>> I've got a little problem with MyEclipse and Eclipse project generated
>> by Maven. When I deploy to Tomcat with MyEclipse the directory
>> src/main/webapp is deployed, but the classes are compiled to
>> target/classes so they will not be deployed. Do I need to change
>> something in my Pom file to make this automatically working instead of
>> manually changing the build path of Eclipse to
>> src/main/webapp/META-INF/classes?
>>
>> Nick Stolwijk
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MyEclipse and Maven: Directory conflict

2007-05-08 Thread Nick Stolwijk

I have found a solution, only not very clean.

You can add to your pom:


   
${basedir}/src/main/webapp/WEB-INF/classes

 maven-clean-plugin
 
   
 
   ${basedir}/src/main/webapp/WEB-INF/classes
   
 **
   
 

  



Note: Second part (maven clean extension) I just made up (With help of [1]), 
and probably needs some tweaking, but I hope you get the idea.

Hth,

Nick Stolwijk

[1] 
http://maven.apache.org/plugins/maven-clean-plugin/examples/delete_additional_files.html


Jon Strayer wrote:

Did you ever get an answer to this?

On 9/18/06, Nick Stolwijk <[EMAIL PROTECTED]> wrote:


I've got a little problem with MyEclipse and Eclipse project generated
by Maven. When I deploy to Tomcat with MyEclipse the directory
src/main/webapp is deployed, but the classes are compiled to
target/classes so they will not be deployed. Do I need to change
something in my Pom file to make this automatically working instead of
manually changing the build path of Eclipse to
src/main/webapp/META-INF/classes?

Nick Stolwijk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MyEclipse and Maven: Directory conflict

2007-05-08 Thread Jon Strayer

Did you ever get an answer to this?

On 9/18/06, Nick Stolwijk <[EMAIL PROTECTED]> wrote:


I've got a little problem with MyEclipse and Eclipse project generated
by Maven. When I deploy to Tomcat with MyEclipse the directory
src/main/webapp is deployed, but the classes are compiled to
target/classes so they will not be deployed. Do I need to change
something in my Pom file to make this automatically working instead of
manually changing the build path of Eclipse to
src/main/webapp/META-INF/classes?

Nick Stolwijk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Esse Quam Videre
To Be, rather than to Seem


MyEclipse and Maven: Directory conflict

2006-09-18 Thread Nick Stolwijk
I've got a little problem with MyEclipse and Eclipse project generated 
by Maven. When I deploy to Tomcat with MyEclipse the directory 
src/main/webapp is deployed, but the classes are compiled to 
target/classes so they will not be deployed. Do I need to change 
something in my Pom file to make this automatically working instead of 
manually changing the build path of Eclipse to 
src/main/webapp/META-INF/classes?


Nick Stolwijk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]