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:

<build>
       
<outputDirectory>${basedir}/src/main/webapp/WEB-INF/classes</outputDirectory>
<plugin>
     <artifactId>maven-clean-plugin</artifactId>
     <configuration>
       <filesets>
         <fileset>
           <directory>${basedir}/src/main/webapp/WEB-INF/classes</directory>
           <includes>
             <include>**</include>
           </includes>
         </fileset>
        </filesets>
      </configuration>
</plugin>
</build>

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]

Reply via email to