You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Thomas Kappen (JIRA)" <ji...@codehaus.org> on 2007/02/28 17:00:44 UTC

[jira] Created: (MANTRUN-69) Embedded error: Could not create task or type of type: setproxy.

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

        

[jira] Closed: (MANTRUN-69) Embedded error: Could not create task or type of type: setproxy.

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MANTRUN-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carlos Sanchez closed MANTRUN-69.
---------------------------------

      Assignee: Carlos Sanchez
    Resolution: Not A Bug

As explained you need ant-nodeps in the classpath

> 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.0, 1.1
>         Environment: Windows XP Pro; Maven 2.0.4; JDK 1.5.0_10
>            Reporter: Thomas Kappen
>            Assignee: Carlos Sanchez
>
> 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