conditional-validation

A simple example of a Maven Mojo providing conditional validation. The conditions are statically defined in the configuration pom.xml

License

License

GroupId

GroupId

com.github.bmaggi
ArtifactId

ArtifactId

conditional-validation
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

conditional-validation
A simple example of a Maven Mojo providing conditional validation. The conditions are statically defined in the configuration pom.xml
Project URL

Project URL

https://github.com/bmaggi/conditional-validation
Project Organization

Project Organization

Benoit Maggi
Source Code Management

Source Code Management

http://github.com/bmaggi/conditional-validation/tree/master

Download conditional-validation

How to add to project

<plugin>
    <groupId>com.github.bmaggi</groupId>
    <artifactId>conditional-validation</artifactId>
    <version>0.1.1</version>
</plugin>

Dependencies

compile (1)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.2.5

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5

test (1)

Group / Artifact Type Version
org.testng : testng jar 6.11

Project Modules

There are no modules declared in this project.

conditional-validation

A simple example of a Maven Mojo providing conditional validation. The conditions are statically defined in the configuration pom.xml

Status

Build Status License Maven Central

Maven Generated site

Usage

Operators : And, Not, Or, Xor

Condition : FileCondition

Examples

  • File condition
<condition>
	<exist>README.md</exist>
</condition>
  • And Operator
<condition>
	<and>
		<exist>README.md</exist>
		<exist>LICENSE</exist>						
	</and>
</condition>

Release on maven central

mvn release:clean release:prepare 

followed by

mvn release:perform

Versions

Version
0.1.1