[java-sig-commits] [javapackages] By default skip installation of attached artifacts (rhbz#1006512)

Mikolaj Izdebski mizdebsk at fedoraproject.org
Fri Sep 13 11:04:27 UTC 2013


commit 2b481d9b5337a79076856dbfee013451eb7be802
Author: Mikolaj Izdebski <mizdebsk at redhat.com>
Date:   Fri Sep 13 13:02:01 2013 +0200

    By default skip installation of attached artifacts (rhbz#1006512)
    
    If by default we skip installation of any artifact with non-empty
    classifier then existing packages would not need any changes to keep
    behavior of XMvn < 1.0.0.  Packages that want to install some or all
    attached artifacts will have to enable them explicitly with
    %mvn_package.
    
    By default don't install

 configs/configuration-20.xml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/configs/configuration-20.xml b/configs/configuration-20.xml
index a37593d..b4b978a 100644
--- a/configs/configuration-20.xml
+++ b/configs/configuration-20.xml
@@ -32,6 +32,15 @@
     <metadataDir>usr/share/maven-fragments</metadataDir>
     <installRoot>.xmvn/root</installRoot>
   </installerSettings>
+  <artifactManagement>
+    <rule>
+      <optional>true</optional>
+      <artifactGlob>
+        <classifier>*?</classifier>
+      </artifactGlob>
+      <targetPackage>__noinstall</targetPackage>
+    </rule>
+  </artifactManagement>
   <repositories>
     <repository>
       <id>base-raw-pom</id>


More information about the java-sig-commits mailing list