Skip to content

Commit b32ef3c

Browse files
committed
Add support for diag tool
1 parent de6a437 commit b32ef3c

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Version 2.7.5 (2019-06-??)
2+
3+
* [new] Add specific goal for `diag` tool.
4+
15
# Version 2.7.4 (2019-03-11)
26

37
* [fix] Preserve classpath order in packaged capsules (CLI having precedence over POM having precedence over application manifest).

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<groupId>org.seedstack</groupId>
2121
<artifactId>seedstack-maven-plugin</artifactId>
22-
<version>2.7.4-SNAPSHOT</version>
22+
<version>2.7.5-SNAPSHOT</version>
2323
<packaging>maven-plugin</packaging>
2424

2525
<properties>

src/license/THIRD-PARTY.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Please fill the missing licenses for dependencies :
1414
#
1515
#
16-
#Mon Mar 11 20:58:29 CET 2019
16+
#Wed Jun 05 22:52:25 CEST 2019
1717
classworlds--classworlds--1.1-alpha-2=
1818
org.codehaus.plexus--plexus-container-default--1.0-alpha-9-stable-1=
1919
jdom--jdom--1.0=
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright © 2013-2019, The SeedStack authors <http://seedstack.org>
3+
*
4+
* This Source Code Form is subject to the terms of the Mozilla Public
5+
* License, v. 2.0. If a copy of the MPL was not distributed with this
6+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
7+
*/
8+
package org.seedstack.maven;
9+
10+
import org.apache.maven.plugin.MojoExecutionException;
11+
import org.apache.maven.plugin.MojoFailureException;
12+
import org.apache.maven.plugins.annotations.Execute;
13+
import org.apache.maven.plugins.annotations.LifecyclePhase;
14+
import org.apache.maven.plugins.annotations.Mojo;
15+
import org.apache.maven.plugins.annotations.ResolutionScope;
16+
import org.seedstack.maven.runnables.ToolRunnable;
17+
18+
/**
19+
* Defines the crypt goal. This goal runs the crypt Seed tool which crypts the given argument using a key/pair in
20+
* the master keystore of the application.
21+
*/
22+
@Mojo(name = "diag", requiresProject = true, threadSafe = true, defaultPhase = LifecyclePhase.VALIDATE,
23+
requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME)
24+
@Execute(phase = LifecyclePhase.PROCESS_CLASSES)
25+
public class DiagMojo extends AbstractExecutableMojo {
26+
@Override
27+
public void execute() throws MojoExecutionException, MojoFailureException {
28+
execute(new ToolRunnable("diag", getContext()), false);
29+
waitForShutdown();
30+
}
31+
}

0 commit comments

Comments
 (0)