Accepting request 691498 from home:fstrba:maven
OBS-URL: https://build.opensuse.org/request/show/691498 OBS-URL: https://build.opensuse.org/package/show/Java:packages/maven-shade-plugin?expand=0&rev=1
This commit is contained in:
commit
009d262799
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
30
0001-Port-to-maven-dependency-tree-3.0.patch
Normal file
30
0001-Port-to-maven-dependency-tree-3.0.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
From b5f9a9c64f42b7452681dc53e67e8cbae4de1105 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||||
|
Date: Mon, 12 Oct 2015 16:40:07 +0200
|
||||||
|
Subject: [PATCH] Port to maven-dependency-tree 3.0
|
||||||
|
|
||||||
|
---
|
||||||
|
.../org/apache/maven/plugins/shade/mojo/ShadeMojo.java | 7 ++++++-
|
||||||
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java b/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
|
||||||
|
index d7011f9..02450a2 100644
|
||||||
|
--- a/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
|
||||||
|
+++ b/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
|
||||||
|
@@ -1138,7 +1138,12 @@ public class ShadeMojo
|
||||||
|
List<Dependency> transitiveDeps )
|
||||||
|
throws DependencyGraphBuilderException
|
||||||
|
{
|
||||||
|
- DependencyNode node = dependencyGraphBuilder.buildDependencyGraph( project, null );
|
||||||
|
+ ProjectBuildingRequest projectBuildingRequest =
|
||||||
|
+ new DefaultProjectBuildingRequest( session.getProjectBuildingRequest() );
|
||||||
|
+ projectBuildingRequest.setLocalRepository( localRepository );
|
||||||
|
+ projectBuildingRequest.setRemoteRepositories( remoteArtifactRepositories );
|
||||||
|
+ projectBuildingRequest.setProject( project );
|
||||||
|
+ DependencyNode node = dependencyGraphBuilder.buildDependencyGraph( projectBuildingRequest, null );
|
||||||
|
boolean modified = false;
|
||||||
|
for ( DependencyNode n2 : node.getChildren() )
|
||||||
|
{
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
3
maven-shade-plugin-3.1.1-source-release.zip
Normal file
3
maven-shade-plugin-3.1.1-source-release.zip
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:dca9c4f74428cba4c321e378a02bec8060beeb8e50324ce8663e27fd72e03325
|
||||||
|
size 716071
|
82
maven-shade-plugin.spec
Normal file
82
maven-shade-plugin.spec
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
#
|
||||||
|
# spec file for package maven-shade-plugin
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: maven-shade-plugin
|
||||||
|
Version: 3.1.1
|
||||||
|
Release: 0
|
||||||
|
Summary: This plugin provides the capability to package the artifact in an uber-jar
|
||||||
|
License: Apache-2.0
|
||||||
|
Group: Development/Libraries/Java
|
||||||
|
URL: http://maven.apache.org/plugins/%{name}
|
||||||
|
Source0: http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
|
||||||
|
Patch0: 0001-Port-to-maven-dependency-tree-3.0.patch
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: maven-local
|
||||||
|
BuildRequires: mvn(com.google.guava:guava:19.0)
|
||||||
|
BuildRequires: mvn(commons-io:commons-io)
|
||||||
|
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
||||||
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
||||||
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugins:pom:)
|
||||||
|
BuildRequires: mvn(org.apache.maven.shared:maven-artifact-transfer)
|
||||||
|
BuildRequires: mvn(org.apache.maven.shared:maven-dependency-tree)
|
||||||
|
BuildRequires: mvn(org.apache.maven:maven-artifact)
|
||||||
|
BuildRequires: mvn(org.apache.maven:maven-core)
|
||||||
|
BuildRequires: mvn(org.apache.maven:maven-model)
|
||||||
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
||||||
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
|
||||||
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
||||||
|
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
|
||||||
|
BuildRequires: mvn(org.jdom:jdom2)
|
||||||
|
BuildRequires: mvn(org.ow2.asm:asm)
|
||||||
|
BuildRequires: mvn(org.ow2.asm:asm-commons)
|
||||||
|
BuildRequires: mvn(org.vafer:jdependency)
|
||||||
|
BuildRequires: unzip
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
This plugin provides the capability to package the artifact in an
|
||||||
|
uber-jar, including its dependencies and to shade - i.e. rename - the
|
||||||
|
packages of some of the dependencies.
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: API documentation for %{name}
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
rm src/test/jars/plexus-utils-1.4.1.jar
|
||||||
|
ln -s $(build-classpath plexus/utils) src/test/jars/plexus-utils-1.4.1.jar
|
||||||
|
|
||||||
|
%build
|
||||||
|
# A class from aopalliance is not found. Simply adding BR does not solve it
|
||||||
|
%{mvn_build} -f
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%license LICENSE NOTICE
|
||||||
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%license LICENSE NOTICE
|
||||||
|
|
||||||
|
%changelog
|
Loading…
x
Reference in New Issue
Block a user