maven pox.xml 設定主入口配置節點

(二少)在南極發表於2016-01-12
<?xml version="1.0" encoding="UTF-8"?>
<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>com.yuewen.lesson</groupId>
<artifactId>yuewen.lesson</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<!-- MainClass in mainfest make a executable jar -->
<archive>
<manifest>
<mainClass>study.lesson.frist.ThreeLesson</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>

</project>

相關文章