/archetypes/scalate-archetype-guice/src/main/resources/META-INF/maven/archetype-metadata.xml
XML | 100 lines | 65 code | 8 blank | 27 comment | 0 complexity | 66d3e002b26c1eec3eaf6b5469878e75 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.
- -->
- <archetype-descriptor name="scalate-archetype-guice">
- <fileSets>
- <!-- place resources -->
- <fileSet encoding="UTF-8" filtered="true" packaged="false">
- <directory>src/main/resources</directory>
- <includes>
- <include>**/*</include>
- </includes>
- <excludes>
- <exclude>*.xml</exclude>
- </excludes>
- </fileSet>
- <fileSet encoding="UTF-8" filtered="false" packaged="false">
- <directory>src/main/resources</directory>
- <includes>
- <include>*.xml</include>
- </includes>
- </fileSet>
-
- <!-- place test sources -->
- <fileSet encoding="UTF-8" filtered="true" packaged="true">
- <directory>src/test/scala</directory>
- <includes>
- <include>*.scala</include>
- <include>**/*.scala</include>
- </includes>
- </fileSet>
- <!-- sbt build -->
- <fileSet encoding="UTF-8" filtered="true" packaged="false">
- <directory>project</directory>
- <includes>
- <include>**/*</include>
- </includes>
- </fileSet>
- <!-- place main sources -->
- <fileSet encoding="UTF-8" filtered="true" packaged="true">
- <directory>src/main/scala</directory>
- <includes>
- <include>*.scala</include>
- <include>**/*.scala</include>
- </includes>
- </fileSet>
- <!-- place templates -->
- <!-- we need to filter the web.xml to add the package -->
- <fileSet encoding="UTF-8" filtered="true" packaged="false">
- <directory>src/main/webapp</directory>
- <includes>
- <include>WEB-INF/web.xml</include>
- </includes>
- </fileSet>
- <!-- the WEB-INF/resources need to be put into the package -->
- <fileSet encoding="UTF-8" filtered="false" packaged="true">
- <directory>src/main/webapp/WEB-INF</directory>
- <includes>
- <include>resources</include>
- <include>resources/*</include>
- </includes>
- </fileSet>
- <!-- everything else lets not package or filter to avoid borking images -->
- <fileSet encoding="UTF-8" filtered="false" packaged="false">
- <directory>src/main/webapp</directory>
- <includes>
- <include>**/*</include>
- </includes>
- <excludes>
- <exclude>WEB-INF/resources</exclude>
- <exclude>WEB-INF/resources/**</exclude>
- <exclude>WEB-INF/resources/**/*</exclude>
- <exclude>WEB-INF/web.xml</exclude>
- </excludes>
- </fileSet>
- </fileSets>
- </archetype-descriptor>