pom.xml

Download pom.xml

  1: <?xml version="1.0" encoding="UTF-8"?>
  2: 
  3: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4:   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5:   <modelVersion>4.0.0</modelVersion>
  6: 
  7:   <groupId>com.wpollock</groupId>
  8:   <artifactId>LogAndMetricsDemo</artifactId>
  9:   <version>1.0.0</version>
 10: 
 11:   <name>LogAndMetricsDemo</name>
 12:   <url>https://wpollock.com</url>
 13: 
 14:   <properties>
 15:     <maven.compiler.release>16</maven.compiler.release>
 16:     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 17:     <main.class>com.wpollock.LogMetricDemo</main.class>
 18:   </properties>
 19: 
 20:   <dependencies>
 21:     <dependency>
 22:       <groupId>org.junit.jupiter</groupId>
 23:       <artifactId>junit-jupiter</artifactId>
 24:       <version>5.8.0-M1</version>
 25:       <scope>test</scope>
 26:     </dependency>
 27: 
 28:     <dependency>
 29:       <groupId>org.assertj</groupId>
 30:       <artifactId>assertj-core</artifactId>
 31:       <version>3.19.0</version>
 32:       <scope>test</scope>
 33:     </dependency>
 34: 
 35:     <dependency>
 36:       <groupId>io.dropwizard.metrics</groupId>
 37:       <artifactId>metrics-core</artifactId>
 38:       <version>4.1.19</version>
 39:       <exclusions>
 40:         <exclusion>
 41:           <groupId>org.slf4j</groupId>
 42:           <artifactId>slf4j-nop</artifactId>
 43:         </exclusion>
 44:         <exclusion>
 45:           <groupId>org.slf4j</groupId>
 46:           <artifactId>slf4j-jdk14</artifactId>
 47:         </exclusion>
 48:       </exclusions>
 49:     </dependency>
 50: 
 51:     <dependency>
 52:       <groupId>org.slf4j</groupId>
 53:       <artifactId>slf4j-api</artifactId>
 54:       <version>1.7.30</version>
 55:     </dependency>
 56: 
 57:     <dependency>
 58:       <groupId>org.slf4j</groupId>
 59:       <artifactId>slf4j-simple</artifactId>
 60:       <version>1.7.30</version>
 61:     </dependency>
 62: 
 63:     <dependency>
 64:       <groupId>org.codehaus.mojo</groupId>
 65:       <artifactId>versions-maven-plugin</artifactId>
 66:       <version>2.8.1</version>
 67:     </dependency>
 68: 
 69:     <!-- The following 3 dependencies are listed to exclude slf4j* dependencies.
 70:          Without these exclusions, you get warnings when you run the program. -->
 71:     <dependency>
 72:       <groupId>org.apache.maven.wagon</groupId>
 73:       <artifactId>wagon-webdav-jackrabbit</artifactId>
 74:       <version>2.2</version>
 75:       <exclusions>
 76:         <exclusion>
 77:           <groupId>org.slf4j</groupId>
 78:           <artifactId>slf4j-nop</artifactId>
 79:         </exclusion>
 80:         <exclusion>
 81:           <groupId>org.slf4j</groupId>
 82:           <artifactId>slf4j-jdk14</artifactId>
 83:         </exclusion>
 84:       </exclusions>
 85:     </dependency>
 86: 
 87:     <dependency>
 88:       <groupId>org.apache.jackrabbit</groupId>
 89:       <artifactId>jackrabbit-webdav</artifactId>
 90:       <version>2.2.5</version>
 91:       <exclusions>
 92:         <exclusion>
 93:           <groupId>org.slf4j</groupId>
 94:           <artifactId>slf4j-nop</artifactId>
 95:         </exclusion>
 96:         <exclusion>
 97:           <groupId>org.slf4j</groupId>
 98:           <artifactId>slf4j-jdk14</artifactId>
 99:         </exclusion>
100:       </exclusions>
101:     </dependency>
102: 
103:     <dependency>
104:       <groupId>org.apache.maven</groupId>
105:       <artifactId>maven-core</artifactId>
106:       <version>3.3.9</version>
107:       <exclusions>
108:         <exclusion>
109:           <groupId>org.slf4j</groupId>
110:           <artifactId>slf4j-nop</artifactId>
111:         </exclusion>
112:         <exclusion>
113:           <groupId>org.slf4j</groupId>
114:           <artifactId>slf4j-jdk14</artifactId>
115:         </exclusion>
116:       </exclusions>
117:     </dependency>
118:   </dependencies>
119: 
120:   <build>
121:     <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults
122:                            (may be moved to parent pom) -->
123:       <plugins>
124:         <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
125:         <plugin>
126:           <artifactId>maven-clean-plugin</artifactId>
127:           <version>3.1.0</version>
128:         </plugin>
129:         <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
130:         <plugin>
131:           <artifactId>maven-resources-plugin</artifactId>
132:           <version>3.2.0</version>
133:         </plugin>
134:         <plugin>
135:           <artifactId>maven-compiler-plugin</artifactId>
136:           <version>3.8.1</version>
137:         </plugin>
138:         <plugin>
139:           <artifactId>maven-surefire-plugin</artifactId>
140:           <version>3.0.0-M5</version>
141:         </plugin>
142:         <plugin>
143:           <artifactId>maven-jar-plugin</artifactId>
144:           <version>3.2.0</version>
145:         </plugin>
146:         <plugin>
147:           <artifactId>maven-install-plugin</artifactId>
148:           <version>3.0.0-M1</version>
149:         </plugin>
150:         <plugin>
151:           <artifactId>maven-deploy-plugin</artifactId>
152:           <version>2.8.2</version>
153:         </plugin>
154:         <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
155:         <plugin>
156:           <artifactId>maven-site-plugin</artifactId>
157:           <version>3.7.1</version>
158:         </plugin>
159:         <plugin>
160:           <artifactId>maven-project-info-reports-plugin</artifactId>
161:           <version>3.0.0</version>
162:         </plugin>
163:       </plugins>
164:     </pluginManagement>
165: 
166:     <plugins>
167:     <!-- http://www.mojohaus.org/exec-maven-plugin -->
168:     <plugin>
169:       <groupId>org.codehaus.mojo</groupId>
170:       <artifactId>exec-maven-plugin</artifactId>
171:       <version>3.0.0</version>
172:       <executions>
173:         <execution>
174:           <goals>
175:             <goal>java</goal>
176:           </goals>
177:         </execution>
178:       </executions>
179:       <configuration>
180:         <mainClass>${main.class}</mainClass>
181:       </configuration>
182:     </plugin>
183:     <plugin>
184:       <groupId>org.apache.maven.plugins</groupId>
185:       <artifactId>maven-jar-plugin</artifactId>
186:       <configuration>
187:         <archive>
188:           <manifest>
189:             <mainClass>${main.class}</mainClass>
190:           </manifest>
191:         </archive>
192:       </configuration>
193:     </plugin>
194:     </plugins>
195:   </build>
196: </project>