Axis2 maven plugin: repository 301 Moved Permanently

2010-01-26 Thread Dzmitry Lazerka
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
htmlhead
title301 Moved Permanently/title
/headbody
h1Moved Permanently/h1
pThe 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
addressApache 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
groupIdorg.apache.axis2/groupId
artifactIdaxis2-wsdl2code-maven-plugin/artifactId
configuration
wsdlFilepartner.wsdl/wsdlFile
outputDirectorysrc/outputDirectory
packageNameorg.apatar.salesforce-api/packageName
/configuration
executions
execution
goals
goalwsdl2code/goal
/goals
/execution
/executions
/plugin


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


Re: Axis2 maven plugin: repository 301 Moved Permanently

2010-01-26 Thread Andreas Veithen
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 dlaze...@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
 htmlhead
 title301 Moved Permanently/title
 /headbody
 h1Moved Permanently/h1
 pThe 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
 addressApache 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
                groupIdorg.apache.axis2/groupId
                artifactIdaxis2-wsdl2code-maven-plugin/artifactId
                configuration
                    wsdlFilepartner.wsdl/wsdlFile
                    outputDirectorysrc/outputDirectory
                    packageNameorg.apatar.salesforce-api/packageName
                /configuration
                executions
                    execution
                        goals
                            goalwsdl2code/goal
                        /goals
                    /execution
                /executions
            /plugin


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