You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2012/03/16 22:54:33 UTC

svn commit: r1301781 - in /maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483: ./ pom.xml test.properties verify.groovy

Author: rfscholte
Date: Fri Mar 16 21:54:32 2012
New Revision: 1301781

URL: http://svn.apache.org/viewvc?rev=1301781&view=rev
Log:
Add test for MRELEASE-483, cannot reproduce

Added:
    maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/
    maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/pom.xml
    maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/test.properties
    maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/verify.groovy

Added: maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/pom.xml
URL: http://svn.apache.org/viewvc/maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/pom.xml?rev=1301781&view=auto
==============================================================================
--- maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/pom.xml (added)
+++ maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/pom.xml Fri Mar 16 21:54:32 2012
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugin.release.its</groupId>
+  <artifactId>mrelease-483</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  
+  <description>
+    PrepareReleaseMojo always increments development version
+  </description>
+
+  <scm>
+    <connection>scm:dummy|nul</connection>
+    <developerConnection>scm:dummy|nul</developerConnection>
+  </scm>
+  
+  <properties>
+    <project.scm.id>it-server</project.scm.id>
+  </properties>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-release-plugin</artifactId>
+        <version>@project.version@</version>
+        <dependencies>
+          <dependency>
+            <groupId>org.apache.maven.its.release</groupId>
+            <artifactId>maven-scm-provider-dummy</artifactId>
+            <version>1.0</version>
+          </dependency>
+        </dependencies>
+      </plugin>
+    </plugins>
+  </build>
+</project>
\ No newline at end of file

Added: maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/test.properties
URL: http://svn.apache.org/viewvc/maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/test.properties?rev=1301781&view=auto
==============================================================================
--- maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/test.properties (added)
+++ maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/test.properties Fri Mar 16 21:54:32 2012
@@ -0,0 +1,4 @@
+releaseVersion=1.0.1237
+tag=yflex_library-1.0.1237
+developmentVersion=1.0-SNAPSHOT
+ 
\ No newline at end of file

Added: maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/verify.groovy
URL: http://svn.apache.org/viewvc/maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/verify.groovy?rev=1301781&view=auto
==============================================================================
--- maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/verify.groovy (added)
+++ maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-483/verify.groovy Fri Mar 16 21:54:32 2012
@@ -0,0 +1,25 @@
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+File releaseProperties = new File( basedir, 'release.properties' )
+assert releaseProperties.exists()
+
+assert 1 == buildLog.getText().count("project.dev.org.apache.maven.plugin.release.its\\:mrelease-483=1.0-SNAPSHOT")
+assert 1 == buildLog.getText().count("project.rel.org.apache.maven.plugin.release.its\\:mrelease-483=1.0.1237")
\ No newline at end of file