Skip to content

Commit

Permalink
#71 enable publishing of a maven site
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkMahler committed Jun 23, 2014
1 parent 97d727b commit 01f13a5
Showing 1 changed file with 108 additions and 60 deletions.
168 changes: 108 additions & 60 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<name>eXtended Objects</name>

<url>https://github.com/buschmais/xo-neo4j</url>
<url>https://github.com/buschmais/extended-objects</url>
<description>eXtended Objects</description>

<organization>
Expand All @@ -29,15 +29,23 @@
</licenses>

<scm>
<connection>scm:git:git://github.com/buschmais/xo.git</connection>
<developerConnection>scm:git:[email protected]:buschmais/xo.git</developerConnection>
<url>https://github.com/buschmais/xo</url>
<connection>scm:git:git://github.com/buschmais/extended-objects.git</connection>
<developerConnection>scm:git:[email protected]:buschmais/extended-objects.git</developerConnection>
<url>https://github.com/buschmais/extended-objects</url>
</scm>

<ciManagement>
<url>https://travis-ci.org/buschmais/xo</url>
<url>https://travis-ci.org/buschmais/extended-objects</url>
</ciManagement>

<distributionManagement>
<site>
<id>github-pages-site</id>
<name>Deployment through GitHub's site deployment plugin</name>
<url>site/${project.version}</url>
</site>
</distributionManagement>

<developers>
<developer>
<id>dirk-mahler</id>
Expand All @@ -50,6 +58,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java8.build.outputDirectory>${project.build.directory}/classes-java8</java8.build.outputDirectory>
<bundle.name>com.buschmais.${project.artifactId}</bundle.name>
<github.global.server>github</github.global.server>
<org_asciidoctor.version>0.1.4</org_asciidoctor.version>
</properties>

<profiles>
Expand Down Expand Up @@ -172,62 +182,81 @@
</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>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.asciidoctor
</groupId>
<artifactId>
asciidoctor-maven-plugin
</artifactId>
<versionRange>
[0.1.4,)
</versionRange>
<goals>
<goal>
process-asciidoc
</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.apache.servicemix.tooling
</groupId>
<artifactId>
depends-maven-plugin
</artifactId>
<versionRange>
[1.2,)
</versionRange>
<goals>
<goal>
generate-depends-file
</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.asciidoctor
</groupId>
<artifactId>
asciidoctor-maven-plugin
</artifactId>
<versionRange>
[0.1.4,)
</versionRange>
<goals>
<goal>
process-asciidoc
</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.apache.servicemix.tooling
</groupId>
<artifactId>
depends-maven-plugin
</artifactId>
<versionRange>
[1.2,)
</versionRange>
<goals>
<goal>
generate-depends-file
</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-module-markdown</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${org_asciidoctor.version}</version>
</dependency>
</dependencies>
<configuration>
<skipDeploy>true</skipDeploy>
</configuration>
</plugin>
</plugins>
</pluginManagement>


<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -420,9 +449,9 @@
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>0.1.4</version>
<version>${org_asciidoctor.version}</version>
<configuration>
<backend>html</backend>
<backend>html5</backend>
<attributes>
<toc>auto</toc>
<toclevels>3</toclevels>
Expand All @@ -438,6 +467,25 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.8</version>
<configuration>
<message>Creating site for ${project.artifactId}, ${project.version}</message>
<path>${project.distributionManagement.site.url}</path>
<merge>true</merge>
</configuration>
<executions>
<execution>
<id>github-site</id>
<goals>
<goal>site</goal>
</goals>
<phase>site-deploy</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down Expand Up @@ -481,7 +529,7 @@
<version>17.0</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.0.1.Final</version>
<scope>test</scope>
Expand Down

0 comments on commit 01f13a5

Please sign in to comment.