Maven 2.x JAR Plugin

Let META-INF/maven/../pom.properties|pom.xml be generated in generate-resources

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

Some applications use the META-INF/maven/../pom.properties to read the application/jar version at runtime.

This file is generated in the package phase.

During unit tests, or running applications from the workspace (project tree), these files
are not available, which causes problems.

Suggest to move the pom.(properties|xml) generating code in the maven-jar-plugin to a separate
mojo that's bound to generate-resources.

Activity

Hide
Olivier Lamy added a comment -

Actually (2.0.4) the pom.properties file looks like :
#Generated by Maven
#Wed Sep 27 19:11:15 CEST 2006
version=2.1.2-SNAPSHOT
groupId=com.accor.ota.receiver
artifactId=ota-receiver-services

Should it be possible to have something like :
BuildTimeStamp=Wed Sep 27 19:11:15 CEST 2006

?


Olivier

Show
Olivier Lamy added a comment - Actually (2.0.4) the pom.properties file looks like : #Generated by Maven #Wed Sep 27 19:11:15 CEST 2006 version=2.1.2-SNAPSHOT groupId=com.accor.ota.receiver artifactId=ota-receiver-services Should it be possible to have something like : BuildTimeStamp=Wed Sep 27 19:11:15 CEST 2006 ? – Olivier
Hide
Alexander Klimetschek added a comment -

A BuildTimeStamp would be very cool as a property. Or something like the identifier suffix Maven uses to separate the different versions of a snapshot jar in the repositories, which uses timestamps too.

Show
Alexander Klimetschek added a comment - A BuildTimeStamp would be very cool as a property. Or something like the identifier suffix Maven uses to separate the different versions of a snapshot jar in the repositories, which uses timestamps too.
Hide
Max Voelkel added a comment -

Alexander Klimetschek - that would be my first choice, too!

Show
Max Voelkel added a comment - Alexander Klimetschek - that would be my first choice, too!

People

Vote (7)
Watch (4)

Dates

  • Created:
    Updated: