You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Konstantin Bartchenkov <ko...@hothouse.com.au> on 2006/08/23 12:34:12 UTC
Building MyEclipse project with Maven2
Hi Guys,
I'm having a problem building myEclipse project using m2.
The main issue is that it's not in default maven file structure.
It looks like this
myProject
src
com/company... all java sources go here
WebRoot
*.jsp all jsp files are here
WEB-INF
Xmls
Classes compiled classes should be placed here
POM.xml
The first task is to get maven to compile it and place classes to
WebRoot/WEB-INF/classes
It could be done by saying following
<build>
<sourceDirectory>src</sourceDirectory>
<outputDirectory>WebRoot/WEB-INF/classes</outputDirectory>
</build>
But how can I manage to create war file when it doesn't really know
where my jsps/xmls are? Basically after the compilation all it has to do
is to grab WebRoot and just work with it... I couldn't really find a
solution, any help would be appreciated.
Cheers
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Building MyEclipse project with Maven2
Posted by Denis Cabasson <de...@insee.fr>.
A lot of WTP specific configuration files. For example : .wtpmodules and lots
of file in .settings folder, such as org.eclipse.wst.common.component or
other (depending on WTP version too).
What is this update sources you're talking about?
Denis.
Douglas Ferguson wrote:
>
> Just curious what the plugin does to specifically deal with wtp?
>
> Also, what does update sources do?
>
> D-
>
> -----Original Message-----
> From: Denis Cabasson [mailto:denis.cabasson@insee.fr]
> Sent: Wednesday, August 23, 2006 8:48 AM
> To: users@maven.apache.org
> Subject: Re: Building MyEclipse project with Maven2
>
>
>
>
> Konstantin Bartchenkov wrote:
>>
>> Hi Guys,
>>
>> I'm having a problem building myEclipse project using m2.
>> The main issue is that it's not in default maven file structure.
>>
>
> I don't know exactly what myEclipse is, but your porject looks a lot like
> a
> WTP project to me.
>
> In this case, I'd advocate for the maven file structure, with the
> maven-eclipse-plugin being able to generate correct eclipse settings so
> that
> WTP can correctly recognize your project structure.
>
> See:
> http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html
>
> Cheers!
>
> Denis
> --
> View this message in context:
> http://www.nabble.com/Building-MyEclipse-project-with-Maven2-tf2151867.html#a5944810
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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
>
>
>
--
View this message in context: http://www.nabble.com/Building-MyEclipse-project-with-Maven2-tf2151867.html#a5959219
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Building MyEclipse project with Maven2
Posted by Douglas Ferguson <do...@epsiia.com>.
Just curious what the plugin does to specifically deal with wtp?
Also, what does update sources do?
D-
-----Original Message-----
From: Denis Cabasson [mailto:denis.cabasson@insee.fr]
Sent: Wednesday, August 23, 2006 8:48 AM
To: users@maven.apache.org
Subject: Re: Building MyEclipse project with Maven2
Konstantin Bartchenkov wrote:
>
> Hi Guys,
>
> I'm having a problem building myEclipse project using m2.
> The main issue is that it's not in default maven file structure.
>
I don't know exactly what myEclipse is, but your porject looks a lot like a
WTP project to me.
In this case, I'd advocate for the maven file structure, with the
maven-eclipse-plugin being able to generate correct eclipse settings so that
WTP can correctly recognize your project structure.
See:
http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html
Cheers!
Denis
--
View this message in context: http://www.nabble.com/Building-MyEclipse-project-with-Maven2-tf2151867.html#a5944810
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
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: Building MyEclipse project with Maven2
Posted by Denis Cabasson <de...@insee.fr>.
Konstantin Bartchenkov wrote:
>
> Hi Guys,
>
> I'm having a problem building myEclipse project using m2.
> The main issue is that it's not in default maven file structure.
>
I don't know exactly what myEclipse is, but your porject looks a lot like a
WTP project to me.
In this case, I'd advocate for the maven file structure, with the
maven-eclipse-plugin being able to generate correct eclipse settings so that
WTP can correctly recognize your project structure.
See:
http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html
Cheers!
Denis
--
View this message in context: http://www.nabble.com/Building-MyEclipse-project-with-Maven2-tf2151867.html#a5944810
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Building MyEclipse project with Maven2
Posted by Daniel Serodio <da...@xxx.com.br>.
Konstantin Bartchenkov wrote:
> Hi Guys,
>
> I'm having a problem building myEclipse project using m2.
> The main issue is that it's not in default maven file structure.
> It looks like this
>
> myProject
> src
> com/company... all java sources go here
> WebRoot
> *.jsp all jsp files are here
> WEB-INF
> Xmls
> Classes compiled classes should be placed here
> POM.xml
>
> The first task is to get maven to compile it and place classes to
> WebRoot/WEB-INF/classes
> It could be done by saying following
> <build>
> <sourceDirectory>src</sourceDirectory>
> <outputDirectory>WebRoot/WEB-INF/classes</outputDirectory>
> </build>
>
> But how can I manage to create war file when it doesn't really know
> where my jsps/xmls are? Basically after the compilation all it has to do
> is to grab WebRoot and just work with it... I couldn't really find a
> solution, any help would be appreciated.
Add the following to your <plugins> section:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0</version>
<configuration>
<webResources>
<resource>
<directory>WebRoot</directory>
</resource>
</webResources>
</configuration>
</plugin>
HTH,
Daniel Serodio
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org