incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r577446 - in /incubator/nmaven/trunk: README.txt modify-versions.bat plugins/pom.xml pom-modify-versions.xml
Date Wed, 19 Sep 2007 21:00:01 GMT
Author: sisbell
Date: Wed Sep 19 14:00:00 2007
New Revision: 577446

URL: http://svn.apache.org/viewvc?rev=577446&view=rev
Log:
Scripts to do version modifications.

Added:
    incubator/nmaven/trunk/modify-versions.bat   (with props)
    incubator/nmaven/trunk/pom-modify-versions.xml   (with props)
Modified:
    incubator/nmaven/trunk/README.txt
    incubator/nmaven/trunk/plugins/pom.xml

Modified: incubator/nmaven/trunk/README.txt
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/README.txt?rev=577446&r1=577445&r2=577446&view=diff
==============================================================================
--- incubator/nmaven/trunk/README.txt (original)
+++ incubator/nmaven/trunk/README.txt Wed Sep 19 14:00:00 2007
@@ -47,8 +47,11 @@
  * Click on an NMaven project
  * Click on Tools/NMaven Addin
 
- A small box will appear showing a tree view of all the projects. Right click to build the
project. You will see
-  the build results within the output window.
+Changing NMaven's Version:
+ If you need to either update (or change) NMaven's project version, run the following:
+   modify-versions.bat <<new_version>>
+ This changes all of the versions within the pom.xml files.
+
+ If you also need to override the maven version (it is currently set to maven-2.1-snapshot)
+  bootstrap-build.bat -DmavenVersion=<<new_version>>
 
- Places to change the versions in the code:
-  pom.xml

Added: incubator/nmaven/trunk/modify-versions.bat
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/modify-versions.bat?rev=577446&view=auto
==============================================================================
--- incubator/nmaven/trunk/modify-versions.bat (added)
+++ incubator/nmaven/trunk/modify-versions.bat Wed Sep 19 14:00:00 2007
@@ -0,0 +1,4 @@
+cd imports/maven-pom-plugin
+call mvn install
+cd ../..
+call mvn install -f pom-modify-versions.xml -DnmavenVersion=%*
\ No newline at end of file

Propchange: incubator/nmaven/trunk/modify-versions.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/trunk/plugins/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/pom.xml?rev=577446&r1=577445&r2=577446&view=diff
==============================================================================
--- incubator/nmaven/trunk/plugins/pom.xml (original)
+++ incubator/nmaven/trunk/plugins/pom.xml Wed Sep 19 14:00:00 2007
@@ -98,7 +98,7 @@
         <configuration> 
           <reportFormat>plain</reportFormat> 
         </configuration> 
-      </plugin>  
+      </plugin> 
     </plugins> 
   </build>  
   <reporting> 

Added: incubator/nmaven/trunk/pom-modify-versions.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/pom-modify-versions.xml?rev=577446&view=auto
==============================================================================
--- incubator/nmaven/trunk/pom-modify-versions.xml (added)
+++ incubator/nmaven/trunk/pom-modify-versions.xml Wed Sep 19 14:00:00 2007
@@ -0,0 +1,61 @@
+<?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.dotnet</groupId>
+  <artifactId>dotnet-modify-versions</artifactId>
+  <packaging>pom</packaging>
+  <version>${nmavenVersion}</version>
+  <name>dotnet-modify-versions</name>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-pom-plugin</artifactId>
+        <version>1.0-SNAPSHOT</version>
+        <executions>
+          <execution>
+            <configuration>
+              <target>.</target>
+              <projectExcludes>imports/**</projectExcludes>
+            </configuration>
+            <id>alter-assembly-version</id>
+            <phase>process-sources</phase>
+            <goals>
+              <goal>alter-version</goal>
+            </goals>
+          </execution>
+          <execution>
+            <configuration>
+              <projectFile>pom-dotnet.xml</projectFile>
+              <xpath>//project/version</xpath>
+              <newValue>${pom.version}</newValue>
+            </configuration>
+            <id>alter-assembly-version-assemblies</id>
+            <phase>process-sources</phase>
+            <goals>
+              <goal>alter-by-xpath</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
\ No newline at end of file

Propchange: incubator/nmaven/trunk/pom-modify-versions.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message