转git仓库
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?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.inmind</groupId>
|
||||
<artifactId>maven-project01</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<!--依赖管理坐标-->
|
||||
<dependencies>
|
||||
<!--logback日志框架-->
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
<version>1.2.4</version>
|
||||
<!--依赖范围-->
|
||||
<!-- <scope>compile</scope>-->
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
<!-- 打包插件 -->
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>2.4.1</version>
|
||||
<configuration>
|
||||
<descriptorRefs><descriptorRef>jar-with-dependencies</descriptorRef></descriptorRefs>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>make-assembly</id>
|
||||
<phase>package</phase>
|
||||
<goals><goal>single</goal></goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.inmind;
|
||||
|
||||
//import org.slf4j.Logger;
|
||||
|
||||
public class HelloWorld {
|
||||
// Logger logger;
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello Maven");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.inmind;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
|
||||
public class DemoTest {
|
||||
|
||||
Logger logger;
|
||||
}
|
||||
Reference in New Issue
Block a user