Skip to content

Commit

Permalink
Create new packaging type
Browse files Browse the repository at this point in the history
Add lifecycle mapping in components.xml to override the default
 and site lifecycles
  • Loading branch information
jasondlee committed Apr 24, 2015
1 parent 4b61eba commit e60195d
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,13 @@
</dependencyManagement>

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>

<extensions>
<extension>
<groupId>org.kuali.maven.wagons</groupId>
Expand Down
40 changes: 40 additions & 0 deletions src/main/resources/META-INF/plexus/components.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<component-set>
<components>
<component>
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
<role-hint>jbake</role-hint>
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
<configuration>
<lifecycles>
<lifecycle>
<id>default</id>
<phases>
<generate-resources></generate-resources>
<process-resources></process-resources>
<compile>
${project.groupId}:${project.artifactId}:${project.version}:generate
</compile>
<process-test-resources></process-test-resources>
<test-compile></test-compile>
<test></test>
<package></package>
<install></install>
<deploy></deploy>
</phases>
</lifecycle>
<lifecycle>
<id>site</id>
<phases>
<pre-site></pre-site>
<site>
${project.groupId}:${project.artifactId}:${project.version}:generate
</site>
<post-site></post-site>
<site-deploy></site-deploy>
</phases>
</lifecycle>
</lifecycles>
</configuration>
</component>
</components>
</component-set>

0 comments on commit e60195d

Please sign in to comment.