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 14:27:40 UTC
svn commit: r1358156 - in /maven/resources/trunk: ./
resources-bundles-sample/ resources-bundles-sample/src/
resources-bundles-sample/src/main/ resources-bundles-sample/src/main/java/
resources-bundles-sample/src/main/java/org/ resources-bundles-sample...
Author: olamy
Date: Fri Jul 6 12:27:39 2012
New Revision: 1358156
URL: http://svn.apache.org/viewvc?rev=1358156&view=rev
Log:
add sample of using resources bundle
Added:
maven/resources/trunk/resources-bundles-sample/
maven/resources/trunk/resources-bundles-sample/pom.xml (with props)
maven/resources/trunk/resources-bundles-sample/resources-bundles-sample.iml
maven/resources/trunk/resources-bundles-sample/src/
maven/resources/trunk/resources-bundles-sample/src/main/
maven/resources/trunk/resources-bundles-sample/src/main/java/
maven/resources/trunk/resources-bundles-sample/src/main/java/org/
maven/resources/trunk/resources-bundles-sample/src/main/java/org/apache/
maven/resources/trunk/resources-bundles-sample/src/main/java/org/apache/resources/
maven/resources/trunk/resources-bundles-sample/src/main/java/org/apache/resources/sample/
maven/resources/trunk/resources-bundles-sample/src/main/java/org/apache/resources/sample/App.java (with props)
Modified:
maven/resources/trunk/pom.xml
Modified: maven/resources/trunk/pom.xml
URL: http://svn.apache.org/viewvc/maven/resources/trunk/pom.xml?rev=1358156&r1=1358155&r2=1358156&view=diff
==============================================================================
--- maven/resources/trunk/pom.xml (original)
+++ maven/resources/trunk/pom.xml Fri Jul 6 12:27:39 2012
@@ -1,5 +1,4 @@
<?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
@@ -17,9 +16,7 @@
~ 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/xsd/maven-4.0.0.xsd">
+ --><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>
<groupId>org.apache.apache.resources</groupId>
@@ -30,6 +27,13 @@
<name>Apache Resource Bundles Aggregator</name>
<inceptionYear>2012</inceptionYear>
+ <properties>
+ <apache-jar-resource-bundle-version>1.4</apache-jar-resource-bundle-version>
+ <apache-jar-txt-resource-bundle-version>1.5-SNAPSHOT</apache-jar-txt-resource-bundle-version>
+ <apache-incubator-disclaimer-resource-bundle-version>1.2-SNAPSHOT</apache-incubator-disclaimer-resource-bundle-version>
+ </properties>
+
+
<modules>
<module>apache-resource-bundles</module>
<module>apache-jar-resource-bundle</module>
@@ -37,6 +41,7 @@
<module>apache-license-header-resource-bundle</module>
<module>apache-incubator-disclaimer-resource-bundle</module>
<module>apache-source-release-assembly-descriptor</module>
+ <module>resources-bundles-sample</module>
</modules>
<build>
@@ -54,4 +59,4 @@
</plugins>
</build>
-</project>
+</project>
\ No newline at end of file
Added: maven/resources/trunk/resources-bundles-sample/pom.xml
URL: http://svn.apache.org/viewvc/maven/resources/trunk/resources-bundles-sample/pom.xml?rev=1358156&view=auto
==============================================================================
--- maven/resources/trunk/resources-bundles-sample/pom.xml (added)
+++ maven/resources/trunk/resources-bundles-sample/pom.xml Fri Jul 6 12:27:39 2012
@@ -0,0 +1,64 @@
+<?xml version="1.0"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.apache.resources</groupId>
+ <artifactId>apache-resource-bundles-aggregator</artifactId>
+ <version>1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.apache.resources.sample</groupId>
+ <artifactId>resources-bundles-sample</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <name>resources-bundles-sample</name>
+ <url>http://maven.apache.org</url>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache</groupId>
+ <artifactId>apache-jar-resource-bundle</artifactId>
+ <version>${apache-jar-resource-bundle-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.apache.resources</groupId>
+ <artifactId>apache-jar-txt-resource-bundle</artifactId>
+ <version>${apache-jar-txt-resource-bundle-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.apache.resources</groupId>
+ <artifactId>apache-incubator-disclaimer-resource-bundle</artifactId>
+ <version>${apache-incubator-disclaimer-resource-bundle-version}</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <!-- We want to package up license resources in the JARs produced -->
+ <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>
+ </plugins>
+ </build>
+</project>
Propchange: maven/resources/trunk/resources-bundles-sample/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/resources/trunk/resources-bundles-sample/pom.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/resources/trunk/resources-bundles-sample/resources-bundles-sample.iml
URL: http://svn.apache.org/viewvc/maven/resources/trunk/resources-bundles-sample/resources-bundles-sample.iml?rev=1358156&view=auto
==============================================================================
--- maven/resources/trunk/resources-bundles-sample/resources-bundles-sample.iml (added)
+++ maven/resources/trunk/resources-bundles-sample/resources-bundles-sample.iml Fri Jul 6 12:27:39 2012
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
+ <component name="NewModuleRootManager" inherit-compiler-output="false">
+ <output url="file://$MODULE_DIR$/target/classes" />
+ <output-test url="file://$MODULE_DIR$/target/test-classes" />
+ <content url="file://$MODULE_DIR$">
+ <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
+ <excludeFolder url="file://$MODULE_DIR$/target" />
+ </content>
+ <orderEntry type="inheritedJdk" />
+ <orderEntry type="sourceFolder" forTests="false" />
+ <orderEntry type="library" name="Maven: org.apache:apache-jar-resource-bundle:1.4" level="project" />
+ <orderEntry type="module" module-name="apache-jar-txt-resource-bundle" />
+ <orderEntry type="module" module-name="apache-incubator-disclaimer-resource-bundle" />
+ </component>
+</module>
+
Added: maven/resources/trunk/resources-bundles-sample/src/main/java/org/apache/resources/sample/App.java
URL: http://svn.apache.org/viewvc/maven/resources/trunk/resources-bundles-sample/src/main/java/org/apache/resources/sample/App.java?rev=1358156&view=auto
==============================================================================
--- maven/resources/trunk/resources-bundles-sample/src/main/java/org/apache/resources/sample/App.java (added)
+++ maven/resources/trunk/resources-bundles-sample/src/main/java/org/apache/resources/sample/App.java Fri Jul 6 12:27:39 2012
@@ -0,0 +1,13 @@
+package org.apache.resources.sample;
+
+/**
+ * Hello world!
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
Propchange: maven/resources/trunk/resources-bundles-sample/src/main/java/org/apache/resources/sample/App.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/resources/trunk/resources-bundles-sample/src/main/java/org/apache/resources/sample/App.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision