Maven Maven antrun插件跳过父任务
我有一个包含maven ant任务的父pom,该任务需要由所有子级执行:Maven Maven antrun插件跳过父任务,maven,ant,maven-ant-tasks,Maven,Ant,Maven Ant Tasks,我有一个包含maven ant任务的父pom,该任务需要由所有子级执行: org.apache.maven.plugins maven antrun插件 设置脚本权限 初始化 跑 这就是我在自己的工作父母pom中实现它的方式: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId>
org.apache.maven.plugins
maven antrun插件
设置脚本权限
初始化
跑
这就是我在自己的工作父母pom中实现它的方式:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>set-scripts-rights</id>
<phase>initialize</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<skip>${skip.property.name}</skip>
<tasks> <!-- NOTE: tasks is deprecated, consider using target instead -->
<!-- The tasks that needs to be executed-->
</tasks> <!-- NOTE: tasks is deprecated, consider using target instead -->
</configuration>
</execution>
</executions>
</plugin>
org.apache.maven.plugins
maven antrun插件
设置脚本权限
初始化
跑
${skip.property.name}
触发子级时,设置属性${skip.property.name},父级pom应将其拾取。这就是我在自己的工作父级pom中实现它的方式:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>set-scripts-rights</id>
<phase>initialize</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<skip>${skip.property.name}</skip>
<tasks> <!-- NOTE: tasks is deprecated, consider using target instead -->
<!-- The tasks that needs to be executed-->
</tasks> <!-- NOTE: tasks is deprecated, consider using target instead -->
</configuration>
</execution>
</executions>
</plugin>
org.apache.maven.plugins
maven antrun插件
设置脚本权限
初始化
跑
${skip.property.name}
在触发子级时,设置属性${skip.property.name},父级pom应选择该属性。此问题是由maven antrun插件版本引起的。我使用的版本不支持使用skip。一旦更新到最新版本就可以了。这个问题是由maven antrun插件的版本引起的。我使用的版本不支持使用skip。一旦更新到最新版本就可以了。