1 Star 0 Fork 0

代码工具 / extra-code-generate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pom.xml 3.46 KB
一键复制 编辑 原始数据 按行查看 历史
SIVEN 提交于 2018-06-21 09:47 . update
<?xml version="1.0"?>
<project 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">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.extra</groupId>
<artifactId>extra-code-generate</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>extra-code-generate</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- 数据库操作相关 -->
<mysql.version>5.1.36</mysql.version>
<junit.version>4.12</junit.version>
<java.version>1.7</java.version>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.mozilla.intl</groupId>
<artifactId>chardet</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.23</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
<version>${junit.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<configuration>
<!-- 这个archive以及archive里面的设置很重要,没有这个配置,就无法生成可执行jar文件 -->
<archive>
<manifest>
<mainClass>com.code.generate.App</mainClass>
</manifest>
</archive>
<!-- 这个jar-with-dependencies是这个插件中预置的,不用管它,尽管用就好了 -->
<!-- 当然,你也可以用自己的descriptor。如何用?自己去查这个插件的文档 -->
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<!-- 这里的phase和goals都是maven的基础概念,不懂的可以去看maven的文档 -->
<!-- 总之,当你install你的project的时候,是会涵盖package phase和single goal的 -->
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
Java
1
https://gitee.com/code-tools/extra-code-generate.git
git@gitee.com:code-tools/extra-code-generate.git
code-tools
extra-code-generate
extra-code-generate
master

搜索帮助