You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2013/06/23 22:04:16 UTC

svn commit: r2276 - in /dev/commons/plugins-test/org/apache/commons/commons-digest-plugin/0.1-SNAPSHOT: commons-digest-plugin-0.1-SNAPSHOT.jar commons-digest-plugin-0.1-SNAPSHOT.pom maven-metadata-local.xml

Author: sebb
Date: Sun Jun 23 20:04:14 2013
New Revision: 2276

Log:
Trialling commons repo

Added:
    dev/commons/plugins-test/org/apache/commons/commons-digest-plugin/0.1-SNAPSHOT/commons-digest-plugin-0.1-SNAPSHOT.jar
    dev/commons/plugins-test/org/apache/commons/commons-digest-plugin/0.1-SNAPSHOT/commons-digest-plugin-0.1-SNAPSHOT.pom
    dev/commons/plugins-test/org/apache/commons/commons-digest-plugin/0.1-SNAPSHOT/maven-metadata-local.xml

Added: dev/commons/plugins-test/org/apache/commons/commons-digest-plugin/0.1-SNAPSHOT/commons-digest-plugin-0.1-SNAPSHOT.jar
==============================================================================
Binary files dev/commons/plugins-test/org/apache/commons/commons-digest-plugin/0.1-SNAPSHOT/commons-digest-plugin-0.1-SNAPSHOT.jar (added) and dev/commons/plugins-test/org/apache/commons/commons-digest-plugin/0.1-SNAPSHOT/commons-digest-plugin-0.1-SNAPSHOT.jar Sun Jun 23 20:04:14 2013 differ

Added: dev/commons/plugins-test/org/apache/commons/commons-digest-plugin/0.1-SNAPSHOT/commons-digest-plugin-0.1-SNAPSHOT.pom
==============================================================================
--- dev/commons/plugins-test/org/apache/commons/commons-digest-plugin/0.1-SNAPSHOT/commons-digest-plugin-0.1-SNAPSHOT.pom (added)
+++ dev/commons/plugins-test/org/apache/commons/commons-digest-plugin/0.1-SNAPSHOT/commons-digest-plugin-0.1-SNAPSHOT.pom Sun Jun 23 20:04:14 2013
@@ -0,0 +1,276 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ 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>
+
+  <parent>
+      <groupId>org.apache.commons</groupId>
+      <artifactId>commons-parent</artifactId>
+      <version>30</version>
+  </parent>
+ 
+  <groupId>org.apache.commons</groupId>
+  <artifactId>commons-digest-plugin</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <packaging>maven-plugin</packaging>
+  <name>Apache Commons Digest Maven Mojo</name>
+  <inceptionYear>2013</inceptionYear>
+  <url>http://commons.apache.org/proper/commons-digest-plugin/</url>
+
+<description>
+Apache Commons Digest Maven plugin provides digest (hashing) facilities for files
+</description>
+
+  <issueManagement>
+    <system>jira</system>
+    <url>http://issues.apache.org/jira/browse/COMMONSSITE</url>
+  </issueManagement>
+
+  <scm>
+    <connection>scm:svn:http://svn.apache.org/repos/asf/commons/proper/commons-digest-plugin/trunk/</connection>
+    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/commons/proper/commons-digest-plugin/trunk/</developerConnection>
+    <url>http://svn.apache.org/viewvc/commons/proper/commons-digest-plugin/trunk/</url>
+  </scm>
+
+  <prerequisites>
+    <maven>${mavenVersion}</maven>
+  </prerequisites>
+
+   <properties>
+    <mavenVersion>2.2.1</mavenVersion>
+    <mavenPluginPluginVersion>3.2</mavenPluginPluginVersion>
+    <maven.compiler.source>1.5</maven.compiler.source>
+    <maven.compiler.target>1.5</maven.compiler.target>
+    <commons.release.version>0.1</commons.release.version>
+    <commons.componentid>commons-digest-plugin</commons.componentid>
+    <commons.rc.version>RC2</commons.rc.version>
+    <commons.release.desc>(Requires Maven ${mavenVersion} or later)</commons.release.desc>
+    <!-- Avoid problems with jar & osgi builds in CP -->
+    <commons.manifestfile />
+    <!-- Temporary fix until CP31 is released -->
+    <maven.compile.source>${maven.compiler.source}</maven.compile.source>
+    <maven.compile.target>${maven.compiler.target}</maven.compile.target>
+    <!-- This should move to parent pom -->
+    <commons.packages.directory>target/packages</commons.packages.directory>
+  </properties>
+
+  <dependencies>
+    <!-- We use Commons Codec to create the hashes -->
+    <dependency>
+      <groupId>commons-codec</groupId>
+      <artifactId>commons-codec</artifactId>
+      <!-- 1.6 only requires Java 1.5; later versions require Java 1.6 -->
+      <version>1.6</version>
+    </dependency>
+
+    <!-- DigestMojo uses DirectoryScanner -->
+    <dependency>
+      <groupId>org.codehaus.plexus</groupId>
+      <artifactId>plexus-utils</artifactId>
+      <version>3.0.7</version>
+    </dependency>
+
+    <!-- Following dependencies are for building/running Mojos -->
+
+    <!-- for our own help Mojo -->
+    <dependency>
+      <groupId>org.apache.maven.plugins</groupId>
+      <artifactId>maven-help-plugin</artifactId>
+      <version>2.2</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>${mavenVersion}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>${mavenVersion}</version>
+      <exclusions>
+        <exclusion>
+          <groupId>org.codehaus.plexus</groupId>
+          <artifactId>plexus-container-default</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.plugin-tools</groupId>
+      <artifactId>maven-plugin-annotations</artifactId>
+      <version>${mavenPluginPluginVersion}</version>
+      <!-- annotations are not needed for plugin execution so you can remove this dependency
+           for execution with using provided scope -->
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <artifactId>maven-plugin-plugin</artifactId>
+          <version>${mavenPluginPluginVersion}</version>
+          <configuration>
+            <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+
+    <plugins>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <configuration>
+          <descriptors>
+            <descriptor>src/main/assembly/bin.xml</descriptor>
+            <descriptor>src/main/assembly/src.xml</descriptor>
+          </descriptors>
+          <tarLongFileMode>gnu</tarLongFileMode>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-plugin-plugin</artifactId>
+        <configuration>
+          <!-- see http://jira.codehaus.org/browse/MNG-5346 -->
+          <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
+        </configuration>
+        <executions>
+          <execution>
+            <id>generate-descriptor</id>
+            <goals>
+              <goal>descriptor</goal>
+            </goals>
+          </execution>
+          <!-- The generated Mojo does not handle annotations properly,
+               and does not show any "User property" names.
+               Since this is misleading, it is better to drop the goal
+               The Maven Help plugin does show property names, so we create
+               our own Help Mojo that extends it.
+          <execution>
+            <id>generated-helpmojo</id>
+            <goals>
+              <goal>helpmojo</goal>
+            </goals>
+          </execution>
+           -->
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+  <profiles>
+    <!-- This will eventually be merged into the parent pom -->
+    <profile>
+      <id>release</id>
+      <build>
+        <plugins>
+          <!-- We want to create the assemblies in their own directory -->
+          <plugin>
+            <artifactId>maven-assembly-plugin</artifactId>
+            <configuration>
+              <!-- Stop assemblies from being deployed to Nexus -->
+              <attach>false</attach>
+              <!-- put them here instead -->
+              <outputDirectory>${commons.packages.directory}</outputDirectory>
+            </configuration>
+          </plugin>
+          <!-- Create the hashes -->
+          <plugin>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-digest-plugin</artifactId>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>digest</goal>
+                </goals>
+                <!-- must run after assembly and before deploy -->
+                <phase>verify</phase>
+              </execution>
+            </executions>
+            <configuration>
+              <includes>
+                <include>${commons.packages.directory}/*.zip</include>
+                <include>${commons.packages.directory}/*.tar.gz</include>
+              </includes>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+
+    <!-- 
+        Temporary helper profile that can be used if gpg and staging plugins are installed locally 
+        Will eventually be merged int release profile.
+    -->
+    <profile>
+      <id>release-part2</id>
+      <build>
+        <plugins>
+          <!-- Create the signatures -->
+          <plugin>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-gpg-plugin</artifactId>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>signfiles</goal>
+                </goals>
+                <!-- must run after assembly and before deploy -->
+                <phase>verify</phase>
+              </execution>
+            </executions>
+            <configuration>
+              <includes>
+                <include>${commons.packages.directory}/*.zip</include>
+                <include>${commons.packages.directory}/*.tar.gz</include>
+              </includes>
+            </configuration>
+          </plugin>
+          <!-- Now create the staging scripts-->
+          <plugin>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-staging-plugin</artifactId>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>create-scripts</goal>
+                </goals>
+                <!-- must run after assembly and before deploy -->
+                <phase>verify</phase>
+              </execution>
+            </executions>
+            <!-- This needs to be configured for the local project; sample below is for Apache Commons -->
+            <configuration>
+              <packageDirectory>${commons.packages.directory}</packageDirectory>
+              <asfProject>commons</asfProject>
+              <asfComponent>${commons.componentid}</asfComponent>
+              <stagingDirectory>${commons.release.name}-${commons.rc.version}</stagingDirectory>
+              <releaseNotes>RELEASE-NOTES.txt</releaseNotes>
+              <!-- safe place for upload and release testing -->
+              <rootUrl>https://dist.apache.org/repos/dist/dev/commons/TEST_PLS_IGNORE/</rootUrl>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    
+  </profiles>
+</project>

Added: dev/commons/plugins-test/org/apache/commons/commons-digest-plugin/0.1-SNAPSHOT/maven-metadata-local.xml
==============================================================================
--- dev/commons/plugins-test/org/apache/commons/commons-digest-plugin/0.1-SNAPSHOT/maven-metadata-local.xml (added)
+++ dev/commons/plugins-test/org/apache/commons/commons-digest-plugin/0.1-SNAPSHOT/maven-metadata-local.xml Sun Jun 23 20:04:14 2013
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+  <groupId>org.apache.commons</groupId>
+  <artifactId>commons-digest-plugin</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <versioning>
+    <snapshot>
+      <localCopy>true</localCopy>
+    </snapshot>
+    <lastUpdated>20130623195718</lastUpdated>
+  </versioning>
+</metadata>