|
| 1 | +<?xml version="1.0"?> |
| 2 | +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
| 3 | + xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + |
| 6 | + |
| 7 | + <!-- [Part 1] BASIC SETTINGS BEGIN --> |
| 8 | + |
| 9 | + <!-- MAVEN COORDINATE BEGIN --> |
| 10 | + <groupId>io.github.dunwu</groupId> |
| 11 | + <artifactId>javatool</artifactId> |
| 12 | + <version>1.0.0</version> |
| 13 | + <packaging>jar</packaging> |
| 14 | + <!-- MAVEN COORDINATE END --> |
| 15 | + |
| 16 | + <!-- RELATIONSHIP SETTINGS BEGIN --> |
| 17 | + <dependencies> |
| 18 | + <!-- log start --> |
| 19 | + <dependency> |
| 20 | + <groupId>ch.qos.logback</groupId> |
| 21 | + <artifactId>logback-core</artifactId> |
| 22 | + <version>1.2.3</version> |
| 23 | + </dependency> |
| 24 | + <dependency> |
| 25 | + <groupId>ch.qos.logback</groupId> |
| 26 | + <artifactId>logback-classic</artifactId> |
| 27 | + <version>1.2.3</version> |
| 28 | + </dependency> |
| 29 | + <dependency> |
| 30 | + <groupId>ch.qos.logback</groupId> |
| 31 | + <artifactId>logback-access</artifactId> |
| 32 | + <version>1.2.3</version> |
| 33 | + </dependency> |
| 34 | + <dependency> |
| 35 | + <groupId>net.logstash.logback</groupId> |
| 36 | + <artifactId>logstash-logback-encoder</artifactId> |
| 37 | + <version>4.11</version> |
| 38 | + </dependency> |
| 39 | + <!-- log end --> |
| 40 | + |
| 41 | + <dependency> |
| 42 | + <groupId>junit</groupId> |
| 43 | + <artifactId>junit</artifactId> |
| 44 | + <version>4.12</version> |
| 45 | + <scope>test</scope> |
| 46 | + </dependency> |
| 47 | + <dependency> |
| 48 | + <groupId>commons-codec</groupId> |
| 49 | + <artifactId>commons-codec</artifactId> |
| 50 | + <version>1.4</version> |
| 51 | + </dependency> |
| 52 | + </dependencies> |
| 53 | + <!-- RELATIONSHIP SETTINGS END --> |
| 54 | + |
| 55 | + <!-- PROPERTIES BEGIN --> |
| 56 | + <properties> |
| 57 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 58 | + <java.version>1.6</java.version> |
| 59 | + <maven.compiler.source>${java.version}</maven.compiler.source> |
| 60 | + <maven.compiler.target>${java.version}</maven.compiler.target> |
| 61 | + </properties> |
| 62 | + <!-- PROPERTIES END --> |
| 63 | + |
| 64 | + <!-- [Part 1] BASIC SETTINGS END --> |
| 65 | + |
| 66 | + |
| 67 | + <!-- [Part 2] BUILD SETTINGS BEGIN --> |
| 68 | + <build> |
| 69 | + <resources> |
| 70 | + <resource> |
| 71 | + <filtering>true</filtering> |
| 72 | + <directory>src/main/resources</directory> |
| 73 | + <includes> |
| 74 | + <include>logback.xml</include> |
| 75 | + </includes> |
| 76 | + <!--<targetPath>/abc</targetPath>--> |
| 77 | + </resource> |
| 78 | + </resources> |
| 79 | + </build> |
| 80 | + <!-- [Part 2] BUILD SETTINGS END --> |
| 81 | + |
| 82 | + |
| 83 | + <!-- [Part 3] PROJECT INFO BEGIN --> |
| 84 | + <name>${project.artifactId}</name> |
| 85 | + <description>Java 工具使用示例</description> |
| 86 | + <!-- [Part 3] PROJECT INFO END --> |
| 87 | + |
| 88 | + |
| 89 | +</project> |
0 commit comments