AW: AW: AW: build multi-projects with eclipse

2010-06-02 Thread Lewis, Eric
Hmmm... I have never used the Spring Tool Suite, sorry...

m2eclipse creates dynamic dependencies between Eclipse projects. When you open 
one, all open projects which depend on it now depend on the opened project 
instead of the project's artifact in the Maven repository. As for Use pom.xml 
interface to add by search?, I don't know what you mean... pom.xml is not an 
interface, it's Maven's configuration.

Best regards,
Eric

-Ursprüngliche Nachricht-
Von: sean xiong [mailto:seanxi...@fridae.com] 
Gesendet: Mittwoch, 2. Juni 2010 16:28
An: Maven Users List
Betreff: Re: AW: AW: build multi-projects with eclipse

Yah I use 'Run as on server' with spring tool suite.

I just tried and maven for eclipse has been installed into STS which I have 
been using.

You mentioned it creates dynamic dependencies between the projects, how? Use 
pom.xml interface to add by search?

On Jun 2, 2010, at 10:16 PM, Lewis, Eric wrote:

 Well, it creates dynamic dependencies between your projects when they are 
 open in Eclipse, which helps a lot for development.
 However, if you close a project, its artifact has to exist in your local 
 repository, so you have to build it with 'install' before closing the project.
 
 Unless I misunderstood your problem, and your Maven build doesn't find an 
 external dependency. In that case, you might have a Proxy configuration 
 problem in Eclipse.
 But then, I don't know how you're building your projects within Eclipse... 
 with a launch configuration (Run As...)?
 
 Best regards,
 Eric 
 
 -Ursprüngliche Nachricht-
 Von: sean xiong [mailto:seanxi...@fridae.com] 
 Gesendet: Mittwoch, 2. Juni 2010 16:11
 An: Maven Users List
 Betreff: Re: AW: build multi-projects with eclipse
 
 can m2eclipse solve my problem? I download first.
 
 On Jun 2, 2010, at 9:49 PM, Lewis, Eric wrote:
 
 Hi
 
 Are you using m2eclipse?
 If you aren't, you should  :-)
 
 As for your second question: m2eclipse has an integration with Eclipse WTP, 
 but personally I haven't used it yet.
 
 Best regards,
 Eric 
 
 -Ursprüngliche Nachricht-
 Von: sean xiong [mailto:seanxi...@fridae.com] 
 Gesendet: Mittwoch, 2. Juni 2010 15:44
 An: users@maven.apache.org
 Betreff: build multi-projects with eclipse
 
 Hi,
 
 I'm new on Maven. Here's my problem,
 
 I built a webapp and some services in another project, both of them inherit 
 from parent pom. 
 I have added dependency in webapp of service project.
 
 Every time when I try to package webapp, it tries to download from 
 ${user.home}/.m2/repository but failed. This happens in Eclipse only, when I 
 use netbeans it works. But I don't wanna change my IDE becos of this. Anyone 
 has experience on this?
 
 Another question: with Maven if I change source code in service project and 
 webapp running on tomcat, would it take effect real-time? Or I have to 
 rebuild and deploy it? 
 
 Thank you.
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


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


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



Re: AW: AW: AW: build multi-projects with eclipse

2010-06-02 Thread Ron Wheeler

On 02/06/2010 10:35 AM, Lewis, Eric wrote:

Hmmm... I have never used the Spring Tool Suite, sorry...
   

It is just Eclipse with all the plug-ins already included.


m2eclipse creates dynamic dependencies between Eclipse projects. When you open one, all 
open projects which depend on it now depend on the opened project instead of the 
project's artifact in the Maven repository. As for Use pom.xml interface to add by 
search?, I don't know what you mean... pom.xml is not an interface, it's Maven's 
configuration.

   
Dynamic dependencies are a 2 edged sword in a multi-person, 
multi-project application. You have to be careful to either delete or 
close inactive projects or make sure that they are synchronized and 
up-to-date.


We generally click off the box that forces dynamic dependencies to 
ensure that we build with the latest snapshots.


You need to build your dependencies with  run as = install to get them 
into ${user.home}/.m2/repository


You probably should read one of the free Maven books to get a sense of 
the Maven way.


Ron


Best regards,
Eric

-Ursprüngliche Nachricht-
Von: sean xiong [mailto:seanxi...@fridae.com]
Gesendet: Mittwoch, 2. Juni 2010 16:28
An: Maven Users List
Betreff: Re: AW: AW: build multi-projects with eclipse

Yah I use 'Run as on server' with spring tool suite.

I just tried and maven for eclipse has been installed into STS which I have 
been using.

You mentioned it creates dynamic dependencies between the projects, how? Use 
pom.xml interface to add by search?

On Jun 2, 2010, at 10:16 PM, Lewis, Eric wrote:

   

Well, it creates dynamic dependencies between your projects when they are open 
in Eclipse, which helps a lot for development.
However, if you close a project, its artifact has to exist in your local 
repository, so you have to build it with 'install' before closing the project.

Unless I misunderstood your problem, and your Maven build doesn't find an 
external dependency. In that case, you might have a Proxy configuration problem 
in Eclipse.
But then, I don't know how you're building your projects within Eclipse... with 
a launch configuration (Run As...)?

Best regards,
Eric

-Ursprüngliche Nachricht-
Von: sean xiong [mailto:seanxi...@fridae.com]
Gesendet: Mittwoch, 2. Juni 2010 16:11
An: Maven Users List
Betreff: Re: AW: build multi-projects with eclipse

can m2eclipse solve my problem? I download first.

On Jun 2, 2010, at 9:49 PM, Lewis, Eric wrote:

 

Hi

Are you using m2eclipse?
If you aren't, you should  :-)

As for your second question: m2eclipse has an integration with Eclipse WTP, but 
personally I haven't used it yet.

Best regards,
Eric

-Ursprüngliche Nachricht-
Von: sean xiong [mailto:seanxi...@fridae.com]
Gesendet: Mittwoch, 2. Juni 2010 15:44
An: users@maven.apache.org
Betreff: build multi-projects with eclipse

Hi,

I'm new on Maven. Here's my problem,

I built a webapp and some services in another project, both of them inherit 
from parent pom.
I have added dependency in webapp of service project.

Every time when I try to package webapp, it tries to download from 
${user.home}/.m2/repository but failed. This happens in Eclipse only, when I 
use netbeans it works. But I don't wanna change my IDE becos of this. Anyone 
has experience on this?

Another question: with Maven if I change source code in service project and 
webapp running on tomcat, would it take effect real-time? Or I have to rebuild 
and deploy it?

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


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

   


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


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

 


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


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


   



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



Re: AW: AW: AW: build multi-projects with eclipse

2010-06-02 Thread sean xiong


On Jun 3, 2010, at 3:08 AM, Ron Wheeler wrote:

 On 02/06/2010 10:35 AM, Lewis, Eric wrote:
 Hmmm... I have never used the Spring Tool Suite, sorry...
   
 It is just Eclipse with all the plug-ins already included.
 
 m2eclipse creates dynamic dependencies between Eclipse projects. When you 
 open one, all open projects which depend on it now depend on the opened 
 project instead of the project's artifact in the Maven repository. As for 
 Use pom.xml interface to add by search?, I don't know what you mean... 
 pom.xml is not an interface, it's Maven's configuration.
 
   

Does this mean I have to run install each time I make change to make it work? 
Is it possible make changes work without any operation when the webapp is 
running for debug?

 Dynamic dependencies are a 2 edged sword in a multi-person, multi-project 
 application. You have to be careful to either delete or close inactive 
 projects or make sure that they are synchronized and up-to-date.
 
 We generally click off the box that forces dynamic dependencies to ensure 
 that we build with the latest snapshots.
 
 You need to build your dependencies with  run as = install to get them into 
 ${user.home}/.m2/repository
 
 You probably should read one of the free Maven books to get a sense of the 
 Maven way.
 
 Ron
 
 Best regards,
 Eric
 
 -Ursprüngliche Nachricht-
 Von: sean xiong [mailto:seanxi...@fridae.com]
 Gesendet: Mittwoch, 2. Juni 2010 16:28
 An: Maven Users List
 Betreff: Re: AW: AW: build multi-projects with eclipse
 
 Yah I use 'Run as on server' with spring tool suite.
 
 I just tried and maven for eclipse has been installed into STS which I have 
 been using.
 
 You mentioned it creates dynamic dependencies between the projects, how? Use 
 pom.xml interface to add by search?
 
 On Jun 2, 2010, at 10:16 PM, Lewis, Eric wrote:
 
   
 Well, it creates dynamic dependencies between your projects when they are 
 open in Eclipse, which helps a lot for development.
 However, if you close a project, its artifact has to exist in your local 
 repository, so you have to build it with 'install' before closing the 
 project.
 
 Unless I misunderstood your problem, and your Maven build doesn't find an 
 external dependency. In that case, you might have a Proxy configuration 
 problem in Eclipse.
 But then, I don't know how you're building your projects within Eclipse... 
 with a launch configuration (Run As...)?
 
 Best regards,
 Eric
 
 -Ursprüngliche Nachricht-
 Von: sean xiong [mailto:seanxi...@fridae.com]
 Gesendet: Mittwoch, 2. Juni 2010 16:11
 An: Maven Users List
 Betreff: Re: AW: build multi-projects with eclipse
 
 can m2eclipse solve my problem? I download first.
 
 On Jun 2, 2010, at 9:49 PM, Lewis, Eric wrote:
 
 
 Hi
 
 Are you using m2eclipse?
 If you aren't, you should  :-)
 
 As for your second question: m2eclipse has an integration with Eclipse 
 WTP, but personally I haven't used it yet.
 
 Best regards,
 Eric
 
 -Ursprüngliche Nachricht-
 Von: sean xiong [mailto:seanxi...@fridae.com]
 Gesendet: Mittwoch, 2. Juni 2010 15:44
 An: users@maven.apache.org
 Betreff: build multi-projects with eclipse
 
 Hi,
 
 I'm new on Maven. Here's my problem,
 
 I built a webapp and some services in another project, both of them 
 inherit from parent pom.
 I have added dependency in webapp of service project.
 
 Every time when I try to package webapp, it tries to download from 
 ${user.home}/.m2/repository but failed. This happens in Eclipse only, when 
 I use netbeans it works. But I don't wanna change my IDE becos of this. 
 Anyone has experience on this?
 
 Another question: with Maven if I change source code in service project 
 and webapp running on tomcat, would it take effect real-time? Or I have to 
 rebuild and deploy it?
 
 Thank you.
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
   
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org

Re: AW: AW: AW: build multi-projects with eclipse

2010-06-02 Thread Wayne Fay
 Does this mean I have to run install each time I make change
 to make it work? Is it possible make changes work without
 any operation when the webapp is running for debug?

These questions about m2eclipse are more appropriate on the m2eclipse
mailing list...

http://m2eclipse.sonatype.org/project-information.html

Wayne

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