You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gautham Pamu <ga...@gmail.com> on 2006/05/03 22:17:48 UTC

Re: Build date & time

Hi,
I have multiple project and so can we define this at the top level.
Can we use this plugin work with cvs if disable checks
Do we ahve to specify this for every pom file or can we have it just
inthe top level pom.xml file.

<build>
  ...
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-jar-plugin</artifactId>
      <configuration>
        <archive>
          <manifestEntries>
            <Implementation-Build>${buildNumber}</Implementation-Build>
          </manifestEntries>
        </archive>
      </configuration>
    </plugin>
  </plugins>
</build>



On 3/7/06, Mick Knutson <mi...@hotmail.com> wrote:
>
> Deploy team snapshots of our project.
>
>
> --------------------------------------------------------------------------------
> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: mickknutson@hotmail.com
>
>
> --------------------------------------------------------------------------------
>
> ----- Original Message -----
> From: "Julian Wood" <wo...@ucalgary.ca>
> To: "Maven Users List" <us...@maven.apache.org>
> Sent: Monday, March 06, 2006 8:30 PM
> Subject: Re: Build date & time
>
>
> Do you mean how to deploy a snapshot of your project so that other
> people can use it? Or how to use a snapshot dependency in your project?
>
> For the former, there is some info here:
>
> http://wiki.ucalgary.ca/page/LearningCommons/Documentation/
> Project_Versioning_-_Best_Practices#Snapshots
>
> If it's the latter, an example is at:
>
> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/
> install.html
>
> in combination with
>
> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html
>
> What specifically are you trying to do?
>
> J
>
> On 6-Mar-06, at 2:58 PM, Mick Knutson wrote:
>
> > Does anyone have a tutorial or introduction on how to use SNAPSHOT  in
> my
> > project?
> >
> >
> >> From: Julian Wood <wo...@ucalgary.ca>
> >> Reply-To: "Maven Users List" <us...@maven.apache.org>
> >> To: "Maven Users List" <us...@maven.apache.org>
> >> Subject: Re: Build date & time
> >> Date: Mon, 6 Mar 2006 14:25:42 -0700
> >>
> >> You can use this plugin:
> >>
> >> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/
> >> introduction.html
> >>
> >> J
> >>
> >> On 1-Mar-06, at 2:37 AM, Jörg Zintel wrote:
> >>>
> >>> Hi,
> >>>
> >>> I'm just starting with maven 2 and wonder how I could get the  build
> >>> date and time into the manifest of my jar.
> >>>
> >>> I would like to have something like:
> >>>
> >>> build.date=Mon, 01.01.06 12:35
> >>>
> >>> Does anyone know how to get this?
> >>>
> >>> Thanks in advance
> >>>
> >>>
> >>>
> >>> Jörg
> >>>
>
> --
> Julian Wood <wo...@ucalgary.ca>
>
> Programmer/Analyst
> University of Calgary
>
> http://commons.ucalgary.ca
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
-Gautham Pamu

Re: Build date & time

Posted by Julian Wood <wo...@ucalgary.ca>.
Yes you can configure the maven-buildnumber-plugin at the top level.  
How are you configuring it, btw? To use CVS, you would probably want  
to use a configuration which reflects a timestamp or a sequential  
number, since it doesn't have a global revision number.

HTH,

J



On 3-May-06, at 2:17 PM, Gautham Pamu wrote:

> Hi,
> I have multiple project and so can we define this at the top level.
> Can we use this plugin work with cvs if disable checks
> Do we ahve to specify this for every pom file or can we have it just
> inthe top level pom.xml file.
>
> <build>
>  ...
>  <plugins>
>    <plugin>
>      <groupId>org.apache.maven.plugins</groupId>
>      <artifactId>maven-jar-plugin</artifactId>
>      <configuration>
>        <archive>
>          <manifestEntries>
>            <Implementation-Build>${buildNumber}</Implementation-Build>
>          </manifestEntries>
>        </archive>
>      </configuration>
>    </plugin>
>  </plugins>
> </build>
>
>
>
> On 3/7/06, Mick Knutson <mi...@hotmail.com> wrote:
>>
>> Deploy team snapshots of our project.
>>
>>
>> --------------------------------------------------------------------- 
>> -----------
>> Thanks
>> Mick Knutson
>>
>> http://www.BASELogic.com
>> http://www.MickKnutson.com
>>
>> MSN Messenger: mickknutson@hotmail.com
>>
>>
>> --------------------------------------------------------------------- 
>> -----------
>>
>> ----- Original Message -----
>> From: "Julian Wood" <wo...@ucalgary.ca>
>> To: "Maven Users List" <us...@maven.apache.org>
>> Sent: Monday, March 06, 2006 8:30 PM
>> Subject: Re: Build date & time
>>
>>
>> Do you mean how to deploy a snapshot of your project so that other
>> people can use it? Or how to use a snapshot dependency in your  
>> project?
>>
>> For the former, there is some info here:
>>
>> http://wiki.ucalgary.ca/page/LearningCommons/Documentation/
>> Project_Versioning_-_Best_Practices#Snapshots
>>
>> If it's the latter, an example is at:
>>
>> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/
>> install.html
>>
>> in combination with
>>
>> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/ 
>> howto.html
>>
>> What specifically are you trying to do?
>>
>> J
>>
>> On 6-Mar-06, at 2:58 PM, Mick Knutson wrote:
>>
>> > Does anyone have a tutorial or introduction on how to use  
>> SNAPSHOT  in
>> my
>> > project?
>> >
>> >
>> >> From: Julian Wood <wo...@ucalgary.ca>
>> >> Reply-To: "Maven Users List" <us...@maven.apache.org>
>> >> To: "Maven Users List" <us...@maven.apache.org>
>> >> Subject: Re: Build date & time
>> >> Date: Mon, 6 Mar 2006 14:25:42 -0700
>> >>
>> >> You can use this plugin:
>> >>
>> >> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/
>> >> introduction.html
>> >>
>> >> J
>> >>
>> >> On 1-Mar-06, at 2:37 AM, Jörg Zintel wrote:
>> >>>
>> >>> Hi,
>> >>>
>> >>> I'm just starting with maven 2 and wonder how I could get the   
>> build
>> >>> date and time into the manifest of my jar.
>> >>>
>> >>> I would like to have something like:
>> >>>
>> >>> build.date=Mon, 01.01.06 12:35
>> >>>
>> >>> Does anyone know how to get this?
>> >>>
>> >>> Thanks in advance
>> >>>
>> >>>
>> >>>
>> >>> Jörg
>> >>>
>>
>> --
>> Julian Wood <wo...@ucalgary.ca>
>>
>> Programmer/Analyst
>> University of Calgary
>>
>> http://commons.ucalgary.ca
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
> --
> -Gautham Pamu

--
Julian Wood <wo...@ucalgary.ca>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucalgary.ca



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org