Avoid dependency cycle during Maven build
This commit is contained in:
parent
ab541833ff
commit
f5b4c2de09
@ -1,6 +1,6 @@
|
||||
Name: maven-enforcer
|
||||
Version: 1.4.1
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Summary: Maven Enforcer
|
||||
License: ASL 2.0
|
||||
URL: http://maven.apache.org/enforcer
|
||||
@ -63,6 +63,13 @@ This component contains the standard Enforcer Rules.
|
||||
%setup -q -n enforcer-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
# Avoid dependency cycle
|
||||
%pom_xpath_inject pom:build/pom:pluginManagement/pom:plugins "
|
||||
<plugin>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>SYSTEM</version>
|
||||
</plugin>"
|
||||
|
||||
# Replace plexus-maven-plugin with plexus-component-metadata
|
||||
sed -e "s|<artifactId>plexus-maven-plugin</artifactId>|<artifactId>plexus-component-metadata</artifactId>|" \
|
||||
-e "s|<goal>descriptor</goal>|<goal>generate-metadata</goal>|" \
|
||||
@ -88,6 +95,9 @@ sed -e "s|<artifactId>plexus-maven-plugin</artifactId>|<artifactId>plexus-compon
|
||||
%doc LICENSE NOTICE
|
||||
|
||||
%changelog
|
||||
* Thu Jan 25 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.1-7
|
||||
- Avoid dependency cycle during Maven build
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user