Author: hboutemy Date: Mon Feb 26 17:34:55 2018 New Revision: 1825389 URL: http://svn.apache.org/viewvc?rev=1825389&view=rev Log: [MARCHETYPES-59] added an archetype for Maven Site Skin creation
Added: maven/archetypes/trunk/maven-archetype-site-skin/ (with props) maven/archetypes/trunk/maven-archetype-site-skin/pom.xml maven/archetypes/trunk/maven-archetype-site-skin/src/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources-filtered/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources-filtered/archetype-resources/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources-filtered/archetype-resources/pom.xml maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/META-INF/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/META-INF/maven/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/META-INF/maven/archetype-metadata.xml maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/pom.xml maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/src/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/src/site/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/src/site/apt/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/src/site/apt/index.apt.vm maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/src/site/site.xml maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/verify.groovy maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/settings.xml maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/site-macros.vm maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/site.vm maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/skin.xml maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/maven-base.css maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/maven-theme.css maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/print.css maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/external.png (with props) maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_error_sml.gif (with props) maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_info_sml.gif (with props) maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_success_sml.gif (with props) maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_warning_sml.gif (with props) maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/newwindow.png (with props) maven/archetypes/trunk/maven-archetype-site-skin/src/site/ maven/archetypes/trunk/maven-archetype-site-skin/src/site/apt/ maven/archetypes/trunk/maven-archetype-site-skin/src/site/apt/index.apt.vm maven/archetypes/trunk/maven-archetype-site-skin/src/site/site.xml maven/archetypes/trunk/maven-archetype-site-skin/src/test/ maven/archetypes/trunk/maven-archetype-site-skin/src/test/resources/ maven/archetypes/trunk/maven-archetype-site-skin/src/test/resources/projects/ maven/archetypes/trunk/maven-archetype-site-skin/src/test/resources/projects/it-basic/ maven/archetypes/trunk/maven-archetype-site-skin/src/test/resources/projects/it-basic/archetype.properties maven/archetypes/trunk/maven-archetype-site-skin/src/test/resources/projects/it-basic/goal.txt Modified: maven/archetypes/trunk/pom.xml maven/archetypes/trunk/src/site/apt/index.apt Propchange: maven/archetypes/trunk/maven-archetype-site-skin/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Mon Feb 26 17:34:55 2018 @@ -0,0 +1,9 @@ +target +*~ +*.ipr +*.iws +*.iml +*.log +.classpath +.project +.settings Added: maven/archetypes/trunk/maven-archetype-site-skin/pom.xml URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/pom.xml?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/pom.xml (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/pom.xml Mon Feb 26 17:34:55 2018 @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you 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.apache.maven.archetypes</groupId> + <artifactId>maven-archetype-bundles</artifactId> + <version>1.3-SNAPSHOT</version> + </parent> + + <artifactId>maven-archetype-site-skin</artifactId> + <packaging>maven-archetype</packaging> + + <name>Maven Site Skin Archetype</name> + <description> + An archetype which contains a sample Maven Site Skin. + </description> +</project> Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources-filtered/archetype-resources/pom.xml URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources-filtered/archetype-resources/pom.xml?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources-filtered/archetype-resources/pom.xml (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources-filtered/archetype-resources/pom.xml Mon Feb 26 17:34:55 2018 @@ -0,0 +1,112 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<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> + + <groupId>\${groupId}</groupId> + <artifactId>\${artifactId}</artifactId> + <version>\${version}</version> + + <name>\${artifactId}</name> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <sitePluginVersion>${site}</sitePluginVersion> + <mpirVersion>${pir}</mpirVersion> + </properties> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <configuration> + <delimiters> + <delimiter>@</delimiter> + </delimiters> + <useDefaultDelimiters>false</useDefaultDelimiters> + </configuration> + </plugin> + </plugins> + <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> + <plugins> + <plugin> + <artifactId>maven-clean-plugin</artifactId> + <version>${clean}</version> + </plugin> + <plugin> + <artifactId>maven-site-plugin</artifactId> + <version>${site}</version> + </plugin> + <plugin> + <artifactId>maven-invoker-plugin</artifactId> + <version>${invoker}</version> + </plugin> + <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>${resources}</version> + </plugin> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>${compiler}</version> + </plugin> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <version>${surefire}</version> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <version>${jar}</version> + </plugin> + <plugin> + <artifactId>maven-install-plugin</artifactId> + <version>${install}</version> + </plugin> + <plugin> + <artifactId>maven-deploy-plugin</artifactId> + <version>${deploy}</version> + </plugin> + </plugins> + </pluginManagement> + </build> + <profiles> + <profile> + <id>run-its</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-invoker-plugin</artifactId> + <configuration> + <debug>true</debug> + <projectsDirectory>src/it</projectsDirectory> + <cloneProjectsTo>\${project.build.directory}/it</cloneProjectsTo> + <preBuildHookScript>setup</preBuildHookScript> + <postBuildHookScript>verify</postBuildHookScript> + <localRepositoryPath>\${project.build.directory}/local-repo</localRepositoryPath> + <settingsFile>src/it/settings.xml</settingsFile> + <pomIncludes> + <pomInclude>*/pom.xml</pomInclude> + </pomIncludes> + <goals> + <goal>site</goal> + </goals> + </configuration> + <executions> + <execution> + <id>integration-test</id> + <goals> + <goal>install</goal> + <goal>integration-test</goal> + <goal>verify</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> +</project> Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/META-INF/maven/archetype-metadata.xml URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/META-INF/maven/archetype-metadata.xml?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/META-INF/maven/archetype-metadata.xml (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/META-INF/maven/archetype-metadata.xml Mon Feb 26 17:34:55 2018 @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you 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 xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" + name="quickstart" partial="false"> + + <fileSets> + <fileSet> + <directory>src/it</directory> + </fileSet> + <fileSet> + <directory>src/main/resources</directory> + </fileSet> + </fileSets> +</archetype-descriptor> Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/pom.xml URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/pom.xml?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/pom.xml (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/pom.xml Mon Feb 26 17:34:55 2018 @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<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> + + <groupId>org.apache.maven.skins.its</groupId> + <artifactId>@project.artifactId@</artifactId> + <version>1.0-SNAPSHOT</version> + <packaging>jar</packaging> + + <name>@project.artifactId@ IT</name> + + <properties> + <skinName>@project.name@</skinName> + <skinGroupId>@project.groupId@</skinGroupId> + <skinArtifactId>@project.artifactId@</skinArtifactId> + <skinVersion>@project.version@</skinVersion> + </properties> + + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.2</version> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <pluginManagement> + <plugins> + <plugin> + <artifactId>maven-site-plugin</artifactId> + <version>@sitePluginVersion@</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-project-info-reports-plugin</artifactId> + <version>@mpirVersion@</version> + </plugin> + </plugins> + </pluginManagement> + </build> + + <reporting> + <plugins> + <plugin> + <artifactId>maven-project-info-reports-plugin</artifactId> + <configuration> + <dependencyDetailsEnabled>false</dependencyDetailsEnabled> + <dependencyLocationsEnabled>false</dependencyLocationsEnabled> + </configuration> + </plugin> + </plugins> + </reporting> + +</project> Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/src/site/apt/index.apt.vm URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/src/site/apt/index.apt.vm?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/src/site/apt/index.apt.vm (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/src/site/apt/index.apt.vm Mon Feb 26 17:34:55 2018 @@ -0,0 +1,154 @@ + ------ + ${skinName} test + ------ + Hervé Boutemy + ------ + 2011-10-15 + ------ + +~~ Licensed to the Apache Software Foundation (ASF) under one +~~ or more contributor license agreements. See the NOTICE file +~~ distributed with this work for additional information +~~ regarding copyright ownership. The ASF licenses this file +~~ to you 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. + +~~ NOTE: For help with the syntax of this file, see: +~~ http://maven.apache.org/doxia/references/apt-format.html + +${skinName} test + + This is a test for ${skinName}. + +* Usage + + To use this skin in your project, use the skin element of + {{{/doxia/doxia-sitetools/doxia-decoration-model/decoration.html}the <<<site.xml>>> site descriptor}}: + ++-----+ +<project name="xxx"> + ... + <skin> + <groupId>${skinGroupId}</groupId> + <artifactId>${skinArtifactId}</artifactId> + <version>${skinVersion}</version> + </skin> + ... +</project> ++-----+ + +Sample content + + Paragraph 1, line 1. + Paragraph 1, line 2. + + Paragraph 2, line 1. + Paragraph 2, line 2. + +Section title + +* Sub-section title + +** Sub-sub-section title + +*** Sub-sub-sub-section title + +**** Sub-sub-sub-sub-section title + + * List item 1. + + * List item 2. + + Paragraph contained in list item 2. + + * Sub-list item 1. + + * Sub-list item 2. + + * List item 3. + Force end of list: + + [] + ++------------------------------------------+ +Verbatim text not contained in list item 3 ++------------------------------------------+ + + [[1]] Numbered item 1. + + [[A]] Numbered item A. + + [[B]] Numbered item B. + + [[2]] Numbered item 2. + + List numbering schemes: [[1]], [[a]], [[A]], [[i]], [[I]]. + + [Defined term 1] of definition list. + + [Defined term 2] of definition list. + ++-------------------------------+ +Verbatim text + in a box ++-------------------------------+ + +--------------------------------- +Verbatim text + without box +--------------------------------- + +[figure] Figure caption + +*----------*--------------+----------------: +| Centered | Left-aligned | Right-aligned | +| cell 1,1 | cell 1,2 | cell 1,3 | +*----------*--------------+----------------: +| cell 2,1 | cell 2,2 | cell 2,3 | +*----------*--------------+----------------: +Table caption + + No grid, no caption: + +*-----*------* + cell | cell +*-----*------* + cell | cell +*-----*------* + +*---------*---------* +|| header || header | +*---------*---------* +| cell | cell | +*---------*---------* + + Horizontal line: + +======================================================================= + + <Italic> font. <<Bold>> font. <<<Monospaced>>> font. + + {Anchor}. Link to {{Anchor}}. Link to {{http://www.pixware.fr}}. + Link to {{{Anchor}showing alternate text}}. + Link to {{{http://www.pixware.fr}Pixware home page}}. + + Force line\ + break. + + Non\ breaking\ space. + + Escaped special characters: \~, \=, \-, \+, \*, \[, \], \<, \>, \{, \}, \\. + + Copyright symbol: \251, \xA9, \u00a9. + +~~Commented out. Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/src/site/site.xml URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/src/site/site.xml?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/src/site/site.xml (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/src/site/site.xml Mon Feb 26 17:34:55 2018 @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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/DECORATION/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/DECORATION/1.1.0 http://maven.apache.org/xsd/decoration-1.1.0.xsd" + name="${skinName}"> + + <skin> + <groupId>${skinGroupId}</groupId> + <artifactId>${skinArtifactId}</artifactId> + <version>${skinVersion}</version> + </skin> + + <publishDate format="yyyy-MM-dd" position="right" /> + <version position="right" /> + + <body> + <breadcrumbs> + <item name="skins" href="/skins/"/> + <item name="${skinArtifactId}" href="/skins/${skinArtifactId}/"/> + </breadcrumbs> + + <menu name="Overview"> + <item name="Introduction" href="index.html"/> + </menu> + + <menu ref="reports"/> + + </body> + +</project> \ No newline at end of file Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/verify.groovy URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/verify.groovy?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/verify.groovy (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/sample/verify.groovy Mon Feb 26 17:34:55 2018 @@ -0,0 +1,24 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +File index = new File( basedir, "target/site/index.html" ) +assert index.exists() + +String html = index.getText() +assert html.contains( '<!DOCTYPE html PUBLIC' ) Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/settings.xml URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/settings.xml?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/settings.xml (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/it/settings.xml Mon Feb 26 17:34:55 2018 @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<settings> + <profiles> + <profile> + <id>it-repo</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <repositories> + <repository> + <id>local.central</id> + <url>@localRepositoryUrl@</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </repository> + </repositories> + <pluginRepositories> + <pluginRepository> + <id>local.central</id> + <url>@localRepositoryUrl@</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </pluginRepository> + </pluginRepositories> + </profile> + </profiles> +</settings> Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/site-macros.vm URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/site-macros.vm?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/site-macros.vm (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/site-macros.vm Mon Feb 26 17:34:55 2018 @@ -0,0 +1,474 @@ +#macro ( link $href $name $target $img $position $alt $border $width $height $title ) +#**##set ( $linkTitle = ' title="' + $name + '"' ) +#**##if( $target ) +#* *##set ( $linkTarget = ' target="' + $target + '"' ) +#**##else +#* *##set ( $linkTarget = "" ) +#**##end +#**##if ( $decoration.isLink( $href ) ) +#* *##set ( $linkClass = ' class="externalLink"' ) +#**##else +#* *##set ( $linkClass = "" ) +#**##end +#**##if ( $img ) +#* *##if ( $position == "left" ) +#* *#<a href="$href"$linkClass$linkTarget$linkTitle>#image($img $alt $border $width $height $title)$name</a>## +#* *##else +#* *#<a href="$href"$linkClass$linkTarget$linkTitle>$name #image($img $alt $border $width $height $title)</a>## +#* *##end +#**##else +#* *#<a href="$href"$linkClass$linkTarget$linkTitle>$name</a>## +#**##end +#end +## +#macro ( image $img $alt $border $width $height $title ) +#**##if( $img ) +#* *##if ( !$decoration.isLink( $img ) ) +#* *##set ( $imgSrc = $PathTool.calculateLink( $img, $relativePath ) ) +#* *##set ( $imgSrc = $imgSrc.replaceAll( '\\', '/' ) ) +#* *##set ( $imgSrc = ' src="' + $imgSrc + '"' ) +#* *##else +#* *##set ( $imgSrc = ' src="' + $img + '"' ) +#* *##end +#* *##if( $alt ) +#* *##set ( $imgAlt = ' alt="' + $alt + '"' ) +#* *##else +#* *##set ( $imgAlt = ' alt=""' ) +#* *##end +#* *##if( $border ) +#* *##set ( $imgBorder = ' border="' + $border + '"' ) +#* *##else +#* *##set ( $imgBorder = "" ) +#* *##end +#* *##if( $width ) +#* *##set ( $imgWidth = ' width="' + $width + '"' ) +#* *##else +#* *##set ( $imgWidth = "" ) +#* *##end +#* *##if( $height ) +#* *##set ( $imgHeight = ' height="' + $height + '"' ) +#* *##else +#* *##set ( $imgHeight = "" ) +#* *##end +#* *##if( $title ) +#* *##set ( $imgTitle = ' title="' + $title + '"' ) +#* *##else +#* *##set ( $imgTitle = "" ) +#* *##end +#* *#<img class="imageLink"$imgSrc$imgAlt$imgBorder$imgWidth$imgHeight$imgTitle/>## +#**##end +#end +## +#macro ( banner $banner $id ) +#**##if ( $banner ) +#* *##if( $banner.href ) +#* *##set ( $hrf = $banner.href ) +#* *##if ( !$decoration.isLink( $hrf ) ) +#* *##set ( $hrf = $PathTool.calculateLink( $hrf, $relativePath ) ) +#* *##set ( $hrf = $hrf.replaceAll( '\\', '/' ) ) +#* *##if ( ( $hrf == '' ) ) +#* *##set ( $hrf = './' ) +#* *##end +#* *##end +#* *#<a href="$hrf" id="$id"#if( $banner.alt ) title="$banner.alt"#end>## +#* *##else +#* *#<div id="$id"> +#* *##end +## +#* *##if( $banner.src ) +#* *##set ( $src = $banner.src ) +#* *##if ( !$decoration.isLink( $src ) ) +#* *##set ( $src = $PathTool.calculateLink( $src, $relativePath ) ) +#* *##set ( $src = $src.replaceAll( '\\', '/' ) ) +#* *##end +#* *##if ( $banner.alt ) +#* *##set ( $alt = ' alt="' + $banner.alt + '"' ) +#* *##elseif ( $banner.name ) +#* *##set ( $alt = ' alt="' + $banner.name + '"' ) +#* *##else +#* *##set ( $alt = ' alt=""' ) +#* *##end +#* *##if( $banner.border ) +#* *##set ( $imgBorder = ' border="' + $banner.border + '"' ) +#* *##else +#* *##set ( $imgBorder = "" ) +#* *##end +#* *##if( $banner.width ) +#* *##set ( $imgWidth = ' width="' + $banner.width + '"' ) +#* *##else +#* *##set ( $imgWidth = "" ) +#* *##end +#* *##if( $banner.height ) +#* *##set ( $imgHeight = ' height="' + $banner.height + '"' ) +#* *##else +#* *##set ( $imgHeight = "" ) +#* *##end +#* *##if( $banner.title ) +#* *##set ( $bannerTitle=' title="' + $banner.title + '"' ) +#* *##else +#* *##set ( $bannerTitle="" ) +#* *##end +#* *#<img src="$src" $alt$bannerTitle$imgBorder$imgWidth$imgHeight/>## +#* *##else +#* *#$banner.name +#* *##end +## +#* *##if( $banner.href ) +#* *#</a> +#* *##else +#* *#</div> +#* *##end +#**##end +#end +## +#macro ( links $links ) +#**##set ( $counter = 0 ) +#**##foreach( $item in $links ) +#* *##set ( $counter = $counter + 1 ) +#* *##set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) ) +#* *##set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) ) +#* *##link( $currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height $item.title ) +#* *##if ( $links.size() > $counter ) +#* *# | +#* *##end +#**##end +#end +## +#macro ( breadcrumbs $breadcrumbs ) +#**##foreach( $item in $breadcrumbs ) +#* *##set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) ) +#* *##set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) ) +#* *##if ( ( $currentItemHref == '' ) ) +#* *##set ( $currentItemHref = './' ) +#* *##end +## +#* *##link( $currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height $item.title ) +#**# > +#**##end +#**#$shortTitle +#**##if( $decoration.edit && $docRenderingContext.editable ) +#* *# <a href="$docRenderingContext.getDoxiaSourcePath( $decoration.edit )">[edit]</a> +#**##end +#end +## +#macro ( displayTree $display $item ) +#**##if ( $item && $item.items && $item.items.size() > 0 ) +#* *##foreach( $subitem in $item.items ) +#* *##set ( $subitemHref = $PathTool.calculateLink( $subitem.href, $relativePath ) ) +#* *##set ( $subitemHref = $subitemHref.replaceAll( '\\', '/' ) ) +## +#* *##if ( $alignedFileName == $subitemHref ) +#* *##set ( $display = true ) +#* *##end +## +#* *##displayTree( $display $subitem ) +#* *##end +#**##end +#end +## +#macro ( menuItem $item ) +#**##set ( $collapse = "none" ) +#**##set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) ) +#**##set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) ) +## +#**##if ( $item && $item.items && $item.items.size() > 0 ) +#* *##if ( $item.collapse == false ) +#* *##set ( $collapse = "expanded" ) +#* *##else +#* *### By default collapsed +#* *##set ( $collapse = "collapsed" ) +#* *##end +## +#* *##set ( $display = false ) +#* *##displayTree( $display $item ) +## +#* *##if ( $alignedFileName == $currentItemHref || $display ) +#* *##set ( $collapse = "expanded" ) +#* *##end +#**##end + <li class="$collapse">## +#**##if ( $item.img ) +#* *##if ( $item.position == "left" ) +#* *##if ( $alignedFileName == $currentItemHref ) +#* *#<strong>#image($item.img $item.alt $item.border $item.width $item.height $item.title) $item.name</strong> +#* *##else +#* *##link($currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height $item.title) +#* *##end +#* *##else +#* *##if ( $alignedFileName == $currentItemHref ) +#* *#<strong>$item.name #image($item.img $item.alt $item.border $item.width $item.height $item.title)</strong> +#* *##else +#* *##link($currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height $item.title) +#* *##end +#* *##end +#**##else +#* *##if ( $alignedFileName == $currentItemHref ) +#* *#<strong>$item.name</strong> +#* *##else +#* *##link( $currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height $item.title ) +#* *##end +#**##end +#**##if ( $item && $item.items && $item.items.size() > 0 ) +#* *##if ( $collapse == "expanded" ) + <ul> +#* *##foreach( $subitem in $item.items ) +#* *##menuItem( $subitem ) +#* *##end + </ul> +#* *##end +#**##end + </li> +#end +## +#macro ( mainMenu $menus ) +#**##foreach( $menu in $menus ) +#* *##if ( $menu.name ) +#* *##if ( $menu.img ) +#* *##if( $menu.position ) +#* *##set ( $position = $menu.position ) +#* *##else +#* *##set ( $position = "left" ) +#* *##end +## +#* *##if ( !$decoration.isLink( $menu.img ) ) +#* *##set ( $src = $PathTool.calculateLink( $menu.img, $relativePath ) ) +#* *##set ( $src = $src.replaceAll( '\\', '/' ) ) +#* *##set ( $src = ' src="' + $src + '"' ) +#* *##else +#* *##set ( $src = ' src="' + $menu.img + '"' ) +#* *##end +## +#* *##if( $menu.alt ) +#* *##set ( $alt = ' alt="' + $menu.alt + '"' ) +#* *##else +#* *##set ( $alt = ' alt="' + $menu.name + '"' ) +#* *##end +## +#* *##if( $menu.border ) +#* *##set ( $border = ' border="' + $menu.border + '"' ) +#* *##else +#* *##set ( $border = ' border="0"' ) +#* *##end +## +#* *##if( $menu.width ) +#* *##set ( $width = ' width="' + $menu.width + '"' ) +#* *##else +#* *##set ( $width = "" ) +#* *##end +#* *##if( $menu.height ) +#* *##set ( $height = ' height="' + $menu.height + '"' ) +#* *##else +#* *##set ( $height = "" ) +#* *##end +#* *##if( $menu.title ) +#* *##set ( $title = ' title="' + $menu.title + '"' ) +#* *##else +#* *##set ( $title = "" ) +#* *##end +## +#* *##set ( $img = '<img class="imageLink"' + $src + $alt + $border + $width + $height + $title + "/>" ) +## +#* *##if ( $position == "left" ) + <h5>$img $menu.name</h5> +#* *##else + <h5>$menu.name $img</h5> +#* *##end +#* *##else + <h5>$menu.name</h5> +#* *##end +#* *##end +#* *##if ( $menu.items && $menu.items.size() > 0 ) + <ul> +#* *##foreach( $item in $menu.items ) +#* *##menuItem( $item ) +#* *##end + </ul> +#* *##end +#**##end +#end +## +#macro ( copyright ) +#**##if ( $project ) +#* *##if ( ${project.organization} && ${project.organization.name} ) +#* *##set ( $period = "" ) +#* *##else +#* *##set ( $period = "." ) +#* *##end +## +#* *##set ( $currentYear = ${currentDate.year} + 1900 ) +## +#* *##if ( ${project.inceptionYear} && ( ${project.inceptionYear} != ${currentYear.toString()} ) ) + ${project.inceptionYear}–${currentYear}${period}## +#* *##else + ${currentYear}${period}## +#* *##end +## +#* *##if ( ${project.organization} ) +#* *##if ( ${project.organization.name} && ${project.organization.url} ) +#* *# <a href="$project.organization.url">${project.organization.name}</a>. +#* *##elseif ( ${project.organization.name} ) +#* *#${project.organization.name}. +#* *##end +#* *##end +#**##end +#end +## +#macro ( publishDate $position $decorationPublishDate $version ) +#**##if ( $publishDate ) +#* *##set ( $dateValue = $dateFormat.format( $publishDate ) ) +#**##elseif ( $decoration.custom.getChild( 'publishDate' ) ) +#* *##set ( $dateValue = $decoration.custom.getChild( 'publishDate' ).getValue() ) +#**##else +#* *##set ( $dateValue = $dateFormat.format( $currentDate ) ) +#**##end +## +#**##set ( $datePosition = $decorationPublishDate.position ) +#**##set ( $versionPosition = $version.position ) +## +#**##set ( $breadcrumbs = $decoration.body.breadcrumbs ) +#**##set ( $links = $decoration.body.links ) +## +#**##if ( $datePosition.equalsIgnoreCase( "right" ) && $links && $links.size() > 0 ) +#* *##set ( $prefix = " |" ) +#**##else +#* *##set ( $prefix = "" ) +#**##end +## +#**##if ( $datePosition.equalsIgnoreCase( $position ) ) +#* *##if ( ( $datePosition.equalsIgnoreCase( "right" ) ) || ( $datePosition.equalsIgnoreCase( "bottom" ) ) ) + $prefix <span id="publishDate">$i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateValue</span> +#* *##if ( $versionPosition.equalsIgnoreCase( $position ) ) + | <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span> +#* *##end +#* *##elseif ( ( $datePosition.equalsIgnoreCase( "navigation-bottom" ) ) || ( $datePosition.equalsIgnoreCase( "navigation-top" ) ) ) + <div id="lastPublished"> + <span id="publishDate">$i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateValue</span> +#* *##if ( $versionPosition.equalsIgnoreCase( $position ) ) + | <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span> +#* *##end + </div> +#* *##elseif ( $datePosition.equalsIgnoreCase( "left" ) ) + <div class="xleft"> + <span id="publishDate">$i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateValue</span> +#* *##if ( $versionPosition.equalsIgnoreCase( $position ) ) + | <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span> +#* *##end +#* *##if ( $breadcrumbs && $breadcrumbs.size() > 0 ) + | #breadcrumbs( $breadcrumbs ) +#* *##end + </div> +#* *##end +#**##elseif ( $versionPosition.equalsIgnoreCase( $position ) ) +#* *##if ( ( $versionPosition.equalsIgnoreCase( "right" ) ) || ( $versionPosition.equalsIgnoreCase( "bottom" ) ) ) + $prefix <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span> +#* *##elseif ( ( $versionPosition.equalsIgnoreCase( "navigation-bottom" ) ) || ( $versionPosition.equalsIgnoreCase( "navigation-top" ) ) ) + <div id="lastPublished"> + <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span> + </div> +#* *##elseif ( $versionPosition.equalsIgnoreCase( "left" ) ) + <div class="xleft"> + <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span> +#* *##if ( $breadcrumbs && $breadcrumbs.size() > 0 ) + | #breadcrumbs( $breadcrumbs ) +#* *##end + </div> +#* *##end +#**##elseif ( $position.equalsIgnoreCase( "left" ) ) +#* *##if ( $breadcrumbs && $breadcrumbs.size() > 0 ) + <div class="xleft"> +#* *##breadcrumbs( $breadcrumbs ) + </div> +#* *##end +#**##end +#end +## +#macro ( poweredByLogo $poweredBy ) +#**##if( $poweredBy ) +#* *##foreach ($item in $poweredBy) +#* *##if( $item.href ) +#* *##set ( $href = $PathTool.calculateLink( $item.href, $relativePath ) ) +#* *##set ( $href = $href.replaceAll( '\\', '/' ) ) +#* *##else +#* *##set ( $href="http://maven.apache.org/" ) +#* *##end +## +#* *##if( $item.name ) +#* *##set ( $name = $item.name ) +#* *##else +#* *##set ( $name = $i18n.getString( "site-renderer", $locale, "template.builtby" ) ) +#* *##set ( $name = "${name} Maven" ) +#* *##end +## +#* *##if( $item.img ) +#* *##set ( $img = $item.img ) +#* *##else +#* *##set ( $img = "images/logos/maven-feather.png" ) +#* *##end +## +#* *##if ( !$decoration.isLink( $img ) ) +#* *##set ( $img = $PathTool.calculateLink( $img, $relativePath ) ) +#* *##set ( $img = $img.replaceAll( '\\', '/' ) ) +#* *##end +## +#* *##if( $item.alt ) +#* *##set ( $alt = ' alt="' + $item.alt + '"' ) +#* *##else +#* *##set ( $alt = ' alt="' + $name + '"' ) +#* *##end +## +#* *##if( $item.border ) +#* *##set ( $border = ' border="' + $item.border + '"' ) +#* *##else +#* *##set ( $border = "" ) +#* *##end +## +#* *##if( $item.width ) +#* *##set ( $width = ' width="' + $item.width + '"' ) +#* *##else +#* *##set ( $width = "" ) +#* *##end +#* *##if( $item.height ) +#* *##set ( $height = ' height="' + $item.height + '"' ) +#* *##else +#* *##set ( $height = "" ) +#* *##end +#* *##if( $item.title ) +#* *##set ( $title = ' title="' + $item.title + '"' ) +#* *##else +#* *##set ( $title = "" ) +#* *##end +## + <a href="$href" title="$name" class="poweredBy"> + <img class="poweredBy" $alt src="$img" $border $width $height $title /> + </a> +#* *##end +#* *##if( $poweredBy.isEmpty() ) + <a href="http://maven.apache.org/" title="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" class="poweredBy"> + <img class="poweredBy" alt="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" src="$relativePath/images/logos/maven-feather.png" /> + </a> +#* *##end +#**##else + <a href="http://maven.apache.org/" title="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" class="poweredBy"> + <img class="poweredBy" alt="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" src="$relativePath/images/logos/maven-feather.png" /> + </a> +#**##end +#end +## +#macro ( googleAnalytics $accountId ) +#**##if( $accountId && $accountId != "" ) + <!-- Google Analytics --> + <script type="text/javascript"> + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', '$accountId']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + </script> +#**##end +#end \ No newline at end of file Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/site.vm URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/site.vm?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/site.vm (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/site.vm Mon Feb 26 17:34:55 2018 @@ -0,0 +1,80 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +#parse( "site-macros.vm" ) +<!-- Generated by Apache Maven Doxia Site Renderer#if( $doxiaSiteRendererVersion ) $doxiaSiteRendererVersion#end## +#if( $docRenderingContext.generator || $docRenderingContext.doxiaSource ) from## +#if( $docRenderingContext.generator ) $docRenderingContext.generator#end## +#if( $docRenderingContext.doxiaSource ) $docRenderingContext.doxiaSourcePath#end## +#end + at $dateFormat.format( $currentDate ) --> +<html xmlns="http://www.w3.org/1999/xhtml"#if ( $locale ) xml:lang="$locale.language" lang="$locale.language"#end> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" /> + <title>$title</title> + <style type="text/css" media="all"> + @import url("$relativePath/css/maven-base.css"); + @import url("$relativePath/css/maven-theme.css"); + @import url("$relativePath/css/site.css"); + </style> + <link rel="stylesheet" href="$relativePath/css/print.css" type="text/css" media="print" /> +#foreach( $author in $authors ) + <meta name="author" content="$author" /> +#end +#if ( $documentDate ) + <meta name="date" content="$documentDate" /> +#end +#if ( $locale ) + <meta http-equiv="Content-Language" content="$locale.language" /> +#end +#if( $decoration.body.head ) +#**#$render.eval( $decoration.body.head ) +#end + $headContent +#**##googleAnalytics( $decoration.googleAnalyticsAccountId ) + </head> + <body class="composite"> + <div id="banner"> +#* *##banner( $decoration.bannerLeft "bannerLeft" ) +#* *##banner( $decoration.bannerRight "bannerRight" ) + <div class="clear"> + <hr/> + </div> + </div> + <div id="breadcrumbs"> +#* *##publishDate( "left" $decoration.publishDate $decoration.version ) + <div class="xright">#links( $decoration.body.links ) +#* *##publishDate( "right" $decoration.publishDate $decoration.version ) + </div> + <div class="clear"> + <hr/> + </div> + </div> + <div id="leftColumn"> + <div id="navcolumn"> +#* *##publishDate( "navigation-top" $decoration.publishDate $decoration.version ) +#* *##mainMenu( $decoration.body.menus ) +#* *##poweredByLogo( $decoration.poweredBy ) +#* *##publishDate( "navigation-bottom" $decoration.publishDate $decoration.version ) + </div> + </div> + <div id="bodyColumn"> + <div id="contentBox"> +#* *#$bodyContent + </div> + </div> + <div class="clear"> + <hr/> + </div> + <div id="footer"> + <div class="xright"> +#* *##if( $decoration.body.footer ) + $render.eval( $decoration.body.footer ) +#* *##else + Copyright ©#copyright()All rights reserved.#publishDate( "bottom" $decoration.publishDate $decoration.version ) +#* *##end + </div> + <div class="clear"> + <hr/> + </div> + </div> + </body> +</html> Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/skin.xml URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/skin.xml?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/skin.xml (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/skin.xml Mon Feb 26 17:34:55 2018 @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you 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. +--> + +<skin xmlns="http://maven.apache.org/SKIN/1.7.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/SKIN/1.7.0 http://maven.apache.org/xsd/skin-1.7.0.xsd"> + <prerequisites> + <doxia-sitetools>1.8</doxia-sitetools> + </prerequisites> +</skin> Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/maven-base.css URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/maven-base.css?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/maven-base.css (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/maven-base.css Mon Feb 26 17:34:55 2018 @@ -0,0 +1,168 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +body { + margin: 0px; + padding: 0px; +} +table { + padding:0px; + width: 100%; + margin-left: -2px; + margin-right: -2px; +} +acronym { + cursor: help; + border-bottom: 1px dotted #feb; +} +table.bodyTable th, table.bodyTable td { + padding: 2px 4px 2px 4px; + vertical-align: top; +} +div.clear{ + clear:both; + visibility: hidden; +} +div.clear hr{ + display: none; +} +#bannerLeft, #bannerRight { + font-size: xx-large; + font-weight: bold; +} +#bannerLeft img, #bannerRight img { + margin: 0px; +} +.xleft, #bannerLeft img { + float:left; +} +.xright, #bannerRight { + float:right; +} +#banner { + padding: 0px; +} +#breadcrumbs { + padding: 3px 10px 3px 10px; +} +#leftColumn { + width: 170px; + float:left; + overflow: auto; +} +#bodyColumn { + margin-right: 1.5em; + margin-left: 197px; +} +#legend { + padding: 8px 0 8px 0; +} +#navcolumn { + padding: 8px 4px 0 8px; +} +#navcolumn h5 { + margin: 0; + padding: 0; + font-size: small; +} +#navcolumn ul { + margin: 0; + padding: 0; + font-size: small; +} +#navcolumn li { + list-style-type: none; + background-image: none; + background-repeat: no-repeat; + background-position: 0 0.4em; + padding-left: 16px; + list-style-position: outside; + line-height: 1.2em; + font-size: smaller; +} +#navcolumn li.expanded { + background-image: url(../images/expanded.gif); +} +#navcolumn li.collapsed { + background-image: url(../images/collapsed.gif); +} +#navcolumn li.none { + text-indent: -1em; + margin-left: 1em; +} +#poweredBy { + text-align: center; +} +#navcolumn img { + margin-top: 10px; + margin-bottom: 3px; +} +#poweredBy img { + display:block; + margin: 20px 0 20px 17px; +} +#search img { + margin: 0px; + display: block; +} +#search #q, #search #btnG { + border: 1px solid #999; + margin-bottom:10px; +} +#search form { + margin: 0px; +} +#lastPublished { + font-size: x-small; +} +.navSection { + margin-bottom: 2px; + padding: 8px; +} +.navSectionHead { + font-weight: bold; + font-size: x-small; +} +.section { + padding: 4px; +} +#footer { + padding: 3px 10px 3px 10px; + font-size: x-small; +} +#breadcrumbs { + font-size: x-small; + margin: 0pt; +} +.source { + padding: 12px; + margin: 1em 7px 1em 7px; +} +.source pre { + margin: 0px; + padding: 0px; +} +#navcolumn img.imageLink, .imageLink { + padding-left: 0px; + padding-bottom: 0px; + padding-top: 0px; + padding-right: 2px; + border: 0px; + margin: 0px; +} Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/maven-theme.css URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/maven-theme.css?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/maven-theme.css (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/maven-theme.css Mon Feb 26 17:34:55 2018 @@ -0,0 +1,161 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +body { + padding: 0px 0px 10px 0px; +} +body, td, select, input, li{ + font-family: Verdana, Helvetica, Arial, sans-serif; + font-size: 13px; +} +code{ + font-family: Courier, monospace; + font-size: 13px; +} +a { + text-decoration: none; +} +a:link { + color:#36a; +} +a:visited { + color:#47a; +} +a:active, a:hover { + color:#69c; +} +#legend li.externalLink { + background: url(../images/external.png) left top no-repeat; + padding-left: 18px; +} +a.externalLink, a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover { + background: url(../images/external.png) right center no-repeat; + padding-right: 18px; +} +#legend li.newWindow { + background: url(../images/newwindow.png) left top no-repeat; + padding-left: 18px; +} +a.newWindow, a.newWindow:link, a.newWindow:visited, a.newWindow:active, a.newWindow:hover { + background: url(../images/newwindow.png) right center no-repeat; + padding-right: 18px; +} +h2 { + padding: 4px 4px 4px 6px; + border: 1px solid #999; + color: #900; + background-color: #ddd; + font-weight:900; + font-size: x-large; +} +h3 { + padding: 4px 4px 4px 6px; + border: 1px solid #aaa; + color: #900; + background-color: #eee; + font-weight: normal; + font-size: large; +} +h4 { + padding: 4px 4px 4px 6px; + border: 1px solid #bbb; + color: #900; + background-color: #fff; + font-weight: normal; + font-size: large; +} +h5 { + padding: 4px 4px 4px 6px; + color: #900; + font-size: medium; +} +p { + line-height: 1.3em; + font-size: small; +} +#breadcrumbs { + border-top: 1px solid #aaa; + border-bottom: 1px solid #aaa; + background-color: #ccc; +} +#leftColumn { + margin: 10px 0 0 5px; + border: 1px solid #999; + background-color: #eee; + padding-bottom: 3px; /* IE-9 scrollbar-fix */ +} +#navcolumn h5 { + font-size: smaller; + border-bottom: 1px solid #aaaaaa; + padding-top: 2px; + color: #000; +} + +table.bodyTable th { + color: white; + background-color: #bbb; + text-align: left; + font-weight: bold; +} + +table.bodyTable th, table.bodyTable td { + font-size: 1em; +} + +table.bodyTable tr.a { + background-color: #ddd; +} + +table.bodyTable tr.b { + background-color: #eee; +} + +.source { + border: 1px solid #999; +} +dl { + padding: 4px 4px 4px 6px; + border: 1px solid #aaa; + background-color: #ffc; +} +dt { + color: #900; +} +#organizationLogo img, #projectLogo img, #projectLogo span{ + margin: 8px; +} +#banner { + border-bottom: 1px solid #fff; +} +.errormark, .warningmark, .donemark, .infomark { + background: url(../images/icon_error_sml.gif) no-repeat; +} + +.warningmark { + background-image: url(../images/icon_warning_sml.gif); +} + +.donemark { + background-image: url(../images/icon_success_sml.gif); +} + +.infomark { + background-image: url(../images/icon_info_sml.gif); +} + Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/print.css URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/print.css?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/print.css (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/css/print.css Mon Feb 26 17:34:55 2018 @@ -0,0 +1,26 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +#banner, #footer, #leftcol, #breadcrumbs, .docs #toc, .docs .courtesylinks, #leftColumn, #navColumn { + display: none !important; +} +#bodyColumn, body.docs div.docs { + margin: 0 !important; + border: none !important +} Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/external.png URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/external.png?rev=1825389&view=auto ============================================================================== Binary file - no diff available. Propchange: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/external.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_error_sml.gif URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_error_sml.gif?rev=1825389&view=auto ============================================================================== Binary file - no diff available. Propchange: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_error_sml.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_info_sml.gif URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_info_sml.gif?rev=1825389&view=auto ============================================================================== Binary file - no diff available. Propchange: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_info_sml.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_success_sml.gif URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_success_sml.gif?rev=1825389&view=auto ============================================================================== Binary file - no diff available. Propchange: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_success_sml.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_warning_sml.gif URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_warning_sml.gif?rev=1825389&view=auto ============================================================================== Binary file - no diff available. Propchange: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/icon_warning_sml.gif ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/newwindow.png URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/newwindow.png?rev=1825389&view=auto ============================================================================== Binary file - no diff available. Propchange: maven/archetypes/trunk/maven-archetype-site-skin/src/main/resources/archetype-resources/src/main/resources/images/newwindow.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: maven/archetypes/trunk/maven-archetype-site-skin/src/site/apt/index.apt.vm URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/site/apt/index.apt.vm?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/site/apt/index.apt.vm (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/site/apt/index.apt.vm Mon Feb 26 17:34:55 2018 @@ -0,0 +1,57 @@ + ------ + ${project.name} + ------ + Hervé Boutemy + ------ + 2010-04-25 + ------ + +~~ Licensed to the Apache Software Foundation (ASF) under one +~~ or more contributor license agreements. See the NOTICE file +~~ distributed with this work for additional information +~~ regarding copyright ownership. The ASF licenses this file +~~ to you 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. + +~~ NOTE: For help with the syntax of this file, see: +~~ http://maven.apache.org/guides/mini/guide-apt-format.html + +${project.name} + + <<<${project.artifactId}>>> is an archetype which generates a sample Maven project: + ++----+ + +project +|-- pom.xml +`-- src + |-- main + | `-- java + | `-- $package + | `-- App.java + `-- test + `-- java + `-- $package + `-- AppTest.java + ++----+ + +* Usage + + To generate a new project from this archetype, type: + ++----+ + +mvn archetype:generate -DarchetypeGroupId=${project.groupId} -DarchetypeArtifactId=${project.artifactId} -DarchetypeVersion=${project.version} + ++----+ Added: maven/archetypes/trunk/maven-archetype-site-skin/src/site/site.xml URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/site/site.xml?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/site/site.xml (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/site/site.xml Mon Feb 26 17:34:55 2018 @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you 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/DECORATION/1.8.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.0 http://maven.apache.org/xsd/decoration-1.8.0.xsd"> + <edit>${project.scm.url}</edit> + <body> + <menu ref="parent" /> + </body> +</project> Added: maven/archetypes/trunk/maven-archetype-site-skin/src/test/resources/projects/it-basic/archetype.properties URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/test/resources/projects/it-basic/archetype.properties?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/test/resources/projects/it-basic/archetype.properties (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/test/resources/projects/it-basic/archetype.properties Mon Feb 26 17:34:55 2018 @@ -0,0 +1,3 @@ +groupId=archetype.it +artifactId=basic-skin +version=0.1-SNAPSHOT Added: maven/archetypes/trunk/maven-archetype-site-skin/src/test/resources/projects/it-basic/goal.txt URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site-skin/src/test/resources/projects/it-basic/goal.txt?rev=1825389&view=auto ============================================================================== --- maven/archetypes/trunk/maven-archetype-site-skin/src/test/resources/projects/it-basic/goal.txt (added) +++ maven/archetypes/trunk/maven-archetype-site-skin/src/test/resources/projects/it-basic/goal.txt Mon Feb 26 17:34:55 2018 @@ -0,0 +1 @@ +verify -Prun-its \ No newline at end of file Modified: maven/archetypes/trunk/pom.xml URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/pom.xml?rev=1825389&r1=1825388&r2=1825389&view=diff ============================================================================== --- maven/archetypes/trunk/pom.xml (original) +++ maven/archetypes/trunk/pom.xml Mon Feb 26 17:34:55 2018 @@ -49,6 +49,7 @@ under the License. <module>maven-archetype-simple</module> <module>maven-archetype-site</module> <module>maven-archetype-site-simple</module> + <module>maven-archetype-site-skin</module> <module>maven-archetype-webapp</module> </modules> Modified: maven/archetypes/trunk/src/site/apt/index.apt URL: http://svn.apache.org/viewvc/maven/archetypes/trunk/src/site/apt/index.apt?rev=1825389&r1=1825388&r2=1825389&view=diff ============================================================================== --- maven/archetypes/trunk/src/site/apt/index.apt (original) +++ maven/archetypes/trunk/src/site/apt/index.apt Mon Feb 26 17:34:55 2018 @@ -51,5 +51,7 @@ Maven Archetypes *-----------------------------------------------------------------+----------------+ | {{{./maven-archetype-site-simple/}maven-archetype-site-simple}} | An archetype to generate a sample Maven site. | *-----------------------------------------------------------------+----------------+ +| {{{./maven-archetype-site-skin/}maven-archetype-site-skin}} | An archetype to generate a sample Maven Site Skin. | +*-----------------------------------------------------------------+----------------+ | {{{./maven-archetype-webapp/}maven-archetype-webapp}} | An archetype to generate a sample Maven Webapp project. | *-----------------------------------------------------------------+----------------+