Skip to content

Commit 2a8eb67

Browse files
committed
Merge branch 'release/3.0.0'
2 parents 92d9d61 + 5d11633 commit 2a8eb67

4 files changed

Lines changed: 207 additions & 4 deletions

File tree

.travis.maven-settings.xml

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
#%L
4+
wcm.io
5+
%%
6+
Copyright (C) 2014 wcm.io
7+
%%
8+
Licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this file except in compliance with the License.
10+
You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
19+
#L%
20+
-->
21+
22+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
23+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
25+
26+
<profiles>
27+
<profile>
28+
<id>default</id>
29+
30+
<repositories>
31+
32+
<repository>
33+
<id>central</id>
34+
<url>http://repo1.maven.org/maven2/</url>
35+
<layout>default</layout>
36+
<releases>
37+
<enabled>true</enabled>
38+
<updatePolicy>never</updatePolicy>
39+
</releases>
40+
<snapshots>
41+
<enabled>false</enabled>
42+
</snapshots>
43+
</repository>
44+
45+
<repository>
46+
<id>oss-snapshots</id>
47+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
48+
<layout>default</layout>
49+
<releases>
50+
<enabled>false</enabled>
51+
</releases>
52+
<snapshots>
53+
<enabled>true</enabled>
54+
<updatePolicy>always</updatePolicy>
55+
</snapshots>
56+
</repository>
57+
58+
<repository>
59+
<id>apache-snapshots</id>
60+
<url>http://repository.apache.org/snapshots</url>
61+
<layout>default</layout>
62+
<releases>
63+
<enabled>false</enabled>
64+
</releases>
65+
<snapshots>
66+
<enabled>true</enabled>
67+
<updatePolicy>always</updatePolicy>
68+
</snapshots>
69+
</repository>
70+
71+
</repositories>
72+
73+
<pluginRepositories>
74+
75+
<pluginRepository>
76+
<id>central</id>
77+
<url>http://repo1.maven.org/maven2/</url>
78+
<layout>default</layout>
79+
<releases>
80+
<enabled>true</enabled>
81+
<updatePolicy>never</updatePolicy>
82+
</releases>
83+
<snapshots>
84+
<enabled>false</enabled>
85+
</snapshots>
86+
</pluginRepository>
87+
88+
<pluginRepository>
89+
<id>oss-snapshots</id>
90+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
91+
<layout>default</layout>
92+
<releases>
93+
<enabled>false</enabled>
94+
</releases>
95+
<snapshots>
96+
<enabled>true</enabled>
97+
<updatePolicy>always</updatePolicy>
98+
</snapshots>
99+
</pluginRepository>
100+
101+
<pluginRepository>
102+
<id>apache-snapshots</id>
103+
<url>http://repository.apache.org/snapshots</url>
104+
<layout>default</layout>
105+
<releases>
106+
<enabled>false</enabled>
107+
</releases>
108+
<snapshots>
109+
<enabled>true</enabled>
110+
<updatePolicy>always</updatePolicy>
111+
</snapshots>
112+
</pluginRepository>
113+
114+
</pluginRepositories>
115+
116+
</profile>
117+
118+
</profiles>
119+
120+
<activeProfiles>
121+
<activeProfile>default</activeProfile>
122+
</activeProfiles>
123+
124+
</settings>

.travis.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# #%L
2+
# wcm.io
3+
# %%
4+
# Copyright (C) 2015 wcm.io
5+
# %%
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
# #L%
18+
#
19+
20+
language: java
21+
22+
jdk:
23+
- oraclejdk8
24+
25+
# Make sure travis can use container-based infrastructure
26+
sudo: false
27+
28+
install: "mvn -s ./.travis.maven-settings.xml clean"
29+
30+
script:
31+
- "mvn -s ./.travis.maven-settings.xml -U -Dmaven.javadoc.skip=true install"
32+
# Remove wcm.io artefacts from repository before cache
33+
- rm -rf $HOME/.m2/repository/io/wcm
34+
35+
# exlude release tags like xyz-1.0.0 or xyz-1
36+
branches:
37+
except:
38+
- /^.*\-\d+(\.\d+\.\d+)?(\..*|\-.*)?$/
39+
40+
# Cache Maven Repository
41+
cache:
42+
directories:
43+
- '$HOME/.m2/repository'
44+
45+
# this will not work yet with a google groups mailing list - see https://github.com/travis-ci/travis-ci/issues/2513
46+
#notifications:
47+
# email:
48+
# recipients:
49+
# - wcm-io-dev@googlegroups.com
50+
# on_success: change
51+
# on_failure: always

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,32 @@
11
<img src="http://wcm.io/images/favicon-16@2x.png"/> Maven Eclipse Plugin
22
======
3+
[![Build Status](https://travis-ci.org/wcm-io-devops/maven-eclipse-plugin.png?branch=develop)](https://travis-ci.org/wcm-io-devops/maven-eclipse-plugin)
4+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.wcm.devops.maven.plugins/eclipse-maven-plugin/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.wcm.devops.maven.plugins/eclipse-maven-plugin)
35

46
The Eclipse Plugin is used to generate Eclipse IDE files (.project, .classpath and the .settings folder) from a POM.
57

68
This is a fork of the original [Maven Eclipse Plugin](https://maven.apache.org/plugins/maven-eclipse-plugin/) which [was retired end of 2015](http://mail-archives.apache.org/mod_mbox/maven-dev/201510.mbox/%3Cop.x55dxii1kdkhrr%40robertscholte.dynamic.ziggo.nl%3E) in favor of the m2e Eclipse integration.
79

810
In our wcm.io and other Maven-based projects we usually use both m2e Integration and the Maven Eclipse Plugin. The Maven Eclipse Plugin is used to generate project-specific eclipse settings files and further files for Checkstyle, Findbugs and PMD based on a global build tools artifact defined a parent POM like `io.wcm.maven:io.wcm.maven.global-parent`, see [Global Parent](http://wcm.io/tooling/maven/global-parent.html) documentation for details.
911

10-
So we maintain a fork of the original plugin here and publish it unter Apache 2.0 license within the wcm.io DevOps project.
12+
So we maintain a fork of the original plugin here and publish it under Apache 2.0 license within the wcm.io DevOps project.
1113

12-
This fork includes the patch from [MECLIPSE-641](https://issues.apache.org/jira/browse/MECLIPSE-641) which was never applied to the original code base, but is important for pregenerating the eclipse project settings.
14+
This fork includes the patch from [MECLIPSE-641](https://issues.apache.org/jira/browse/MECLIPSE-641) which was never applied to the original code base, but is important for generating the eclipse project settings.
15+
16+
To use this in your projects update all your POMs to use
17+
18+
```xml
19+
<plugin>
20+
<groupId>io.wcm.devops.maven.plugins</groupId>
21+
<artifactId>eclipse-maven-plugin</artifactId>
22+
</plugin>
23+
```
24+
25+
instead of
26+
27+
```xml
28+
<plugin>
29+
<groupId>org.apache.maven.plugins</groupId>
30+
<artifactId>maven-eclipse-plugin</artifactId>
31+
</plugin>
32+
```

pom.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ under the License.
2626
<artifactId>maven-plugins</artifactId>
2727
<groupId>org.apache.maven.plugins</groupId>
2828
<version>28</version>
29-
<relativePath/>
29+
<relativePath />
3030
</parent>
3131

3232
<groupId>io.wcm.devops.maven.plugins</groupId>
3333
<artifactId>eclipse-maven-plugin</artifactId>
34-
<version>3.0.0-SNAPSHOT</version>
34+
<version>3.0.0</version>
3535
<packaging>maven-plugin</packaging>
3636

3737
<name>wcm.io DevOps Maven Eclipse Plugin</name>
@@ -601,6 +601,14 @@ under the License.
601601
<autoReleaseAfterClose>false</autoReleaseAfterClose>
602602
</configuration>
603603
</plugin>
604+
<!-- skip on javadoc errors -->
605+
<plugin>
606+
<groupId>org.apache.maven.plugins</groupId>
607+
<artifactId>maven-javadoc-plugin</artifactId>
608+
<configuration>
609+
<failOnError>false</failOnError>
610+
</configuration>
611+
</plugin>
604612
</plugins>
605613
</build>
606614
</profile>

0 commit comments

Comments
 (0)