Skip to content

Commit b3b91b9

Browse files
author
Eugen Paraschiv
committed
plugin cleanup
1 parent 44b61ab commit b3b91b9

5 files changed

Lines changed: 2 additions & 313 deletions

File tree

‎core-java-8/pom.xml‎

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -141,64 +141,6 @@
141141
</archive>
142142
</configuration>
143143
</plugin>
144-
<plugin>
145-
<groupId>org.apache.maven.plugins</groupId>
146-
<artifactId>maven-assembly-plugin</artifactId>
147-
<executions>
148-
<execution>
149-
<phase>package</phase>
150-
<goals>
151-
<goal>single</goal>
152-
</goals>
153-
<configuration>
154-
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
155-
<archive>
156-
<manifest>
157-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
158-
</manifest>
159-
</archive>
160-
<descriptorRefs>
161-
<descriptorRef>jar-with-dependencies</descriptorRef>
162-
</descriptorRefs>
163-
</configuration>
164-
</execution>
165-
</executions>
166-
</plugin>
167-
<plugin>
168-
<groupId>org.apache.maven.plugins</groupId>
169-
<artifactId>maven-shade-plugin</artifactId>
170-
<executions>
171-
<execution>
172-
<goals>
173-
<goal>shade</goal>
174-
</goals>
175-
<configuration>
176-
<shadedArtifactAttached>true</shadedArtifactAttached>
177-
<transformers>
178-
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
179-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
180-
</transformer>
181-
</transformers>
182-
</configuration>
183-
</execution>
184-
</executions>
185-
</plugin>
186-
<plugin>
187-
<groupId>com.jolira</groupId>
188-
<artifactId>onejar-maven-plugin</artifactId>
189-
<executions>
190-
<execution>
191-
<configuration>
192-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
193-
<attachToBuild>true</attachToBuild>
194-
<filename>${project.build.finalName}-onejar.${project.packaging}</filename>
195-
</configuration>
196-
<goals>
197-
<goal>one-jar</goal>
198-
</goals>
199-
</execution>
200-
</executions>
201-
</plugin>
202144
<plugin>
203145
<groupId>org.apache.maven.plugins</groupId>
204146
<artifactId>maven-compiler-plugin</artifactId>

‎core-java-concurrency/pom.xml‎

Lines changed: 1 addition & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -88,79 +88,7 @@
8888
</archive>
8989
</configuration>
9090
</plugin>
91-
<plugin>
92-
<groupId>org.apache.maven.plugins</groupId>
93-
<artifactId>maven-assembly-plugin</artifactId>
94-
<executions>
95-
<execution>
96-
<phase>package</phase>
97-
<goals>
98-
<goal>single</goal>
99-
</goals>
100-
<configuration>
101-
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
102-
<archive>
103-
<manifest>
104-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
105-
</manifest>
106-
</archive>
107-
<descriptorRefs>
108-
<descriptorRef>jar-with-dependencies</descriptorRef>
109-
</descriptorRefs>
110-
</configuration>
111-
</execution>
112-
</executions>
113-
</plugin>
114-
<plugin>
115-
<groupId>org.apache.maven.plugins</groupId>
116-
<artifactId>maven-shade-plugin</artifactId>
117-
<executions>
118-
<execution>
119-
<goals>
120-
<goal>shade</goal>
121-
</goals>
122-
<configuration>
123-
<shadedArtifactAttached>true</shadedArtifactAttached>
124-
<transformers>
125-
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
126-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
127-
</transformer>
128-
</transformers>
129-
</configuration>
130-
</execution>
131-
</executions>
132-
</plugin>
133-
<plugin>
134-
<groupId>com.jolira</groupId>
135-
<artifactId>onejar-maven-plugin</artifactId>
136-
<executions>
137-
<execution>
138-
<configuration>
139-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
140-
<attachToBuild>true</attachToBuild>
141-
<filename>${project.build.finalName}-onejar.${project.packaging}</filename>
142-
</configuration>
143-
<goals>
144-
<goal>one-jar</goal>
145-
</goals>
146-
</execution>
147-
</executions>
148-
</plugin>
149-
<plugin>
150-
<groupId>org.springframework.boot</groupId>
151-
<artifactId>spring-boot-maven-plugin</artifactId>
152-
<executions>
153-
<execution>
154-
<goals>
155-
<goal>repackage</goal>
156-
</goals>
157-
<configuration>
158-
<classifier>spring-boot</classifier>
159-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
160-
</configuration>
161-
</execution>
162-
</executions>
163-
</plugin>
91+
16492
</plugins>
16593
</build>
16694

‎core-java-sun/pom.xml‎

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -195,79 +195,6 @@
195195
</archive>
196196
</configuration>
197197
</plugin>
198-
<plugin>
199-
<groupId>org.apache.maven.plugins</groupId>
200-
<artifactId>maven-assembly-plugin</artifactId>
201-
<executions>
202-
<execution>
203-
<phase>package</phase>
204-
<goals>
205-
<goal>single</goal>
206-
</goals>
207-
<configuration>
208-
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
209-
<archive>
210-
<manifest>
211-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
212-
</manifest>
213-
</archive>
214-
<descriptorRefs>
215-
<descriptorRef>jar-with-dependencies</descriptorRef>
216-
</descriptorRefs>
217-
</configuration>
218-
</execution>
219-
</executions>
220-
</plugin>
221-
<plugin>
222-
<groupId>org.apache.maven.plugins</groupId>
223-
<artifactId>maven-shade-plugin</artifactId>
224-
<executions>
225-
<execution>
226-
<goals>
227-
<goal>shade</goal>
228-
</goals>
229-
<configuration>
230-
<shadedArtifactAttached>true</shadedArtifactAttached>
231-
<transformers>
232-
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
233-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
234-
</transformer>
235-
</transformers>
236-
</configuration>
237-
</execution>
238-
</executions>
239-
</plugin>
240-
<plugin>
241-
<groupId>com.jolira</groupId>
242-
<artifactId>onejar-maven-plugin</artifactId>
243-
<executions>
244-
<execution>
245-
<configuration>
246-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
247-
<attachToBuild>true</attachToBuild>
248-
<filename>${project.build.finalName}-onejar.${project.packaging}</filename>
249-
</configuration>
250-
<goals>
251-
<goal>one-jar</goal>
252-
</goals>
253-
</execution>
254-
</executions>
255-
</plugin>
256-
<plugin>
257-
<groupId>org.springframework.boot</groupId>
258-
<artifactId>spring-boot-maven-plugin</artifactId>
259-
<executions>
260-
<execution>
261-
<goals>
262-
<goal>repackage</goal>
263-
</goals>
264-
<configuration>
265-
<classifier>spring-boot</classifier>
266-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
267-
</configuration>
268-
</execution>
269-
</executions>
270-
</plugin>
271198
<plugin>
272199
<groupId>org.codehaus.mojo</groupId>
273200
<artifactId>exec-maven-plugin</artifactId>

‎ejb/ejb-remote/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<port>9990</port>
7575
<username>testUser</username>
7676
<password>admin1234!</password>
77-
<filename>${build.finalName}.jar</filename>
77+
<filename>${project.build.finalName}.jar</filename>
7878
</configuration>
7979
</plugin>
8080
</plugins>

‎java-numbers/pom.xml‎

Lines changed: 0 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -115,87 +115,6 @@
115115
</configuration>
116116
</plugin>
117117

118-
<plugin>
119-
<groupId>org.apache.maven.plugins</groupId>
120-
<artifactId>maven-assembly-plugin</artifactId>
121-
<executions>
122-
<execution>
123-
<phase>package</phase>
124-
<goals>
125-
<goal>single</goal>
126-
</goals>
127-
<configuration>
128-
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
129-
<archive>
130-
<manifest>
131-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
132-
</manifest>
133-
</archive>
134-
<descriptorRefs>
135-
<descriptorRef>jar-with-dependencies</descriptorRef>
136-
</descriptorRefs>
137-
</configuration>
138-
</execution>
139-
</executions>
140-
</plugin>
141-
142-
<plugin>
143-
<groupId>org.apache.maven.plugins</groupId>
144-
<artifactId>maven-shade-plugin</artifactId>
145-
<version>${maven-shade-plugin.version}</version>
146-
<executions>
147-
<execution>
148-
<goals>
149-
<goal>shade</goal>
150-
</goals>
151-
<configuration>
152-
<shadedArtifactAttached>true</shadedArtifactAttached>
153-
<transformers>
154-
<transformer
155-
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
156-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
157-
</transformer>
158-
</transformers>
159-
</configuration>
160-
</execution>
161-
</executions>
162-
</plugin>
163-
164-
<plugin>
165-
<groupId>com.jolira</groupId>
166-
<artifactId>onejar-maven-plugin</artifactId>
167-
<version>${onejar-maven-plugin.version}</version>
168-
<executions>
169-
<execution>
170-
<configuration>
171-
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
172-
<attachToBuild>true</attachToBuild>
173-
<filename>${project.build.finalName}-onejar.${project.packaging}</filename>
174-
</configuration>
175-
<goals>
176-
<goal>one-jar</goal>
177-
</goals>
178-
</execution>
179-
</executions>
180-
</plugin>
181-
182-
<plugin>
183-
<groupId>org.codehaus.mojo</groupId>
184-
<artifactId>exec-maven-plugin</artifactId>
185-
<version>${exec-maven-plugin.version}</version>
186-
<configuration>
187-
<executable>java</executable>
188-
<mainClass>com.baeldung.outofmemoryerror.OutOfMemoryGCLimitExceed</mainClass>
189-
<arguments>
190-
<argument>-Xmx300m</argument>
191-
<argument>-XX:+UseParallelGC</argument>
192-
<argument>-classpath</argument>
193-
<classpath />
194-
<argument>com.baeldung.outofmemoryerror.OutOfMemoryGCLimitExceed</argument>
195-
</arguments>
196-
</configuration>
197-
</plugin>
198-
199118
<plugin>
200119
<groupId>org.apache.maven.plugins</groupId>
201120
<artifactId>maven-javadoc-plugin</artifactId>
@@ -235,31 +154,6 @@
235154
</systemPropertyVariables>
236155
</configuration>
237156
</plugin>
238-
<plugin>
239-
<groupId>org.codehaus.mojo</groupId>
240-
<artifactId>exec-maven-plugin</artifactId>
241-
242-
<executions>
243-
<execution>
244-
<id>run-benchmarks</id>
245-
<!-- <phase>integration-test</phase> -->
246-
<phase>none</phase>
247-
<goals>
248-
<goal>exec</goal>
249-
</goals>
250-
<configuration>
251-
<classpathScope>test</classpathScope>
252-
<executable>java</executable>
253-
<arguments>
254-
<argument>-classpath</argument>
255-
<classpath />
256-
<argument>org.openjdk.jmh.Main</argument>
257-
<argument>.*</argument>
258-
</arguments>
259-
</configuration>
260-
</execution>
261-
</executions>
262-
</plugin>
263157
</plugins>
264158
</build>
265159
</profile>
@@ -280,7 +174,5 @@
280174
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
281175
<maven-javadoc-plugin.version>3.0.0-M1</maven-javadoc-plugin.version>
282176
<maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
283-
<onejar-maven-plugin.version>1.4.4</onejar-maven-plugin.version>
284-
<maven-shade-plugin.version>3.1.1</maven-shade-plugin.version>
285177
</properties>
286178
</project>

0 commit comments

Comments
 (0)