Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eskatos/artifactinfo-maven-plugin

Generate source files that contains maven artifact informations
https://github.com/eskatos/artifactinfo-maven-plugin

Last synced: about 2 months ago
JSON representation

Generate source files that contains maven artifact informations

Awesome Lists containing this project

README

        

artifactinfo-maven-plugin
=========================

[![Build Status](https://travis-ci.org/eskatos/artifactinfo-maven-plugin.svg)](https://travis-ci.org/eskatos/artifactinfo-maven-plugin)

artifactinfo-maven-plugin generate java code with constants containing maven project metadata for use in you programs.

The project is hosted in maven central.
[here](http://search.maven.org/#search%7Cga%7C1%7Cartifactinfo-maven-plugin) you'll find a quick copy/paste for the dependency.

Very simple to use:

* it has only one goal : `artifactinfo`
* without configuration is use sensible defaults reusing `groupId` and `artifactId` for package and class name
* you can override default package name with the `packageName` configuration parameter
* you can override default class name with the `className` configuration parameter

Code generated by default:

```java
package com.group.id;

public abstract class ArtifactId
{
public final static String GROUPID = "#groupId#";
public final static String ARTIFACTID = "#artifactId#";
public final static String VERSION = "#version#";
public final static String DESCRIPTION = "#description#";
public final static String NAME = "#name#";
public final static String URL = "#url#";
public final static String INCEPTION_YEAR = "#inceptionYear#";
public final static long BUILD_TIMESTAMP = #buildTimestamp#L;
}
```