RE: Problem running axis2-wsdl2code-maven-plugin

2009-11-18 Thread Parmelee,Sean
Hi Joen,

Can you take a look at C:\Documents and 
Settings\jmoren02\.m2\repository\org\apache\maven\maven-plugin-api\2.0.7\maven-plugin-api-2.0.7.pom?

Maven was complaining about this POM being invalid so I wonder why/what about 
it is invalid?

The http://ws.zones.apache.org/repository2 repository is configured in the 
axis2-parent POM. I think what is happening is that since v2.0.7 of the 
maven-plugin-api appears to be invalid, maven is trying to redownload it and is 
looking in all known repositories for the artifact (including the ones 
mentioned in the axis2-parent POM). You might be able to get maven to try and 
grab it out of the central repository first by adding it as a dependency in 
your project's POM, above the Axis2 dependencies. Or just try manually 
overwriting your existing maven-plugin-api-2.0.7.pom with the one in the maven 
central repository?

Hope this helps,
Sean

-Original Message-
From: Joselito D. Moreno [mailto:joenmor...@gmail.com] 
Sent: Tuesday, November 17, 2009 10:03 AM
To: axis-user@ws.apache.org
Subject: Re: Problem running axis2-wsdl2code-maven-plugin

Hi Sean,

Using the workaround mentioned in that JIRA issue, the first error I
am getting (one of many) is this:

[DEBUG] Connecting to repository: 'apache-ws-snapshots2' with url:
'http://ws.zones.apache.org/repository2'.
Downloading: 
http://ws.zones.apache.org/repository2/org/apache/maven/maven-plugin-api/2.0.7/maven-plugin-api-2.0.7.pom
[DEBUG] Access denied to:
http://ws.zones.apache.org/repository2/org/apache/maven/maven-plugin-api/2.0.7/maven-plugin-api-2.0.7.pom
org.apache.maven.wagon.authorization.AuthorizationException: Access
denied to: 
http://ws.zones.apache.org/repository2/org/apache/maven/maven-plugin-api/2.0.7/maven-plugin-api-2.0.7.pom
at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:119)
at 
org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)



I do not understand why something is hosted on a website that gives me
an Access Denied error?  Is there nobody else seeing this issue?  What
is ws.zones.apache.org/repository2 anyway and why is it giving an
Access Denied error?

I'm confused.

Joen

PS
Just to mention again, I am using Axis2 1.5.1, Eclipse Galileo,
M2Eclipse, and Maven 2.2.1.  Although I tried it just using Maven
2.2.1 from the command line (outside of eclipse) and it still failed.

On Mon, Nov 16, 2009 at 4:04 PM, Parmelee,Sean sean.parme...@cerner.com wrote:
 I believe this is related to the issue mentioned here:
 https://issues.apache.org/jira/browse/AXIS2-4549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

 You can try the workaround mentioned in the link to see if that corrects your 
 issue.

 Thanks,
 Sean Parmelee

 -Original Message-
 From: Joselito D. Moreno [mailto:joenmor...@gmail.com]
 Sent: Saturday, November 14, 2009 3:22 PM
 To: axis-user@ws.apache.org
 Subject: Problem running axis2-wsdl2code-maven-plugin

 Hello,

 I do not know if this is the correct mailing list to ask about the
 axis2 wsdl2code maven plugin so please let me know and point me to the
 correct one.

 I have followed the instructions here
 http://ws.apache.org/axis2/tools/1_4/maven-plugins/maven-wsdl2code-plugin.html
 with no luck.  When I run maven clean install on my pom.xml, there
 seems to be issues with downloading process of the
 axis2-wsdl2code-maven-plugin.  Below is the console log I am seeing
 when I run.

 I have tried everything I could.  I ran it using Eclipse Galileo +
 m2eclipse, Netbeans 6.5.1.  I have tried Maven 2.0.10 and 2.2.1.  I
 tried switching the axis2 and axis2-wsdl2code-maven-plugin versions to
 1.4, 1.4.1, 1.5, 1.5.1.

 I have added the dependency:

 dependency
          groupIdorg.apache.axis2/groupId
          artifactIdaxis2/artifactId
          version1.5.1/version
    /dependency

 And the plugin setting:

 plugins
                plugin
                        groupIdorg.apache.axis2/groupId
                        artifactIdaxis2-wsdl2code-maven-plugin/artifactId
                                version1.5.1/version
                        executions
                                execution
                                        goals
                                                goalwsdl2code/goal
                                        /goals
                                configuration
                                        
 packageNamecom.foo.myservice/packageName
                                        
 wsdlFilesrc/main/wsdl/myservice.wsdl/wsdlFile
                                        
 databindingNamexmlbeans/databindingName
                                /configuration
                                /execution
                        /executions
                /plugin
        /plugins



 Has anybody come across this issue?

 Thanks,

 Joen Moreno

 Here

Re: Problem running axis2-wsdl2code-maven-plugin

2009-11-17 Thread Joselito D. Moreno
Hello Sean,

Thanks for the tip but that didn't work.  And it does not seem to
match the errors I'm seeing.  Anybody else seeing the issue I
mentioned?

Joen

On Mon, Nov 16, 2009 at 4:04 PM, Parmelee,Sean sean.parme...@cerner.com wrote:
 I believe this is related to the issue mentioned here:
 https://issues.apache.org/jira/browse/AXIS2-4549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

 You can try the workaround mentioned in the link to see if that corrects your 
 issue.

 Thanks,
 Sean Parmelee

 -Original Message-
 From: Joselito D. Moreno [mailto:joenmor...@gmail.com]
 Sent: Saturday, November 14, 2009 3:22 PM
 To: axis-user@ws.apache.org
 Subject: Problem running axis2-wsdl2code-maven-plugin

 Hello,

 I do not know if this is the correct mailing list to ask about the
 axis2 wsdl2code maven plugin so please let me know and point me to the
 correct one.

 I have followed the instructions here
 http://ws.apache.org/axis2/tools/1_4/maven-plugins/maven-wsdl2code-plugin.html
 with no luck.  When I run maven clean install on my pom.xml, there
 seems to be issues with downloading process of the
 axis2-wsdl2code-maven-plugin.  Below is the console log I am seeing
 when I run.

 I have tried everything I could.  I ran it using Eclipse Galileo +
 m2eclipse, Netbeans 6.5.1.  I have tried Maven 2.0.10 and 2.2.1.  I
 tried switching the axis2 and axis2-wsdl2code-maven-plugin versions to
 1.4, 1.4.1, 1.5, 1.5.1.

 I have added the dependency:

 dependency
          groupIdorg.apache.axis2/groupId
          artifactIdaxis2/artifactId
          version1.5.1/version
    /dependency

 And the plugin setting:

 plugins
                plugin
                        groupIdorg.apache.axis2/groupId
                        artifactIdaxis2-wsdl2code-maven-plugin/artifactId
                                version1.5.1/version
                        executions
                                execution
                                        goals
                                                goalwsdl2code/goal
                                        /goals
                                configuration
                                        
 packageNamecom.foo.myservice/packageName
                                        
 wsdlFilesrc/main/wsdl/myservice.wsdl/wsdlFile
                                        
 databindingNamexmlbeans/databindingName
                                /configuration
                                /execution
                        /executions
                /plugin
        /plugins



 Has anybody come across this issue?

 Thanks,

 Joen Moreno

 Here is the log:

 NetBeans: Executing 'C:\apache-maven-2.0.10\bin\mvn.bat clean install'
 NetBeans:      JAVA_HOME =C:\Program Files\Java\jdk1.6.0_13
 Scanning for projects...
 
 Building DsdExampleWebServiceClientGenerator
   task-segment: [clean, install]
 
 Downloading: 
 http://repo1.maven.org/maven2/org/apache/axis2/axis2-wsdl2code-maven-plugin/1.4/axis2-wsdl2code-maven-plugin-1.4.pom
 855/?
 3712/?
 5479/?
 Downloading: 
 http://repo1.maven.org/maven2/org/apache/axis2/axis2-parent/1.4/axis2-parent-1.4.pom
 47984/?
 Downloading: 
 http://repo1.maven.org/maven2/org/apache/axis2/axis2-wsdl2code-maven-plugin/1.4/axis2-wsdl2code-maven-plugin-1.4.jar
 14634/?
 [clean:clean]
 Downloading: 
 http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.5.1/axis2-1.5.1.pom
 11342/?
 Downloading: 
 http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.5.1/axis2-1.5.1.jar
 2342330/?
 [WARNING] POM for
 'org.apache.maven:maven-plugin-api:pom:2.0.7:runtime' is invalid. It
 will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for
 project org.apache.maven:maven-plugin-api at C:\Documents and
 Settings\jmoren02\.m2\repository\org\apache\maven\maven-plugin-api\2.0.7\maven-plugin-api-2.0.7.pom
 [WARNING] POM for
 'org.apache.maven:maven-plugin-api:pom:2.0.7:runtime' is invalid. It
 will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for
 project org.apache.maven:maven-plugin-api at C:\Documents and
 Settings\jmoren02\.m2\repository\org\apache\maven\maven-plugin-api\2.0.7\maven-plugin-api-2.0.7.pom
 [WARNING] POM for 'org.apache.maven:maven-artifact:pom:2.0.8:runtime'
 is invalid. It will be ignored for artifact resolution. Reason: Not a
 v4.0.0 POM. for project org.apache.maven:maven-artifact at
 C:\Documents and
 Settings\jmoren02\.m2\repository\org\apache\maven\maven-artifact\2.0.8\maven-artifact-2.0.8.pom
 [WARNING] POM for 'org.apache.maven:maven-artifact:pom:2.0.8:runtime'
 is invalid. It will be ignored for artifact resolution. Reason: Not a
 v4.0.0 POM. for project org.apache.maven:maven-artifact at
 C:\Documents and
 Settings\jmoren02\.m2\repository\org\apache\maven\maven-artifact\2.0.8\maven-artifact-2.0.8.pom
 [WARNING] POM for 

Re: Problem running axis2-wsdl2code-maven-plugin

2009-11-17 Thread Joselito D. Moreno
Hi Sean,

Using the workaround mentioned in that JIRA issue, the first error I
am getting (one of many) is this:

[DEBUG] Connecting to repository: 'apache-ws-snapshots2' with url:
'http://ws.zones.apache.org/repository2'.
Downloading: 
http://ws.zones.apache.org/repository2/org/apache/maven/maven-plugin-api/2.0.7/maven-plugin-api-2.0.7.pom
[DEBUG] Access denied to:
http://ws.zones.apache.org/repository2/org/apache/maven/maven-plugin-api/2.0.7/maven-plugin-api-2.0.7.pom
org.apache.maven.wagon.authorization.AuthorizationException: Access
denied to: 
http://ws.zones.apache.org/repository2/org/apache/maven/maven-plugin-api/2.0.7/maven-plugin-api-2.0.7.pom
at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:119)
at 
org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)



I do not understand why something is hosted on a website that gives me
an Access Denied error?  Is there nobody else seeing this issue?  What
is ws.zones.apache.org/repository2 anyway and why is it giving an
Access Denied error?

I'm confused.

Joen

PS
Just to mention again, I am using Axis2 1.5.1, Eclipse Galileo,
M2Eclipse, and Maven 2.2.1.  Although I tried it just using Maven
2.2.1 from the command line (outside of eclipse) and it still failed.

On Mon, Nov 16, 2009 at 4:04 PM, Parmelee,Sean sean.parme...@cerner.com wrote:
 I believe this is related to the issue mentioned here:
 https://issues.apache.org/jira/browse/AXIS2-4549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

 You can try the workaround mentioned in the link to see if that corrects your 
 issue.

 Thanks,
 Sean Parmelee

 -Original Message-
 From: Joselito D. Moreno [mailto:joenmor...@gmail.com]
 Sent: Saturday, November 14, 2009 3:22 PM
 To: axis-user@ws.apache.org
 Subject: Problem running axis2-wsdl2code-maven-plugin

 Hello,

 I do not know if this is the correct mailing list to ask about the
 axis2 wsdl2code maven plugin so please let me know and point me to the
 correct one.

 I have followed the instructions here
 http://ws.apache.org/axis2/tools/1_4/maven-plugins/maven-wsdl2code-plugin.html
 with no luck.  When I run maven clean install on my pom.xml, there
 seems to be issues with downloading process of the
 axis2-wsdl2code-maven-plugin.  Below is the console log I am seeing
 when I run.

 I have tried everything I could.  I ran it using Eclipse Galileo +
 m2eclipse, Netbeans 6.5.1.  I have tried Maven 2.0.10 and 2.2.1.  I
 tried switching the axis2 and axis2-wsdl2code-maven-plugin versions to
 1.4, 1.4.1, 1.5, 1.5.1.

 I have added the dependency:

 dependency
          groupIdorg.apache.axis2/groupId
          artifactIdaxis2/artifactId
          version1.5.1/version
    /dependency

 And the plugin setting:

 plugins
                plugin
                        groupIdorg.apache.axis2/groupId
                        artifactIdaxis2-wsdl2code-maven-plugin/artifactId
                                version1.5.1/version
                        executions
                                execution
                                        goals
                                                goalwsdl2code/goal
                                        /goals
                                configuration
                                        
 packageNamecom.foo.myservice/packageName
                                        
 wsdlFilesrc/main/wsdl/myservice.wsdl/wsdlFile
                                        
 databindingNamexmlbeans/databindingName
                                /configuration
                                /execution
                        /executions
                /plugin
        /plugins



 Has anybody come across this issue?

 Thanks,

 Joen Moreno

 Here is the log:

 NetBeans: Executing 'C:\apache-maven-2.0.10\bin\mvn.bat clean install'
 NetBeans:      JAVA_HOME =C:\Program Files\Java\jdk1.6.0_13
 Scanning for projects...
 
 Building DsdExampleWebServiceClientGenerator
   task-segment: [clean, install]
 
 Downloading: 
 http://repo1.maven.org/maven2/org/apache/axis2/axis2-wsdl2code-maven-plugin/1.4/axis2-wsdl2code-maven-plugin-1.4.pom
 855/?
 3712/?
 5479/?
 Downloading: 
 http://repo1.maven.org/maven2/org/apache/axis2/axis2-parent/1.4/axis2-parent-1.4.pom
 47984/?
 Downloading: 
 http://repo1.maven.org/maven2/org/apache/axis2/axis2-wsdl2code-maven-plugin/1.4/axis2-wsdl2code-maven-plugin-1.4.jar
 14634/?
 [clean:clean]
 Downloading: 
 http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.5.1/axis2-1.5.1.pom
 11342/?
 Downloading: 
 http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.5.1/axis2-1.5.1.jar
 2342330/?
 [WARNING] POM for
 'org.apache.maven:maven-plugin-api:pom:2.0.7:runtime' is invalid. It
 

RE: Problem running axis2-wsdl2code-maven-plugin

2009-11-16 Thread Parmelee,Sean
I believe this is related to the issue mentioned here:
https://issues.apache.org/jira/browse/AXIS2-4549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

You can try the workaround mentioned in the link to see if that corrects your 
issue.

Thanks,
Sean Parmelee

-Original Message-
From: Joselito D. Moreno [mailto:joenmor...@gmail.com] 
Sent: Saturday, November 14, 2009 3:22 PM
To: axis-user@ws.apache.org
Subject: Problem running axis2-wsdl2code-maven-plugin

Hello,

I do not know if this is the correct mailing list to ask about the
axis2 wsdl2code maven plugin so please let me know and point me to the
correct one.

I have followed the instructions here
http://ws.apache.org/axis2/tools/1_4/maven-plugins/maven-wsdl2code-plugin.html
with no luck.  When I run maven clean install on my pom.xml, there
seems to be issues with downloading process of the
axis2-wsdl2code-maven-plugin.  Below is the console log I am seeing
when I run.

I have tried everything I could.  I ran it using Eclipse Galileo +
m2eclipse, Netbeans 6.5.1.  I have tried Maven 2.0.10 and 2.2.1.  I
tried switching the axis2 and axis2-wsdl2code-maven-plugin versions to
1.4, 1.4.1, 1.5, 1.5.1.

I have added the dependency:

dependency
  groupIdorg.apache.axis2/groupId
  artifactIdaxis2/artifactId
  version1.5.1/version
/dependency

And the plugin setting:

plugins
plugin
groupIdorg.apache.axis2/groupId
artifactIdaxis2-wsdl2code-maven-plugin/artifactId
version1.5.1/version
executions
execution
goals
goalwsdl2code/goal
/goals
configuration

packageNamecom.foo.myservice/packageName

wsdlFilesrc/main/wsdl/myservice.wsdl/wsdlFile

databindingNamexmlbeans/databindingName
/configuration
/execution
/executions
/plugin
/plugins



Has anybody come across this issue?

Thanks,

Joen Moreno

Here is the log:

NetBeans: Executing 'C:\apache-maven-2.0.10\bin\mvn.bat clean install'
NetBeans:  JAVA_HOME =C:\Program Files\Java\jdk1.6.0_13
Scanning for projects...

Building DsdExampleWebServiceClientGenerator
   task-segment: [clean, install]

Downloading: 
http://repo1.maven.org/maven2/org/apache/axis2/axis2-wsdl2code-maven-plugin/1.4/axis2-wsdl2code-maven-plugin-1.4.pom
855/?
3712/?
5479/?
Downloading: 
http://repo1.maven.org/maven2/org/apache/axis2/axis2-parent/1.4/axis2-parent-1.4.pom
47984/?
Downloading: 
http://repo1.maven.org/maven2/org/apache/axis2/axis2-wsdl2code-maven-plugin/1.4/axis2-wsdl2code-maven-plugin-1.4.jar
14634/?
[clean:clean]
Downloading: 
http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.5.1/axis2-1.5.1.pom
11342/?
Downloading: 
http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.5.1/axis2-1.5.1.jar
2342330/?
[WARNING] POM for
'org.apache.maven:maven-plugin-api:pom:2.0.7:runtime' is invalid. It
will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for
project org.apache.maven:maven-plugin-api at C:\Documents and
Settings\jmoren02\.m2\repository\org\apache\maven\maven-plugin-api\2.0.7\maven-plugin-api-2.0.7.pom
[WARNING] POM for
'org.apache.maven:maven-plugin-api:pom:2.0.7:runtime' is invalid. It
will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for
project org.apache.maven:maven-plugin-api at C:\Documents and
Settings\jmoren02\.m2\repository\org\apache\maven\maven-plugin-api\2.0.7\maven-plugin-api-2.0.7.pom
[WARNING] POM for 'org.apache.maven:maven-artifact:pom:2.0.8:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM. for project org.apache.maven:maven-artifact at
C:\Documents and
Settings\jmoren02\.m2\repository\org\apache\maven\maven-artifact\2.0.8\maven-artifact-2.0.8.pom
[WARNING] POM for 'org.apache.maven:maven-artifact:pom:2.0.8:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM. for project org.apache.maven:maven-artifact at
C:\Documents and
Settings\jmoren02\.m2\repository\org\apache\maven\maven-artifact\2.0.8\maven-artifact-2.0.8.pom
[WARNING] POM for 'org.apache.maven:maven-project:pom:2.0.7:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM. for project org.apache.maven:maven-project at C:\Documents
and 
Settings\jmoren02\.m2\repository\org\apache\maven\maven-project\2.0.7\maven-project-2.0.7.pom
[WARNING] POM for