You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Dzmitry Lazerka <dl...@gmail.com> on 2010/01/26 11:25:47 UTC

Axis2 maven plugin: repository 301 Moved Permanently

Hello,

I get several errors while using axis2-wsdl2code-maven-plugin, just one of them:

Downloading: http://ws.zones.apache.org/repository2/org/apache/axis2/axis2-xmlbeans/1.5.1/axis2-xmlbeans-1.5.1.pom
[INFO] Unable to find resource
'org.apache.axis2:axis2-xmlbeans:pom:1.5.1' in repository
apache-ws-snapshots2 (http://ws.zones.apache.org/repository2)
Downloading: http://tomcat.apache.org/dev/dist/m2-repository/org/apache/axis2/axis2-xmlbeans/1.5.1/axis2-xmlbeans-1.5.1.pom
[INFO] Unable to find resource
'org.apache.axis2:axis2-xmlbeans:pom:1.5.1' in repository
tomcat-repository (http://tomcat.apache.org/dev/dist/m2-repository)
Downloading: http://repo1.maven.org/eclipse/org/apache/axis2/axis2-xmlbeans/1.5.1/axis2-xmlbeans-1.5.1.pom
[INFO] Unable to find resource
'org.apache.axis2:axis2-xmlbeans:pom:1.5.1' in repository eclipse-repo
(http://repo1.maven.org/eclipse)
Downloading: https://maven-repository.dev.java.net/nonav/repository//org.apache.axis2/poms/axis2-xmlbeans-1.5.1.pom
367b downloaded  (axis2-xmlbeans-1.5.1.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'b44c461d6051ba2c4de115ff3f4f03ebb446353e'; remote = '<!DOCTYPE' -
RETRYING
Downloading: https://maven-repository.dev.java.net/nonav/repository//org.apache.axis2/poms/axis2-xmlbeans-1.5.1.pom
367b downloaded  (axis2-xmlbeans-1.5.1.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'b44c461d6051ba2c4de115ff3f4f03ebb446353e'; remote = '<!DOCTYPE' -
IGNORING
[WARNING] POM for 'org.apache.axis2:axis2-xmlbeans:pom:1.5.1:runtime'
is invalid.
Its dependencies (if any) will NOT be available to the current build.


I discovered that it occurs because several servers provide an html
error message along with 301, like these:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a
href="http://download.java.net/maven/1/org.apache.maven/poms/maven-plugin-api-2.0.7.pom">here</a>.</p>
<hr>
<address>Apache Server at maven-repository.dev.java.net Port 443</address>
</body></html>


That prevents me from using axis2-wsdl2code-maven-plugin.
Do you know any workaround of this?


My plugin configuration is:
            <plugin>
                <groupId>org.apache.axis2</groupId>
                <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
                <configuration>
                    <wsdlFile>partner.wsdl</wsdlFile>
                    <outputDirectory>src</outputDirectory>
                    <packageName>org.apatar.salesforce-api</packageName>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>wsdl2code</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>


-----
Best regards,
Dzmitry Lazerka, Altoros Systems
+375 (29) 502-9579
dzmitry.lazerka@altoros.com

Re: Axis2 maven plugin: repository 301 Moved Permanently

Posted by Andreas Veithen <an...@gmail.com>.
That is because java.net messed up their repository. See [1] for
details. Note that this thread discusses a problem with building the
Axis2 sources (which is a bit different from just using
axis2-wsdl2code-maven-plugin), but the root cause is the same.

Andreas

[1] http://markmail.org/message/a5kluack6ylws2k3

On Tue, Jan 26, 2010 at 11:25, Dzmitry Lazerka <dl...@gmail.com> wrote:
> Hello,
>
> I get several errors while using axis2-wsdl2code-maven-plugin, just one of them:
>
> Downloading: http://ws.zones.apache.org/repository2/org/apache/axis2/axis2-xmlbeans/1.5.1/axis2-xmlbeans-1.5.1.pom
> [INFO] Unable to find resource
> 'org.apache.axis2:axis2-xmlbeans:pom:1.5.1' in repository
> apache-ws-snapshots2 (http://ws.zones.apache.org/repository2)
> Downloading: http://tomcat.apache.org/dev/dist/m2-repository/org/apache/axis2/axis2-xmlbeans/1.5.1/axis2-xmlbeans-1.5.1.pom
> [INFO] Unable to find resource
> 'org.apache.axis2:axis2-xmlbeans:pom:1.5.1' in repository
> tomcat-repository (http://tomcat.apache.org/dev/dist/m2-repository)
> Downloading: http://repo1.maven.org/eclipse/org/apache/axis2/axis2-xmlbeans/1.5.1/axis2-xmlbeans-1.5.1.pom
> [INFO] Unable to find resource
> 'org.apache.axis2:axis2-xmlbeans:pom:1.5.1' in repository eclipse-repo
> (http://repo1.maven.org/eclipse)
> Downloading: https://maven-repository.dev.java.net/nonav/repository//org.apache.axis2/poms/axis2-xmlbeans-1.5.1.pom
> 367b downloaded  (axis2-xmlbeans-1.5.1.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> 'b44c461d6051ba2c4de115ff3f4f03ebb446353e'; remote = '<!DOCTYPE' -
> RETRYING
> Downloading: https://maven-repository.dev.java.net/nonav/repository//org.apache.axis2/poms/axis2-xmlbeans-1.5.1.pom
> 367b downloaded  (axis2-xmlbeans-1.5.1.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> 'b44c461d6051ba2c4de115ff3f4f03ebb446353e'; remote = '<!DOCTYPE' -
> IGNORING
> [WARNING] POM for 'org.apache.axis2:axis2-xmlbeans:pom:1.5.1:runtime'
> is invalid.
> Its dependencies (if any) will NOT be available to the current build.
>
>
> I discovered that it occurs because several servers provide an html
> error message along with 301, like these:
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>301 Moved Permanently</title>
> </head><body>
> <h1>Moved Permanently</h1>
> <p>The document has moved <a
> href="http://download.java.net/maven/1/org.apache.maven/poms/maven-plugin-api-2.0.7.pom">here</a>.</p>
> <hr>
> <address>Apache Server at maven-repository.dev.java.net Port 443</address>
> </body></html>
>
>
> That prevents me from using axis2-wsdl2code-maven-plugin.
> Do you know any workaround of this?
>
>
> My plugin configuration is:
>            <plugin>
>                <groupId>org.apache.axis2</groupId>
>                <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
>                <configuration>
>                    <wsdlFile>partner.wsdl</wsdlFile>
>                    <outputDirectory>src</outputDirectory>
>                    <packageName>org.apatar.salesforce-api</packageName>
>                </configuration>
>                <executions>
>                    <execution>
>                        <goals>
>                            <goal>wsdl2code</goal>
>                        </goals>
>                    </execution>
>                </executions>
>            </plugin>
>
>
> -----
> Best regards,
> Dzmitry Lazerka, Altoros Systems
> +375 (29) 502-9579
> dzmitry.lazerka@altoros.com
>