Re: Maven and WTP integration

2010-03-15 Thread Martin Schayna
 Thank you for your insight into the future. Well, then the best 
solution will be removing all references to maven-eclipse-plugin from 
pom.xml and relaying on M2Eclipse. It clears all my concerns about this, 
thanks again.


Martin


On 15.3.2010 18:07, Jason van Zyl wrote:
Just a note so that folks know what's coming. The maven-eclipse-plugin 
will not work with M2Eclipse anymore. If M2Eclipse sees projects 
generated with the maven-eclipse-plugin it won't import them. 
M2Eclipse works by creating the necessary projects files by inspecting 
the POM and doesn't expect the Eclipse project files to have been 
created by an external third party.


If you use the maven-eclipse-plugin your projects will not be 
supported in M2Eclipse. You will need to pick one mode, either use the 
maven-eclipse-plugin and stock Eclipse or import your projects using 
M2Eclipse.



Just a heads up.

On Mar 15, 2010, at 12:58 PM, Martin Schayna wrote:


Hi,

after some by-hand editing of configuration files, that have been 
mentioned here, it works.
But when I try to run eclipse:eclipse goal of maven-eclipse-plugin 
again, it breaks and I have

to revert changes. We can live with that :)

Martin


On 15.3.2010 17:23, Michel Pawlak wrote:

Hi

I have the same issue, have you found a solution or reported a bug ?

Thank you in advance


Martin Schayna-2 wrote:


Hi all,

we have pretty large project, successfully "mavenized" with Maven 2,
split into several module projects under one parent pom. We are using
m2eclipse plugin in Eclipse 3.5.

Project tree looks like:

parent/ (pom project)
+-- lib-core/ (jar project)
+-- lib-web/ (jar project, with shared webapp folder)
+-- app1/ (war project)
+-- app2/ (war project)
+-- app3/ (war project)

parent project serves as agregator, its pom.xml defines common 
settings.
lib-web project depends on lib-core project, application projects 
depend

on both lib projects. All projects share same version, we are releasing
all applications at once through parent pom.

For everyday develepment we use SNAPSHOT postfix in version, 
dependecies

on module projects are specified as "project dependencies", so changes
in library projects in Eclipse cause rebuild dependent application
projects. Snapshots are disabled in our repository (Archiva).

But when I try setup WTP support through maven-eclipse-plugin goal
"eclipse:eclipse" and some necessary changes in Eclipse, publishing to
Tomcat creates only WEB-INF/lib folder with (correct) out-of-project
jar dependencies and WEB-INF/classes folder with CURRENT project
classes. No binaries from "project dependencies" lib-core and lib-web.

I have tried to change org.eclipse.wst.common.component file in 
many ways,

e.g., but without success.

Another weird thing: when I try to include resources from shared webapp
folder from lib-web project and use relative source-path like this:



publish can't copy subfolders content to Tomcat. Must explicitly
specified:




...

Please, what is the right WTP setup for multi modules configuration 
with

"project
dependencies" and shared resources? Or is there any documentation 
for file

org.eclipse.wst.common.component?

I'm going little bit crazy... thank God debugging with Jetty works like
a charm,
either with shared resources (must hack with
WebAppContext.setResourceBase() in
starter class).

Thanks a lot.

Martin Schayna








-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Thanks,

Jason

--
Jason van Zyl
Founder, Apache Maven
http://twitter.com/jvanzyl
--




Re: Maven and WTP integration

2010-03-15 Thread Jason van Zyl
Just a note so that folks know what's coming. The maven-eclipse-plugin will not 
work with M2Eclipse anymore. If M2Eclipse sees projects generated with the 
maven-eclipse-plugin it won't import them. M2Eclipse works by creating the 
necessary projects files by inspecting the POM and doesn't expect the Eclipse 
project files to have been created by an external third party.

If you use the maven-eclipse-plugin your projects will not be supported in 
M2Eclipse. You will need to pick one mode, either use the maven-eclipse-plugin 
and stock Eclipse or import your projects using M2Eclipse. 


Just a heads up.

On Mar 15, 2010, at 12:58 PM, Martin Schayna wrote:

> Hi,
> 
> after some by-hand editing of configuration files, that have been mentioned 
> here, it works.
> But when I try to run eclipse:eclipse goal of maven-eclipse-plugin again, it 
> breaks and I have
> to revert changes. We can live with that :)
> 
> Martin
> 
> 
> On 15.3.2010 17:23, Michel Pawlak wrote:
>> Hi
>> 
>> I have the same issue, have you found a solution or reported a bug ?
>> 
>> Thank you in advance
>> 
>> 
>> Martin Schayna-2 wrote:
>>   
>>> Hi all,
>>> 
>>> we have pretty large project, successfully "mavenized" with Maven 2,
>>> split into several module projects under one parent pom. We are using
>>> m2eclipse plugin in Eclipse 3.5.
>>> 
>>> Project tree looks like:
>>> 
>>> parent/ (pom project)
>>>   +-- lib-core/ (jar project)
>>>   +-- lib-web/  (jar project, with shared webapp folder)
>>>   +-- app1/ (war project)
>>>   +-- app2/ (war project)
>>>   +-- app3/ (war project)
>>> 
>>> parent project serves as agregator, its pom.xml defines common settings.
>>> lib-web project depends on lib-core project, application projects depend
>>> on both lib projects. All projects share same version, we are releasing
>>> all applications at once through parent pom.
>>> 
>>> For everyday develepment we use SNAPSHOT postfix in version, dependecies
>>> on module projects are specified as "project dependencies", so changes
>>> in library projects in Eclipse cause rebuild dependent application
>>> projects. Snapshots are disabled in our repository (Archiva).
>>> 
>>> But when I try setup WTP support through maven-eclipse-plugin goal
>>> "eclipse:eclipse" and some necessary changes in Eclipse, publishing to
>>> Tomcat creates only WEB-INF/lib folder with (correct) out-of-project
>>> jar dependencies and WEB-INF/classes folder with CURRENT project
>>> classes. No binaries from "project dependencies" lib-core and lib-web.
>>> 
>>> I have tried to change org.eclipse.wst.common.component file in many ways,
>>> e.g., but without success.
>>> 
>>> Another weird thing: when I try to include resources from shared webapp
>>> folder from lib-web project and use relative source-path like this:
>>> 
>>> >>  source-path="../lib-web/src/main/webapp"/>
>>> 
>>> publish can't copy subfolders content to Tomcat. Must explicitly
>>> specified:
>>> 
>>> >>  source-path="../lib-web/src/main/webapp/btns"/>
>>> >>  source-path="../lib-web/src/main/webapp/icons"/>
>>> >>  source-path="../lib-web/src/main/webapp/imgs"/>
>>> ...
>>> 
>>> Please, what is the right WTP setup for multi modules configuration with
>>> "project
>>> dependencies" and shared resources? Or is there any documentation for file
>>> org.eclipse.wst.common.component?
>>> 
>>> I'm going little bit crazy... thank God debugging with Jetty works like
>>> a charm,
>>> either with shared resources (must hack with
>>> WebAppContext.setResourceBase() in
>>> starter class).
>>> 
>>> Thanks a lot.
>>> 
>>> Martin Schayna
>>> 
>>> 
>>> 
>>> 
>>   
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 

Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
--



Re: Maven and WTP integration

2010-03-15 Thread Martin Schayna

Hi,

after some by-hand editing of configuration files, that have been 
mentioned here, it works.
But when I try to run eclipse:eclipse goal of maven-eclipse-plugin 
again, it breaks and I have

to revert changes. We can live with that :)

Martin


On 15.3.2010 17:23, Michel Pawlak wrote:

Hi

I have the same issue, have you found a solution or reported a bug ?

Thank you in advance


Martin Schayna-2 wrote:
   

Hi all,

we have pretty large project, successfully "mavenized" with Maven 2,
split into several module projects under one parent pom. We are using
m2eclipse plugin in Eclipse 3.5.

Project tree looks like:

parent/ (pom project)
   +-- lib-core/ (jar project)
   +-- lib-web/  (jar project, with shared webapp folder)
   +-- app1/ (war project)
   +-- app2/ (war project)
   +-- app3/ (war project)

parent project serves as agregator, its pom.xml defines common settings.
lib-web project depends on lib-core project, application projects depend
on both lib projects. All projects share same version, we are releasing
all applications at once through parent pom.

For everyday develepment we use SNAPSHOT postfix in version, dependecies
on module projects are specified as "project dependencies", so changes
in library projects in Eclipse cause rebuild dependent application
projects. Snapshots are disabled in our repository (Archiva).

But when I try setup WTP support through maven-eclipse-plugin goal
"eclipse:eclipse" and some necessary changes in Eclipse, publishing to
Tomcat creates only WEB-INF/lib folder with (correct) out-of-project
jar dependencies and WEB-INF/classes folder with CURRENT project
classes. No binaries from "project dependencies" lib-core and lib-web.

I have tried to change org.eclipse.wst.common.component file in many ways,
e.g., but without success.

Another weird thing: when I try to include resources from shared webapp
folder from lib-web project and use relative source-path like this:

 

publish can't copy subfolders content to Tomcat. Must explicitly
specified:

 
 
 
 ...

Please, what is the right WTP setup for multi modules configuration with
"project
dependencies" and shared resources? Or is there any documentation for file
org.eclipse.wst.common.component?

I'm going little bit crazy... thank God debugging with Jetty works like
a charm,
either with shared resources (must hack with
WebAppContext.setResourceBase() in
starter class).

Thanks a lot.

Martin Schayna



 
   


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven and WTP integration

2010-03-15 Thread Michel Pawlak


Hi 

I have the same issue, have you found a solution or reported a bug ?

Thank you in advance


Martin Schayna-2 wrote:
> 
> Hi all,
> 
> we have pretty large project, successfully "mavenized" with Maven 2,
> split into several module projects under one parent pom. We are using
> m2eclipse plugin in Eclipse 3.5.
> 
> Project tree looks like:
> 
> parent/ (pom project)
>   +-- lib-core/ (jar project)
>   +-- lib-web/  (jar project, with shared webapp folder)
>   +-- app1/ (war project)
>   +-- app2/ (war project)
>   +-- app3/ (war project)
> 
> parent project serves as agregator, its pom.xml defines common settings.
> lib-web project depends on lib-core project, application projects depend
> on both lib projects. All projects share same version, we are releasing
> all applications at once through parent pom.
> 
> For everyday develepment we use SNAPSHOT postfix in version, dependecies
> on module projects are specified as "project dependencies", so changes
> in library projects in Eclipse cause rebuild dependent application
> projects. Snapshots are disabled in our repository (Archiva).
> 
> But when I try setup WTP support through maven-eclipse-plugin goal
> "eclipse:eclipse" and some necessary changes in Eclipse, publishing to
> Tomcat creates only WEB-INF/lib folder with (correct) out-of-project
> jar dependencies and WEB-INF/classes folder with CURRENT project
> classes. No binaries from "project dependencies" lib-core and lib-web.
> 
> I have tried to change org.eclipse.wst.common.component file in many ways,
> e.g. , but without success.
> 
> Another weird thing: when I try to include resources from shared webapp
> folder from lib-web project and use relative source-path like this:
> 
>   source-path="../lib-web/src/main/webapp"/>
>  
> publish can't copy subfolders content to Tomcat. Must explicitly
> specified:
> 
>   source-path="../lib-web/src/main/webapp/btns"/>
>   source-path="../lib-web/src/main/webapp/icons"/>
>   source-path="../lib-web/src/main/webapp/imgs"/>
> ...
> 
> Please, what is the right WTP setup for multi modules configuration with 
> "project
> dependencies" and shared resources? Or is there any documentation for file
> org.eclipse.wst.common.component?
> 
> I'm going little bit crazy... thank God debugging with Jetty works like 
> a charm,
> either with shared resources (must hack with 
> WebAppContext.setResourceBase() in
> starter class).
> 
> Thanks a lot.
> 
> Martin Schayna
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Maven-and-WTP-integration-tp27403219p27906717.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven and WTP integration

2010-02-03 Thread Manuel Grau
Of course,

This is the *org.eclipse.wst.common.component* from a jar module in my app:










And this is the same file for my war module:


  

uses


uses


uses


uses


uses


uses








  


This project has been created using *maven-archetype-j2ee-simple* this way:

*mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-j2ee-simple
-DgroupId=com.ttec.aao.agrored-DartifactId=agrored*

We have 3 modules: *ear*, *projects *and *servlets*. *Servlets*, is a
modular project too where we can create war modules. At the momente we have
only one war module: *agrored-web*. This module has dependencies with all
jar modules inside *projects *module. We have 6 jar modules inside *projects
*. Finally, ear module has a dependency with our war module.

I wrote a tutorial at work, but it's written in spanish. Do you know
spanish?
***
*
2010/2/3 Martin Schayna 

> Hi Manuel,
>
> I have tried same except "eclipse:eclipse" instead of "eclipse:m2eclipse"
> which didn't work for me also :(
>
> My humble findings are summarized in other message in this thread:
> http://old.nabble.com/Maven-and-WTP-integration-td27403219.html#a27405004
>
> Please, could you post here example of file:
>  $(PROJECT_DIR)/.settings/org.eclipse.wst.common.component
> from your "app" and "lib" projects?
>
> Are there in root of your projects some special files starting with period
> (except .project and .classpath of course)? Eclipse plugin didn't make
> these, but I have seen some in some projects on Google Code Search.
>
> Thank you
>
> Martin
>
>
>
>
> Manuel Grau wrote:
>
>> Hi Martin,
>>
>> My setup is similar to yours. Enter each appN folder and type this:
>>
>> mvn -Dwtpversion=2.0 eclipse:m2eclipse
>>
>> Is what I did and it works for me.
>>
>> 2010/2/1 Martin Schayna 
>>
>>
>>
>>> Hi all,
>>>
>>> we have pretty large project, successfully "mavenized" with Maven 2,
>>> split into several module projects under one parent pom. We are using
>>> m2eclipse plugin in Eclipse 3.5.
>>>
>>> Project tree looks like:
>>>
>>> parent/ (pom project)
>>>  +-- lib-core/ (jar project)
>>>  +-- lib-web/  (jar project, with shared webapp folder)
>>>  +-- app1/ (war project)
>>>  +-- app2/ (war project)
>>>  +-- app3/ (war project)
>>>
>>> parent project serves as agregator, its pom.xml defines common settings.
>>> lib-web project depends on lib-core project, application projects depend
>>> on both lib projects. All projects share same version, we are releasing
>>> all applications at once through parent pom.
>>>
>>> For everyday develepment we use SNAPSHOT postfix in version, dependecies
>>> on module projects are specified as "project dependencies", so changes
>>> in library projects in Eclipse cause rebuild dependent application
>>> projects. Snapshots are disabled in our repository (Archiva).
>>>
>>> But when I try setup WTP support through maven-eclipse-plugin goal
>>> "eclipse:eclipse" and some necessary changes in Eclipse, publishing to
>>> Tomcat creates only WEB-INF/lib folder with (correct) out-of-project
>>> jar dependencies and WEB-INF/classes folder with CURRENT project
>>> classes. No binaries from "project dependencies" lib-core and lib-web.
>>>
>>> I have tried to change org.eclipse.wst.common.component file in many
>>> ways,
>>> e.g. , but without success.
>>>
>>> Another weird thing: when I try to include resources from shared webapp
>>> folder from lib-web project and use relative source-path like this:
>>>
>>>  >>   source-path="../lib-web/src/main/webapp"/>
>>>
>>> publish can't copy subfolders content to Tomcat. Must explicitly
>>> specified:
>>>
>>>  >>   source-path="../lib-web/src/main/webapp/btns"/>
>>>  >>   source-path="../lib-web/src/main/webapp/icons"/>
>>>  >>   source-path="../lib-web/src/main/webapp/imgs"/>
>>>  ...
>>>
>>> Please, what is the right WTP setup for multi modules configuration with
>>> "project
>>> dependencies" and shared resources? Or is there any documentation for
>>> file
>>> org.eclipse.wst.common.component?
>>>
>>> I'm going little bit crazy... thank God debugging with Jetty works like a
>>> charm,
>>> either with shared resources (must hack with
>>> WebAppContext.setResourceBase() in
>>> starter class).
>>>
>>> Thanks a lot.
>>>
>>> Martin Schayna
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>


-- 
"Everything should be made as simple as possible, but not simpler" Albert
Einstein


Re: Maven and WTP integration

2010-02-03 Thread Martin Schayna

Tried but with very same poor result. As far as I understand, this function
checkouts project tree from SVN and creates .project and .classpath and
other necessary files for Eclipse. In my case there are these files in
SVN and I'm successfully using Eclipse for development of this project.
I am able to debug this project inside Eclipse in Jetty server. What
I want now is only add support for debugging same project in Tomcat
container inside Eclipse (aka WTP).

Martin


Antonio Petrelli wrote:

2010/2/2 Martin Schayna :
  

Maybe "Checkout as Maven" in m2eclipse plugin can do some
magic project configuration if original project is not mavenized



It works well *especially* with mavenized projects. It creates one
project per module, along with the project for the pom.
BTW did you try it?

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

  


Re: Maven and WTP integration

2010-02-03 Thread Martin Schayna

Hi Manuel,

I have tried same except "eclipse:eclipse" instead of "eclipse:m2eclipse"
which didn't work for me also :(

My humble findings are summarized in other message in this thread:
http://old.nabble.com/Maven-and-WTP-integration-td27403219.html#a27405004

Please, could you post here example of file:
 $(PROJECT_DIR)/.settings/org.eclipse.wst.common.component
from your "app" and "lib" projects?

Are there in root of your projects some special files starting with period
(except .project and .classpath of course)? Eclipse plugin didn't make
these, but I have seen some in some projects on Google Code Search.

Thank you

Martin



Manuel Grau wrote:

Hi Martin,

My setup is similar to yours. Enter each appN folder and type this:

mvn -Dwtpversion=2.0 eclipse:m2eclipse

Is what I did and it works for me.

2010/2/1 Martin Schayna 

  

Hi all,

we have pretty large project, successfully "mavenized" with Maven 2,
split into several module projects under one parent pom. We are using
m2eclipse plugin in Eclipse 3.5.

Project tree looks like:

parent/ (pom project)
 +-- lib-core/ (jar project)
 +-- lib-web/  (jar project, with shared webapp folder)
 +-- app1/ (war project)
 +-- app2/ (war project)
 +-- app3/ (war project)

parent project serves as agregator, its pom.xml defines common settings.
lib-web project depends on lib-core project, application projects depend
on both lib projects. All projects share same version, we are releasing
all applications at once through parent pom.

For everyday develepment we use SNAPSHOT postfix in version, dependecies
on module projects are specified as "project dependencies", so changes
in library projects in Eclipse cause rebuild dependent application
projects. Snapshots are disabled in our repository (Archiva).

But when I try setup WTP support through maven-eclipse-plugin goal
"eclipse:eclipse" and some necessary changes in Eclipse, publishing to
Tomcat creates only WEB-INF/lib folder with (correct) out-of-project
jar dependencies and WEB-INF/classes folder with CURRENT project
classes. No binaries from "project dependencies" lib-core and lib-web.

I have tried to change org.eclipse.wst.common.component file in many ways,
e.g. , but without success.

Another weird thing: when I try to include resources from shared webapp
folder from lib-web project and use relative source-path like this:

  

publish can't copy subfolders content to Tomcat. Must explicitly specified:

  
  
  
  ...

Please, what is the right WTP setup for multi modules configuration with
"project
dependencies" and shared resources? Or is there any documentation for file
org.eclipse.wst.common.component?

I'm going little bit crazy... thank God debugging with Jetty works like a
charm,
either with shared resources (must hack with
WebAppContext.setResourceBase() in
starter class).

Thanks a lot.

Martin Schayna






  


Re: Maven and WTP integration

2010-02-02 Thread Antonio Petrelli
2010/2/2 Martin Schayna :
> Maybe "Checkout as Maven" in m2eclipse plugin can do some
> magic project configuration if original project is not mavenized

It works well *especially* with mavenized projects. It creates one
project per module, along with the project for the pom.
BTW did you try it?

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven and WTP integration

2010-02-02 Thread Martin Schayna

We are using Subversion, but WTP support has nothing to do with Subversion,
in my opinion. Maybe "Checkout as Maven" in m2eclipse plugin can do some
magic project configuration if original project is not mavenized, but we 
have

mavenized project and need only add some WTP support (i.e. ability to debug
project in Tomcat inside Eclipse).

Very simple single module project works for me in WTP, but not multi module
project.

Martin


Antonio Petrelli wrote:

2010/2/1 Martin Schayna :
  

run Eclipse,
convert WTP configuration (Ctrl+1 QuickFix),
add Maven dependecies to WTP (Ctrl+1 QuickFix),



Why all of this stuff? Does not your "Checkout as Maven project" work?
If you do it in the POM project, it should download and create all
subprojects automatically.
This works with Subclipse (Subversion), I don't know with others.

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

  


Re: Maven and WTP integration

2010-02-01 Thread Antonio Petrelli
2010/2/1 Martin Schayna :
> run Eclipse,
> convert WTP configuration (Ctrl+1 QuickFix),
> add Maven dependecies to WTP (Ctrl+1 QuickFix),

Why all of this stuff? Does not your "Checkout as Maven project" work?
If you do it in the POM project, it should download and create all
subprojects automatically.
This works with Subclipse (Subversion), I don't know with others.

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven and WTP integration

2010-02-01 Thread Martin Schayna

Eclipse Platform 3.5.1
Eclipse WST/JST 3.1.1
m2eclipse 0.9.9 (but very same with stable 0.9.8)
Maven 2.0.9
Java 1.6.0_14

When I try to append WTP support into war application project by this

$ mvn -Dwtpversion=2.0 eclipse:m2eclipse

and then:

run Eclipse,
convert WTP configuration (Ctrl+1 QuickFix),
add Maven dependecies to WTP (Ctrl+1 QuickFix),
setup server Tomcat (in Server view),
publish application to Tomcat (in Server view),
run server

ClassNotFoundException throws.

When I look into folder wtpwebapps in workspace Tomcat structure, I see 
that

publish operation was not complete:
- WEB-INF/classes contains current project classes (OK)
- WEB-INF/lib contains all dependent out-of-project jars (OK)
- there aren't binaries of dependent jar projects from my workspace (NOT OK)
- there aren't resources of shared webapps folder from other project in 
my workspace (NOT OK)


After some tricky editing of file 
.settings/org.eclipse.wst.common.component
I'm able to publish shared webapps folder, but not for jar project 
dependencies...


Any ideas?

Thank you

Martin Schayna



Antonio Petrelli wrote:

2010/2/1 Martin Schayna :
  

we have pretty large project, successfully "mavenized" with Maven 2,
split into several module projects under one parent pom. We are using
m2eclipse plugin in Eclipse 3.5.



What version? I am a happy user of the 0.9.9 development version, it
seems that versions prior to this are not compatible with Eclipse 3.5.
Update site: http://m2eclipse.sonatype.org/update-dev/

HTH
Antonio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

  


Re: Maven and WTP integration

2010-02-01 Thread Manuel Grau
Hi Martin,

My setup is similar to yours. Enter each appN folder and type this:

mvn -Dwtpversion=2.0 eclipse:m2eclipse

Is what I did and it works for me.

2010/2/1 Martin Schayna 

> Hi all,
>
> we have pretty large project, successfully "mavenized" with Maven 2,
> split into several module projects under one parent pom. We are using
> m2eclipse plugin in Eclipse 3.5.
>
> Project tree looks like:
>
> parent/ (pom project)
>  +-- lib-core/ (jar project)
>  +-- lib-web/  (jar project, with shared webapp folder)
>  +-- app1/ (war project)
>  +-- app2/ (war project)
>  +-- app3/ (war project)
>
> parent project serves as agregator, its pom.xml defines common settings.
> lib-web project depends on lib-core project, application projects depend
> on both lib projects. All projects share same version, we are releasing
> all applications at once through parent pom.
>
> For everyday develepment we use SNAPSHOT postfix in version, dependecies
> on module projects are specified as "project dependencies", so changes
> in library projects in Eclipse cause rebuild dependent application
> projects. Snapshots are disabled in our repository (Archiva).
>
> But when I try setup WTP support through maven-eclipse-plugin goal
> "eclipse:eclipse" and some necessary changes in Eclipse, publishing to
> Tomcat creates only WEB-INF/lib folder with (correct) out-of-project
> jar dependencies and WEB-INF/classes folder with CURRENT project
> classes. No binaries from "project dependencies" lib-core and lib-web.
>
> I have tried to change org.eclipse.wst.common.component file in many ways,
> e.g. , but without success.
>
> Another weird thing: when I try to include resources from shared webapp
> folder from lib-web project and use relative source-path like this:
>
>   source-path="../lib-web/src/main/webapp"/>
>
> publish can't copy subfolders content to Tomcat. Must explicitly specified:
>
>   source-path="../lib-web/src/main/webapp/btns"/>
>   source-path="../lib-web/src/main/webapp/icons"/>
>   source-path="../lib-web/src/main/webapp/imgs"/>
>   ...
>
> Please, what is the right WTP setup for multi modules configuration with
> "project
> dependencies" and shared resources? Or is there any documentation for file
> org.eclipse.wst.common.component?
>
> I'm going little bit crazy... thank God debugging with Jetty works like a
> charm,
> either with shared resources (must hack with
> WebAppContext.setResourceBase() in
> starter class).
>
> Thanks a lot.
>
> Martin Schayna
>
>


-- 
"Everything should be made as simple as possible, but not simpler" Albert
Einstein


Re: Maven and WTP integration

2010-02-01 Thread Antonio Petrelli
2010/2/1 Martin Schayna :
> we have pretty large project, successfully "mavenized" with Maven 2,
> split into several module projects under one parent pom. We are using
> m2eclipse plugin in Eclipse 3.5.

What version? I am a happy user of the 0.9.9 development version, it
seems that versions prior to this are not compatible with Eclipse 3.5.
Update site: http://m2eclipse.sonatype.org/update-dev/

HTH
Antonio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org