velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r978871 - in /velocity/sandbox/maven-reorg/anakia/trunk: pom.xml src/main/assembly/ src/main/assembly/all.xml
Date Sat, 24 Jul 2010 13:39:54 GMT
Author: apetrelli
Date: Sat Jul 24 13:39:54 2010
New Revision: 978871

URL: http://svn.apache.org/viewvc?rev=978871&view=rev
Log:
VELOCITYSB-6
Added assembly and release configuration.

Added:
    velocity/sandbox/maven-reorg/anakia/trunk/src/main/assembly/
    velocity/sandbox/maven-reorg/anakia/trunk/src/main/assembly/all.xml   (with props)
Modified:
    velocity/sandbox/maven-reorg/anakia/trunk/pom.xml

Modified: velocity/sandbox/maven-reorg/anakia/trunk/pom.xml
URL: http://svn.apache.org/viewvc/velocity/sandbox/maven-reorg/anakia/trunk/pom.xml?rev=978871&r1=978870&r2=978871&view=diff
==============================================================================
--- velocity/sandbox/maven-reorg/anakia/trunk/pom.xml (original)
+++ velocity/sandbox/maven-reorg/anakia/trunk/pom.xml Sat Jul 24 13:39:54 2010
@@ -34,9 +34,30 @@
 
     <build>
         <defaultGoal>install</defaultGoal>
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <artifactId>maven-release-plugin</artifactId>
+                    <version>2.0</version>
+                    <configuration>
+                        <useReleaseProfile>false</useReleaseProfile>
+                        <goals>site deploy site-deploy</goals>
+                        <arguments>-Papache-release</arguments>
+                    </configuration>
+                </plugin>
+            </plugins>
+        </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-install-plugin</artifactId>
+                <version>2.3.1</version>
+                <configuration>
+                    <createChecksum>true</createChecksum>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
                     <includes>
@@ -61,6 +82,20 @@
                     <inputEncoding>UTF-8</inputEncoding>
                     <outputEncoding>UTF-8</outputEncoding>
                 </configuration>
+                <!-- Need to exclude commons-logging due to bug. See: http://jira.codehaus.org/browse/MSITE-459
-->
+                <dependencies>
+                    <dependency>
+                        <groupId>org.apache.maven.doxia</groupId>
+                        <artifactId>doxia-module-xhtml</artifactId>
+                        <version>1.1.3</version>
+                        <exclusions>
+                            <exclusion>
+                                <groupId>commons-logging</groupId>
+                                <artifactId>commons-logging</artifactId>
+                            </exclusion>
+                        </exclusions>
+                    </dependency>
+                </dependencies>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
@@ -70,6 +105,17 @@
                     <target>1.4</target>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <version>2.2-beta-5</version>
+                <configuration>
+                    <descriptors>
+                        <descriptor>src/main/assembly/all.xml</descriptor>
+                    </descriptors>
+                    <tarLongFileMode>gnu</tarLongFileMode>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
 
@@ -198,4 +244,81 @@
         <system>JIRA</system>
         <url>https://issues.apache.org/jira/browse/ANAKIA</url>
     </issueManagement>
+    <profiles>
+        <profile>
+            <id>apache-release</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-assembly-plugin</artifactId>
+                        <version>2.2-beta-5</version>
+                        <executions>
+                            <execution>
+                                <id>make-assembly</id>
+                                <goals>
+                                    <goal>attached</goal>
+                                </goals>
+                                <phase>package</phase>
+                            </execution>
+                        </executions>
+                        <configuration>
+                            <descriptors>
+                                <descriptor>src/main/assembly/all.xml</descriptor>
+                            </descriptors>
+                            <tarLongFileMode>gnu</tarLongFileMode>
+                        </configuration>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <version>1.3</version>
+                        <executions>
+                            <execution>
+                                <phase>deploy</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <configuration>
+                                    <tasks>
+                                        <mkdir
+                                            dir="${project.build.directory}/assemblies" />
+                                        <copy
+                                            todir="${project.build.directory}/assemblies">
+                                            <fileset
+                                                dir="${settings.localRepository}/org/apache/velocity/${project.artifactId}/${project.version}">
+                                                <include
+                                                    name="${project.artifactId}-${project.version}-all.zip*"
/>
+                                                <include
+                                                    name="${project.artifactId}-${project.version}-all.tar.gz*"
/>
+                                            </fileset>
+                                        </copy>
+                                    </tasks>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>wagon-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <phase>deploy</phase>
+                                <goals>
+                                    <goal>upload</goal>
+                                </goals>
+                                <configuration>
+                                    <fromDir>${project.build.directory}/assemblies</fromDir>
+                                    <includes>**</includes>
+                                    <toDir>${pom.version}</toDir>
+                                    <serverId>apache.build</serverId>
+                                    <url>scp://people.apache.org/www/people.apache.org/builds/velocity/anakia</url>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>

Added: velocity/sandbox/maven-reorg/anakia/trunk/src/main/assembly/all.xml
URL: http://svn.apache.org/viewvc/velocity/sandbox/maven-reorg/anakia/trunk/src/main/assembly/all.xml?rev=978871&view=auto
==============================================================================
--- velocity/sandbox/maven-reorg/anakia/trunk/src/main/assembly/all.xml (added)
+++ velocity/sandbox/maven-reorg/anakia/trunk/src/main/assembly/all.xml Sat Jul 24 13:39:54
2010
@@ -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.
+    -->
+<assembly>
+    <id>all</id>
+    <formats>
+        <format>tar.gz</format>
+        <format>zip</format>
+    </formats>
+    <dependencySets>
+        <dependencySet>
+            <outputDirectory>/lib</outputDirectory>
+            <excludes>
+                <exclude>org.apache.velocity:velocity-anakia</exclude>
+            </excludes>
+        </dependencySet>
+        <dependencySet>
+            <outputDirectory>/</outputDirectory>
+            <includes>
+                <include>org.apache.velocity:velocity-anakia</include>
+            </includes>
+        </dependencySet>
+    </dependencySets>
+
+    <fileSets>
+        <fileSet>
+            <directory>.</directory>
+            <outputDirectory>/</outputDirectory>
+            <includes>
+                <include>*LICENSE*</include>
+                <include>NOTICE</include>
+            </includes>
+        </fileSet>
+        <fileSet>
+            <directory>.</directory>
+            <outputDirectory>src/</outputDirectory>
+            <includes>
+                <include>pom.xml</include>
+                <include>src/</include>
+            </includes>
+        </fileSet>
+        <fileSet>
+            <directory>target/site</directory>
+            <outputDirectory>docs</outputDirectory>
+        </fileSet>
+    </fileSets>
+</assembly>
\ No newline at end of file

Propchange: velocity/sandbox/maven-reorg/anakia/trunk/src/main/assembly/all.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: velocity/sandbox/maven-reorg/anakia/trunk/src/main/assembly/all.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL



Mime
View raw message