|
115 | 115 | </configuration> |
116 | 116 | </plugin> |
117 | 117 |
|
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 | | - |
199 | 118 | <plugin> |
200 | 119 | <groupId>org.apache.maven.plugins</groupId> |
201 | 120 | <artifactId>maven-javadoc-plugin</artifactId> |
|
235 | 154 | </systemPropertyVariables> |
236 | 155 | </configuration> |
237 | 156 | </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> |
263 | 157 | </plugins> |
264 | 158 | </build> |
265 | 159 | </profile> |
|
280 | 174 | <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version> |
281 | 175 | <maven-javadoc-plugin.version>3.0.0-M1</maven-javadoc-plugin.version> |
282 | 176 | <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> |
285 | 177 | </properties> |
286 | 178 | </project> |
0 commit comments