ASCII banner Maven plugin

Displays a customizable message after building projects

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

pet.orca
ArtifactId

ArtifactId

ascii-banner-maven-plugin
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

ASCII banner Maven plugin
Displays a customizable message after building projects
Project URL

Project URL

https://github.com/socram8888/ascii-banner-maven-plugin
Source Code Management

Source Code Management

https://github.com/socram8888/ascii-banner-maven-plugin

Download ascii-banner-maven-plugin

How to add to project

<plugin>
    <groupId>pet.orca</groupId>
    <artifactId>ascii-banner-maven-plugin</artifactId>
    <version>1.0</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.maven : maven-core jar 3.6.0
org.apache.maven : maven-plugin-api jar 3.6.0
org.apache.maven.plugin-tools : maven-plugin-annotations Optional jar 3.6.0

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.4

Project Modules

There are no modules declared in this project.

ascii-banner-maven-plugin

This is a Maven plugin whose job is to display a success or failure banner depending on the project build result.

Success screenshot

Usage

To use this plugin, you need to add a new Mojo to the pom.xml:

<project>
	...
	<build>
		...
		<plugins>
			...
			<plugin>
				<groupId>pet.orca</groupId>
				<artifactId>ascii-banner-maven-plugin</artifactId>
				<version>1.0</version>
				<executions>
					<execution>
						<id>banner-setup</id>
						<goals>
							<goal>setup</goal>
						</goals>
						<configuration>
							<!--
								These parameters are all optional.
								You may want to specify only a file or only a message,
								and only print on success or on failure.
							-->
							<success>
								<message>Message to print on success, if any</message>
								<file>${project.basedir}/success.txt</file>
							</success>
							<failure>
								<message>Message to print on failure, if any</message>
								<file>${project.basedir}/failure.txt</file>
							</failure>
						</configuration>
					</execution>
				</executions>
			</plugin>
			...
		</plugins>
		...
	</build>
	...
</project>

Where to get the images from?

I have another related project called ASCIImages where you can find some black-and-white and RGB images for printing on terminals, along with automated tools for building them.

Failure image

Versions

Version
1.0