Fixed build

This commit is contained in:
Joachim Lusiardi 2023-05-27 21:21:45 +02:00
parent 911171d3a6
commit 03d10ef107
1 changed files with 146 additions and 133 deletions

279
pom.xml
View File

@ -1,133 +1,146 @@
<project <project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>de.lusiardi</groupId> <groupId>de.lusiardi</groupId>
<artifactId>MouseMover</artifactId> <artifactId>MouseMover</artifactId>
<version>0.0.1</version> <version>0.0.1</version>
<prerequisites> <prerequisites>
<maven>3.0</maven> <maven>3.0</maven>
</prerequisites> </prerequisites>
<pluginRepositories> <pluginRepositories>
<pluginRepository> <pluginRepository>
<id>launch4j-xml-plugin-repo</id> <id>launch4j-xml-plugin-repo</id>
<name>launch4j-xml-plugin Repository for Maven</name> <name>launch4j-xml-plugin Repository for Maven</name>
<url>https://launch4j-xml-plugin.googlecode.com/svn/repo</url> <url>https://launch4j-xml-plugin.googlecode.com/svn/repo</url>
</pluginRepository> </pluginRepository>
</pluginRepositories> </pluginRepositories>
<reporting> <reporting>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId> <artifactId>cobertura-maven-plugin</artifactId>
<version>2.5.2</version> <version>2.5.2</version>
<configuration> <configuration>
<formats> <formats>
<format>html</format> <format>html</format>
</formats> </formats>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
</reporting> </reporting>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>1.3.1</version> <version>3.1</version>
<executions> <configuration>
<execution> <source>1.7</source>
<phase>package</phase> <target>1.7</target>
<goals> <encoding>UTF-8</encoding>
<goal>shade</goal> </configuration>
</goals> </plugin>
</execution>
</executions> <plugin>
<configuration> <groupId>org.apache.maven.plugins</groupId>
<filters> <artifactId>maven-shade-plugin</artifactId>
<filter> <version>1.3.1</version>
<artifact>*:*</artifact> <executions>
<excludes> <execution>
<exclude>META-INF/*.SF</exclude> <phase>package</phase>
<exclude>META-INF/*.DSA</exclude> <goals>
<exclude>META-INF/*.RSA</exclude> <goal>shade</goal>
</excludes> </goals>
</filter> </execution>
</filters> </executions>
<transformers> <configuration>
<transformer <filters>
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <filter>
<manifestEntries> <artifact>*:*</artifact>
<Main-Class>de.lusiardi.mousemover.Main</Main-Class> <excludes>
</manifestEntries> <exclude>META-INF/*.SF</exclude>
</transformer> <exclude>META-INF/*.DSA</exclude>
<transformer <exclude>META-INF/*.RSA</exclude>
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> </excludes>
<resource>lang/messages.properties</resource> </filter>
</transformer> </filters>
<transformer <transformers>
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <transformer
<resource>lang/messages_de.properties</resource> implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
</transformer> <manifestEntries>
<transformer <Main-Class>de.lusiardi.mousemover.Main</Main-Class>
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> </manifestEntries>
</transformers> </transformer>
</configuration> <transformer
</plugin> implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<plugin> <resource>lang/messages.properties</resource>
<groupId>org.bluestemsoftware.open.maven.plugin</groupId> </transformer>
<artifactId>launch4j-plugin</artifactId> <transformer
<version>1.5.0.0</version> implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<executions> <resource>lang/messages_de.properties</resource>
<execution> </transformer>
<id>l4j-gui</id> <transformer
<phase>package</phase> implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<goals> </transformers>
<goal>launch4j</goal> </configuration>
</goals> </plugin>
<configuration> <plugin>
<headerType>gui</headerType> <groupId>com.akathist.maven.plugins.launch4j</groupId>
<outfile>target/MouseMover.exe</outfile> <artifactId>launch4j-maven-plugin</artifactId>
<jar>target/MouseMover-0.0.1.jar</jar> <version>2.4.1</version>
<errTitle>MouseMover Error</errTitle> <executions>
<icon>src/main/resources/mm.ico</icon> <execution>
<jre> <id>l4j-gui</id>
<minVersion>1.5.0</minVersion> <phase>package</phase>
<maxVersion>1.9.0</maxVersion> <goals>
<initialHeapSize>128</initialHeapSize> <goal>launch4j</goal>
<maxHeapSize>1024</maxHeapSize> </goals>
</jre> <configuration>
<versionInfo> <headerType>gui</headerType>
<fileVersion>1.0.0.0</fileVersion> <outfile>target/MouseMover.exe</outfile>
<txtFileVersion>1.0.0.0</txtFileVersion> <jar>target/MouseMover-0.0.1.jar</jar>
<fileDescription>Desc</fileDescription> <errTitle>MouseMover Error</errTitle>
<copyright>C</copyright> <icon>src/main/resources/mm.ico</icon>
<productVersion>1.0.0.0</productVersion> <jre>
<txtProductVersion>1.0.0.0</txtProductVersion> <minVersion>1.7.0</minVersion>
<productName>MouseMover</productName> <maxVersion>1.9.0</maxVersion>
<internalName>MouseMover</internalName> <initialHeapSize>128</initialHeapSize>
<originalFilename>MouseMover.exe</originalFilename> <maxHeapSize>1024</maxHeapSize>
</versionInfo> <path>./lib/jre</path>
</configuration>
</execution> </jre>
</executions> <versionInfo>
</plugin> <fileVersion>1.0.0.0</fileVersion>
<plugin> <txtFileVersion>1.0.0.0</txtFileVersion>
<groupId>org.codehaus.mojo</groupId> <fileDescription>Desc</fileDescription>
<artifactId>cobertura-maven-plugin</artifactId> <copyright>C</copyright>
<version>2.5.2</version> <productVersion>1.0.0.0</productVersion>
<configuration> <txtProductVersion>1.0.0.0</txtProductVersion>
<instrumentation> <productName>MouseMover</productName>
</instrumentation> <internalName>MouseMover</internalName>
</configuration> <originalFilename>MouseMover.exe</originalFilename>
<executions> </versionInfo>
<execution> </configuration>
<goals> </execution>
<goal>clean</goal> </executions>
</goals> </plugin>
</execution> <plugin>
</executions> <groupId>org.codehaus.mojo</groupId>
</plugin> <artifactId>cobertura-maven-plugin</artifactId>
</plugins> <version>2.5.2</version>
</build> <configuration>
</project> <instrumentation>
</instrumentation>
</configuration>
<executions>
<execution>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>