[Jpackage-commits] rpms/devel/plexus-build-api forge-parent-3.pom, NONE, 1.1 plexus-build-api-components.xml, NONE, 1.1 plexus-build-api-jpp-depmap.xml, NONE, 1.1 plexus-build-api-settings.xml, NONE, 1.1 plexus-build-api.spec, NONE, 1.1 spice-parent-10.pom, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Fri Dec 3 12:00:50 CET 2010


Update of /home/projects/jpackage/cvs/rpms/devel/plexus-build-api
In directory ryu.zarb.org:/tmp/mSGM5BV35j/rpms/devel/plexus-build-api

Added Files:
	forge-parent-3.pom plexus-build-api-components.xml 
	plexus-build-api-jpp-depmap.xml plexus-build-api-settings.xml 
	plexus-build-api.spec spice-parent-10.pom 
Log Message:
0.0.4-1.jpp6

--- NEW FILE: plexus-build-api.spec ---
# Copyright (c) 2000-2010, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           plexus-build-api
Version:        0.0.4
Release:        1%{?dist}
Epoch:          0
Summary:        Plexus build api
License:        Apache Software License 2.0
Group:          Development/Java
URL:            https://github.com/sonatype/spice/tree/master/plexus-build-api/
Source0:        plexus-build-api-0.0.4.tgz
# svn export http://svn.sonatype.org/spice/tags/plexus-build-api-0.0.4/
# tar czf plexus-build-api-0.0.4.tgz plexus-build-api-0.0.4/
Source1:        spice-parent-10.pom 
# get it from http://svn.sonatype.org/spice/tags/spice-parent-10/pom.xml
Source2:        %{name}-jpp-depmap.xml
Source3:        %{name}-settings.xml
Source4:        forge-parent-3.pom
# get it from http://svn.sonatype.org/forge/tags/forge-parent-3/pom.xml
Source5:        plexus-build-api-components.xml
# handcrafted components.xml required, because modern plexus-maven-plugin won't create it

BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:  ant >= 0:1.7
BuildRequires:  maven2 >= 2.0.8
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven-surefire-maven-plugin
BuildRequires:  maven-surefire-provider-junit
BuildRequires:  maven2-plugin-plugin
BuildRequires:  apache-commons-parent
BuildRequires:  classworlds >= 0:1.1
BuildRequires:  plexus-container-default
BuildRequires:  plexus-maven-plugin
BuildRequires:  plexus-utils


Requires:       classworlds >= 0:1.1
Requires:       plexus-container-default
Requires:       plexus-utils

Requires(post):    jpackage-utils >= 0:1.7.5
Requires(postun):  jpackage-utils >= 0:1.7.5

%description
Sonatype plexus build api.


%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation

%description javadoc
%{summary}.

%prep
%setup -q 
mkdir -p src/main/resources/META-INF/plexus/
cp %{SOURCE5} src/main/resources/META-INF/plexus/components.xml

%build
cp %{SOURCE3} settings.xml
sed -i -e "s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml
sed -i -e "s|<url>__JAVADIR_PLACEHOLDER__</url>|<url>file://`pwd`/external_repo</url>|g" settings.xml
sed -i -e "s|<url>__MAVENREPO_DIR_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml
export M2_SETTINGS=$(pwd)/settings.xml

export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL

mkdir -p $MAVEN_REPO_LOCAL/org/sonatype/spice/spice-parent/10/
cp %{SOURCE1} $MAVEN_REPO_LOCAL/org/sonatype/spice/spice-parent/10/spice-parent-10.pom
mkdir -p $MAVEN_REPO_LOCAL/org/sonatype/forge/forge-parent/3/
cp %{SOURCE4} $MAVEN_REPO_LOCAL/org/sonatype/forge/forge-parent/3/forge-parent-3.pom

mvn-jpp -e \
        -s $M2_SETTINGS \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        -Dmaven2.jpp.depmap.file=%{SOURCE2} \
        -Dmaven.test.failure.ignore=true \
        install javadoc:javadoc

%install
rm -rf $RPM_BUILD_ROOT

# poms
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap org.sonatype.plexus %{name} %{version} JPP %{name} 
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-sonatype-spice-parent.pom
%add_to_maven_depmap org.sonatype.spice spice-parent 10 JPP sonatype-spice-parent
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-sonatype-forge-parent.pom
%add_to_maven_depmap org.sonatype.forge forge-parent 3 JPP sonatype-forge-parent

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(-,root,root,-)
%{_datadir}/maven2/poms/*
%{_javadir}/*
%{_mavendepmapfragdir}/*

%files javadoc
%defattr(-,root,root,-)
%doc %{_javadocdir}/*

%changelog
* Thu Oct 07 2010 Ralph Apel <r.apel at r-apel.de> 0.0.4-1
- First release


--- NEW FILE: spice-parent-10.pom ---
<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.sonatype.forge</groupId>
		<artifactId>forge-parent</artifactId>
		<version>3</version>
	</parent>
	<groupId>org.sonatype.spice</groupId>
	<artifactId>spice-parent</artifactId>
	<version>10</version>
	<packaging>pom</packaging>
	<name>Sonatype Spice Components</name>

	<scm>
		<connection>scm:svn:http://svn.sonatype.org/spice/tags/spice-parent-10</connection>
		<url>http://svn.sonatype.org/spice/tags/spice-parent-10</url>
		<developerConnection>scm:svn:https://svn.sonatype.org/spice/tags/spice-parent-10</developerConnection>
	</scm>

	<properties>
		<jetty.version>6.1.14</jetty.version>
	</properties>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.codehaus.plexus</groupId>
				<artifactId>plexus-container-default</artifactId>
				<version>1.0-beta-1</version>
				<exclusions>
					<exclusion>
						<groupId>commons-logging</groupId>
						<artifactId>commons-logging</artifactId>
					</exclusion>
					<exclusion>
						<groupId>commons-logging</groupId>
						<artifactId>commons-logging-api</artifactId>
					</exclusion>
					<exclusion>
						<groupId>log4j</groupId>
						<artifactId>log4j</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
			<dependency>
				<groupId>org.codehaus.plexus</groupId>
				<artifactId>plexus-component-annotations</artifactId>
				<version>1.0-beta-1</version>
			</dependency>
			<dependency>
				<groupId>org.codehaus.plexus</groupId>
				<artifactId>plexus-utils</artifactId>
				<version>1.5.5</version>
			</dependency>
			<dependency>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>jetty</artifactId>
				<version>${jetty.version}</version>
			</dependency>
			<dependency>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>jetty-client</artifactId>
				<version>${jetty.version}</version>
			</dependency>
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>4.5</version>
                <scope>test</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.codehaus.plexus</groupId>
					<artifactId>plexus-component-metadata</artifactId>
					<version>1.0-beta-1</version>
					<executions>
						<execution>
							<id>process-classes</id>
							<goals>
								<goal>generate-metadata</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.codehaus.plexus</groupId>
					<artifactId>plexus-maven-plugin</artifactId>
					<version>1.3.8</version>
					<executions>
						<execution>
							<goals>
								<goal>descriptor</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
</project>

--- NEW FILE: plexus-build-api-components.xml ---
<component-set>
  <components>
    <component>
      <role>org.sonatype.plexus.build.incremental.BuildContext</role>
      <role-hint>default</role-hint>
      <implementation>org.sonatype.plexus.build.incremental.DefaultBuildContext</implementation>
      <description>Filesystem based non-incremental build context implementation which behaves as if all files
were just created.</description>
    </component>
  </components>
</component-set>

--- NEW FILE: forge-parent-3.pom ---
<!--
Copyright (C) 2008 Sonatype, Inc. 

Sonatype Inc, 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>
    <groupId>org.sonatype.forge</groupId>
    <artifactId>forge-parent</artifactId>
    <packaging>pom</packaging>
    <version>3</version>
    <name>Sonatype Forge Parent Pom</name>
    <inceptionYear>2008</inceptionYear>
    <url>http://forge.sonatype.com/</url>
    <scm>
        <connection>scm:svn:http://svn.sonatype.org/forge/tags/forge-parent-3</connection>
        <url>http://svn.sonatype.org/forge/tags/forge-parent-3</url>
        <developerConnection>scm:svn:https://svn.sonatype.org/forge/tags/forge-parent-3</developerConnection>
    </scm>
 

    <properties>
      <forgeReleaseId>forge-releases</forgeReleaseId>
      <forgeReleaseUrl>http://repository.sonatype.org/content/repositories/releases</forgeReleaseUrl>
      <forgeSnapshotId>forge-snapshots</forgeSnapshotId>
      <forgeSnapshotUrl>http://repository.sonatype.org/content/repositories/snapshots</forgeSnapshotUrl>
    </properties>
    <distributionManagement>
        <repository>
            <id>${forgeReleaseId}</id>
            <url>${forgeReleaseUrl}</url>
        </repository>
        <snapshotRepository>
            <id>${forgeSnapshotId}</id>
            <url>${forgeSnapshotUrl}</url>
        </snapshotRepository>
    </distributionManagement>
    
    
    
    <build>
    <!--set the default plugin revs-->
        <pluginManagement>
            <plugins>
               <plugin>
                    <artifactId>maven-enforcer-plugin</artifactId>
                    <version>1.0-alpha-4-sonatype</version>
                </plugin>
                <plugin>
                    <artifactId>maven-eclipse-plugin</artifactId>
                    <version>2.4</version>
                </plugin>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.3</version>
                </plugin>
                <plugin>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>2.2</version>
                </plugin>
                <plugin>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>2.3</version>
                </plugin>
                <plugin>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>2.0</version>
                </plugin>
                <plugin>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>2.0-beta-6</version>
                </plugin>
                <plugin>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>2.1</version>
                </plugin>
                <plugin>
                    <artifactId>maven-help-plugin</artifactId>
                    <version>2.0.2</version>
                </plugin>                
                <plugin>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>2.2</version>
                </plugin>
                <plugin>
                    <artifactId>maven-install-plugin</artifactId>
                    <version>2.2</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.0.2</version>
                    <configuration>
                        <source>1.5</source>
                        <target>1.5</target>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>2.2-beta-1</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    
    <reporting>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>cobertura-maven-plugin</artifactId>
				<version>2.0</version>
			</plugin>
            <plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>findbugs-maven-plugin</artifactId>
				<version>1.1.1</version>
                <configuration>
                  <omitVisitors>UnreadFields</omitVisitors>
                </configuration>
			</plugin>
            <plugin>
				<artifactId>maven-jxr-plugin</artifactId>
				<version>2.0</version>
			</plugin>
            <plugin>
				<artifactId>maven-pmd-plugin</artifactId>
				<version>2.3</version>
                <configuration>
                  <targetJdk>1.5</targetJdk> 
                </configuration>
			</plugin>
		</plugins>
        
	</reporting>
</project>
--- NEW FILE: plexus-build-api-jpp-depmap.xml ---
<dependencies>
<!--
  <dependency>
        <maven>
          <groupId>org.codehaus.plexus</groupId>
          <artifactId>plexus-container-default</artifactId>
          <version>1.0-alpha-30</version>
        </maven>
        <jpp>
          <groupId>JPP/plexus</groupId>
          <artifactId>container-default</artifactId>
          <version>1.0-alpha-9s1</version>
        </jpp>
  </dependency>
-->

  <dependency>
        <maven>
          <groupId>org.codehaus.plexus</groupId>
          <artifactId>plexus-container-default</artifactId>
          <version>1.0-alpha-30</version>
        </maven>
        <jpp>
          <groupId>JPP/plexus</groupId>
          <artifactId>container-default</artifactId>
          <version>1.0-alpha-9s1</version>
        </jpp>
  </dependency>


</dependencies>


--- NEW FILE: plexus-build-api-settings.xml ---
<settings>
	<profiles>
		<profile>
			<id>JPP</id>
			<repositories>
				<repository>
					<id>internal</id>
					<layout>jpp</layout>
					<url>__JPP_URL_PLACEHOLDER__</url>
				</repository>
				<repository>
					<id>external</id>
					<layout>jpp</layout>
					<url>__JAVADIR_PLACEHOLDER__</url>
				</repository>
				<repository>
					<id>local</id>
					<layout>jpp</layout>
					<url>__MAVENREPO_DIR_PLACEHOLDER__</url>
				</repository>
			</repositories>
			<pluginRepositories>
				<pluginRepository>
					<id>plugins-internal</id>
					<name>plugins-internal</name>
					<layout>jpp</layout>
					<url>__JPP_URL_PLACEHOLDER__</url>
				</pluginRepository>
				<pluginRepository>
					<id>plugins-external</id>
					<name>plugins-external</name>
					<layout>jpp</layout>
					<url>__JAVADIR_PLACEHOLDER__</url>
				</pluginRepository>
				<pluginRepository>
					<id>plugins-maven</id>
					<name>plugins-maven</name>
					<layout>jpp</layout>
					<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>
				</pluginRepository>
			</pluginRepositories>
		</profile>
	</profiles>
	<activeProfiles>
		<activeProfile>JPP</activeProfile>
	</activeProfiles>
</settings>




More information about the JPackage-commits mailing list