Skip to content

Commit c04bed2

Browse files
committed
fix deployment to maven central
1 parent 7bebd6b commit c04bed2

File tree

3 files changed

+91
-31
lines changed

3 files changed

+91
-31
lines changed

core.javaee/pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,37 @@
2626
<scope>provided</scope>
2727
</dependency>
2828
</dependencies>
29+
<build>
30+
<plugins>
31+
<plugin>
32+
<groupId>org.apache.maven.plugins</groupId>
33+
<artifactId>maven-source-plugin</artifactId>
34+
<version>2.2.1</version>
35+
<executions>
36+
<execution>
37+
<id>attach-sources</id>
38+
<goals>
39+
<goal>jar-no-fork</goal>
40+
</goals>
41+
</execution>
42+
</executions>
43+
</plugin>
44+
<plugin>
45+
<groupId>org.apache.maven.plugins</groupId>
46+
<artifactId>maven-javadoc-plugin</artifactId>
47+
<version>2.9.1</version>
48+
<executions>
49+
<execution>
50+
<id>attach-javadocs</id>
51+
<goals>
52+
<goal>jar</goal>
53+
</goals>
54+
<configuration>
55+
<additionalparam>-Xdoclint:none</additionalparam>
56+
</configuration>
57+
</execution>
58+
</executions>
59+
</plugin>
60+
</plugins>
61+
</build>
2962
</project>

net.lecousin.core/pom.xml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,6 @@
164164
</execution>
165165
</executions>
166166
</plugin>
167-
<plugin>
168-
<groupId>org.apache.maven.plugins</groupId>
169-
<artifactId>maven-checkstyle-plugin</artifactId>
170-
</plugin>
171-
<plugin>
172-
<groupId>com.github.spotbugs</groupId>
173-
<artifactId>spotbugs-maven-plugin</artifactId>
174-
</plugin>
175167
<plugin>
176168
<groupId>org.apache.maven.plugins</groupId>
177169
<artifactId>maven-surefire-plugin</artifactId>
@@ -222,6 +214,24 @@
222214

223215

224216
<profiles>
217+
<profile>
218+
<id>default</id>
219+
<activation>
220+
<activeByDefault>true</activeByDefault>
221+
</activation>
222+
<build>
223+
<plugins>
224+
<plugin>
225+
<groupId>org.apache.maven.plugins</groupId>
226+
<artifactId>maven-checkstyle-plugin</artifactId>
227+
</plugin>
228+
<plugin>
229+
<groupId>com.github.spotbugs</groupId>
230+
<artifactId>spotbugs-maven-plugin</artifactId>
231+
</plugin>
232+
</plugins>
233+
</build>
234+
</profile>
225235
<profile>
226236
<id>ossrh</id>
227237
<activation>

pom.xml

Lines changed: 40 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,45 @@
3030
</developer>
3131
</developers>
3232

33-
<build>
34-
<plugins>
35-
<plugin>
36-
<groupId>org.jacoco</groupId>
37-
<artifactId>jacoco-maven-plugin</artifactId>
38-
<version>0.7.9</version>
39-
<executions>
40-
<execution>
41-
<goals>
42-
<goal>prepare-agent</goal>
43-
</goals>
44-
</execution>
45-
<execution>
46-
<id>report</id>
47-
<phase>test</phase>
48-
<goals>
49-
<goal>report</goal>
50-
</goals>
51-
</execution>
52-
</executions>
53-
</plugin>
54-
</plugins>
55-
</build>
33+
<profiles>
34+
<profile>
35+
<id>default</id>
36+
<activation>
37+
<activeByDefault>true</activeByDefault>
38+
</activation>
39+
<build>
40+
<plugins>
41+
<plugin>
42+
<groupId>org.jacoco</groupId>
43+
<artifactId>jacoco-maven-plugin</artifactId>
44+
<version>0.7.9</version>
45+
<executions>
46+
<execution>
47+
<goals>
48+
<goal>prepare-agent</goal>
49+
</goals>
50+
</execution>
51+
<execution>
52+
<id>report</id>
53+
<phase>test</phase>
54+
<goals>
55+
<goal>report</goal>
56+
</goals>
57+
</execution>
58+
</executions>
59+
</plugin>
60+
</plugins>
61+
</build>
62+
</profile>
63+
<profile>
64+
<id>ossrh</id>
65+
<activation>
66+
<property>
67+
<name>ossrh</name>
68+
<value>true</value>
69+
</property>
70+
</activation>
71+
</profile>
72+
</profiles>
5673

5774
</project>

0 commit comments

Comments
 (0)