Skip to content

Commit 862316b

Browse files
committed
[Build] Use Cucumber parent pom
1 parent 44c6496 commit 862316b

File tree

2 files changed

+4
-269
lines changed

2 files changed

+4
-269
lines changed

examples/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,10 @@
6262
<skip>true</skip>
6363
</configuration>
6464
</plugin>
65-
<plugin>
66-
<groupId>org.sonatype.plugins</groupId>
67-
<artifactId>nexus-staging-maven-plugin</artifactId>
68-
<configuration>
69-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
70-
</configuration>
71-
</plugin>
7265
<plugin>
7366
<groupId>net.alchim31.maven</groupId>
7467
<artifactId>scala-maven-plugin</artifactId>
7568
<configuration>
76-
<!--encoding>UTF-8</encoding-->
7769
<excludes>
7870
<exclude>**/*.java</exclude>
7971
</excludes>

pom.xml

Lines changed: 4 additions & 261 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,11 @@
99
<url>http://cucumber.io/</url>
1010

1111
<parent>
12-
<groupId>org.sonatype.oss</groupId>
13-
<artifactId>oss-parent</artifactId>
14-
<version>7</version>
12+
<groupId>io.cucumber</groupId>
13+
<artifactId>cucumber-parent</artifactId>
14+
<version>1.0.2</version>
1515
</parent>
1616

17-
<prerequisites>
18-
<maven>${minimum.maven.version}</maven>
19-
</prerequisites>
20-
2117
<developers>
2218
<developer>
2319
<id>glib-briia</id>
@@ -33,9 +29,7 @@
3329
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
3430
<minimum.maven.version>3.3</minimum.maven.version>
3531
<outputDirectory>${project.build.directory}</outputDirectory>
36-
3732
<scala-maven-plugin.version>3.2.2</scala-maven-plugin.version>
38-
3933
<cucumber.version>4.1.0</cucumber.version>
4034
<gherkin.version>5.1.0</gherkin.version>
4135
<groovy.version>2.4.12</groovy.version>
@@ -45,13 +39,7 @@
4539
<scala.2.11.version>2.11.12</scala.2.11.version>
4640

4741
</properties>
48-
<licenses>
49-
<license>
50-
<name>MIT License</name>
51-
<url>http://www.opensource.org/licenses/mit-license</url>
52-
<distribution>repo</distribution>
53-
</license>
54-
</licenses>
42+
5543
<scm>
5644
<connection>scm:git:git://github.com/cucumber/cucumber-jvm-scala.git</connection>
5745
<developerConnection>scm:git:[email protected]:cucumber/cucumber-jvm-scala.git</developerConnection>
@@ -87,28 +75,6 @@
8775
</dependencies>
8876
</dependencyManagement>
8977

90-
<!--
91-
this adds a repository that the plugins will use for dependency resolution
92-
Any items that we use in a plugin's <dependency> phase can be resolved from here, as well as central
93-
-->
94-
<pluginRepositories>
95-
<pluginRepository>
96-
<id>sonatype.org</id>
97-
<url>https://oss.sonatype.org/content/repositories/releases</url>
98-
</pluginRepository>
99-
</pluginRepositories>
100-
101-
<distributionManagement>
102-
<snapshotRepository>
103-
<id>ossrh</id>
104-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
105-
</snapshotRepository>
106-
<repository>
107-
<id>ossrh</id>
108-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
109-
</repository>
110-
</distributionManagement>
111-
11278
<modules>
11379
<module>scala</module>
11480
</modules>
@@ -124,50 +90,6 @@
12490
</modules>
12591
</profile>
12692

127-
<profile>
128-
<id>sign-source-javadoc</id>
129-
<build>
130-
<plugins>
131-
<plugin>
132-
<groupId>org.apache.maven.plugins</groupId>
133-
<artifactId>maven-source-plugin</artifactId>
134-
<executions>
135-
<execution>
136-
<id>attach-sources</id>
137-
<goals>
138-
<goal>jar-no-fork</goal>
139-
</goals>
140-
</execution>
141-
</executions>
142-
</plugin>
143-
<plugin>
144-
<groupId>org.apache.maven.plugins</groupId>
145-
<artifactId>maven-javadoc-plugin</artifactId>
146-
<executions>
147-
<execution>
148-
<id>attach-javadocs</id>
149-
<goals>
150-
<goal>jar</goal>
151-
</goals>
152-
</execution>
153-
</executions>
154-
</plugin>
155-
<plugin>
156-
<groupId>org.apache.maven.plugins</groupId>
157-
<artifactId>maven-gpg-plugin</artifactId>
158-
<executions>
159-
<execution>
160-
<phase>verify</phase>
161-
<goals>
162-
<goal>sign</goal>
163-
</goals>
164-
</execution>
165-
</executions>
166-
</plugin>
167-
</plugins>
168-
</build>
169-
</profile>
170-
17193
<profile>
17294
<id>coveralls.io</id>
17395
<build>
@@ -209,8 +131,6 @@
209131
<build>
210132
<pluginManagement>
211133
<plugins>
212-
<!-- Standard plugins - alphabetically -->
213-
214134
<plugin>
215135
<groupId>org.apache.maven.plugins</groupId>
216136
<artifactId>maven-antrun-plugin</artifactId>
@@ -229,40 +149,6 @@
229149
</dependencies>
230150
</plugin>
231151

232-
<plugin>
233-
<groupId>org.apache.maven.plugins</groupId>
234-
<artifactId>maven-clean-plugin</artifactId>
235-
<version>3.0.0</version>
236-
<configuration>
237-
<filesets>
238-
<fileset>
239-
<directory>.</directory>
240-
<includes>
241-
<include>**/*.ser</include>
242-
</includes>
243-
</fileset>
244-
</filesets>
245-
</configuration>
246-
</plugin>
247-
248-
<plugin>
249-
<groupId>org.apache.maven.plugins</groupId>
250-
<artifactId>maven-compiler-plugin</artifactId>
251-
<version>3.6.2</version>
252-
<configuration>
253-
<encoding>UTF-8</encoding>
254-
<source>1.6</source>
255-
<target>1.6</target>
256-
<compilerArgument>-Werror</compilerArgument>
257-
</configuration>
258-
</plugin>
259-
260-
<plugin>
261-
<groupId>org.apache.maven.plugins</groupId>
262-
<artifactId>maven-gpg-plugin</artifactId>
263-
<version>1.6</version>
264-
</plugin>
265-
266152
<plugin>
267153
<groupId>org.apache.maven.plugins</groupId>
268154
<artifactId>maven-javadoc-plugin</artifactId>
@@ -290,24 +176,6 @@
290176
</configuration>
291177
</plugin>
292178

293-
<plugin>
294-
<groupId>org.apache.maven.plugins</groupId>
295-
<artifactId>maven-jar-plugin</artifactId>
296-
<version>3.0.2</version>
297-
</plugin>
298-
299-
<plugin>
300-
<groupId>org.apache.maven.plugins</groupId>
301-
<artifactId>maven-project-info-reports-plugin</artifactId>
302-
<version>2.9</version>
303-
</plugin>
304-
305-
<plugin>
306-
<groupId>org.apache.maven.plugins</groupId>
307-
<artifactId>maven-release-plugin</artifactId>
308-
<version>2.5.3</version>
309-
</plugin>
310-
311179
<plugin>
312180
<groupId>org.apache.maven.plugins</groupId>
313181
<artifactId>maven-shade-plugin</artifactId>
@@ -325,139 +193,14 @@
325193
</executions>
326194
</plugin>
327195

328-
<plugin>
329-
<groupId>org.apache.maven.plugins</groupId>
330-
<artifactId>maven-site-plugin</artifactId>
331-
<version>3.6</version>
332-
</plugin>
333-
334-
<plugin>
335-
<groupId>org.apache.maven.plugins</groupId>
336-
<artifactId>maven-resources-plugin</artifactId>
337-
<version>3.0.2</version>
338-
</plugin>
339-
340-
<plugin>
341-
<groupId>org.apache.maven.plugins</groupId>
342-
<artifactId>maven-source-plugin</artifactId>
343-
<version>3.0.1</version>
344-
<executions>
345-
<execution>
346-
<id>bind-sources</id>
347-
<goals>
348-
<goal>jar</goal>
349-
</goals>
350-
</execution>
351-
</executions>
352-
</plugin>
353-
354-
<plugin>
355-
<groupId>org.apache.maven.plugins</groupId>
356-
<artifactId>maven-surefire-plugin</artifactId>
357-
<version>2.20</version>
358-
<configuration>
359-
<argLine>-Duser.language=en</argLine>
360-
<argLine>-Xmx1024m</argLine>
361-
<argLine>-XX:MaxPermSize=256m</argLine>
362-
<argLine>-Dfile.encoding=UTF-8</argLine>
363-
<useFile>false</useFile>
364-
</configuration>
365-
</plugin>
366-
367196
<!-- Non-standard plugins -->
368197
<plugin>
369198
<groupId>net.alchim31.maven</groupId>
370199
<artifactId>scala-maven-plugin</artifactId>
371200
<version>${scala-maven-plugin.version}</version>
372201
</plugin>
373202

374-
<plugin>
375-
<groupId>org.codehaus.mojo</groupId>
376-
<artifactId>build-helper-maven-plugin</artifactId>
377-
<version>3.0.0</version>
378-
</plugin>
379-
380-
<plugin>
381-
<groupId>org.apache.maven.plugins</groupId>
382-
<artifactId>maven-deploy-plugin</artifactId>
383-
<version>2.8.2</version>
384-
</plugin>
385-
<plugin>
386-
<groupId>org.apache.maven.plugins</groupId>
387-
<artifactId>maven-install-plugin</artifactId>
388-
<version>2.5.2</version>
389-
</plugin>
390-
<plugin>
391-
<groupId>org.apache.maven.plugins</groupId>
392-
<artifactId>maven-enforcer-plugin</artifactId>
393-
<version>3.0.0-M1</version>
394-
</plugin>
395-
<plugin>
396-
<groupId>org.sonatype.plugins</groupId>
397-
<artifactId>nexus-staging-maven-plugin</artifactId>
398-
<version>1.6.7</version>
399-
</plugin>
400203
</plugins>
401204
</pluginManagement>
402-
403-
<plugins>
404-
<plugin>
405-
<groupId>org.apache.maven.plugins</groupId>
406-
<artifactId>maven-enforcer-plugin</artifactId>
407-
<executions>
408-
<execution>
409-
<id>enforce</id>
410-
<configuration>
411-
<rules>
412-
<requireJavaVersion>
413-
<version>1.7.0-9</version>
414-
</requireJavaVersion>
415-
<requireMavenVersion>
416-
<version>[${minimum.maven.version},)</version>
417-
</requireMavenVersion>
418-
<requirePluginVersions>
419-
<message>Best Practice is to always define plugin versions!</message>
420-
<banLatest>true</banLatest>
421-
<banRelease>true</banRelease>
422-
<banSnapshots>true</banSnapshots>
423-
<phases>clean,deploy,site</phases>
424-
<unCheckedPluginList>org.codehaus.mojo</unCheckedPluginList>
425-
</requirePluginVersions>
426-
<bannedDependencies>
427-
<excludes>
428-
<exclude>commons-logging</exclude>
429-
<!-- use slf4j -->
430-
<exclude>log4j</exclude>
431-
<!-- use slf4j -->
432-
</excludes>
433-
</bannedDependencies>
434-
</rules>
435-
</configuration>
436-
<goals>
437-
<goal>enforce</goal>
438-
</goals>
439-
</execution>
440-
</executions>
441-
</plugin>
442-
<plugin>
443-
<groupId>org.sonatype.plugins</groupId>
444-
<artifactId>nexus-staging-maven-plugin</artifactId>
445-
<extensions>true</extensions>
446-
<configuration>
447-
<serverId>ossrh</serverId>
448-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
449-
<!--Manually review the non-snapshot artifacts for a while before automating the release -->
450-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
451-
</configuration>
452-
</plugin>
453-
</plugins>
454-
455-
<extensions>
456-
<extension>
457-
<groupId>org.apache.maven.wagon</groupId>
458-
<artifactId>wagon-ssh</artifactId>
459-
<version>2.10</version>
460-
</extension>
461-
</extensions>
462205
</build>
463206
</project>

0 commit comments

Comments
 (0)