add maven denpendency plugin
This commit is contained in:
parent
9504e6e7c4
commit
3f83bbfee3
54
0001-add-dependency-package.patch
Normal file
54
0001-add-dependency-package.patch
Normal file
@ -0,0 +1,54 @@
|
||||
From b6676a64cf6b27fdadd2c216d0bf86fe1ce9fcf5 Mon Sep 17 00:00:00 2001
|
||||
From: wang--ge <wang__ge@126.com>
|
||||
Date: Wed, 17 May 2023 16:58:50 +0800
|
||||
Subject: [PATCH] add dependency package
|
||||
|
||||
---
|
||||
pom.xml | 31 +++++++++++++++++++++++++++++++
|
||||
1 file changed, 31 insertions(+)
|
||||
|
||||
diff --git a/pom.xml b/pom.xml
|
||||
index 57edaed..d13bc8b 100644
|
||||
--- a/pom.xml
|
||||
+++ b/pom.xml
|
||||
@@ -122,6 +122,37 @@
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
+ <plugin>
|
||||
+ <groupId>org.apache.maven.plugins</groupId>
|
||||
+ <artifactId>maven-dependency-plugin</artifactId>
|
||||
+ <version>3.2.0</version>
|
||||
+ <executions>
|
||||
+ <execution>
|
||||
+ <phase>prepare-package</phase>
|
||||
+ <goals>
|
||||
+ <goal>copy</goal>
|
||||
+ </goals>
|
||||
+ <configuration>
|
||||
+ <artifactItems>
|
||||
+ <artifactItem>
|
||||
+ <groupId>org.jruby.jcodings</groupId>
|
||||
+ <artifactId>jcodings</artifactId>
|
||||
+ <version>1.0.9</version>
|
||||
+ <overWrite>false</overWrite>
|
||||
+ <outputDirectory>${project.build.directory}</outputDirectory>
|
||||
+ </artifactItem>
|
||||
+ <artifactItem>
|
||||
+ <groupId>org.jruby.joni</groupId>
|
||||
+ <artifactId>joni</artifactId>
|
||||
+ <version>2.1.3</version>
|
||||
+ <overWrite>false</overWrite>
|
||||
+ <outputDirectory>${project.build.directory}</outputDirectory>
|
||||
+ </artifactItem>
|
||||
+ </artifactItems>
|
||||
+ </configuration>
|
||||
+ </execution>
|
||||
+ </executions>
|
||||
+ </plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -2,37 +2,57 @@
|
||||
|
||||
Name: bytelist
|
||||
Version: 1.0.8
|
||||
Release: 17
|
||||
Release: 18
|
||||
Summary: Java library for lists of bytes
|
||||
License: CPL or GPLv2+ or LGPLv2+
|
||||
URL: http://github.com/jruby/bytelist
|
||||
Source0: https://github.com/jruby/bytelist/archive/%{version}.tar.gz
|
||||
Source1: https://repo.maven.apache.org/maven2/org/jruby/jcodings/jcodings/1.0.9/jcodings-1.0.9.pom
|
||||
Source2: https://repo.maven.apache.org/maven2/org/jruby/joni/joni/2.1.3/joni-2.1.3.pom
|
||||
Patch0: 0001-add-dependency-package.patch
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: ant, ant-junit, java-devel, jcodings, jpackage-utils, javapackages-local, junit
|
||||
Requires: java-headless, jcodings, jpackage-utils
|
||||
BuildRequires: java-devel, jcodings, jpackage-utils, javapackages-local, junit
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: maven
|
||||
Requires: java-headless, jpackage-utils
|
||||
Conflicts: mvn(org.jruby.jcodings:jcodings) > 1.0.9
|
||||
Conflicts: mvn(org.jruby.joni:joni) > 2.1.3
|
||||
Provides: mvn(org.jruby.jcodings:jcodings) = 1.0.9
|
||||
Provides: mvn(org.jruby.joni:joni) = 2.1.3
|
||||
|
||||
%description
|
||||
This module is a small java library for manipulating lists of bytes.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
cp %{SOURCE1} .
|
||||
cp %{SOURCE2} .
|
||||
find \( -name "*.jar" -o -name "*.class" \) -delete
|
||||
%pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin
|
||||
|
||||
%build
|
||||
echo "See %{url} for more info about the %{name} project." > README.txt
|
||||
|
||||
export CLASSPATH=$(build-classpath junit jcodings)
|
||||
install -d lib
|
||||
%ant
|
||||
mvn package -DskipTests -Pdist -Dtar
|
||||
|
||||
%install
|
||||
install -d -m 755 %{buildroot}%{_javadir}/joni
|
||||
install -d $RPM_BUILD_ROOT%{_javadir}
|
||||
cp -p lib/%{name}-1.0.2.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||||
cp -p target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||||
cp -arf target/jcodings-1.0.9.jar %{buildroot}%{_javadir}/jcodings.jar
|
||||
cp -arf target/joni-2.1.3.jar %{buildroot}%{_javadir}/joni/joni.jar
|
||||
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}/joni
|
||||
install -d $RPM_BUILD_ROOT%{_mavenpomdir}
|
||||
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
|
||||
install -pm 644 jcodings-1.0.9.pom %{buildroot}%{_mavenpomdir}/jcodings.pom
|
||||
install -pm 644 joni-2.1.3.pom %{buildroot}%{_mavenpomdir}/joni/joni.pom
|
||||
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
||||
%add_maven_depmap jcodings.pom jcodings.jar
|
||||
%add_maven_depmap joni/joni.pom joni/joni.jar
|
||||
|
||||
%check
|
||||
export CLASSPATH=$(build-classpath junit jcodings)
|
||||
@ -45,5 +65,8 @@ export CLASSPATH=$(build-classpath junit jcodings)
|
||||
%{_datadir}/maven-metadata/%{name}.xml
|
||||
|
||||
%changelog
|
||||
* Wed May 17 2023 Ge Wang <wang__ge@126.com> - 1.0.8-18
|
||||
- Add dependency package
|
||||
|
||||
* Tue Feb 11 2020 Shuaishuai Song <songshuaishuai2@huawei.com> - 1.0.8-17
|
||||
- Package init
|
||||
|
||||
152
jcodings-1.0.9.pom
Normal file
152
jcodings-1.0.9.pom
Normal file
@ -0,0 +1,152 @@
|
||||
<?xml version="1.0" ?>
|
||||
<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.jruby.jcodings</groupId>
|
||||
<artifactId>jcodings</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.0.9</version>
|
||||
<name>JCodings</name>
|
||||
<description>
|
||||
Byte based encoding support library for java
|
||||
</description>
|
||||
|
||||
<issueManagement>
|
||||
<system>JIRA</system>
|
||||
<url>http://jira.codehaus.org/browse/JRUBY</url>
|
||||
</issueManagement>
|
||||
|
||||
<scm>
|
||||
<connection>scm:svn:http://svn.codehaus.org/jruby</connection>
|
||||
<developerConnection>scm:svn:https://svn.codehaus.org/jruby</developerConnection>
|
||||
<url>http://svn.codehaus.org/jruby</url>
|
||||
</scm>
|
||||
|
||||
<licenses>
|
||||
<license>
|
||||
<name>MIT License</name>
|
||||
<url>http://www.opensource.org/licenses/mit-license.php</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>codehaus-jruby-repository</id>
|
||||
<name>JRuby Central Repository</name>
|
||||
<url>dav:https://dav.codehaus.org/repository/jruby</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>codehaus-jruby-snapshot-repository</id>
|
||||
<name>JRuby Central Development Repository</name>
|
||||
<url>dav:https://dav.codehaus.org/snapshots.repository/jruby</url>
|
||||
</snapshotRepository>
|
||||
<site>
|
||||
<id>codehaus-jruby-site</id>
|
||||
<name>JRuby Maven site</name>
|
||||
<url>dav:https://dav.codehaus.org/jruby/info</url>
|
||||
</site>
|
||||
</distributionManagement>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>codehaus</id>
|
||||
<name>Codehaus Repository</name>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
<url>http://repository.codehaus.org</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<id>lopex</id>
|
||||
<name>Marcin Mielzynski</name>
|
||||
<email>lopx@gazeta.pl</email>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.10</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<sourceDirectory>src</sourceDirectory>
|
||||
<scriptSourceDirectory>scripts</scriptSourceDirectory>
|
||||
<testSourceDirectory>test</testSourceDirectory>
|
||||
<finalName>jcodings</finalName>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-webdav-jackrabbit</artifactId>
|
||||
<version>2.1</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-sources</id>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-javadocs</id>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifestFile>MANIFEST.MF</manifestFile>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>resources</directory>
|
||||
<includes>
|
||||
<include>**/*.bin</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
</build>
|
||||
</project>
|
||||
157
joni-2.1.3.pom
Normal file
157
joni-2.1.3.pom
Normal file
@ -0,0 +1,157 @@
|
||||
<?xml version="1.0" ?>
|
||||
<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.jruby.joni</groupId>
|
||||
<artifactId>joni</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>2.1.3</version>
|
||||
<name>Joni</name>
|
||||
<description>
|
||||
Java port of Oniguruma: http://www.geocities.jp/kosako3/oniguruma
|
||||
that uses byte arrays directly instead of java Strings and chars
|
||||
</description>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<parent>
|
||||
<groupId>org.sonatype.oss</groupId>
|
||||
<artifactId>oss-parent</artifactId>
|
||||
<version>7</version>
|
||||
</parent>
|
||||
|
||||
<issueManagement>
|
||||
<system>JIRA</system>
|
||||
<url>http://jira.codehaus.org/browse/JRUBY</url>
|
||||
</issueManagement>
|
||||
|
||||
<scm>
|
||||
<connection>scm:git:https://github.com/jruby/joni.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:jruby/joni.git</developerConnection>
|
||||
<url>https://github.com/jruby/joni</url>
|
||||
</scm>
|
||||
|
||||
<licenses>
|
||||
<license>
|
||||
<name>MIT License</name>
|
||||
<url>http://www.opensource.org/licenses/mit-license.php</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>codehaus</id>
|
||||
<name>Codehaus Repository</name>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
<url>http://repository.codehaus.org</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<id>lopex</id>
|
||||
<name>Marcin Mielzynski</name>
|
||||
<email>lopx@gazeta.pl</email>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jruby.jcodings</groupId>
|
||||
<artifactId>jcodings</artifactId>
|
||||
<version>1.0.8</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>4.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<sourceDirectory>src</sourceDirectory>
|
||||
<testSourceDirectory>test</testSourceDirectory>
|
||||
<finalName>joni</finalName>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-webdav</artifactId>
|
||||
</extension>
|
||||
</extensions>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.4.3</version>
|
||||
<configuration>
|
||||
<includes>
|
||||
<include>**/TestJoni.java</include>
|
||||
</includes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.2</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifestFile>MANIFEST.MF</manifestFile>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<version>2.1.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-sources</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>jar-no-fork</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.8.1</version>
|
||||
<configuration>
|
||||
<show>private</show>
|
||||
<nohelp>true</nohelp>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-sources</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
Loading…
x
Reference in New Issue
Block a user