Skip to content

Commit

Permalink
Simplify bootstrapping
Browse files Browse the repository at this point in the history
This reverses the current behavior so the profile is used during the
initial build, not for all builds that use the bootstrapped version.

A full build can be achieved with the following commands:

mvm -P bootstrap clean install && mvn install && mvn install
  • Loading branch information
koraktor committed Feb 13, 2014
1 parent 542d092 commit 90803a6
Showing 1 changed file with 52 additions and 54 deletions.
106 changes: 52 additions & 54 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,60 +108,9 @@
<profiles>
<profile>
<id>bootstrap</id>
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<configuration>
<footer>\n_Generated by Mavanagaiata %s at %s_</footer>
</configuration>
<executions>
<execution>
<id>git-info</id>
<phase>generate-sources</phase>
<goals>
<goal>info-class</goal>
</goals>
<configuration>
<packageName>${project.groupId}.${project.artifactId}.mojo</packageName>
</configuration>
</execution>
<execution>
<id>changelog</id>
<phase>pre-site</phase>
<goals>
<goal>changelog</goal>
</goals>
<configuration>
<branchFormat>\n#### Commits on branch `%s`\n</branchFormat>
<createGitHubLinks>true</createGitHubLinks>
<gitHubProject>${project.artifactId}</gitHubProject>
<gitHubUser>koraktor</gitHubUser>
<gitHubBranchLinkFormat>\n[Git history for branch `%s` since version %s](%s)</gitHubBranchLinkFormat>
<gitHubBranchOnlyLinkFormat>\n[Git history for branch `%s`](%s)</gitHubBranchOnlyLinkFormat>
<gitHubTagLinkFormat>\n[Git history for version %s](%s)</gitHubTagLinkFormat>
<outputFile>${project.build.directory}/generated-site/markdown/CHANGELOG.md</outputFile>
<skipTagged>true</skipTagged>
<tagFormat>\n#### Version %s – %s\n</tagFormat>
</configuration>
</execution>
<execution>
<id>contributors</id>
<phase>pre-site</phase>
<goals>
<goal>contributors</goal>
</goals>
<configuration>
<outputFile>${project.build.directory}/generated-site/markdown/CONTRIBUTORS.md</outputFile>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<mavanagaiata.skip>true</mavanagaiata.skip>
</properties>
</profile>
</profiles>

Expand Down Expand Up @@ -224,6 +173,55 @@

<build>
<plugins>
<plugin>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<configuration>
<footer>\n_Generated by Mavanagaiata %s at %s_</footer>
</configuration>
<executions>
<execution>
<id>git-info</id>
<phase>generate-sources</phase>
<goals>
<goal>info-class</goal>
</goals>
<configuration>
<packageName>${project.groupId}.${project.artifactId}.mojo</packageName>
</configuration>
</execution>
<execution>
<id>changelog</id>
<phase>pre-site</phase>
<goals>
<goal>changelog</goal>
</goals>
<configuration>
<branchFormat>\n#### Commits on branch `%s`\n</branchFormat>
<createGitHubLinks>true</createGitHubLinks>
<gitHubProject>${project.artifactId}</gitHubProject>
<gitHubUser>koraktor</gitHubUser>
<gitHubBranchLinkFormat>\n[Git history for branch `%s` since version %s](%s)</gitHubBranchLinkFormat>
<gitHubBranchOnlyLinkFormat>\n[Git history for branch `%s`](%s)</gitHubBranchOnlyLinkFormat>
<gitHubTagLinkFormat>\n[Git history for version %s](%s)</gitHubTagLinkFormat>
<outputFile>${project.build.directory}/generated-site/markdown/CHANGELOG.md</outputFile>
<skipTagged>true</skipTagged>
<tagFormat>\n#### Version %s – %s\n</tagFormat>
</configuration>
</execution>
<execution>
<id>contributors</id>
<phase>pre-site</phase>
<goals>
<goal>contributors</goal>
</goals>
<configuration>
<outputFile>${project.build.directory}/generated-site/markdown/CONTRIBUTORS.md</outputFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down

0 comments on commit 90803a6

Please sign in to comment.