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.
Related
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?
I am trying to do build and deployment from a JENKINS job for my Spring Maven Project but getting below error:
Downloading from central: https://repo.maven.apache.org/maven2/com/oracle/ojdbc6/6.0.0/ojdbc6-6.0.0.pom
[WARNING] The POM for com.oracle:ojdbc6:jar:6.0.0 is missing, no dependency information available
Downloading from central: https://repo.maven.apache.org/maven2/com/oracle/ojdbc6/6.0.0/ojdbc6-6.0.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.942 s
[INFO] Finished at: 2018-09-16T23:17:15+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project SpringBootSmaple: Could not resolve dependencies for project com.springboot.practise:SpringBootSmaple:war:0.1: Could not find artifact com.oracle:ojdbc6:jar:6.0.0 in central (https://repo.maven.apache.org/maven2) -> [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/DependencyResolutionException
Build step 'Invoke top-level Maven targets' marked build as failure
Unable to deploy to IBM WebSphere Application Server, Build Result = FAILURE
Finished: FAILURE
I also installed ojdbc jar in maven by using below command:
mvn install:install-file -Dfile=C:\Documents\SharedJars\ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=6.0.0 -Dpackaging=jar
But still getting the same error. Someone please guide.
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>
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
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....