You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/04/05 16:52:00 UTC

[jira] [Updated] (MANTRUN-199) Impossible to use combine.* attributes with maven-antrun-plugin configuration

     [ https://issues.apache.org/jira/browse/MANTRUN-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov updated MANTRUN-199:
-----------------------------------
    Fix Version/s:     (was: 3.0.0)

> Impossible to use combine.* attributes with maven-antrun-plugin configuration
> -----------------------------------------------------------------------------
>
>                 Key: MANTRUN-199
>                 URL: https://issues.apache.org/jira/browse/MANTRUN-199
>             Project: Maven Antrun Plugin
>          Issue Type: Bug
>    Affects Versions: 1.8
>            Reporter: Kristian Kraljic
>            Priority: Major
>
> Duplicating MANTRUN-179 for 1.8, also raising priority to "Major" as no workaround seems to be present (in comparison to "Minor" bugs). Original text: 
> {quote}
> It appears that reusing configurations with the maven-antrun-plugin is impossible. I cannot figure a workaround. See the following simple example:
> ...
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <version>1.7</version>
> <configuration>
> <target>
> <echo>From the pluginManagement</echo>
> </target>
> </configuration>
> </plugin>
> </plugins>
> </pluginManagement>
> ...
> <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>test1</id>
> <goals>
> <goal>run</goal>
> </goals>
> <phase>validate</phase>
> <configuration>
> <target name="mytest" combine.children="append">
> <echo>From the exec config</echo>
> </target>
> </configuration>
> </execution>
> </executions>
> </plugin>
> </plugins>
> The combined configuration looks correct in the effective-pom:
> <target combine.children="append" name="mytest">
> <echo>From the pluginManagement</echo>
> <echo>From the exec config</echo>
> </target>
> But, executing this fails because Ant does not support the attribute:
> [INFO] An Ant BuildException has occured: Unexpected attribute "combine.children"
> around Ant part ...<target combine.children="append" name="mytest">... @ 3:49 in ...\target\antrun\build-mytest.xml
> It would seem appropriate to remove the POM combine.* attributes when writing out the build-mytest.xml file.
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)