[schlichtherle-oss-parent] Initial import (#836849)
Gerard Ryan
galileo at fedoraproject.org
Fri Jul 6 14:37:17 UTC 2012
commit c851f2ba9f4c7d9607ac3d62bccde35ed1615f3e
Author: Gerard Ryan <gerard at ryan.lt>
Date: Fri Jul 6 15:37:11 2012 +0100
Initial import (#836849)
oss-parent-9.pom | 308 +++++++++++++++++++++++++++++++
schlichtherle-oss-parent-versions.patch | 121 ++++++++++++
schlichtherle-oss-parent.spec | 62 ++++++
3 files changed, 491 insertions(+), 0 deletions(-)
---
diff --git a/oss-parent-9.pom b/oss-parent-9.pom
new file mode 100644
index 0000000..036fa8c
--- /dev/null
+++ b/oss-parent-9.pom
@@ -0,0 +1,308 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ - Copyright (C) 2004-2012 Schlichtherle IT Services. All rights reserved.
+ -
+ - Licensed 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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <prerequisites>
+ <maven>${maven.enforcer.requireMavenVersion}</maven>
+ </prerequisites>
+
+ <parent>
+ <groupId>org.sonatype.oss</groupId>
+ <artifactId>oss-parent</artifactId>
+ <version>7</version>
+ </parent>
+
+ <groupId>de.schlichtherle</groupId>
+ <artifactId>oss-parent</artifactId>
+ <version>9</version>
+ <packaging>pom</packaging>
+
+ <name>OSS Parent</name>
+ <description>
+ A parent Project Object Model (POM) for Open Source Software (OOS)
+ projects.
+ </description>
+ <organization>
+ <name>Schlichtherle IT Services</name>
+ <url>http://schlichtherle.de</url>
+ </organization>
+ <developers>
+ <developer>
+ <name>Christian Schlichtherle</name>
+ <email>christian AT schlichtherle DOT de</email>
+ <organization>Schlichtherle IT Services</organization>
+ <timezone>1</timezone>
+ <roles>
+ <role>owner</role>
+ </roles>
+ </developer>
+ </developers>
+
+ <properties>
+ <!-- maven-enforcer-plugin -->
+ <maven.enforcer.requireMavenVersion>2.2.1</maven.enforcer.requireMavenVersion> <!-- detected by mvn versions:display-plugin-updates -->
+ <maven.enforcer.requireJavaVersion>${maven.compiler.source}</maven.enforcer.requireJavaVersion> <!-- forward reference -->
+
+ <netbeans.hint.jdkPlatform>JDK_1.5</netbeans.hint.jdkPlatform>
+
+ <!-- maven-compiler-plugin -->
+ <maven.compiler.debug>true</maven.compiler.debug>
+ <maven.compiler.optimize>false</maven.compiler.optimize>
+ <maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
+ <maven.compiler.showWarnings>true</maven.compiler.showWarnings>
+ <maven.compiler.source>1.5</maven.compiler.source>
+ <maven.compiler.target>1.5</maven.compiler.target>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+
+ <!-- maven-gpg-plugin -->
+ <gpg.useagent>true</gpg.useagent>
+
+ <!-- maven-javadoc-plugin -->
+ <!--detectLinks>true</detectLinks-->
+ <header><b>${project.name} ${project.version}</b></header>
+ <nodeprecated>true</nodeprecated>
+ <notimestamp>true</notimestamp>
+ <quiet>true</quiet>
+ <splitindex>true</splitindex>
+ <javadoc.version>false</javadoc.version>
+
+ <!-- maven-release-plugin -->
+ <releaseProfiles>integration-test</releaseProfiles>
+ <preparationGoals>clean install</preparationGoals>
+ </properties>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/filtered</directory>
+ <filtering>true</filtering>
+ </resource>
+ <resource>
+ <directory>src/main/resources</directory>
+ </resource>
+ </resources>
+
+ <testResources>
+ <testResource>
+ <directory>src/test/filtered</directory>
+ <filtering>true</filtering>
+ </testResource>
+ <testResource>
+ <directory>src/test/resources</directory>
+ </testResource>
+ </testResources>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>2.5</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-scm-plugin</artifactId>
+ <version>1.7</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.2</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.5</version>
+ <configuration>
+ <!-- Required for NetBeans. -->
+ <debug>${maven.compiler.debug}</debug>
+ <optimize>${maven.compiler.optimize}</optimize>
+ <showDeprecation>${maven.compiler.showDeprecation}</showDeprecation>
+ <showWarnings>${maven.compiler.showWarnings}</showWarnings>
+ <source>${maven.compiler.source}</source>
+ <target>${maven.compiler.target}</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.5</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.8.1</version>
+ <configuration>
+ <version>${javadoc.version}</version>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.12</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <version>2.12</version>
+ <executions>
+ <execution>
+ <id>integration-test</id>
+ <goals>
+ <goal>integration-test</goal>
+ <goal>verify</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.3</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-install-plugin</artifactId>
+ <version>2.3.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-gpg-plugin</artifactId>
+ <version>1.4</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.7</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-jxr-plugin</artifactId>
+ <version>2.3</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <version>2.4.0</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>jdepend-maven-plugin</artifactId>
+ <version>2.0-beta-2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>clirr-maven-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-changes-plugin</artifactId>
+ <version>2.7.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>2.9.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <version>2.5.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.3.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ <plugins>
+ <plugin>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>enforce-maven</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireMavenVersion>
+ <version>${maven.enforcer.requireMavenVersion}</version>
+ <message>This POM requires Maven ${maven.enforcer.requireMavenVersion}.</message>
+ </requireMavenVersion>
+ <requireJavaVersion>
+ <version>${maven.enforcer.requireJavaVersion}</version>
+ </requireJavaVersion>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>integration-test</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <!-- Override the obsolete plugin versions in parent POM. -->
+ <profile>
+ <id>sonatype-oss-release</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.2</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.8.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-gpg-plugin</artifactId>
+ <version>1.4</version>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
\ No newline at end of file
diff --git a/schlichtherle-oss-parent-versions.patch b/schlichtherle-oss-parent-versions.patch
new file mode 100644
index 0000000..6a2e4ec
--- /dev/null
+++ b/schlichtherle-oss-parent-versions.patch
@@ -0,0 +1,121 @@
+--- pom.xml.orig 2012-06-29 00:05:22.461877568 +0100
++++ pom.xml 2012-06-29 00:08:05.618805412 +0100
+@@ -25,7 +25,7 @@
+ <parent>
+ <groupId>org.sonatype.oss</groupId>
+ <artifactId>oss-parent</artifactId>
+- <version>7</version>
++ <version>6</version>
+ </parent>
+
+ <groupId>de.schlichtherle</groupId>
+@@ -112,23 +112,25 @@
+ <plugins>
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+- <version>2.5</version>
++ <version>2.4.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-enforcer-plugin</artifactId>
+- <version>1.1</version>
++ <version>1.0.1</version>
+ </plugin>
++<!-- not in Fedora
+ <plugin>
+ <artifactId>maven-scm-plugin</artifactId>
+ <version>1.7</version>
+ </plugin>
++-->
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.2</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+- <version>2.5</version>
++ <version>2.3.2</version>
+ <configuration>
+ <!-- Required for NetBeans. -->
+ <debug>${maven.compiler.debug}</debug>
+@@ -152,11 +154,11 @@
+ </plugin>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+- <version>2.12</version>
++ <version>2.10</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-failsafe-plugin</artifactId>
+- <version>2.12</version>
++ <version>2.10</version>
+ <executions>
+ <execution>
+ <id>integration-test</id>
+@@ -169,7 +171,7 @@
+ </plugin>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+- <version>2.4</version>
++ <version>2.3.2</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+@@ -199,24 +201,30 @@
+ <artifactId>maven-jxr-plugin</artifactId>
+ <version>2.3</version>
+ </plugin>
++<!-- not in Fedora
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <version>2.4.0</version>
+ </plugin>
++-->
++<!-- Not in Fedora
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>jdepend-maven-plugin</artifactId>
+ <version>2.0-beta-2</version>
+ </plugin>
++-->
++<!-- Not in Fedora
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>clirr-maven-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
++-->
+ <plugin>
+ <artifactId>maven-changes-plugin</artifactId>
+- <version>2.7.1</version>
++ <version>2.6</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+@@ -229,15 +237,15 @@
+ </plugin>
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+- <version>3.1</version>
++ <version>3.0</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-archetype-plugin</artifactId>
+- <version>2.2</version>
++ <version>2.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-release-plugin</artifactId>
+- <version>2.3.1</version>
++ <version>2.2.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+@@ -305,4 +313,4 @@
+ </build>
+ </profile>
+ </profiles>
+-</project>
+\ No newline at end of file
++</project>
diff --git a/schlichtherle-oss-parent.spec b/schlichtherle-oss-parent.spec
new file mode 100644
index 0000000..e101fa4
--- /dev/null
+++ b/schlichtherle-oss-parent.spec
@@ -0,0 +1,62 @@
+Name: schlichtherle-oss-parent
+Version: 9
+Release: 3%{?dist}
+Summary: Parent Pom for OSS Projects
+
+License: ASL 2.0
+URL: http://schlichtherle.de
+
+Source0: http://central.maven.org/maven2/de/schlichtherle/oss-parent/%{version}/oss-parent-%{version}.pom
+
+# set fedora versions, comment out unavailable deps
+Patch0: %{name}-versions.patch
+
+BuildArch: noarch
+
+BuildRequires: java
+BuildRequires: jpackage-utils
+BuildRequires: maven
+BuildRequires: maven-enforcer-plugin
+BuildRequires: sonatype-oss-parent
+
+Requires: java
+Requires: jpackage-utils
+Requires: maven
+
+
+%description
+A parent Project Object Model (POM) for Open
+Source Software (OSS) projects, such as truezip.
+
+
+%prep
+cp %{SOURCE0} pom.xml
+%patch0
+
+
+%build
+mvn-rpmbuild package
+
+
+%install
+install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
+install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
+
+%add_maven_depmap JPP-%{name}.pom
+
+
+%files
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+
+%changelog
+* Fri Jul 06 2012 Gerard Ryan <galileo at fedoraproject.org> - 9-3
+- Add java to BuildRequires
+
+* Fri Jul 06 2012 Gerard Ryan <galileo at fedoraproject.org> - 9-2
+- Stop making tarball.
+- remove unnecessary (Build)Requires.
+
+* Thu Jun 28 2012 Gerard Ryan <galileo at fedoraproject.org> - 9-1
+- Initial package.
More information about the scm-commits
mailing list