You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Brett Porter <br...@apache.org> on 2009/04/27 14:27:47 UTC

Re: svn commit: r768943 - /maven/components/branches/maven-2.1.x/maven-core/pom.xml

This will work for svn exports as well, so maybe the profile id could  
be tweaked to "without-svn"?

On 27/04/2009, at 10:20 PM, jdcasey@apache.org wrote:

> Author: jdcasey
> Date: Mon Apr 27 12:20:40 2009
> New Revision: 768943
>
> URL: http://svn.apache.org/viewvc?rev=768943&view=rev
> Log:
> adding buildnumber profile for git builds.
>
> Modified:
>    maven/components/branches/maven-2.1.x/maven-core/pom.xml
>
> Modified: maven/components/branches/maven-2.1.x/maven-core/pom.xml
> URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.1.x/maven-core/pom.xml?rev=768943&r1=768942&r2=768943&view=diff
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> --- maven/components/branches/maven-2.1.x/maven-core/pom.xml  
> (original)
> +++ maven/components/branches/maven-2.1.x/maven-core/pom.xml Mon Apr  
> 27 12:20:40 2009
> @@ -267,5 +267,39 @@
>         </plugins>
>       </build>
>     </profile>
> +    <profile>
> +      <id>buildnumber-git</id>
> +      <activation>
> +        <file>
> +          <missing>.svn</missing>
> +        </file>
> +      </activation>
> +      <build>
> +        <plugins>
> +          <plugin>
> +            <groupId>org.codehaus.mojo</groupId>
> +            <artifactId>buildnumber-maven-plugin</artifactId>
> +            <version>1.0-beta-1</version>
> +            <executions>
> +              <execution>
> +                <phase>generate-resources</phase>
> +                <goals>
> +                  <goal>create</goal>
> +                </goals>
> +              </execution>
> +            </executions>
> +            <configuration>
> +              <doCheck>false</doCheck>
> +              <doUpdate>false</doUpdate>
> +              <format>{0,date,yyyy-MM-dd_HH-mm}_{1}</format>
> +              <items>
> +                <item>timestamp</item>
> +                <item>${user.name}</item>
> +              </items>
> +            </configuration>
> +          </plugin>
> +        </plugins>
> +      </build>
> +    </profile>
>   </profiles>
> </project>
>
>


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


Re: svn commit: r768943 - /maven/components/branches/maven-2.1.x/maven-core/pom.xml

Posted by John Casey <jd...@commonjava.org>.
sure, that's easy enough

Brett Porter wrote:
> This will work for svn exports as well, so maybe the profile id could be 
> tweaked to "without-svn"?
> 
> On 27/04/2009, at 10:20 PM, jdcasey@apache.org wrote:
> 
>> Author: jdcasey
>> Date: Mon Apr 27 12:20:40 2009
>> New Revision: 768943
>>
>> URL: http://svn.apache.org/viewvc?rev=768943&view=rev
>> Log:
>> adding buildnumber profile for git builds.
>>
>> Modified:
>>    maven/components/branches/maven-2.1.x/maven-core/pom.xml
>>
>> Modified: maven/components/branches/maven-2.1.x/maven-core/pom.xml
>> URL: 
>> http://svn.apache.org/viewvc/maven/components/branches/maven-2.1.x/maven-core/pom.xml?rev=768943&r1=768942&r2=768943&view=diff 
>>
>> ============================================================================== 
>>
>> --- maven/components/branches/maven-2.1.x/maven-core/pom.xml (original)
>> +++ maven/components/branches/maven-2.1.x/maven-core/pom.xml Mon Apr 
>> 27 12:20:40 2009
>> @@ -267,5 +267,39 @@
>>         </plugins>
>>       </build>
>>     </profile>
>> +    <profile>
>> +      <id>buildnumber-git</id>
>> +      <activation>
>> +        <file>
>> +          <missing>.svn</missing>
>> +        </file>
>> +      </activation>
>> +      <build>
>> +        <plugins>
>> +          <plugin>
>> +            <groupId>org.codehaus.mojo</groupId>
>> +            <artifactId>buildnumber-maven-plugin</artifactId>
>> +            <version>1.0-beta-1</version>
>> +            <executions>
>> +              <execution>
>> +                <phase>generate-resources</phase>
>> +                <goals>
>> +                  <goal>create</goal>
>> +                </goals>
>> +              </execution>
>> +            </executions>
>> +            <configuration>
>> +              <doCheck>false</doCheck>
>> +              <doUpdate>false</doUpdate>
>> +              <format>{0,date,yyyy-MM-dd_HH-mm}_{1}</format>
>> +              <items>
>> +                <item>timestamp</item>
>> +                <item>${user.name}</item>
>> +              </items>
>> +            </configuration>
>> +          </plugin>
>> +        </plugins>
>> +      </build>
>> +    </profile>
>>   </profiles>
>> </project>
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

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