|
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + |
| 6 | + <groupId>fvarrui.maven</groupId> |
| 7 | + <artifactId>javapackager</artifactId> |
| 8 | + <version>0.8.6</version> |
| 9 | + <packaging>maven-plugin</packaging> |
| 10 | + |
| 11 | + <name>JavaPackager Maven Plugin</name> |
| 12 | + |
| 13 | + <url>https://github.com/fvarrui/javapackager</url> |
| 14 | + |
| 15 | + <properties> |
| 16 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 17 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 18 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 19 | + </properties> |
| 20 | + |
| 21 | + <dependencies> |
| 22 | + <dependency> |
| 23 | + <groupId>org.apache.maven</groupId> |
| 24 | + <artifactId>maven-plugin-api</artifactId> |
| 25 | + <version>3.6.0</version> |
| 26 | + </dependency> |
| 27 | + <dependency> |
| 28 | + <groupId>org.apache.maven.plugin-tools</groupId> |
| 29 | + <artifactId>maven-plugin-annotations</artifactId> |
| 30 | + <version>3.6.0</version> |
| 31 | + <scope>provided</scope> |
| 32 | + </dependency> |
| 33 | + <dependency> |
| 34 | + <groupId>org.codehaus.plexus</groupId> |
| 35 | + <artifactId>plexus-utils</artifactId> |
| 36 | + <version>3.1.1</version> |
| 37 | + </dependency> |
| 38 | + <dependency> |
| 39 | + <groupId>junit</groupId> |
| 40 | + <artifactId>junit</artifactId> |
| 41 | + <version>4.12</version> |
| 42 | + <scope>test</scope> |
| 43 | + </dependency> |
| 44 | + <dependency> |
| 45 | + <groupId>org.twdata.maven</groupId> |
| 46 | + <artifactId>mojo-executor</artifactId> |
| 47 | + <version>2.3.0</version> |
| 48 | + </dependency> |
| 49 | + <dependency> |
| 50 | + <groupId>org.apache.commons</groupId> |
| 51 | + <artifactId>commons-lang3</artifactId> |
| 52 | + <version>3.9</version> |
| 53 | + </dependency> |
| 54 | + <dependency> |
| 55 | + <groupId>commons-io</groupId> |
| 56 | + <artifactId>commons-io</artifactId> |
| 57 | + <version>2.6</version> |
| 58 | + </dependency> |
| 59 | + <dependency> |
| 60 | + <groupId>org.apache.velocity</groupId> |
| 61 | + <artifactId>velocity-engine-core</artifactId> |
| 62 | + <version>2.0</version> |
| 63 | + </dependency> |
| 64 | + </dependencies> |
| 65 | + |
| 66 | + <build> |
| 67 | + <plugins> |
| 68 | + <plugin> |
| 69 | + <groupId>org.apache.maven.plugins</groupId> |
| 70 | + <artifactId>maven-plugin-plugin</artifactId> |
| 71 | + <version>3.6.0</version> |
| 72 | + <configuration> |
| 73 | + <goalPrefix>javapackager</goalPrefix> |
| 74 | + <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound> |
| 75 | + </configuration> |
| 76 | + <executions> |
| 77 | + <execution> |
| 78 | + <id>help-goal</id> |
| 79 | + <goals> |
| 80 | + <goal>help</goal> |
| 81 | + </goals> |
| 82 | + </execution> |
| 83 | + </executions> |
| 84 | + </plugin> |
| 85 | + <plugin> |
| 86 | + <groupId>org.apache.maven.plugins</groupId> |
| 87 | + <artifactId>maven-install-plugin</artifactId> |
| 88 | + <version>3.0.0-M1</version> |
| 89 | + <configuration> |
| 90 | + <localRepositoryPath>releases</localRepositoryPath> |
| 91 | + <file>${project.build.directory}/${project.artifactId}-${project.version}.jar</file> |
| 92 | + </configuration> |
| 93 | + <executions> |
| 94 | + <execution> |
| 95 | + <id>release</id> |
| 96 | + <phase>install</phase> |
| 97 | + <goals> |
| 98 | + <goal>install-file</goal> |
| 99 | + </goals> |
| 100 | + </execution> |
| 101 | + </executions> |
| 102 | + </plugin> |
| 103 | + </plugins> |
| 104 | + </build> |
| 105 | + |
| 106 | + <profiles> |
| 107 | + <profile> |
| 108 | + <id>run-its</id> |
| 109 | + <build> |
| 110 | + <plugins> |
| 111 | + <plugin> |
| 112 | + <groupId>org.apache.maven.plugins</groupId> |
| 113 | + <artifactId>maven-invoker-plugin</artifactId> |
| 114 | + <version>1.7</version> |
| 115 | + <configuration> |
| 116 | + <debug>true</debug> |
| 117 | + <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> |
| 118 | + <pomIncludes> |
| 119 | + <pomInclude>*/pom.xml</pomInclude> |
| 120 | + </pomIncludes> |
| 121 | + <postBuildHookScript>verify</postBuildHookScript> |
| 122 | + <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath> |
| 123 | + <settingsFile>src/it/settings.xml</settingsFile> |
| 124 | + <goals> |
| 125 | + <goal>clean</goal> |
| 126 | + <goal>test-compile</goal> |
| 127 | + </goals> |
| 128 | + </configuration> |
| 129 | + <executions> |
| 130 | + <execution> |
| 131 | + <id>integration-test</id> |
| 132 | + <goals> |
| 133 | + <goal>install</goal> |
| 134 | + <goal>integration-test</goal> |
| 135 | + <goal>verify</goal> |
| 136 | + </goals> |
| 137 | + </execution> |
| 138 | + </executions> |
| 139 | + </plugin> |
| 140 | + </plugins> |
| 141 | + |
| 142 | + </build> |
| 143 | + </profile> |
| 144 | + </profiles> |
| 145 | + |
| 146 | + <distributionManagement> |
| 147 | + <repository> |
| 148 | + <id>repo</id> |
| 149 | + <url>file://${project.basedir}/releases</url> |
| 150 | + </repository> |
| 151 | + </distributionManagement> |
| 152 | + |
| 153 | +</project> |
0 commit comments