Package Init
Signed-off-by: qiegewala <1169471515@qq.com>
This commit is contained in:
parent
e74e2150fe
commit
496c51e102
BIN
maven-invoker-2.2-source-release.zip
Normal file
BIN
maven-invoker-2.2-source-release.zip
Normal file
Binary file not shown.
26
maven-invoker-MSHARED-279.patch
Normal file
26
maven-invoker-MSHARED-279.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 97b2ceb3544c035459341278d45cef2e44c21c7b Mon Sep 17 00:00:00 2001
|
||||
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||
Date: Wed, 13 Mar 2013 13:36:26 +0100
|
||||
Subject: [PATCH 2/2] Fix MSHARED-279
|
||||
|
||||
See: http://jira.codehaus.org/browse/MSHARED-279
|
||||
---
|
||||
.../java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java b/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java
|
||||
index 35ab16b..082c988 100644
|
||||
--- a/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java
|
||||
+++ b/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java
|
||||
@@ -536,7 +536,7 @@ public class MavenCommandLineBuilder
|
||||
if ( mavenHome == null )
|
||||
{
|
||||
String mavenHomeProperty = System.getProperty( "maven.home" );
|
||||
- if ( mavenHomeProperty != null )
|
||||
+ if ( StringUtils.isNotEmpty( mavenHomeProperty ) )
|
||||
{
|
||||
mavenHome = new File( mavenHomeProperty );
|
||||
if ( !mavenHome.isDirectory() )
|
||||
--
|
||||
1.8.1.4
|
||||
|
||||
49
maven-invoker.spec
Normal file
49
maven-invoker.spec
Normal file
@ -0,0 +1,49 @@
|
||||
Name: maven-invoker
|
||||
Version: 2.2
|
||||
Release: 9
|
||||
Summary: Fires a Maven build in a new JVM
|
||||
License: ASL 2.0
|
||||
URL: http://maven.apache.org/shared/maven-invoker/
|
||||
Source0: http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
|
||||
|
||||
Patch1: %{name}-MSHARED-279.patch
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: maven-antrun-plugin maven-clean-plugin maven-local
|
||||
BuildRequires: plexus-containers-component-metadata plexus-utils
|
||||
BuildRequires: plexus-containers-component-annotations junit maven-shared
|
||||
|
||||
Provides: %{name}-javadoc = %{version}-%{release}
|
||||
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
||||
|
||||
%description
|
||||
This API is concerned with firing a Maven build in a new JVM. It accomplishes
|
||||
its task by building up a conventional Maven command line from options given in
|
||||
the current request, along with those global options specified in the invoker
|
||||
itself. Once it has the command line, the invoker will execute it, and capture
|
||||
the resulting exit code or any exception thrown to signal a failure to execute.
|
||||
Input/output control can be specified using an InputStream and up to two
|
||||
InvocationOutputHandlers.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
%build
|
||||
%mvn_build
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc NOTICE
|
||||
%license LICENSE
|
||||
%{_datadir}/java/*
|
||||
%{_datadir}/javadoc/*
|
||||
%{_datadir}/maven-poms/*
|
||||
%{_datadir}/maven-metadata/*
|
||||
|
||||
%changelog
|
||||
* Tue Dec 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.2-9
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user