Home | History | Annotate | Download | only in org.jacoco.cli
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3    Copyright (c) 2009, 2018 Mountainminds GmbH & Co. KG and Contributors
      4    All rights reserved. This program and the accompanying materials
      5    are made available under the terms of the Eclipse Public License v1.0
      6    which accompanies this distribution, and is available at
      7    http://www.eclipse.org/legal/epl-v10.html
      8 
      9    Contributors:
     10       Marc R. Hoffmann - initial API and implementation
     11 -->
     12 <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">
     13   <modelVersion>4.0.0</modelVersion>
     14 
     15   <parent>
     16     <groupId>org.jacoco</groupId>
     17     <artifactId>org.jacoco.build</artifactId>
     18     <version>0.8.0</version>
     19     <relativePath>../org.jacoco.build</relativePath>
     20   </parent>
     21 
     22   <artifactId>org.jacoco.cli</artifactId>
     23 
     24   <name>JaCoCo :: Command Line Interface</name>
     25   <description>JaCoCo Command Line Interface</description>
     26 
     27   <dependencies>
     28     <dependency>
     29       <groupId>${project.groupId}</groupId>
     30       <artifactId>org.jacoco.core</artifactId>
     31     </dependency>
     32     <dependency>
     33       <groupId>${project.groupId}</groupId>
     34       <artifactId>org.jacoco.report</artifactId>
     35     </dependency>
     36     <dependency>
     37       <groupId>args4j</groupId>
     38       <artifactId>args4j</artifactId>
     39     </dependency>
     40   </dependencies>
     41 
     42   <build>
     43     <sourceDirectory>src</sourceDirectory>
     44     <plugins>
     45       <plugin>
     46         <groupId>org.codehaus.mojo</groupId>
     47         <artifactId>exec-maven-plugin</artifactId>
     48         <executions>
     49           <execution>
     50             <phase>package</phase>
     51             <goals>
     52               <goal>java</goal>
     53             </goals>
     54             <configuration>
     55               <mainClass>org.jacoco.cli.internal.XmlDocumentation</mainClass>
     56               <arguments>
     57                 <argument>${project.build.directory}/generated-documentation/cli.xml</argument>
     58               </arguments>
     59             </configuration>
     60           </execution>
     61         </executions>
     62       </plugin>
     63       <plugin>
     64         <groupId>org.apache.maven.plugins</groupId>
     65         <artifactId>maven-shade-plugin</artifactId>
     66         <executions>
     67           <execution>
     68             <phase>package</phase>
     69             <goals>
     70               <goal>shade</goal>
     71             </goals>
     72             <configuration>
     73               <shadedArtifactAttached>true</shadedArtifactAttached>
     74               <shadedClassifierName>nodeps</shadedClassifierName>
     75               <minimizeJar>true</minimizeJar>
     76               <relocations>
     77                 <relocation>
     78                   <pattern>org.objectweb.asm</pattern>
     79                   <shadedPattern>org.jacoco.cli.internal.asm</shadedPattern>
     80                 </relocation>
     81                 <relocation>
     82                   <pattern>org.kohsuke.args4j</pattern>
     83                   <shadedPattern>org.jacoco.cli.internal.args4j</shadedPattern>
     84                 </relocation>
     85                 <relocation>
     86                   <pattern>org.jacoco.core</pattern>
     87                   <shadedPattern>org.jacoco.cli.internal.core</shadedPattern>
     88                 </relocation>
     89                 <relocation>
     90                   <pattern>org.jacoco.report</pattern>
     91                   <shadedPattern>org.jacoco.cli.internal.report</shadedPattern>
     92                 </relocation>
     93               </relocations>
     94               <transformers>
     95                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
     96                   <manifestEntries>
     97                     <Implementation-Title>${project.description}</Implementation-Title>
     98                     <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
     99                     <Implementation-Version>${project.version}</Implementation-Version>
    100                     <Main-Class>org.jacoco.cli.internal.Main</Main-Class>
    101                   </manifestEntries>
    102                 </transformer>
    103               </transformers>
    104             </configuration>
    105           </execution>
    106         </executions>
    107       </plugin>
    108     </plugins>    
    109   </build>
    110 </project>
    111