/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
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Copyright (C) 2009-2011 the original author or authors.
- See the notice.md file distributed with this work for additional
- information regarding copyright ownership.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
- <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>
- <parent>
- <groupId>org.scalatra.scalate.tooling</groupId>
- <artifactId>archetypes_2.10</artifactId>
- <version>1.7.2-SNAPSHOT</version>
- </parent>
- <artifactId>scalate-archetype-sitegen_2.10</artifactId>
- <packaging>maven-archetype</packaging>
-
- <name>${project.artifactId}</name>
- <description>An archetype which creates an empty Scalate static website generation project</description>
- <build>
- <extensions>
- <extension>
- <groupId>org.apache.maven.archetype</groupId>
- <artifactId>archetype-packaging</artifactId>
- <version>${archetype-plugin-version}</version>
- </extension>
- </extensions>
- <resources>
- <resource>
- <directory>${basedir}/src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- <resource>
- <directory>${basedir}/target/resources</directory>
- <filtering>false</filtering>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-archetype-plugin</artifactId>
- <version>2.0</version>
- <extensions>true</extensions>
- </plugin>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <phase>generate-resources</phase>
- <configuration>
- <tasks>
- <!--
- TODO if ever the maven archetype plugin could actually include resources
- from elsewhere we could remove this crap
- -->
- <copy todir="${basedir}/target/resources/archetype-resources" overwrite="false" verbose="true">
- <fileset dir="${basedir}/../../samples/scalate-sample-sitegen">
- <include name="src/**" />
- <include name="ext/**" />
- <include name="runlivereload" />
- </fileset>
- </copy>
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-clean-plugin</artifactId>
- <version>2.4.1</version>
- <configuration>
- <filesets>
- <fileset>
- <directory>src/main/resources/archetype-resources</directory>
- <includes>
- <include>ext/**</include>
- <include>src/**</include>
- <include>runlivereload</include>
- </includes>
- </fileset>
- </filesets>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>