You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2012/07/06 17:32:33 UTC
svn commit: r1358268 - in /maven/resources/trunk: pom.xml src/ src/site/
src/site/xdoc/ src/site/xdoc/index.xml.vm
Author: olamy
Date: Fri Jul 6 15:32:32 2012
New Revision: 1358268
URL: http://svn.apache.org/viewvc?rev=1358268&view=rev
Log:
add a simple page with plugin samples
Added:
maven/resources/trunk/src/
maven/resources/trunk/src/site/
maven/resources/trunk/src/site/xdoc/
maven/resources/trunk/src/site/xdoc/index.xml.vm
Modified:
maven/resources/trunk/pom.xml
Modified: maven/resources/trunk/pom.xml
URL: http://svn.apache.org/viewvc/maven/resources/trunk/pom.xml?rev=1358268&r1=1358267&r2=1358268&view=diff
==============================================================================
--- maven/resources/trunk/pom.xml (original)
+++ maven/resources/trunk/pom.xml Fri Jul 6 15:32:32 2012
@@ -20,12 +20,18 @@
<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>
+ <parent>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-parent</artifactId>
+ <version>21</version>
+ </parent>
+
<groupId>org.apache.apache.resources</groupId>
<artifactId>apache-resource-bundles-aggregator</artifactId>
<version>1-SNAPSHOT</version>
<packaging>pom</packaging>
- <name>Apache Resource Bundles Aggregator</name>
+ <name>Apache Maven Resource Bundles</name>
<inceptionYear>2012</inceptionYear>
<properties>
Added: maven/resources/trunk/src/site/xdoc/index.xml.vm
URL: http://svn.apache.org/viewvc/maven/resources/trunk/src/site/xdoc/index.xml.vm?rev=1358268&view=auto
==============================================================================
--- maven/resources/trunk/src/site/xdoc/index.xml.vm (added)
+++ maven/resources/trunk/src/site/xdoc/index.xml.vm Fri Jul 6 15:32:32 2012
@@ -0,0 +1,111 @@
+<?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.
+ -->
+<document>
+ <properties>
+ <title>Apache Maven Resource Bundles</title>
+ <author>Olivier Lamy</author>
+ </properties>
+ <body>
+ <section name="Apache Maven Resource Bundles">
+ <p>This project a set of resources to help you building Java resources compliant with Apache rules.</p>
+ <section name="Text Materials">
+ <p>
+ To generate in your jar:
+ <ul>
+ <li>META-INF/DEPENDENCIES</li>
+ <li>META-INF/LICENSE</li>
+ <li>META-INF/NOTICE</li>
+ </ul>
+ <source>
+ <![CDATA[
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-remote-resources-plugin</artifactId>
+ <version>1.3</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>process</goal>
+ </goals>
+ <configuration>
+ <resourceBundles>
+ <!-- Will generate META-INF/DEPENDENCIES META-INF/LICENSE META-INF/NOTICE -->
+ <resourceBundle>org.apache:apache-jar-resource-bundle:${apache-jar-resource-bundle-version}</resourceBundle>
+ <!-- Will generate META-INF/DEPENDENCIES.txt META-INF/LICENSE META-INF/NOTICE.txt -->
+ <resourceBundle>org.apache.apache.resources:apache-jar-txt-resource-bundle:${apache-jar-txt-resource-bundle-version}</resourceBundle>
+ <!-- Will generate META-INF/DISCLAIMER -->
+ <resourceBundle>org.apache.apache.resources:apache-incubator-disclaimer-resource-bundle:${apache-incubator-disclaimer-resource-bundle-version}</resourceBundle>
+ </resourceBundles>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ ]]>
+ </source>
+ </p>
+ </section>
+ <section name="Source Assembly Descriptor">
+ <p>Create a source-release artifact that contains the fully buildable project directory source structure.
+ This is the artifact which is the official subject of any release vote.
+ <source>
+ <![CDATA[
+
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.apache.resources</groupId>
+ <artifactId>apache-source-release-assembly-descriptor</artifactId>
+ <version>${apache-source-release-assembly-descriptor-version}</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <id>source-release-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <!--
+ use this flag to generate source release assembly from the top of a multi modules
+ maven project.
+
+ <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
+ -->
+ <descriptorRefs>
+ <descriptorRef>source-release</descriptorRef>
+ </descriptorRefs>
+ <tarLongFileFormat>gnu</tarLongFileFormat>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ ]]>
+ </source>
+ </p>
+ </section>
+ </section>
+ </body>
+</document>
\ No newline at end of file