Home | History | Annotate | Download | only in org.jacoco.cli
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3    Copyright (c) 2009, 2017 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.7.10-SNAPSHOT</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               <transformers>
     77                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
     78                   <manifestEntries>
     79                     <Main-Class>org.jacoco.cli.internal.Main</Main-Class>
     80                   </manifestEntries>
     81                 </transformer>
     82               </transformers>
     83             </configuration>
     84           </execution>
     85         </executions>
     86       </plugin>
     87     </plugins>    
     88   </build>
     89 </project>
     90