Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 6078dfa

Browse files
authored
Sample POM cleanup (#858)
1 parent cb4f60a commit 6078dfa

File tree

16 files changed

+1021
-2322
lines changed

16 files changed

+1021
-2322
lines changed

samples/02.echo-bot/pom.xml

Lines changed: 11 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,10 @@
3838
</developers>
3939

4040
<properties>
41-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
4341
<java.version>1.8</java.version>
4442
<maven.compiler.target>1.8</maven.compiler.target>
4543
<maven.compiler.source>1.8</maven.compiler.source>
4644
<start-class>com.microsoft.bot.sample.echo.Application</start-class>
47-
<repo.url>https://botbuilder.myget.org/F/botbuilder-v4-java-daily/maven/</repo.url>
4845
</properties>
4946

5047
<dependencies>
@@ -84,37 +81,23 @@
8481
</dependency>
8582
</dependencies>
8683

87-
<repositories>
88-
<repository>
89-
<id>MyGet</id>
90-
<url>${repo.url}</url>
91-
</repository>
92-
</repositories>
93-
94-
<distributionManagement>
95-
<repository>
96-
<id>ossrh</id>
97-
<!-- <url>${repo.url}</url>-->
98-
<url>https://oss.sonatype.org/</url>
99-
<!-- <url>https://repo.maven.apache.org/maven2</url>-->
100-
</repository>
101-
</distributionManagement>
102-
10384
<profiles>
10485
<profile>
10586
<id>build</id>
10687
<activation>
10788
<activeByDefault>true</activeByDefault>
10889
</activation>
10990
<build>
91+
<resources>
92+
<resource>
93+
<directory>src/main/resources</directory>
94+
<filtering>false</filtering>
95+
</resource>
96+
</resources>
11097
<plugins>
11198
<plugin>
11299
<artifactId>maven-compiler-plugin</artifactId>
113100
<version>3.8.1</version>
114-
<configuration>
115-
<source>1.8</source>
116-
<target>1.8</target>
117-
</configuration>
118101
</plugin>
119102
<plugin>
120103
<artifactId>maven-war-plugin</artifactId>
@@ -168,51 +151,6 @@
168151
</deployment>
169152
</configuration>
170153
</plugin>
171-
<plugin>
172-
<groupId>org.eluder.coveralls</groupId>
173-
<artifactId>coveralls-maven-plugin</artifactId>
174-
<version>4.3.0</version>
175-
<configuration>
176-
<repoToken>yourcoverallsprojectrepositorytoken</repoToken>
177-
</configuration>
178-
</plugin>
179-
<plugin>
180-
<groupId>org.codehaus.mojo</groupId>
181-
<artifactId>cobertura-maven-plugin</artifactId>
182-
<version>2.7</version>
183-
<configuration>
184-
<outputDirectory>../../cobertura-report/spring-echo-sample</outputDirectory>
185-
<format>xml</format>
186-
<maxmem>256m</maxmem>
187-
<!-- aggregated reports for multi-module projects -->
188-
<aggregate>true</aggregate>
189-
</configuration>
190-
</plugin>
191-
<plugin>
192-
<groupId>org.apache.maven.plugins</groupId>
193-
<artifactId>maven-pmd-plugin</artifactId>
194-
<version>3.12.0</version>
195-
<executions>
196-
<execution>
197-
<phase>validate</phase>
198-
<goals>
199-
<goal>check</goal>
200-
</goals>
201-
</execution>
202-
</executions>
203-
</plugin>
204-
205-
<plugin>
206-
<groupId>org.apache.maven.plugins</groupId>
207-
<artifactId>maven-site-plugin</artifactId>
208-
<version>3.7.1</version>
209-
</plugin>
210-
<plugin>
211-
<groupId>org.apache.maven.plugins</groupId>
212-
<artifactId>maven-project-info-reports-plugin</artifactId>
213-
<version>3.0.0</version>
214-
</plugin>
215-
216154
</plugins>
217155
</build>
218156
</profile>
@@ -227,8 +165,11 @@
227165
<artifactId>maven-compiler-plugin</artifactId>
228166
</plugin>
229167
<plugin>
230-
<groupId>org.apache.maven.plugins</groupId>
231-
<artifactId>maven-jar-plugin</artifactId>
168+
<artifactId>maven-war-plugin</artifactId>
169+
<version>3.2.3</version>
170+
<configuration>
171+
<warSourceDirectory>src/main/webapp</warSourceDirectory>
172+
</configuration>
232173
</plugin>
233174

234175
<plugin>
@@ -289,27 +230,4 @@
289230
</build>
290231
</profile>
291232
</profiles>
292-
293-
<reporting>
294-
<plugins>
295-
<plugin>
296-
<groupId>org.apache.maven.plugins</groupId>
297-
<artifactId>maven-pmd-plugin</artifactId>
298-
<version>3.12.0</version>
299-
</plugin>
300-
<plugin>
301-
<groupId>org.apache.maven.plugins</groupId>
302-
<artifactId>maven-checkstyle-plugin</artifactId>
303-
<version>3.1.0</version>
304-
<reportSets>
305-
<reportSet>
306-
<reports>
307-
<report>checkstyle</report>
308-
</reports>
309-
</reportSet>
310-
</reportSets>
311-
</plugin>
312-
</plugins>
313-
</reporting>
314-
315233
</project>

0 commit comments

Comments
 (0)