You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@excalibur.apache.org by Shash Chatterjee <sh...@badfw.org> on 2004/06/23 05:48:45 UTC

Eclipse, Maven and Excalibur - Carsten?

Carsten,

Since I read your posts regarding using Maven to define Eclipse 
projects, hoping you can answer this.

I am using Eclipse 3.0RC3, and since subclipse is not supported on this 
version yet, I used command-line svn to check out excalibur-trunk, which 
went just fine.  Then "maven multiproject:install" was going fine, until 
hit a snag with building PooledComponentHandler.

Now I want to import Excalibur into Eclipse and start some looking.  I 
first imported excalibur-trunk dir. into Eclipse, which defined the 
nested Java source dirs just fine, but of course, no JARs were added 
from the Maven repo.  I then did "maven eclipse", refreshed my project,
and all my source-dirs disappeared, and still no JARs from maven repo 
were added.

How are you doing this? Are you going into each nested module and doing 
a "maven eclipse" and then importing each into Eclipse?  I have done 
this successfully before with other projects, but never a multiproject 
one. Can the multiproject plugin help out here? I so wish there were lib 
dirs with dependency JARs already there, so I could multi-select and add 
those quickly, but that's not the Maven way :-)

Thanks,
Shash


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org
Apache Excalibur Project -- URL: http://excalibur.apache.org/


Re: Eclipse project files

Posted by Niclas Hedhman <ni...@hedhman.org>.
Shash Chatterjee wrote:
> volunteer to checkin the .classpath/.project after that 

I suggest "Don't".
My experience is that it is better to leave the .classpath/.project 
out of the CVS/SVN, but check in a workable template which people 
should start out with.
It is too easy for developers to loose touch with those files, and 
sooner or later someone will manage to get absolute paths in there and 
everything stops working for everyone else.

Just my 3 cents.

Niclas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org
Apache Excalibur Project -- URL: http://excalibur.apache.org/


Re: Eclipse project files (was: Eclipse, Maven and Excalibur - Carsten?)

Posted by Shash Chatterjee <sh...@badfw.org>.
> Hi, gang!
> 
> CZ> Now, we could add the Eclipse project files to our svn if we 
> want. If CZ> we use variables for the paths in the eclipse project 
> then this should CZ> work for everyone using eclipse.
> 
> This would probably worth it!
> 
> IDEA files are there already,
> should be feasible do the same for Eclipse.
> 
> Don't feel like switching to IDEA :)

I have had success setting up Eclipse so far with the SVN repo.  I need to do
a bit of debugging to make sure I am importing source correctly, etc.  I
volunteer to checkin the .classpath/.project after that (will discuss on this
list how I have it setup to make sure I am doing it in a sane way, pretty
simple so far).  I also got subclipse-0.9.4 to work with Eclipse-3.0, pretty
painless (though slow at startup).  I also got MavenIDE plugin for Eclipse,
and was able to build OK through it.

Shash

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org
Apache Excalibur Project -- URL: http://excalibur.apache.org/


Eclipse project files (was: Eclipse, Maven and Excalibur - Carsten?)

Posted by Anton Tagunov <at...@list.ru>.
Hi, gang!

CZ> Now, we could add the Eclipse project files to our svn if we want. If
CZ> we use variables for the paths in the eclipse project then this should
CZ> work for everyone using eclipse.

This would probably worth it!

IDEA files are there already,
should be feasible do the same for Eclipse.

Don't feel like switching to IDEA :)

Anton



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org
Apache Excalibur Project -- URL: http://excalibur.apache.org/


Re: Eclipse, Maven and Excalibur - Carsten?

Posted by Mauro Talevi <ma...@aquilonia.org>.
Carsten Ziegeler wrote:
> Hi,
> 
> you can use subclipse with RC3, you have to use the update manager
> of Eclipse and enter http://www.loonsoft.com/updates
> as an update site url and can then install subclipse. It works
> but you can only update, commit, checkout and edit properties.
> Now comparing or syncing yet :(

I think they've been waiting for Eclipse 3.0 release to finally freeze
the SCM API.

> Unfortunately the eclipse support of Maven is only for simple projects
> afaik, so multiprojects are out of question. Currently I'm doing both:
> sometimes I add each sub project of a multiproject as an eclipse
> project, so I can use "maven eclipse". And sometimes I edit the project
> files of Eclipse by hand which means I add all jars by hand which is
> in the case of Excalibur a lot of work to do.
> If I ever get time I will try to add the multiproject support to
> the Eclipse plugin for Maven, but who knows when that will be :(

same here - I've been thinking about adding multiproject support for a 
long time, but since it's very easy to just edit the top-level 
.classpath file, it gets pushed way down the line of  priorities.

> Now, we could add the Eclipse project files to our svn if we want. If
> we use variables for the paths in the eclipse project then this should
> work for everyone using eclipse.

only MAVEN_REPO should be needed.
The only problem with checking in the project files is that .classpath
holds both the jars and the src dirs info.
And if one puts in the top-level excalibur root, one gets swamped with
both jars and src dirs.
Perhaps a good compromise is checking in the files only for the
excalibur components/containers which have subcomponets/subprojects.

eg for fortress it would be at the
excalibur/fortress and it would cater for all its components/sub-projects.
Likewise, for other biggies, etc ...

Cheers


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org
Apache Excalibur Project -- URL: http://excalibur.apache.org/


RE: Eclipse, Maven and Excalibur - Carsten?

Posted by Carsten Ziegeler <cz...@s-und-n.de>.
Hi,

you can use subclipse with RC3, you have to use the update manager
of Eclipse and enter http://www.loonsoft.com/updates
as an update site url and can then install subclipse. It works
but you can only update, commit, checkout and edit properties.
Now comparing or syncing yet :(

Unfortunately the eclipse support of Maven is only for simple projects
afaik, so multiprojects are out of question. Currently I'm doing both:
sometimes I add each sub project of a multiproject as an eclipse
project, so I can use "maven eclipse". And sometimes I edit the project
files of Eclipse by hand which means I add all jars by hand which is
in the case of Excalibur a lot of work to do.
If I ever get time I will try to add the multiproject support to
the Eclipse plugin for Maven, but who knows when that will be :(

Now, we could add the Eclipse project files to our svn if we want. If
we use variables for the paths in the eclipse project then this should
work for everyone using eclipse.

Carsten 

> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of Shash Chatterjee
> Sent: Wednesday, June 23, 2004 5:49 AM
> To: dev@excalibur.apache.org
> Subject: Eclipse, Maven and Excalibur - Carsten?
> 
> Carsten,
> 
> Since I read your posts regarding using Maven to define 
> Eclipse projects, hoping you can answer this.
> 
> I am using Eclipse 3.0RC3, and since subclipse is not 
> supported on this version yet, I used command-line svn to 
> check out excalibur-trunk, which went just fine.  Then "maven 
> multiproject:install" was going fine, until hit a snag with 
> building PooledComponentHandler.
> 
> Now I want to import Excalibur into Eclipse and start some 
> looking.  I first imported excalibur-trunk dir. into Eclipse, 
> which defined the nested Java source dirs just fine, but of 
> course, no JARs were added from the Maven repo.  I then did 
> "maven eclipse", refreshed my project, and all my source-dirs 
> disappeared, and still no JARs from maven repo were added.
> 
> How are you doing this? Are you going into each nested module 
> and doing a "maven eclipse" and then importing each into 
> Eclipse?  I have done this successfully before with other 
> projects, but never a multiproject one. Can the multiproject 
> plugin help out here? I so wish there were lib dirs with 
> dependency JARs already there, so I could multi-select and 
> add those quickly, but that's not the Maven way :-)
> 
> Thanks,
> Shash
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
> For additional commands, e-mail: 
> dev-help@excalibur.apache.org Apache Excalibur Project -- 
> URL: http://excalibur.apache.org/
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org
Apache Excalibur Project -- URL: http://excalibur.apache.org/