Unable to commit files. Maven - java

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 ?

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?

Jenkins fails to compile Maven for my Selenium Project

I am trying to schedule my project on Maven. It uses Apache POI. Project works fine on my Laptop but it fails to compile Maven on Jenkins that is on a remote machine in our office. The error I face is:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile** (default-testCompile) on project GunAV-test-automation: Compilation failure: Compilation failure:
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/Mytest/-42/src/test/java/utilities/ReadExcel.java:[11,37] **package org.apache.poi.xssf.usermodel does not exist**
[ERROR] /C:/Program Files (x86)/Jenkins/workspace/Mytest/-42/src/test/java/utilities/ReadExcel.java:[12,37] package org.apache.poi.xssf.usermodel does not exist**
[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
How could I fix this issue?
To fix a compilation error
package org.apache.poi.xssf.usermodel does not exist
you should add a poi-ooxml maven dependency:
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>4.1.2</version>
</dependency>
This dependency contains org.apache.poi.xssf.usermodel package.

error jython when running command "mvn clean package"

I am facing the following error when I run the maven command mvn clean package. The error is :
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:27 min
[INFO] Finished at: 2019-12-03T14:03:55+07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.sf.mavenjython:jython-compile-maven-plugin:1.4:jython (default) on project core-ism-engine: Jython failed with return code: -1 -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :core-ism-engine

Building JAX-WS project with maven

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

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.

Categories

Resources