|
5 | 5 | http://maven.apache.org/maven-v4_0_0.xsd"> |
6 | 6 | <modelVersion>4.0.0</modelVersion> |
7 | 7 | <groupId>org.harctoolbox</groupId> |
8 | | - <artifactId>JavaLircClient</artifactId> |
| 8 | + <artifactId>LircClient</artifactId> |
9 | 9 | <packaging>jar</packaging> |
10 | 10 | <version>0.1.1dev</version> |
11 | | - <name>JavaLircClient</name> |
| 11 | + <name>LircClient</name> |
12 | 12 | <licenses> |
13 | 13 | <license> |
14 | 14 | <name>GPL 3+</name> |
|
18 | 18 | <description>An independent implementation of a Lirc Client, like irsend.</description> |
19 | 19 | <url>http://www.harctoolbox.org</url> |
20 | 20 | <properties> |
| 21 | + <project.nameLowercase>lircclient</project.nameLowercase> |
21 | 22 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
22 | 23 | <maven.compiler.source>1.8</maven.compiler.source> |
23 | 24 | <maven.compiler.target>1.8</maven.compiler.target> |
|
33 | 34 | <configuration> |
34 | 35 | <archive> |
35 | 36 | <manifest> |
36 | | - <mainClass>org.lirc.LircClient</mainClass> |
| 37 | + <mainClass>org.harctoolbox.lircclient.LircClient</mainClass> |
37 | 38 | </manifest> |
38 | 39 | </archive> |
39 | 40 | <descriptorRefs> |
|
63 | 64 | </configuration> |
64 | 65 | </plugin> |
65 | 66 |
|
| 67 | + <plugin> |
| 68 | + <groupId>org.codehaus.mojo</groupId> |
| 69 | + <artifactId>xml-maven-plugin</artifactId> |
| 70 | + <version>1.0</version> |
| 71 | + <executions> |
| 72 | + <execution> |
| 73 | + <phase>generate-sources</phase> |
| 74 | + <goals> |
| 75 | + <goal>transform</goal> |
| 76 | + </goals> |
| 77 | + </execution> |
| 78 | + </executions> |
| 79 | + <configuration> |
| 80 | + <transformationSets> |
| 81 | + <transformationSet> |
| 82 | + <dir>src/main/xml</dir> |
| 83 | + <outputDir>${project.build.directory}/generated-sources/xml/org/harctoolbox/lircclient</outputDir> |
| 84 | + <includes> |
| 85 | + <include>Version.xml</include> |
| 86 | + </includes> |
| 87 | + <stylesheet>${basedir}/tools/mkVersion.xsl</stylesheet> |
| 88 | + <parameters> |
| 89 | + <parameter> |
| 90 | + <name>version</name> |
| 91 | + <value>${project.version}</value> |
| 92 | + </parameter> |
| 93 | + <parameter> |
| 94 | + <name>url</name> |
| 95 | + <value>${project.url}</value> |
| 96 | + </parameter> |
| 97 | + <parameter> |
| 98 | + <name>appName</name> |
| 99 | + <value>${project.artifactId}</value> |
| 100 | + </parameter> |
| 101 | + </parameters> |
| 102 | + <fileMappers> |
| 103 | + <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper"> |
| 104 | + <targetExtension>.java</targetExtension> |
| 105 | + </fileMapper> |
| 106 | + </fileMappers> |
| 107 | + </transformationSet> |
| 108 | + </transformationSets> |
| 109 | + </configuration> |
| 110 | + |
| 111 | + <dependencies> |
| 112 | + <dependency> |
| 113 | + <groupId>xalan</groupId> |
| 114 | + <artifactId>xalan</artifactId> |
| 115 | + <version>2.7.2</version> |
| 116 | + </dependency> |
| 117 | + </dependencies> |
| 118 | + </plugin> |
| 119 | + |
| 120 | + <plugin> |
| 121 | + <groupId>org.codehaus.mojo</groupId> |
| 122 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 123 | + <version>1.9.1</version> |
| 124 | + <executions> |
| 125 | + <execution> |
| 126 | + <phase>generate-sources</phase> |
| 127 | + <goals> |
| 128 | + <goal>add-source</goal> |
| 129 | + </goals> |
| 130 | + <configuration> |
| 131 | + <sources> |
| 132 | + <source>${project.build.directory}/generated-sources/xml</source> |
| 133 | + </sources> |
| 134 | + </configuration> |
| 135 | + </execution> |
| 136 | + </executions> |
| 137 | + </plugin> |
| 138 | + |
| 139 | + <plugin> |
| 140 | + <!-- Copy resources in src/main/config to target dir. --> |
| 141 | + <artifactId>maven-resources-plugin</artifactId> |
| 142 | + <version>3.0.1</version> |
| 143 | + <executions> |
| 144 | + <execution> |
| 145 | + <id>copy-resources</id> |
| 146 | + <phase>validate</phase> |
| 147 | + <goals> |
| 148 | + <goal>copy-resources</goal> |
| 149 | + </goals> |
| 150 | + <configuration> |
| 151 | + <outputDirectory>${basedir}/target</outputDirectory> |
| 152 | + <resources> |
| 153 | + <resource> |
| 154 | + <directory>src/main/config</directory> |
| 155 | + <filtering>true</filtering> |
| 156 | + </resource> |
| 157 | + <!--resource> |
| 158 | + <directory>src/main/resources</directory> |
| 159 | + <filtering>false</filtering> |
| 160 | + </resource--> |
| 161 | + </resources> |
| 162 | + </configuration> |
| 163 | + </execution> |
| 164 | + </executions> |
| 165 | + </plugin> |
66 | 166 | </plugins> |
67 | 167 | </build> |
68 | 168 |
|
| 169 | + <profiles> |
| 170 | + <profile> |
| 171 | + <id>chmod</id> |
| 172 | + <activation> |
| 173 | + <file> |
| 174 | + <exists>/usr/bin/chmod</exists> <!-- good enough for now :-) --> |
| 175 | + </file> |
| 176 | + </activation> |
| 177 | + <build> |
| 178 | + <plugins> |
| 179 | + <plugin> |
| 180 | + <groupId>org.codehaus.mojo</groupId> |
| 181 | + <artifactId>exec-maven-plugin</artifactId> |
| 182 | + <version>1.5.0</version> |
| 183 | + <executions> |
| 184 | + <execution> |
| 185 | + <id>make-wrapper-executable</id> |
| 186 | + <phase>prepare-package</phase> |
| 187 | + <goals> |
| 188 | + <goal>exec</goal> |
| 189 | + </goals> |
| 190 | + <configuration> |
| 191 | + <executable>chmod</executable> |
| 192 | + <workingDirectory>${project.build.directory}</workingDirectory> |
| 193 | + <arguments> |
| 194 | + <argument>0755</argument> |
| 195 | + <argument>${project.nameLowercase}.sh</argument> |
| 196 | + </arguments> |
| 197 | + </configuration> |
| 198 | + </execution> |
| 199 | + </executions> |
| 200 | + </plugin> |
| 201 | + </plugins> |
| 202 | + </build> |
| 203 | + </profile> |
| 204 | + </profiles> |
| 205 | + |
69 | 206 | <dependencies> |
70 | 207 | <dependency> |
71 | 208 | <groupId>com.beust</groupId> |
|
0 commit comments