[ 
https://issues.apache.org/jira/browse/AXIS2-4412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12725668#action_12725668
 ] 

Martin Kidby commented on AXIS2-4412:
-------------------------------------

Thankyou for your reply.

I am sorry to say that I know virtually nothing about the way axis/maven work 
in conjunction with their controlling xml files as I have only "self taught" 
the minimum necessary in order to use WSDL2java to generate a skeleton web 
service which I can then flesh out.

I had assumed that my problem was related to our proxy server and/or the port 
being used for the attempted comms. On that basis I had spoken to our support 
department and got them to give me the required access to port 8181 (as per 
that shown on the repository web site).

As a result of your email, I looked in the Maven documentation and found the 
"Configuring a proxy" section which mentions a file 
${user.home}/.m2/settings.xml

I have not configured {user.home} and cannot find a ".m2" directory anywhere. 
The only settings.xml file I could find was in my 
C:\Axis\apache-maven-2.1.0\conf directory.

I (together with our support people) made changes to that file but to no avail. 
Our main problem was how much of this file we needed to configure (and exactly 
what each element should be set to). So in order to expedite matters, they 
connected my pc to the web "outside the firewall".

I was then able to build axis2.

I am really sorry to appear so thick, but after the build I expected to see a 
directory structure similar to that obtained when downloading an Axis2 binary 
distribution. However I find that I do not have a bin directory and that the 
target/lib contains only an axis2-1.5.jar

With the binary distributions I have previously downloaded, the lib directory 
contained many axis2-****.jar files - is this just a change of approach since 
v1.3 and v1.4.1?

I apologise again for my lack of understanding, but wishing to run WSDL2java, 
what else do I need to do/put into a manually created bin directory? I have 
found WSDL2java.bat & .sh files etc. in my 
C:\Axis\axis2-1.5\modules\tool\script directory. Should I just copy these to my 
"manual" bin directory?

Thank you for your help and tolerance,

Martin

 



> Unable to build Axis2 (v1.5) as maven reports "Unable to get resource 
> 'org.apache:apache:pom:3' from repository central"
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4412
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4412
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>         Environment: Maven v2.1.0 Java v1.5.0_11 Windows XP v.5.1
>            Reporter: Martin Kidby
>
> In the past I have downloaded the axis2 binary distributions (versions 1.3 & 
> 1.4.1) without any problem.
> However I have encountered a problem with my service, which is that of an 
> "Unexpected Sub-Element" exception, which is as one previously encountered 
> and "resolved" (see http://issues.apache.org/jira/browse/AXIS2-3037)
> As a result I have downloaded the Axis2 source distribution (v1.5) and 
> manually applied the ui.patch (because that was designed for use with v1.2).
> I then downloaded the Maven2 binary distribution in order to build the Axis2 
> binaries.
> However the build (mvn -e install) will not work as it appears to be unable 
> to download its required repository elements (see below).
> What am I doing wrong? Any assistance you can offer will be greatly 
> appreciated.
> Thank you, (desparate) Martin
> I get the following results:
> C:\Axis\axis2-1.5>mvn -v
> Apache Maven 2.1.0 (r755702; 2009-03-18 19:10:27+0000)
> Java version: 1.5.0_11
> Java home: C:\java\jdk1.5.0_11\jre
> Default locale: en_GB, platform encoding: Cp1252
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> and
> C:\Axis\axis2-1.5>mvn -e install
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> Downloading: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom
> [WARNING] Unable to get resource 'org.apache:apache:pom:3' from repository 
> central (http://repo1.maven.org/maven2): Error
>                                               transferring file: Connection 
> timed out: connect
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> GroupId: org.apache
> ArtifactId: apache
> Version: 3
> Reason: Unable to download the artifact from any repository
>   org.apache:apache:pom:3
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Cannot find parent: 
> org.apache:apache for project: org.apache.axis2:axis2:pom:1.5
> :axis2:pom:1.5
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:432)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:300)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find 
> parent: org.apache:apache for project: org.apache.axis2:ax
> apache.axis2:axis2:pom:1.5
>         at 
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1398)
>         at 
> org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
>         at 
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
>         at 
> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:632)
>         at 
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:515)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:419)
>         ... 11 more
> Caused by: org.apache.maven.project.ProjectBuildingException: POM 
> 'org.apache:apache' not found in repository: Unable to download th
> ry
>   org.apache:apache:pom:3
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project org.apache:apache
>         at 
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
>         at 
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1394)
>         ... 17 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: 
> Unable to download the artifact from any repository
>   org.apache:apache:pom:3
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>         at 
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
>         at 
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
>         at 
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
>         ... 18 more
> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to 
> download the artifact from any repository
>         at 
> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:349)
>         at 
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
>         ... 20 more
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 22 seconds
> [INFO] Finished at: Fri Jun 26 16:47:26 BST 2009
> [INFO] Final Memory: 1M/2M
> [INFO] 
> ------------------------------------------------------------------------
> C:\Axis\axis2-1.5>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to