maven ant echoproperties task

Posted by user373201 on Stack Overflow See other posts from Stack Overflow or by user373201
Published on 2010-12-26T03:55:08Z Indexed on 2010/12/26 14:54 UTC
Read the original article Hit count: 203

Filed under:

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>

© Stack Overflow or respective owner

Related posts about maven