HBASE-4336 Convert source tree into maven modules

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1342958 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-05-26 20:35:30 +00:00
parent e17357d77a
commit 29bb309798
6 changed files with 34 additions and 45 deletions

View File

@ -73,14 +73,6 @@
<directoryMode>0755</directoryMode>
</fileSet>
<!-- Move the site to docs -->
<fileSet>
<directory>${parent.basedir}/hbase-server/target/site</directory>
<outputDirectory>docs</outputDirectory>
<fileMode>0644</fileMode>
<directoryMode>0644</directoryMode>
</fileSet>
<!-- Move update script to sbin -->
<fileSet>
<directory>src/packages</directory>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

View File

@ -41,15 +41,31 @@
</dependencies>
<build>
<plugins>
<!-- Website/Reference Guide building -->
<plugins>
<!-- Assemble the javadocs from the dependent projects.
Relies on the use of javadoc:aggregate goal -->
<plugin>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<inputEncoding>UTF-8</inputEncoding>
<outputEncoding>UTF-8</outputEncoding>
<templateFile>src/site/site.vm</templateFile>
</configuration>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-javadocs</id>
<phase>pre-site</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>target/site/apidocs</outputDirectory>
<resources>
<resource>
<directory>../target/apidocs</directory>
<includes>
<include>**/**</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!-- This has to come before the docbx plugin so hbase-default.xml gets transformed
properly -->
@ -125,6 +141,15 @@
</execution>
</executions>
</plugin>
<!-- Website/Reference Guide building -->
<plugin>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<inputEncoding>UTF-8</inputEncoding>
<outputEncoding>UTF-8</outputEncoding>
<templateFile>src/site/site.vm</templateFile>
</configuration>
</plugin>
</plugins>
</build>
</project>

30
pom.xml
View File

@ -339,9 +339,6 @@
</pluginRepositories>
<build>
<!-- Some plugins (for example) can be used in the normal build- and the site phase.
These plugins inherit their options from the <reporting> section below. These settings
can be overwritten here. -->
<pluginManagement>
<plugins>
<plugin>
@ -352,8 +349,7 @@
<execution>
<id>javadoc</id>
<goals>
<goal>javadoc</goal>
<goal>test-javadoc</goal>
<goal>aggregate</goal>
</goals>
<phase>pre-site</phase>
</execution>
@ -647,28 +643,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<!-- All submodules move their javadocs to the apidocs directory -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-javadocs</id>
<!-- fetch the before creating site documentation -->
<phase>pre-site</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${javadoc.output.dir}</outputDirectory>
<resources>
<resource>
<directory>target/apidocs</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!-- Ignore running the assembly in the top-level.
That's all handled by hbase-assembly -->
<plugin>
@ -733,8 +707,6 @@
<package.pid.dir>/var/run/hbase</package.pid.dir>
<package.release>1</package.release>
<final.name>${project.artifactId}-${project.version}</final.name>
<!-- Dependency on projects all being at hbase/{project} -->
<javadoc.output.dir>../hbase-documentation/target/site/apidocs</javadoc.output.dir>
<!-- Intraproject jar naming properties -->
<!-- TODO this is pretty ugly, but works for the moment.