Maven using JGit to release project within Eclipse -JGit status failure! [message #1697911] |
Tue, 09 June 2015 14:44 |
Pierre Huttin Messages: 1 Registered: July 2009 |
Junior Member |
|
|
I'm facing to the following problem. I have checkout a git project locally, after I have created the project using "Check out Maven Projects from SCM" my project appear correctly in my workspace and several maven command like: clean, compile, package... works correctly but when I try to use release:prepare I get the following error :
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hello_world 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ hello_world ---
[INFO] Deleting E:\workspace\maven.1433839983221\hello_world\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hello_world ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory E:\workspace\maven.1433839983221\hello_world\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ hello_world ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to E:\workspace\maven.1433839983221\hello_world\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hello_world ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory E:\workspace\maven.1433839983221\hello_world\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ hello_world ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ hello_world ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory E:\workspace\maven.1433839983221\hello_world\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ hello_world ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ hello_world ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ hello_world ---
[INFO] Building jar: E:\workspace\maven.1433839983221\hello_world\target\hello_world-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hello_world 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.5.2:prepare (default-cli) @ hello_world ---
[INFO] Change the default 'git' provider implementation to 'jgit'.
[INFO] Resuming release from phase 'scm-check-modifications'
[INFO] Verifying that there are no local modifications...
[INFO] ignoring changes on: **\pom.xml.next, **\release.properties, **\pom.xml.branch, **\pom.xml.tag, **\pom.xml.backup, **\pom.xml.releaseBackup
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.142 s
[INFO] Finished at: 2015-06-09T11:35:30+02:00
[INFO] Final Memory: 22M/192M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.2:prepare (default-cli) on project hello_world: An error occurred during the status check process: Exception while executing SCM command. JGit status failure! repository not found: E:\workspace\maven.1433839983221\hello_world -> [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]
my pom.xml is :
<project xmlns="..." xmlns:xsi="..." xsi:schemaLocation="...">
<modelVersion>4.0.0</modelVersion>
<groupId>org.test</groupId>
<artifactId>hello_world</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<providerImplementations>
<git>jgit</git>
</providerImplementations>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-jgit</artifactId>
<version>1.9.4</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<scm>
<url>scm:git:file://E:\workspace\maven.1433839983221\.git</url>
<connection>scm:git:file://E:\workspace\maven.1433839983221\.git</connection>
<developerConnection>scm:git:file://E:\workspace\maven.1433839983221\.git</developerConnection>
</scm>
</project>
In the Git Repositories tab, I see E:\workspace\maven.1433839983221\.git as a correct git repository
Many thanks four any kinds of input, I searching on it from already 2 days now.
Pierre
|
|
|
|
Powered by
FUDForum. Page generated in 0.02233 seconds