加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pom.xml 10.08 KB
一键复制 编辑 原始数据 按行查看 历史
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>us.deathmarine</groupId>
<artifactId>luyten</artifactId>
<version>0.7.0</version>
<dependencies>
<dependency>
<groupId>com.fifesoft</groupId>
<artifactId>rsyntaxtextarea</artifactId>
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>com.apple</groupId>
<artifactId>AppleJavaExtensions</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.bitbucket.mstrobel</groupId>
<artifactId>procyon-core</artifactId>
<version>0.6.0</version>
</dependency>
<dependency>
<groupId>org.bitbucket.mstrobel</groupId>
<artifactId>procyon-expressions</artifactId>
<version>0.6.0</version>
</dependency>
<dependency>
<groupId>org.bitbucket.mstrobel</groupId>
<artifactId>procyon-reflection</artifactId>
<version>0.6.0</version>
</dependency>
<dependency>
<groupId>org.bitbucket.mstrobel</groupId>
<artifactId>procyon-compilertools</artifactId>
<version>0.6.0</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.14.1</version>
</dependency>
<!--
<dependency>
<groupId>org.bitbucket.mstrobel</groupId>
<artifactId>procyon</artifactId>
<version>0.5.27</version>
</dependency>
-->
</dependencies>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
</repositories>
<build>
<sourceDirectory>src</sourceDirectory>
<finalName>${project.artifactId}-${project.version}-lib</finalName>
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
<resource>
<directory>target</directory>
<excludes>
<exclude>**/*.*</exclude>
</excludes>
</resource>
</resources>
<plugins><!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.bitbucket.mstrobel</groupId>
<artifactId>procyon</artifactId>
<version>0.5.27</version>
<packaging>jar</packaging>
<file>${basedir}/lib/procyon-decompiler-0.5.27.jar</file>
</configuration>
</execution>
</executions>
</plugin>-->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<finalName>${project.artifactId}-${project.version}</finalName>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>${project.groupId}.${project.artifactId}.Luyten</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<!-- Replaced by maven-shade for Uber-jar
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
<finalName>${project.artifactId}</finalName>
<archive>
<manifest>
<mainClass>${project.groupId}.${project.artifactId}.Luyten</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
-->
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>2.2.0</version>
</plugin>
<plugin>
<!-- Download universalJavaApplicationStub for use in the OS X app -->
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.6.8</version>
</plugin>
<plugin>
<!-- Package the jar as an OS X application -->
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>jarbundler-gui</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<taskdef name="jarbundler" classname="com.ultramixer.jarbundler.JarBundler"/>
<chmod file="${project.build.directory}/resources/universalJavaApplicationStub.sh"
perm="+x"/>
<jarbundler dir="${project.build.directory}" name="Luyten" shortname="Luyten"
signature="Luyten"
jars="${project.build.directory}/${project.artifactId}-${project.version}.jar"
stubfile="${project.build.directory}/resources/universalJavaApplicationStub.sh"
useJavaXKey="true" workingdirectory="$JAVAROOT"
bundleid="${project.groupId}.${project.artifactId}"
mainclass="${project.groupId}.${project.artifactId}.LuytenOsx"
version="${project.version}" copyright="2015"
icon="${project.build.sourceDirectory}/resources/luyten.icns"
jvmversion="1.8+" screenmenu="true"
antialiasedgraphics="true" highresolutioncapable="true">
<documenttype name="Class File" extensions="class" role="Viewer"/>
<documenttype name="Java File" extensions="java" role="Viewer"/>
<documenttype name="Jar File" extensions="jar" role="Viewer"/>
<documenttype name="War File" extensions="war" role="Viewer"/>
<documenttype name="Ear File" extensions="ear" role="Viewer"/>
<documenttype name="Zip File" extensions="zip" role="Viewer"/>
</jarbundler>
<!-- Produce a zip file of the application for distribution -->
<zip destfile="${project.build.directory}/${project.artifactId}-OSX-${project.version}.zip">
<zipfileset dir="${project.build.directory}"
includes="Luyten.app/**" excludes="Luyten.app/Contents/MacOS/*"/>
<zipfileset dir="${project.build.directory}"
includes="Luyten.app/Contents/MacOS/*" filemode="755"/>
</zip>
</target>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.ultramixer.jarbundler</groupId>
<artifactId>jarbundler-core</artifactId>
<version>3.3.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化