Build Metadata

If you use an artifact of smartics in your projects you may find it useful to access additional information about build parameters in the META-INF folder. Some of this information is added to the manifest file and all information can be accessed at runtime by the build.properties file.

This information can be easily added with the use of our maven-buildmetadata-plugin.

Manifest

Here is an example of the Manifest file of a release of the maven-buildmetadata-plugin.

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Build-Jdk: 1.6.0_20
Specification-Title: maven-buildmetadata-plugin
Specification-Version: 1.1.1-SNAPSHOT
Specification-Vendor: smartics
Implementation-Title: maven-buildmetadata-plugin
Implementation-Version: 1.1.1-SNAPSHOT
Implementation-Vendor-Id: de.smartics.maven.plugin
Implementation-Vendor: smartics
Built-By: robert.reiner
Built-OS: Windows 7 / amd64 / 6.1
Implementation-Date: 26.09.2010 01:49:56
Implementation-DatePattern: dd.MM.yyyy HH:mm:ss
Implementation-Full-Version: 1.1.1-20100926r9401-SNAPSHOT
Implementation-SCM-Revision-Date: 26.09.2010 01:45:33
Implementation-SCM-Revision-Number: 9401
Implementation-Timestamp: 1285458596530
Implementation-URL: http://www.smartics.eu/public/de.smartics.mave
 n.plugin/maven-buildmetadata-plugin/1.1.1-SNAPSHOT
Java-Vendor: Sun Microsystems Inc.
Java-Version: 1.6.0_20
Maven-Version: 2.2.1

build.properties

Here is an example of the build.properties file of a release of the maven-buildmetadata-plugin.

#Created by maven-buildmetadata-plugin.
#Sun Sep 26 01:50:03 CEST 2010
build.copyright.year=2006-2010
build.date=26.09.2010 01\:49\:56
build.date.pattern=dd.MM.yyyy HH\:mm\:ss
build.host.name=Asgard
build.java.compiler=HotSpot 64-Bit Server Compiler
build.java.runtime.name=Java(TM) SE Runtime Environment
build.java.runtime.version=1.6.0_20-b02
build.java.vendor=Sun Microsystems Inc.
build.java.vm=Java HotSpot(TM) 64-Bit Server VM
build.maven.execution.goals=clean, deploy, site-deploy
build.maven.execution.isRoot=true
build.maven.execution.profile.active.basic-user=settings.xml
build.maven.execution.profile.active.nexus=settings.xml
build.maven.execution.profiles.active=nexus, basic-user
build.maven.version=2.2.1
build.os.arch=amd64
build.os.name=Windows 7
build.os.version=6.1
build.scmLocallyModified=false
build.scmRevision.date=26.09.2010 01\:45\:33
build.scmRevision.id=9401
build.scmRevision.url=scm\:svn\:https\://www.smartics.de/svn/public/maven/maven-buildmetadata-plugin/trunk
build.timestamp.millis=1285458596530
build.user=robert.reiner
build.version=1.1.1-SNAPSHOT
build.version.full=1.1.1-20100926r9401-SNAPSHOT
build.year=2010