You can specify a pom project (with <packaging>pom</packaging>) as your
parent project and set up <pluginManagement> there. And then add the
following,
<parent>
<groupId>[parent-group-id]</groupId>
<artifactId>[parent-artifact-id]</artifactId>
<version>[parent-version]</version>
</parent>
to you project's pom.xml to inherit the pom.xml.
It might be a good idea to have a look at Maven2 sources fo pom
inheritence and see how they are structured.
Hope that helps,
Rahul
[EMAIL PROTECTED] wrote:
I just got to the same conclusion, but now I'm a
little confused how the POM inheritance works. How do
I specify in my pom.xml what the parent POM is?
Thanks,
Chris
--- dan tran <[EMAIL PROTECTED]> wrote:
No you can not do it from system wide settings.xml
http://maven.apache.org/maven-settings/settings.html
descriptor does not
have pluginManagement
How ever you can configure your project wide root
pom as I have suggested.
http://maven.apache.org/maven-model/maven.html#class_pluginManagement
-Dan
On 1/3/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
wrote:
Your suggestion still requires me to edit pom.xml
(and
I don't even understand how that
"pluginManagement"
stuff works). What I'm really looking for is
something
which I can configure in
MAVEN_HOME/conf/settings.xml
or somewhere else. My goal is to avoid putting any
settings into the POM, unless I want to override
my
custom default system-wide plugin settings.
I may misunderstand how exactly this works ...
Thanks,
Chris
--- dan tran <[EMAIL PROTECTED]> wrote:
you can do that with build-->pluginManagement
element
-D
On 1/3/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
wrote:
I forgot to mention that this is related to
Maven2
(2.0.1)
--- [EMAIL PROTECTED] wrote:
I'd like to preconfigure a couple of plugins
(e.g.
javadoc, etc.), so that they don't have to
be
configured in each single project. But it
should
still
be possible to overwrite those settings
(e.g. if
we
deal with a customer project which has very
specific
requirements for Javadoc, etc.).
I looked at the settings descriptor and can
not
find
anything related to plugins. Any hint on
whether
this
is possible (and how) or not?
Thanks,
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]