commit 5ccf660a69526523ec12297c7ff92bd74a906f22
Author: Stanislav Ochotnicky <sochotnicky(a)redhat.com>
Date: Thu Mar 22 10:10:50 2012 +0100
Initial package commit
jvnet-parent-3.pom | 159 ++++++++++++++++++++++++++++++++++++++++++++++++++++
jvnet-parent.spec | 48 ++++++++++++++++
2 files changed, 207 insertions(+), 0 deletions(-)
---
diff --git a/jvnet-parent-3.pom b/jvnet-parent-3.pom
new file mode 100644
index 0000000..9f6382e
--- /dev/null
+++ b/jvnet-parent-3.pom
@@ -0,0 +1,159 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright (c) 2007-2011 Sonatype, Inc. All rights reserved.
+ ~
+ ~ This program is licensed to you under the Apache License Version 2.0,
+ ~ and you may not use this file except in compliance with the Apache License Version
2.0.
+ ~ You may obtain a copy of the Apache License Version 2.0 at
http://www.apache.org/licenses/LICENSE-2.0.
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the Apache License Version 2.0 is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
or implied.
+ ~ See the Apache License Version 2.0 for the specific language governing permissions
and limitations there under.
+ -->
+<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>net.java</groupId>
+ <artifactId>jvnet-parent</artifactId>
+ <version>3</version>
+ <packaging>pom</packaging>
+
+ <
name>Java.net Parent</name>
+ <
url>http://java.net/</url>
+ <
description>Java.net - The Source for Java Technology
Collaboration</description>
+
+ <scm>
+ <connection>scm:git:git@github.com:sonatype/jvnet-parent.git</connection>
+ <developerConnection>scm:git:git@github.com:sonatype/jvnet-parent.git</developerConnection>
+ <
url>https://github.com/sonatype/jvnet-parent</url>
+ </scm>
+
+ <repositories>
+ <repository>
+ <id>jvnet-nexus-snapshots</id>
+ <
name>Java.net Nexus Snapshots Repository</name>
+ <
url>https://maven.java.net/content/repositories/snapshots</url>
+ <releases>
+ <enabled>false</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+
+
+ <distributionManagement>
+ <snapshotRepository>
+ <id>jvnet-nexus-snapshots</id>
+ <
name>Java.net Nexus Snapshots Repository</name>
+ <url>${jvnetDistMgmtSnapshotsUrl}</url>
+ </snapshotRepository>
+ <repository>
+ <id>jvnet-nexus-staging</id>
+ <
name>Java.net Nexus Staging Repository</name>
+ <
url>https://maven.java.net/service/local/staging/deploy/maven2/</ur...
+ </repository>
+ </distributionManagement>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <id>enforce-maven</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireMavenVersion>
+ <version>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)</version>
+ <message>Maven 2.1.0 and 2.2.0 produce incorrect GPG signatures
+ and checksums respectively.</message>
+ </requireMavenVersion>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.1</version>
+ <configuration>
+ <mavenExecutorId>forked-path</mavenExecutorId>
+ <useReleaseProfile>false</useReleaseProfile>
+ <arguments>-Pjvnet-release</arguments>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <
jvnetDistMgmtSnapshotsUrl>https://maven.java.net/content/repositories/...
+ </properties>
+
+ <profiles>
+ <profile>
+ <id>jvnet-release</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.2</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar-no-fork</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.7</version>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-gpg-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+ <execution>
+ <id>sign-artifacts</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+</project>
+
diff --git a/jvnet-parent.spec b/jvnet-parent.spec
new file mode 100644
index 0000000..c7c957a
--- /dev/null
+++ b/jvnet-parent.spec
@@ -0,0 +1,48 @@
+Name: jvnet-parent
+Version: 3
+Release: 1%{?dist}
+Summary:
Java.net parent POM file
+
+Group: Development/Libraries
+License: ASL 2.0
+URL:
http://www.java.net
+Source0:
http://repo1.maven.org/maven2/net/java/%{name}/%{version}/%{name}-%{versi...
+
+BuildArch: noarch
+
+BuildRequires: jpackage-utils
+BuildRequires: maven
+BuildRequires: maven-enforcer-plugin
+
+Requires: jpackage-utils
+Requires: maven
+
+%description
+Java.net parent POM file used by most
Java.net subprojects such as
+Glassfish
+
+%prep
+cp %{SOURCE0} pom.xml
+
+%build
+mvn-rpmbuild install
+
+%install
+# poms
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml \
+ %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+
+%add_maven_depmap JPP-%{name}.pom
+
+
+%files
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%changelog
+* Wed Mar 21 2012 Stanislav Ochotnicky <sochotnicky(a)redhat.com> - 3-1
+- Update to version 3
+
+* Wed Mar 21 2012 Stanislav Ochotnicky <sochotnicky(a)redhat.com> - 1-1
+- Initial version of the package