| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <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"> |
| 3 | <modelVersion>4.0.0</modelVersion> |
| 4 | <parent> |
| 5 | <groupId>args4j</groupId> |
| 6 | <artifactId>args4j-site</artifactId> |
| 7 | <version>2.33</version> |
| 8 | <relativePath>../pom.xml</relativePath> |
| 9 | </parent> |
| 10 | <artifactId>args4j-tools</artifactId> |
| 11 | <name>args4j-tools</name> |
| 12 | <description>development-time tool for generating additional artifacits</description> |
| 13 | |
| 14 | <packaging>bundle</packaging> |
| 15 | |
| 16 | <properties> |
| 17 | <mainClass>org.kohsuke.args4j.apt.Main</mainClass> |
| 18 | </properties> |
| 19 | |
| 20 | <build> |
| 21 | <sourceDirectory>src</sourceDirectory> |
| 22 | <testSourceDirectory>test</testSourceDirectory> |
| 23 | <resources> |
| 24 | <resource> |
| 25 | <directory>src</directory> |
| 26 | <includes> |
| 27 | <include>**/*.properties</include> |
| 28 | <include>META-INF/services/*</include> |
| 29 | </includes> |
| 30 | </resource> |
| 31 | </resources> |
| 32 | <plugins> |
| 33 | <plugin> |
| 34 | <artifactId>maven-jar-plugin</artifactId> |
| 35 | <configuration> |
| 36 | <archive> |
| 37 | <manifest> |
| 38 | <addClasspath>true</addClasspath> |
| 39 | <mainClass>${mainClass}</mainClass> |
| 40 | </manifest> |
| 41 | </archive> |
| 42 | </configuration> |
| 43 | </plugin> |
| 44 | <plugin> |
| 45 | <groupId>org.apache.maven.plugins</groupId> |
| 46 | <artifactId>maven-shade-plugin</artifactId> |
| 47 | <version>1.4</version> |
| 48 | <executions> |
| 49 | <execution> |
| 50 | <phase>package</phase> |
| 51 | <goals> |
| 52 | <goal>shade</goal> |
| 53 | </goals> |
| 54 | <configuration> |
| 55 | <shadedArtifactAttached>true</shadedArtifactAttached> |
| 56 | <shadedClassifierName>all</shadedClassifierName> |
| 57 | <transformers> |
| 58 | <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 59 | <mainClass>${mainClass}</mainClass> |
| 60 | </transformer> |
| 61 | </transformers> |
| 62 | </configuration> |
| 63 | </execution> |
| 64 | </executions> |
| 65 | </plugin> |
| 66 | </plugins> |
| 67 | </build> |
| 68 | <dependencies> |
| 69 | <dependency> |
| 70 | <groupId>args4j</groupId> |
| 71 | <artifactId>args4j</artifactId> |
| 72 | <version>${project.version}</version> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>junit</groupId> |
| 76 | <artifactId>junit</artifactId> |
| 77 | <version>4.11</version> |
| 78 | <scope>test</scope> |
| 79 | </dependency> |
| 80 | <dependency> |
| 81 | <groupId>org.mockito</groupId> |
| 82 | <artifactId>mockito-all</artifactId> |
| 83 | <version>1.8.5</version> |
| 84 | <scope>test</scope> |
| 85 | </dependency> |
| 86 | </dependencies> |
| 87 | <profiles> |
| 88 | <profile> |
| 89 | <id>jdk-tools-jar</id> |
| 90 | <activation> |
| 91 | <os><family>!mac</family></os> |
| 92 | </activation> |
| 93 | <dependencies> |
| 94 | <dependency> |
| 95 | <groupId>jdk</groupId> |
| 96 | <artifactId>tools</artifactId> |
| 97 | <version>5.0</version> |
| 98 | <scope>system</scope> |
| 99 | <systemPath>${java.home}/../lib/tools.jar</systemPath> |
| 100 | </dependency> |
| 101 | </dependencies> |
| 102 | </profile> |
| 103 | </profiles> |
| 104 | </project> |