PageRenderTime 21ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/archetypes/scalate-archetype-sitegen/pom.xml

http://github.com/scalate/scalate
XML | 114 lines | 78 code | 13 blank | 23 comment | 0 complexity | 5f1f60555f5a5dcf162e12dc05c41fe6 MD5 | raw file
  1<?xml version="1.0" encoding="UTF-8"?>
  2<!--
  3
  4    Copyright (C) 2009-2011 the original author or authors.
  5    See the notice.md file distributed with this work for additional
  6    information regarding copyright ownership.
  7
  8    Licensed under the Apache License, Version 2.0 (the "License");
  9    you may not use this file except in compliance with the License.
 10    You may obtain a copy of the License at
 11
 12        http://www.apache.org/licenses/LICENSE-2.0
 13
 14    Unless required by applicable law or agreed to in writing, software
 15    distributed under the License is distributed on an "AS IS" BASIS,
 16    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 17    See the License for the specific language governing permissions and
 18    limitations under the License.
 19
 20-->
 21<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">
 22  <modelVersion>4.0.0</modelVersion>
 23  <parent>
 24    <groupId>org.scalatra.scalate.tooling</groupId>
 25    <artifactId>archetypes_2.10</artifactId>
 26    <version>1.7.2-SNAPSHOT</version>
 27  </parent>
 28
 29  <artifactId>scalate-archetype-sitegen_2.10</artifactId>
 30  <packaging>maven-archetype</packaging>
 31  
 32  <name>${project.artifactId}</name>
 33  <description>An archetype which creates an empty Scalate static website generation project</description>
 34
 35  <build>
 36    <extensions>
 37      <extension>
 38        <groupId>org.apache.maven.archetype</groupId>
 39        <artifactId>archetype-packaging</artifactId>
 40        <version>${archetype-plugin-version}</version>
 41      </extension>
 42    </extensions>
 43
 44    <resources>
 45      <resource>
 46        <directory>${basedir}/src/main/resources</directory>
 47        <filtering>true</filtering>
 48      </resource>
 49      <resource>
 50        <directory>${basedir}/target/resources</directory>
 51        <filtering>false</filtering>
 52      </resource>
 53    </resources>
 54
 55    <plugins>
 56
 57      <plugin>
 58        <groupId>org.apache.maven.plugins</groupId>
 59        <artifactId>maven-archetype-plugin</artifactId>
 60        <version>2.0</version>
 61        <extensions>true</extensions>
 62      </plugin>
 63
 64      <plugin>
 65        <artifactId>maven-antrun-plugin</artifactId>
 66        <executions>
 67          <execution>
 68            <phase>generate-resources</phase>
 69            <configuration>
 70              <tasks>
 71
 72                <!--
 73                    TODO if ever the maven archetype plugin could actually include resources
 74                    from elsewhere we could remove this crap
 75                 -->
 76
 77                <copy todir="${basedir}/target/resources/archetype-resources" overwrite="false" verbose="true">
 78                  <fileset dir="${basedir}/../../samples/scalate-sample-sitegen">
 79                    <include name="src/**" />
 80                    <include name="ext/**" />
 81                    <include name="runlivereload" />
 82                  </fileset>
 83                </copy>
 84              </tasks>
 85            </configuration>
 86            <goals>
 87              <goal>run</goal>
 88            </goals>
 89          </execution>
 90        </executions>
 91      </plugin>
 92
 93      <plugin>
 94        <artifactId>maven-clean-plugin</artifactId>
 95        <version>2.4.1</version>
 96        <configuration>
 97          <filesets>
 98            <fileset>
 99              <directory>src/main/resources/archetype-resources</directory>
100              <includes>
101                <include>ext/**</include>
102                <include>src/**</include>
103                <include>runlivereload</include>
104              </includes>
105            </fileset>
106          </filesets>
107        </configuration>
108      </plugin>
109
110    </plugins>
111
112  </build>
113
114</project>