Hi Julian, have you tried this stuff (look @ the <manifestEntry> section)
More info on http://maven.apache.org/guides/mini/guide-manifest.html Thierry <project> ... <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <!-- <index>true</true> --> <manifest> <mainClass>com.mycompany.app.App</mainClass> <packageName>com.mycompany.app</packageName> <!-- options <manifestFile>/path/to/MANIFEST.MF</manifestFile> <addClasspath>true</addClasspath> <addExtensions/> <classpathPrefix/> --> </manifest> <manifestEntries> <mode>development</mode> <url>${pom.url}</url> </manifestEntries> </archive> </configuration> </plugin> </plugins> </build> ... </project> 2006/5/31, Kieran Brady <[EMAIL PROTECTED]>:
I tried te build number plugins without any success as it didn't seem happy to create a timestamp independently of SCM? I'm using CVS and it wasn't happy with it.. Instead I have this horrible hack! Our Maven setup seems to be an ever expanding collection of horrible hacks :-/ [...] <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>create-timestamp-file</id> <phase>generate-resources</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <tstamp> <format property="time" pattern="dd.MM.yyyy-HH.mm" locale="en" /> </tstamp> <property name="timestamp" value="${time}-${user.name }" /> <touch file=".build.timestamp.properties" /> <echo file=".build.timestamp.properties" append="false" message="timestamp=${timestamp}" /> </tasks> </configuration> </execution> <execution> <id>delete-timestamp-file</id> <phase>clean</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <delete file=".build.timestamp.properties" /> </tasks> </configuration> </execution> </executions> </plugin> [...] and [...] <filters> [...] <filter>.build.timestamp.properties</filter> </filters> ----- Original Message ----- From: "Julian Wood" <[EMAIL PROTECTED]> To: "Maven Users List" <users@maven.apache.org> Sent: Tuesday, May 30, 2006 10:43 PM Subject: Re: date in manifest > You can use the maven-buildNumber-plugin. > > http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html > > Near the bottom it tells you how to use a timestamp. > > There was some talk of making the build date a more globally available > property (negating the need for this plugin), but I don't know what it > is, or if it was done. > > J > > On 30-May-06, at 2:03 PM, [EMAIL PROTECTED] wrote: > >> Hi All >> >> If i want to make entry of build date to mani-fest files how do i do >> that? >> >> i know how to make entry to mani-fest but don't know what maven variable >> has the value for date ?? >> >> Anyone knows it , please advise? >> >> >> >> >> >> Thanks, >> Raghu > > -- > Julian Wood <[EMAIL PROTECTED]> > > Software Engineer > Teaching & Learning Centre > University of Calgary > > http://tlc.ucalgary.ca > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]