I am new to maven. I have written build scripts using ant. I am trying to display all the evn properties, user defined properties, system properties etc. in maven. In ant i could do the following .
I tried to do the same with maven with the maven-antrun-plugin
But get the following error.
Embedded error: Could not create task or type of type: echoproperties.
Ant could not find the task or a class this task relies upon.
How can i see all properties in maven with or without using echoproperties. This is my configuration in 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>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…