Building JAX-WS project with maven - java

I tried to build the project https://github.com/javaee/metro-jax-ws
but I got these errors:
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not find artifact org.glassfish.jaxb:jaxb-bom:pom:2.3.1-b171012.0423 in jvnet-nexus-releases (https://maven.java.net/content/repositories/releases/) # line 208, column 25
[ERROR] Non-resolvable import POM: Failure to find org.glassfish.jaxb:jaxb-bom:pom:2.3.1-b171012.0423 in https://maven.java.net/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of jvnet-nexus-releases has elapsed or updates are forced # com.sun.xml.ws:jaxws-ri-bom:2.3.1-SNAPSHOT, /Users/lopes/Downloads/metro-jax-ws-master/jaxws-ri/boms/bom/pom.xml, line 208, column 25
#
[ERROR] The build could not read 2 projects -> [Help 1]
[ERROR]
[ERROR] The project com.sun.xml.ws:jaxws-ri-bom:2.3.1-SNAPSHOT (/Users/lopes/Downloads/metro-jax-ws-master/jaxws-ri/boms/bom/pom.xml) has 1 error
[ERROR] Non-resolvable import POM: Could not find artifact org.glassfish.jaxb:jaxb-bom:pom:2.3.1-b171012.0423 in jvnet-nexus-releases (https://maven.java.net/content/repositories/releases/) # line 208, column 25 -> [Help 2]
[ERROR]
[ERROR] The project com.sun.xml.ws:jaxws-ri-bom-ext:2.3.1-SNAPSHOT (/Users/lopes/Downloads/metro-jax-ws-master/jaxws-ri/boms/bom-ext/pom.xml) has 1 error
[ERROR] Non-resolvable import POM: Failure to find org.glassfish.jaxb:jaxb-bom:pom:2.3.1-b171012.0423 in https://maven.java.net/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of jvnet-nexus-releases has elapsed or updates are forced # com.sun.xml.ws:jaxws-ri-bom:2.3.1-SNAPSHOT, /Users/lopes/Downloads/metro-jax-ws-master/jaxws-ri/boms/bom/pom.xml, line 208, column 25 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Try first:
mvn clean install -U
If it does not help delete directory
{yourHomeDir}/.m2/repository/org/glassfish/jaxb/jaxb-bom

Related

Maven Install Failed with POM Error in Spring Tool Suite

I get the following error when I "Maven Install" in Sprint Tool Suite 4.
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM C:\Users\user\.m2\repository\org\springframework\boot\spring-boot-starter-parent\1.3.3.RELEASE\spring-boot-starter-parent-1.3.3.RELEASE.pom: Expected root element 'project' but found 'html' (position: START_TAG seen <!DOCTYPE html>\n<html ng-app="artifactory.ui">... #2:31) # C:\Users\user\.m2\repository\org\springframework\boot\spring-boot-starter-parent\1.3.3.RELEASE\spring-boot-starter-parent-1.3.3.RELEASE.pom, line 2, column 31
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project OGITS:hogehoge.API:1.0.0 (C:\Workspaces\hogehogeRepo\hogehogeAPIServer\pom.xml) has 1 error
[ERROR] Non-parseable POM C:\Users\user\.m2\repository\org\springframework\boot\spring-boot-starter-parent\1.3.3.RELEASE\spring-boot-starter-parent-1.3.3.RELEASE.pom: Expected root element 'project' but found 'html' (position: START_TAG seen <!DOCTYPE html>\n<html ng-app="artifactory.ui">... #2:31) # C:\Users\user\.m2\repository\org\springframework\boot\spring-boot-starter-parent\1.3.3.RELEASE\spring-boot-starter-parent-1.3.3.RELEASE.pom, line 2, column 31 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException
Does anyone have any ideas how to solve this problem?

Unable to commit files. Maven

I've problem with release:prepare in Maven. When I enter "mvn release:prepare" I get error
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project com.joledzki.petclinic2: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-commit command failed.
[ERROR] Command output:
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
pom.xml
<scm>
<developerConnection>scm:git:git#github.com:JakubOledzki/petclinic2.git</developerConnection>
<tag>com.joledzki.petclinic2-0.0.2</tag>
Build work correct. Someone has a solution ?

Non-resolvable parent POM for com.example:demo:0.0.1-SNAPSHOT

This is just a demo project downloaded from : https://start.spring.io/
I am very new to this and don't know how to proceed
The Build error that I am getting.
[INFO] Scanning for projects...
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.0.4.RELEASE/spring-boot-starter-parent-2.0.4.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.example:demo:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.4.RELEASE from/to central (https://repo.maven.apache.org/maven2): Unrecognized SSL message, plaintext connection? and 'parent.relativePath' points at no local POM # line 14, column 10
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.example:demo:0.0.1-SNAPSHOT (C:\Users\U660221\Downloads\demo\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.example:demo:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.4.RELEASE from/to central (https://repo.maven.apache.org/maven2): Unrecognized SSL message, plaintext connection? and 'parent.relativePath' points at no local POM # line 14, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
You can use a tag in your POM like this :
<parent>
<artifactId>spring-boot-starter-parent</artifactId>
<groupId>org.springframework.boot</groupId>
<version>1.5.7.RELEASE</version>
<relativePath/>
</parent>

Open Daylight project build issue

I have downloaded and imported all the tutorials available in the below git
https://github.com/opendaylight/coretutorials/tree/master/toaster
While doing a maven install i am getting the below issue
[INFO] Scanning for projects...
[INFO] Downloading: http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/odlparent/odlparent/1.6.0-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.opendaylight.odlparent:odlparent:1.6.0-SNAPSHOT/maven-metadata.xml from/to opendaylight-snapshot (http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/): connect timed out
[INFO] Downloading: http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/odlparent/odlparent/1.6.0-SNAPSHOT/odlparent-1.6.0-SNAPSHOT.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.opendaylight.toaster:toaster-parent:0.1.0-SNAPSHOT: Could not transfer artifact org.opendaylight.odlparent:odlparent:pom:1.6.0-SNAPSHOT from/to opendaylight-snapshot (http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/): connect timed out and 'parent.relativePath' points at no local POM # line 16, column 13
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.opendaylight.toaster:toaster-parent:0.1.0-SNAPSHOT (C:\Users\609620968\Documents\coretutorials\toaster\ch7-ToasterJMX\parent\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.opendaylight.toaster:toaster-parent:0.1.0-SNAPSHOT: Could not transfer artifact org.opendaylight.odlparent:odlparent:pom:1.6.0-SNAPSHOT from/to opendaylight-snapshot (http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/): connect timed out and 'parent.relativePath' points at no local POM # line 16, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Am i missing some thing?. it is not able to find the oldparent odlparentlite etc. is there a way to add this into my local maven.
The version specified for the artifact is wrong. Please check this link and correct the version.

Unable to build JBoss Helloworld example

I am trying my hand at JBoss - and I'm completely in the dark. I have set up the JBoss server on my HP laptop running Ubuntu 14.4. An instance of JBoss EAP 6.4.0 appears to start okay.
However, when I unpack JBoss's Quickstart examples found here into ~/jboss-eap-quickstarts-6.4.0.GA, go to the helloworld web app folder and try to deploy the example, I get the following bit of ugliness:
owen#owen-HP-250-G3-Notebook-PC:~/jboss-eap-quickstarts-6.4.0.GA/helloworld$ mvn clean install jboss-as:deploy
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Failure to find org.jboss.spec:jboss-javaee-6.0:pom:3.0.2.Final-redhat-15 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced # line 67, column 25
[ERROR] 'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing. # line 80, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar is missing. # line 88, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar is missing. # line 95, column 21
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.jboss.quickstarts.eap:jboss-helloworld:6.4.0.GA (/home/owen/jboss-eap-quickstarts-6.4.0.GA/helloworld/pom.xml) has 4 errors
[ERROR] Non-resolvable import POM: Failure to find org.jboss.spec:jboss-javaee-6.0:pom:3.0.2.Final-redhat-15 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced # line 67, column 25 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing. # line 80, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar is missing. # line 88, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar is missing. # line 95, column 21
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
As described above, there appears to be errors with local Maven repositories, but I'm new to Maven too. What does it all mean? How might I fix it so the example is deployed to my server?
As was suggested by #Tunaki in response to this question, I removed my ~/.m2 directory and entered "mvn -U clean install jboss-as:deploy". The result appears to be almost the same as above sans the stuff about resolution not being reattempted:
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/jboss/spec/jboss-javaee-6.0/3.0.2.Final-redhat-15/jboss-javaee-6.0-3.0.2.Final-redhat-15.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not find artifact org.jboss.spec:jboss-javaee-6.0:pom:3.0.2.Final-redhat-15 in central (https://repo.maven.apache.org/maven2) # line 67, column 25
[ERROR] 'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing. # line 80, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar is missing. # line 88, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar is missing. # line 95, column 21
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.jboss.quickstarts.eap:jboss-helloworld:6.4.0.GA (/home/owen/jboss-eap-quickstarts-6.4.0.GA/helloworld/pom.xml) has 4 errors
[ERROR] Non-resolvable import POM: Could not find artifact org.jboss.spec:jboss-javaee-6.0:pom:3.0.2.Final-redhat-15 in central (https://repo.maven.apache.org/maven2) # line 67, column 25 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing. # line 80, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar is missing. # line 88, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar is missing. # line 95, column 21
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Any help appreciated....

Categories

Resources