Embedded error: Could not create task or type of type: setproxy. ----------------------------------------------------------------
Key: MANTRUN-69 URL: http://jira.codehaus.org/browse/MANTRUN-69 Project: Maven 2.x Antrun Plugin Issue Type: Bug Affects Versions: 1.1, 1.0 Environment: Windows XP Pro; Maven 2.0.4; JDK 1.5.0_10 Reporter: Thomas Kappen In order to access an external resource via a proxy within an ant build script, I need to configure a proxy. The antrun proxy does not recognise the Maven proxy settings in the settings.xml. Further, the <setproxy> ant task does not work: This configuration will cause an error: <build> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>test</phase> <configuration> <tasks> <!-- Place any ant task here. You can add anything you can add between <target> and </target> in a build.xml. --> <setproxy proxyhost="proxyhost" proxyport="8080" nonproxyhosts="XYZ" /> <ant antfile="build.xml"/> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> </plugins> </build> The error: INFO] ------------------------------------------------------------------------ ERROR] BUILD ERROR INFO] ------------------------------------------------------------------------ INFO] Error executing ant tasks I'm wondering about this error, because <setproxy> is an build-in ant task. This error occurs also, if the <setproxy> task is being used in the called ant build script. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira