Configure abstract executions

2010-08-12 Thread Jens.Baitinger
Hi,

 

Some of my modules has to be build with aspect while others don't.
Currently I have the full config for aspectj in each of those modules,
but it is always the same (see below). Is it possible to declare this
execution in a parent pom and then only declare that for this module
there is an additional execution necessary. Or is a profile the correct
way?

 

Greetings

Jens

 

n

 
groupIdorg.codehaus.mojo/groupId

 
artifactIdaspectj-maven-plugin/artifactId

 
version1.3/version

 

 
executions

 
execution

 
configuration

 
verbosetrue/verbose

 
privateScopetrue/privateScope

 
complianceLevel1.6/complianceLevel

 
showWeaveInfotrue/showWeaveInfo

 

 
showWarningstrue/showWarnings

 
showDeprecationtrue/showDeprecation

 

 
includes

 
include**/*.java/include

 
include**/*.aj/include

 
/includes

 

 
aspectLibraries

 
aspectLibrary

 
groupIdx/groupId

 
artifactIdx/artifactId

 
/aspectLibrary

 
/aspectLibraries

 

 
/configuration

 

 
goals

 
goalcompile/goal

 
goaltest-compile/goal

 
/goals

 
/execution

 
/executions

 

   /plugin



Re: Configure abstract executions

2010-08-12 Thread Stephen Connolly
if you put the def in pluginManagement and then in the child modules you
just reference the plugin in build/plugins then the config for that plugin
will be pulled from the pluginManagement

On 12 August 2010 10:01, jens.baitin...@innovations.de wrote:

 Hi,



 Some of my modules has to be build with aspect while others don't.
 Currently I have the full config for aspectj in each of those modules,
 but it is always the same (see below). Is it possible to declare this
 execution in a parent pom and then only declare that for this module
 there is an additional execution necessary. Or is a profile the correct
 way?



 Greetings

 Jens



 n


 groupIdorg.codehaus.mojo/groupId


 artifactIdaspectj-maven-plugin/artifactId


 version1.3/version




 executions


 execution


 configuration


 verbosetrue/verbose


 privateScopetrue/privateScope


 complianceLevel1.6/complianceLevel


 showWeaveInfotrue/showWeaveInfo




 showWarningstrue/showWarnings


 showDeprecationtrue/showDeprecation




 includes


 include**/*.java/include


 include**/*.aj/include


 /includes




 aspectLibraries


 aspectLibrary


 groupIdx/groupId


 artifactIdx/artifactId


 /aspectLibrary


 /aspectLibraries




 /configuration




 goals


 goalcompile/goal


 goaltest-compile/goal


 /goals


 /execution


 /executions



   /plugin