Skip to content
Browse files

Removed dependency on parent-central, work on documentation.

  • Loading branch information...
1 parent a9e9604 commit 25a1a5d59e0d3ebcbf1b78405f2973cddbf89354 @nawroth nawroth committed Dec 23, 2011
View
403 pom.xml
@@ -2,23 +2,64 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.neo4j.build</groupId>
- <artifactId>parent-central</artifactId>
- <version>29</version>
- <relativePath/>
+ <groupId>org.sonatype.oss</groupId>
+ <artifactId>oss-parent</artifactId>
+ <version>7</version>
+ <relativePath />
</parent>
<artifactId>docs-maven-plugin</artifactId>
<groupId>org.neo4j.build.plugins</groupId>
<packaging>maven-plugin</packaging>
- <version>0.1-SNAPSHOT</version>
- <name>Neo4j documentation assembler.</name>
+ <version>1-SNAPSHOT</version>
+ <name>Neo4j documentation assembler</name>
+ <description>Tool to filter and package documentation files,
+ including executing a documentation-generating test
+ and then install the assembled docs in the local repo.</description>
<url>components.neo4j.org</url>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <skinGroupId>org.neo4j.maven.skins</skinGroupId>
+ <skinArtifactId>default-skin</skinArtifactId>
+ <skinVersion>4</skinVersion>
+ <licensesVersion>6</licensesVersion>
+ <license-text.header>AGPL-3-header.txt</license-text.header>
+ <docs.url>http://docs.neo4j.org/</docs.url>
+ </properties>
+
+ <organization>
+ <name>The Neo4j Graph Database Project</name>
+ <url>http://neo4j.org/</url>
+ </organization>
+
+ <scm>
+ <connection>scm:git:git://github.com/neo4j/docs-maven-plugin.git</connection>
+ <developerConnection>scm:git:git@github.com:neo4j/docs-maven-plugin.git</developerConnection>
+ <url>https://github.com/neo4j/docs-maven-plugin</url>
+ </scm>
+
+ <mailingLists>
+ <mailingList>
+ <name>Neo4j Community Discussions</name>
+ <subscribe>https://groups.google.com/forum/#!forum/neo4j</subscribe>
+ </mailingList>
+ </mailingLists>
+
+ <issueManagement>
+ <url>https://github.com/neo4j/docs-maven-plugin</url>
+ </issueManagement>
+
+ <licenses>
+ <license>
+ <name>GNU Affero General Public License, Version 3</name>
+ <url>http://www.gnu.org/licenses/agpl-3.0-standalone.html</url>
+ </license>
+ </licenses>
+
<dependencies>
<dependency>
<groupId>org.twdata.maven</groupId>
<artifactId>mojo-executor</artifactId>
- <version>2.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
@@ -27,52 +68,339 @@
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-filtering</artifactId>
- <version>1.0</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
- <artifactId>docs-maven-plugin</artifactId>
- <groupId>org.neo4j.build.plugins</groupId>
- <version>0.1-SNAPSHOT</version>
- <!-- the directories below will be added by default,
- using the config element will _replace_ the defaults. -->
- <!--
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>2.4.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ <encoding>${project.build.sourceEncoding}</encoding>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.3</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.5</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.0.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-gpg-plugin</artifactId>
+ <version>1.4</version>
+ <configuration>
+ <keyname>Neo Technology Build Server</keyname>
+ <useAgent>true</useAgent>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-install-plugin</artifactId>
+ <version>2.3.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.3.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.8</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.2.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-plugin-plugin</artifactId>
+ <version>2.9</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.5</version>
+ <configuration>
+ <encoding>${project.build.sourceEncoding}</encoding>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.0</version>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.doxia</groupId>
+ <artifactId>doxia-core</artifactId>
+ <version>1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>${skinGroupId}</groupId>
+ <artifactId>${skinArtifactId}</artifactId>
+ <version>${skinVersion}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.10</version>
+ </plugin>
+ <!-- non org.apache.maven.plugins -->
+ <plugin>
+ <groupId>com.mycila.maven-license-plugin</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <version>1.9.0</version>
+ </plugin>
+ <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
+ <plugin>
+ <groupId>org.eclipse.m2e</groupId>
+ <artifactId>lifecycle-mapping</artifactId>
+ <version>1.0.0</version>
<configuration>
- <sourceDirectories>
- <sourceDirectory>${basedir}/src/docs</sourceDirectory>
- <sourceDirectory>${project.build.directory}/docs</sourceDirectory>
- </sourceDirectories>
+ <lifecycleMappingMetadata>
+ <pluginExecutions>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>com.mycila.maven-license-plugin</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <versionRange>[1.9.0,)</versionRange>
+ <goals>
+ <goal>check</goal>
+ <goal>format</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <execute />
+ </action>
+ </pluginExecution>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <versionRange>[1.0.0,)</versionRange>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore />
+ </action>
+ </pluginExecution>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <versionRange>[2.7,)</versionRange>
+ <goals>
+ <goal>javadoc</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore />
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+ </lifecycleMappingMetadata>
</configuration>
- -->
</plugin>
</plugins>
</pluginManagement>
+
<plugins>
<plugin>
- <artifactId>docs-maven-plugin</artifactId>
- <groupId>org.neo4j.build.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <artifactId>maven-dependency-plugin</artifactId>
</plugin>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-java-sources</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar-no-fork</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <configuration>
+ <reportPlugins>
+ <plugin>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <configuration>
+ <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
+ <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
+ </configuration>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>index</report>
+ <report>dependencies</report>
+ <report>plugins</report>
+ <report>mailing-list</report>
+ <report>license</report>
+ <report>summary</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <detectJavaApiLink>true</detectJavaApiLink>
+ <detectLinks>true</detectLinks>
+ <detectOfflineLinks>false</detectOfflineLinks>
+ <quiet>true</quiet>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-plugin-plugin</artifactId>
+ <version>2.9</version>
+ </plugin>
+ </reportPlugins>
+ </configuration>
+ <executions>
+ <execution>
+ <id>attach-descriptor</id>
+ <goals>
+ <goal>attach-descriptor</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
- <id>attach-docs</id>
+ <id>default-jar</id>
+ <configuration>
+ <archive>
+ <manifest>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ </manifest>
+ <manifestEntries>
+ <Url>${project.organization.url}</Url>
+ </manifestEntries>
+ </archive>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <detectJavaApiLink>true</detectJavaApiLink>
+ <detectLinks>true</detectLinks>
+ <detectOfflineLinks>false</detectOfflineLinks>
+ <quiet>true</quiet>
+ </configuration>
+ <executions>
+ <execution>
+ <!-- get rid of execution from sonatype parent -->
+ <id>attach-javadocs</id>
<phase>none</phase>
</execution>
+ <execution>
+ <id>attach-javadoc</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.mycila.maven-license-plugin</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.neo4j.maven</groupId>
+ <artifactId>licenses</artifactId>
+ <version>${licensesVersion}</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <id>check-licenses</id>
+ <!-- fail as early as possible -->
+ <phase>initialize</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
</executions>
+ <configuration>
+ <strictCheck>true</strictCheck>
+ <header>${license-text.header}</header>
+ <includes>
+ <include>src/**/*.java</include>
+ <include>src/**/*.xml</include>
+ </includes>
+ </configuration>
</plugin>
</plugins>
</build>
+
<dependencyManagement>
<dependencies>
<dependency>
+ <groupId>org.twdata.maven</groupId>
+ <artifactId>mojo-executor</artifactId>
+ <version>[2.0]</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.shared</groupId>
+ <artifactId>maven-filtering</artifactId>
+ <version>[1.0]</version>
+ </dependency>
+ <!-- testing -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>[4.10]</version>
+ <scope>test</scope>
+ </dependency>
+ <!-- lock down versions -->
+ <dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>3.0.3</version>
@@ -152,28 +480,27 @@
<profiles>
<profile>
- <id>enable-dogfooding-plugin</id>
+ <id>enable-docs-plugin-dogfooding</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>dogfood</name>
</property>
</activation>
<build>
- <pluginManagement>
- <plugins>
- <plugin>
- <artifactId>docs-maven-plugin</artifactId>
- <groupId>org.neo4j.build.plugins</groupId>
- <executions>
- <execution>
- <id>assemble-docs</id>
- <goals><goal>assemble</goal></goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>docs-maven-plugin</artifactId>
+ <groupId>org.neo4j.build.plugins</groupId>
+ <version>${project.version}</version>
+ <executions>
+ <execution>
+ <id>assemble-docs</id>
+ <goals><goal>assemble</goal></goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
</build>
</profile>
</profiles>
View
3 src/main/java/org/neo4j/build/plugins/docs/AssembleMojo.java
@@ -38,7 +38,8 @@
public class AssembleMojo extends AbstractMojo
{
/**
- * Directories to include in the assembly.
+ * Directories to include in the assembly. This setting replaces the default
+ * one, which is to include src/docs/ and target/docs/.
*
* @parameter
*/
View
2 src/main/java/org/neo4j/build/plugins/docs/DocsAssembler.java
@@ -43,7 +43,7 @@
import org.apache.maven.shared.filtering.MavenResourcesFiltering;
import org.codehaus.plexus.util.FileUtils;
-public final class DocsAssembler
+final class DocsAssembler
{
private static final String DOCS_DIRNAME = "docs";
View
2 src/main/java/org/neo4j/build/plugins/docs/InstallMojo.java
@@ -63,9 +63,9 @@
@Override
public void execute() throws MojoExecutionException
{
- System.out.println( test );
if ( test != null )
{
+ getLog().info( "Preparing to execute test: " + test );
executeTest();
}
assembleInstall();
View
51 src/site/site.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+
+ Copyright (c) 2002-2011 "Neo Technology,"
+ Network Engine for Objects in Lund AB [http://neotechnology.com]
+
+ This file is part of Neo4j.
+
+ Neo4j is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+-->
+<project name="${project.artifactId}">
+ <version position="left" />
+ <bannerLeft>
+ <name>${project.name}</name>
+ <src>images/logos/logo-dark.png</src>
+ <href>http://neo4j.org/</href>
+ </bannerLeft>
+ <body>
+ <links>
+ <item name="Neo4j home" href="http://neo4j.org/" />
+ <item name="blog" href="http://blog.neo4j.org/" />
+ <item name="documentation" href="http://docs.neo4j.org/" />
+ <item name="apidocs" href="http://api.neo4j.org/" />
+ <item name="components" href=".." />
+ </links>
+ <menu name="${project.name}">
+ <item name="Introduction" href="index.html" />
+ <item name="Goals" href="plugin-info.html" />
+ <item name="JavaDocs" href="apidocs/index.html" />
+ <item name="Source Repository" href="${scm.url}" />
+ </menu>
+ <menu ref="reports" />
+ </body>
+ <skin>
+ <groupId>${skinGroupId}</groupId>
+ <artifactId>${skinArtifactId}</artifactId>
+ <version>${skinVersion}</version>
+ </skin>
+</project>

0 comments on commit 25a1a5d

Please sign in to comment.
Something went wrong with that request. Please try again.