Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] jar overlays in war & lifecycle-mapping and build path issues in m2e 1.0.0.20110607-2117

Hello m2e users,

In a multi-module project, one module is a jar with configuration
files, while other is war module. In war module cfg jar is declared as
dependency, and maven-war-plugin is configured to overlay war with cfg
jar, and cfg is excluded from packaging via packagingExcludes param.
In m2eclipse there were no issues reported on the project pom. Now pom
editor in m2e reports error (and not a warning):

"overlay [ id foo.bar:foo.bar.cfg] is not a dependency of the project."

maven-war-plugin 2.1.1, and maven-jar-plugin 2.3.1 are being used.


My other issue is with lifecycle-mapping. Using info from
http://wiki.eclipse.org/M2E_plugin_execution_not_covered I've
configured in parent-aggregator pom pluginManagement which allows
execution of multiple plugins for generating sources, and plugin for
adding generated sources as sources directory. Sources get generated
but generated source directories do not get added to eclipse
project(s) as source directories.


Any ideas what could be wrong?

Thanks in advance!

Regards,
Stevo.


Back to the top