Re: [maven-eclipse-plugin] Spring dependencies omitted

2010-03-15 Thread Barrie Treloar
On Thu, Mar 11, 2010 at 6:39 PM, Pascal Kesseli
pascal_kess...@hotmail.comwrote:

 Hi everyone

 Being a typical maven fan, I tried to manage our eclipse plugins using
 maven. To do so, I configured the maven-eclipse-plugin as follows:

 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
version2.8/version
configuration
pdetrue/pde
manifestMETA-INF/MANIFEST.MF/manifest
spring
version2.5.6/version
file-patternspring.cfg.xml/file-pattern
basedirsrc/main/resources/basedir
/spring
/configuration
 /plugin

 First off, I am not even sure what exactly the spring-tag in here is good
 for? What does the plugin do with that information? Secondly, as described
 on the apache website, the plugin is supposed to copy all the dependencies
 as jars to my project root. While that works well with almost any
 dependency, the plugin constantly ignores any Spring dependency I have
 added
 to my project, such as spring-aspects, spring-core or spring-test.

 Does anybody know where that behavior evolves from?


I'm not sure that the pde mode does what you think it does.

See http://maven.apache.org/plugins/maven-eclipse-plugin/pde.html

Note that the scope of the *maven-eclipse-plugin* is to synchronise the
Eclipse *.project* and *.classpath* files with the configuration found in
the pom file. Once you have finished configuring the Eclipse plugin as
below, and once you have run the *eclipse:eclipse* goal, you will be in a
position to build your plugin code with the Eclipse IDE, or the Eclipse
headless PDE 
buildhttp://www.eclipse.org/articles/Article-PDE-Automation/automation.html.
The Eclipse headless PDE build can be triggered from within Maven using the
pde-maven-plugin http://mojo.codehaus.org/pde-maven-plugin/

To get maven to build PDE projects I have used (3 years ago) the plugin (now
unmaintained) http://mojo.codehaus.org/pde-maven-plugin/

You may also be able to use Tycho
http://docs.codehaus.org/display/M2ECLIPSE/Tycho+project+overview

I also cant see any documentation about using the configuration section as
you have done - which tends to indicate its not supported.


[maven-eclipse-plugin] Spring dependencies omitted

2010-03-11 Thread Pascal Kesseli
Hi everyone

Being a typical maven fan, I tried to manage our eclipse plugins using
maven. To do so, I configured the maven-eclipse-plugin as follows:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
version2.8/version
configuration
pdetrue/pde
manifestMETA-INF/MANIFEST.MF/manifest
spring
version2.5.6/version
file-patternspring.cfg.xml/file-pattern
basedirsrc/main/resources/basedir
/spring
/configuration
/plugin

First off, I am not even sure what exactly the spring-tag in here is good
for? What does the plugin do with that information? Secondly, as described
on the apache website, the plugin is supposed to copy all the dependencies
as jars to my project root. While that works well with almost any
dependency, the plugin constantly ignores any Spring dependency I have added
to my project, such as spring-aspects, spring-core or spring-test.

Does anybody know where that behavior evolves from?

Thanks in advance for any help on this issue and best regards
Pascal Kesseli



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