Skip to content

Commit 8e8170f

Browse files
bullet-toothdmitry-timofeev
authored andcommitted
Fix build warnings (#938)
See #938 for details.
1 parent e483c92 commit 8e8170f

File tree

6 files changed

+32
-10
lines changed

6 files changed

+32
-10
lines changed

exonum-java-binding/cryptocurrency-demo/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@
184184
</descriptorRefs>
185185
<finalName>${project.artifactId}-${project.version}-artifact</finalName>
186186
<appendAssemblyId>false</appendAssemblyId>
187+
<!-- Do not use the produced artifact jar file as a main jar
188+
i.e. do not install it in the local repo -->
189+
<attach>false</attach>
187190
<archive>
188191
<manifestEntries>
189192
<Plugin-Id>${project.groupId}:${project.artifactId}:${project.version}</Plugin-Id>

exonum-java-binding/fake-service/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@
8787
<finalName>${project.artifactId}-artifact</finalName>
8888
<appendAssemblyId>false</appendAssemblyId>
8989
<attach>false</attach>
90+
<!-- Do not use the produced artifact jar file as a main jar
91+
i.e. do not install it in the local repo -->
92+
<attach>false</attach>
9093
<archive>
9194
<manifestEntries>
9295
<Plugin-Id>${project.groupId}:${project.artifactId}:${project.version}</Plugin-Id>

exonum-java-binding/integration-tests/pom.xml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
<description>
1717
A module providing integration tests for Core and Time Oracle modules that require
1818
a node running a service. Such tests cannot be written using plain MemoryDb, hence use
19-
a testkit.
19+
the TestKit.
20+
This module is not supposed to have sources and produce a jar file; it's created for
21+
integration tests execution during the project build.
2022
</description>
2123

2224
<properties>
@@ -61,10 +63,23 @@
6163
<build>
6264
<plugins>
6365
<plugin>
64-
<groupId>org.apache.maven.plugins</groupId>
6566
<artifactId>maven-compiler-plugin</artifactId>
6667
</plugin>
6768

69+
<plugin><!--Do not create an empty Jar-->
70+
<artifactId>maven-jar-plugin</artifactId>
71+
<configuration>
72+
<skipIfEmpty>true</skipIfEmpty>
73+
</configuration>
74+
</plugin>
75+
76+
<plugin><!--Do not install Jar-->
77+
<artifactId>maven-install-plugin</artifactId>
78+
<configuration>
79+
<skip>true</skip>
80+
</configuration>
81+
</plugin>
82+
6883
<plugin>
6984
<artifactId>maven-surefire-plugin</artifactId>
7085
<configuration>
@@ -77,7 +92,6 @@
7792
</plugin>
7893

7994
<plugin>
80-
<groupId>org.apache.maven.plugins</groupId>
8195
<artifactId>maven-checkstyle-plugin</artifactId>
8296
<configuration>
8397
<configLocation>${project.parent.basedir}/../checkstyle.xml</configLocation>
@@ -87,7 +101,6 @@
87101

88102
<!-- Skip the deployment of internal module as it is inherited from parent pom -->
89103
<plugin>
90-
<groupId>org.apache.maven.plugins</groupId>
91104
<artifactId>maven-deploy-plugin</artifactId>
92105
<configuration>
93106
<skip>true</skip>

exonum-java-binding/packaging/pom.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,9 @@
5151

5252
<plugin><!--Do not install Jar-->
5353
<artifactId>maven-install-plugin</artifactId>
54-
<executions>
55-
<execution>
56-
<id>default-install</id>
57-
<phase/>
58-
</execution>
59-
</executions>
54+
<configuration>
55+
<skip>true</skip>
56+
</configuration>
6057
</plugin>
6158

6259
<plugin>

exonum-java-binding/qa-service/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@
207207
</descriptorRefs>
208208
<finalName>${project.artifactId}-${project.version}-artifact</finalName>
209209
<appendAssemblyId>false</appendAssemblyId>
210+
<!-- Do not use the produced artifact jar file as a main jar
211+
i.e. do not install it in the local repo -->
212+
<attach>false</attach>
210213
<archive>
211214
<manifestEntries>
212215
<Plugin-Id>${project.groupId}:${project.artifactId}:${project.version}</Plugin-Id>

exonum-java-binding/service-archetype/src/main/resources/archetype-resources/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@
142142
</descriptorRefs>
143143
<finalName>${project.artifactId}-${project.version}-artifact</finalName>
144144
<appendAssemblyId>false</appendAssemblyId>
145+
<!-- Do not use the produced artifact jar file as a main jar
146+
i.e. do not install it in the local repo -->
147+
<attach>false</attach>
145148
<archive>
146149
<manifestEntries>
147150
<Plugin-Id>${project.groupId}:${project.artifactId}:${project.version}</Plugin-Id>

0 commit comments

Comments
 (0)