【发布时间】:2010-12-26 03:55:08
【问题描述】:
我是新手。我已经使用 ant 编写了构建脚本。我正在尝试在 Maven 中显示所有 evn 属性、用户定义的属性、系统属性等。在蚂蚁我可以做以下。
我尝试使用 maven-antrun-plugin 对 maven 做同样的事情
但是得到以下错误。
Embedded error: Could not create task or type of type: echoproperties.
Ant could not find the task or a class this task relies upon.
无论是否使用 echoproperties,我如何查看 maven 中的所有属性。这是我在maven中的配置
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven.plugin.antrun.version}</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo>Displaying value of properties</echo>
<echo>[org.junit.version] ${org.junit.version}</echo>
<echoproperties prefix="org" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
【问题讨论】:
标签: maven