Oh no, it's different syntax depending on the plugin. Bummer!

/Anders

On Tue, Jan 25, 2011 at 14:50, Christopher Schmidt
<fakod...@googlemail.com>wrote:

> Hi Anders,
>
> doing this:
>
>                 <configuration>
>                     <includes>
>                         <include>pf4mip/persistence/br/*.class</include>
>                         <include>pf4mip/persistence/popo/*.class</include>
>                     </includes>
>                 </configuration>
>
> I get the following error:
>
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to configure plugin parameters for:
> org.codehaus.mojo:openjpa-maven-plugin:1.2
> Cause: When configuring a basic element the configuration cannot contain
> any child elements. Configuration element 'includes'.
>
> But the comma separator seems to work - so, thanks
>
> Christopher
>
> On Tue, Jan 25, 2011 at 1:54 PM, Anders Hammar <and...@hammar.net> wrote:
>
>> includes and excludes should likely be a list of include/exclude
>> (respectively) elements.
>> Here's an example from a different plugin:
>>
>> http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html
>>
>> /Anders
>>
>> PS. I guess it could also be a comma separated list in the includes
>> element as suggested by the docs.
>>
>>
>> On Tue, Jan 25, 2011 at 13:06, Christopher Schmidt <
>> fakod...@googlemail.com> wrote:
>>
>>> Hi all,
>>>
>>> I have two different packages for class enhancement. I use the following
>>> pom.xml snippet
>>>
>>>             <plugin>
>>>                 <groupId>org.codehaus.mojo</groupId>
>>>                 <artifactId>openjpa-maven-plugin</artifactId>
>>>                 <version>1.2</version>
>>>                 <configuration>
>>>                     <includes>pf4mip/persistence/popo/*.class</includes>
>>>
>>>  <excludes>pf4mip/persistence/popo/*Id.class</excludes>
>>>                     <includes>pf4mip/persistence/br/*.class</includes>
>>>                     <excludes>pf4mip/persistence/br/*PK.class</excludes>
>>>                 <configuration/>
>>>                 <executions>
>>>                     <execution>
>>>                         <id>enhancer</id>
>>>                         <phase>process-classes</phase>
>>>                         <goals>
>>>                             <goal>enhance</goal>
>>>                         </goals>
>>>                     </execution>
>>>                 </executions>
>>>             </plugin>
>>>
>>> But it seems that only one include and exclude is recognized. Is that
>>> true? What can I do?
>>>
>>> Thx in advance
>>>
>>> --
>>> Christopher
>>> twitter: @fakod
>>> blog: http://blog.fakod.eu
>>>
>>>
>>
>
>
> --
> Christopher
> twitter: @fakod
> blog: http://blog.fakod.eu
>
>

Reply via email to