-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration to be able to use the plugin without scm info in pom (
#228) * Add configuration to be able to use the plugin without scm info in pom --------- Signed-off-by: Olivier Lamy <olamy@apache.org>
- Loading branch information
Showing
4 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.codehaus.mojo.it</groupId> | ||
<artifactId>build-metadata-it</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
|
||
<build> | ||
|
||
<defaultGoal>package</defaultGoal> | ||
|
||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>buildnumber-maven-plugin</artifactId> | ||
<version>${it-plugin.version}</version> | ||
<executions> | ||
<execution> | ||
<id>useLastCommittedRevision</id> | ||
<goals> | ||
<goal>create-metadata</goal> | ||
</goals> | ||
<configuration> | ||
<ignoreEmptyScmUrl>true</ignoreEmptyScmUrl> | ||
<revisionOnScmFailure>UNKNOWN</revisionOnScmFailure> | ||
<!-- see outputDirectory + outputName for the default outputFile --> | ||
<outputFiles> | ||
<outputFile>${project.build.directory}/file1.properties</outputFile> | ||
<outputFile>${project.build.directory}/xxx/file1.properties</outputFile> | ||
</outputFiles> | ||
<addOutputDirectoryToResources>true</addOutputDirectoryToResources> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
|
||
</build> | ||
|
||
</project> |