maven 项目初始化
Last updated on November 22, 2024 pm
🧙 Questions
☄️ Ideas
初始化项目
mvn archetype:generate
mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart -DgroupId=com.isxcode.demo -DartifactId=demo -DinteractiveMode=false
<properties>
<java.version>1.8</java.version>
<maven.compiler.source>6</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<archive>
<manifest>
<mainClass>com.isxcode.demo.App</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
java -Dfile.encoding=UTF-8 -classpath C:\Users\ispon\Desktop\demo\target\classes;D:\tools\maven\repository\com\microsoft\sqlserver\mssql-jdbc\9.2.1.jre8\mssql-jdbc-9.2.1.jre8.jar -jar demo-1.0.jar
🔗 Links
maven 项目初始化
https://ispong.isxcode.com/spring/maven/maven 项目初始化/