You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jon Strayer <jo...@strayer.org> on 2007/05/08 23:21:38 UTC
Re: MyEclipse and Maven: Directory conflict
Did you ever get an answer to this?
On 9/18/06, Nick Stolwijk <ni...@planet.nl> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Esse Quam Videre
To Be, rather than to Seem
Re: MyEclipse and Maven: Directory conflict
Posted by Wayne Fay <wa...@gmail.com>.
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 <ni...@planet.nl> 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 <ni...@planet.nl> 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: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: MyEclipse and Maven: Directory conflict
Posted by Nick Stolwijk <ni...@planet.nl>.
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 <ni...@planet.nl> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org