更新pom
This commit is contained in:
@ -23,15 +23,56 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<!-- <finalName>${project.name}</finalName>-->
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
<source>${maven.compiler.source}</source>
|
||||
<target>${maven.compiler.target}</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- 复制依赖-->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy</id>
|
||||
<!--绑定package阶段执行该插件-->
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<!--该插件的目的是复制依赖-->
|
||||
<goal>copy-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<!--输出路径-->
|
||||
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
||||
<!-- 不导出的包名-->
|
||||
<excludeGroupIds>
|
||||
net.yldev
|
||||
</excludeGroupIds>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!--正常jar包-->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>com.cares.sh.main.Main</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!--全量jar包-->
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<configuration>
|
||||
@ -54,6 +95,7 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
@ -16,4 +16,9 @@ public final class Main {
|
||||
JSON.toJSONString(map);
|
||||
|
||||
}
|
||||
|
||||
public void printOne(String a) {
|
||||
System.out.println("我是参数" + a);
|
||||
System.out.println("我是通知");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user