maven pox.xml 设置主入口配置节点

<?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>
上一篇:HTML5 File API — 让前端操作文件变的可能


下一篇:VS2017 MVC项目,新建控制器提示未能加载文件或程序集“Dapper.Contrib解决方法