Skip to content

Commit ec0b373

Browse files
Nheverestherve stern
andauthored
CheckMojo for CheckTool (#13)
Co-authored-by: herve stern <herve.stern@ext.mpsa.com>
1 parent c358e74 commit ec0b373

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

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 Nov 30 15:14:40 CET 2020
16+
#Mon May 03 12:21:52 CEST 2021
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-2020, 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 check goal. This goal runs the check Seed tool which verifies mapping
20+
* between classes and configuration of the application.
21+
*/
22+
@Mojo(name = "check", requiresProject = true, threadSafe = true, defaultPhase = LifecyclePhase.VALIDATE,
23+
requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME)
24+
@Execute(phase = LifecyclePhase.PROCESS_CLASSES)
25+
public class CheckMojo extends AbstractExecutableMojo {
26+
@Override
27+
public void execute() throws MojoExecutionException, MojoFailureException {
28+
execute(new ToolRunnable("check", getContext()), false);
29+
waitForShutdown();
30+
}
31+
}

0 commit comments

Comments
 (0)