Maven release:prepare -> E155036

palador

Mitglied
Hallo Java-Community,

ich bin gerade dabei mich in Maven einzuarbeiten. Ich möchte gerade probieren wie release:perform auf das scm wirkt, d.h. tags anlegt usw.. Leider bekomme ich immer einen Fehler... hier die Konsole:
[FIELDSET="mavenconsole"]
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building org.angriff.aflow parent 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.0:prepare (default-cli) @ org.angriff.aflow ---
[INFO] Resuming release from phase 'scm-check-modifications'
[INFO] Verifying that there are no local modifications...
[INFO] Executing: cmd.exe /X /C "svn --username palador --password ***** --non-interactive status"
[INFO] Working directory: C:\workspaces\aflow\org.angriff.aflow
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.151s
[INFO] Finished at: Sat Jan 28 20:24:35 CET 2012
[INFO] Final Memory: 8M/20M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on project org.angriff.aflow: Unable to check for local modifications
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn: E155036: Please see the 'svn upgrade' command
[ERROR] svn: E155036: Working copy 'C:\workspaces\aflow\org.angriff.aflow' is too old (format 10, created by Subversion 1.6)
[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
[/FIELDSET]

hier meine pom.xml:
[XML]
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<groupId>org.angriff.aflow</groupId>
<artifactId>org.angriff.aflow</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>org.angriff.aflow parent</name>
<description>contains parent pom.xml for all org.angriff.aflow-projects</description>

<scm>
<connection>scm:svn:http://svn.code.sf.net/p/aflow/code/trunk</connection>
<developerConnection>scm:svn:http://svn.code.sf.net/p/aflow/code/trunk</developerConnection>
<url>https://sourceforge.net/p/aflow/code/commit_browser</url>
</scm>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.3</version>
<configuration>
<providerImplementations>
<svn>javasvn</svn>
</providerImplementations>
</configuration>
<dependencies>
<dependency>
<groupId>com.google.code.maven-scm-provider-svnjava</groupId>
<artifactId>maven-scm-provider-svnjava</artifactId>
<version>1.9</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>


</project>
[/XML]

An der Providerimplementation liegts nicht... scm:checkin und scm:update usw. gehen alle. Bin jetzt langsam am verzweifeln...
 
M

maki

Gast
Hast du die Sourcen mit dem SCM Plugin ausgecheckt?

Anscheinend nciht, und das SVN dass du nutzt ist wohl zu alt um mit dem von SCM PLugin zu funktionieren.
 

palador

Mitglied
Nein, ich arbeite mit eclipse und m2e und habe das projekt mit dem SVN Repository Explorer ausgecheckt (Check out as Maven Project...). Mein Eclipse SVN Connector unterstützt SVN 1.6.15, wie bekomme ich raus, welche version das scm-plugin erwartet?
 

kama

Top Contributor
Hi,

ich bin gerade dabei mich in Maven einzuarbeiten. Ich möchte gerade probieren wie release:perform auf das scm wirkt, d.h. tags anlegt usw.. Leider bekomme ich immer einen Fehler... hier die Konsole:
Also zuerst einmal werden Tags etc. nicht von release:perform angelegt sondern von release:prepare...siehe Prepare a Release

Aus der Ausgabe sehe ich, dass Du ein uraltes release-plugin nutzt...

Du solltest einen pluginManagement Eintrag machen und auf 2.2.1 (release-plugin) einstellen...

[ERROR] svn: E155036: Please see the 'svn upgrade' command
[ERROR] svn: E155036: Working copy 'C:\workspaces\aflow\org.angriff.aflow' is too old (format 10, created by Subversion 1.6)
[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
Daraus ist zu folgern, dass Du ein SVN 1.6 im path hast wo du aber mit einer Working Copy arbeitest die mit 1.5 oder noch voerher erzeugt wurde...Daraus folgt am einfachsten die Working Copy mit einer aktuellen Version von SVN erzeugen (checkout )...

[XML]
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.3</version>
<configuration>
<providerImplementations>
<svn>javasvn</svn>
</providerImplementations>
</configuration>
<dependencies>
<dependency>
<groupId>com.google.code.maven-scm-provider-svnjava</groupId>
<artifactId>maven-scm-provider-svnjava</artifactId>
<version>1.9</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
[/XML]
Warum definierst Du ein altes maven-scm-plugin in Deiner POM ? 1.3 ?...Und Warum unbedingt über einen SCM-Provider ?

An der Providerimplementation liegts nicht... scm:checkin und scm:update usw. gehen alle. Bin jetzt langsam am verzweifeln...
Welche Version des providers nutzt Du denn ?

Gruß
Karl Heinz Marbaise
 

Ähnliche Java Themen

Neue Themen


Oben