You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by nt...@apache.org on 2018/01/19 14:38:57 UTC
cayenne git commit: Build JavaDocs only in "assembly" profile
Repository: cayenne
Updated Branches:
refs/heads/master f894fb5e3 -> 54bb53ae7
Build JavaDocs only in "assembly" profile
Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/54bb53ae
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/54bb53ae
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/54bb53ae
Branch: refs/heads/master
Commit: 54bb53ae7edb43fc961cbd94ce1a4e98882aeb55
Parents: f894fb5
Author: Nikita Timofeev <st...@gmail.com>
Authored: Fri Jan 19 17:38:44 2018 +0300
Committer: Nikita Timofeev <st...@gmail.com>
Committed: Fri Jan 19 17:38:44 2018 +0300
----------------------------------------------------------------------
docs/doc/pom.xml | 177 ++++++++++++++++++++++++++------------------------
1 file changed, 91 insertions(+), 86 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cayenne/blob/54bb53ae/docs/doc/pom.xml
----------------------------------------------------------------------
diff --git a/docs/doc/pom.xml b/docs/doc/pom.xml
index 02574f2..a40983d 100644
--- a/docs/doc/pom.xml
+++ b/docs/doc/pom.xml
@@ -90,92 +90,97 @@
</dependencies>
- <build>
- <resources>
- <resource>
- <directory>target/site/apidocs</directory>
- </resource>
- <resource>
- <directory>src/main/resources</directory>
- <excludes>
- <exclude>doc/index.html</exclude>
- </excludes>
- </resource>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- <includes>
- <include>doc/index.html</include>
- </includes>
- </resource>
- </resources>
-
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>dependency-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>unpack-sources</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>unpack</goal>
- </goals>
- <!-- TODO generate javadocs per module, not for the entire thing at once... -->
+ <profiles>
+ <profile>
+ <id>assembly</id>
+ <build>
+ <resources>
+ <resource>
+ <directory>target/site/apidocs</directory>
+ </resource>
+ <resource>
+ <directory>src/main/resources</directory>
+ <excludes>
+ <exclude>doc/index.html</exclude>
+ </excludes>
+ </resource>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ <includes>
+ <include>doc/index.html</include>
+ </includes>
+ </resource>
+ </resources>
+
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>dependency-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack-sources</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <!-- TODO generate javadocs per module, not for the entire thing at once... -->
+ <configuration>
+ <outputDirectory>target/sources</outputDirectory>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.apache.cayenne</groupId>
+ <artifactId>cayenne-di</artifactId>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.apache.cayenne</groupId>
+ <artifactId>cayenne-server</artifactId>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.apache.cayenne</groupId>
+ <artifactId>cayenne-client</artifactId>
+ <version>${project.version}</version>
+ <classifier>sources</classifier>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
<configuration>
- <outputDirectory>target/sources</outputDirectory>
- <artifactItems>
- <artifactItem>
- <groupId>org.apache.cayenne</groupId>
- <artifactId>cayenne-di</artifactId>
- <version>${project.version}</version>
- <classifier>sources</classifier>
- </artifactItem>
- <artifactItem>
- <groupId>org.apache.cayenne</groupId>
- <artifactId>cayenne-server</artifactId>
- <version>${project.version}</version>
- <classifier>sources</classifier>
- </artifactItem>
- <artifactItem>
- <groupId>org.apache.cayenne</groupId>
- <artifactId>cayenne-client</artifactId>
- <version>${project.version}</version>
- <classifier>sources</classifier>
- </artifactItem>
- </artifactItems>
+ <!-- must use ${project.build.directory}, as using relative path "target/sources" confuses the plugin -->
+ <sourcepath>${project.build.directory}/sources</sourcepath>
+
+ <!-- this is relative to target/site/apidocs -->
+ <destDir>doc/api</destDir>
+ <stylesheet>java</stylesheet>
+ <header><![CDATA[<a href="http://cayenne.apache.org" target="top">Apache Cayenne</a>]]></header>
+ <additionalDependencies>
+ <additionalDependency>
+ <groupId>net.sf.ehcache</groupId>
+ <artifactId>ehcache-core</artifactId>
+ <version>2.4.3</version>
+ </additionalDependency>
+ </additionalDependencies>
</configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <!-- must use ${project.build.directory}, as using relative path "target/sources" confuses the plugin -->
- <sourcepath>${project.build.directory}/sources</sourcepath>
-
- <!-- this is relative to target/site/apidocs -->
- <destDir>doc/api</destDir>
- <stylesheet>java</stylesheet>
- <header><![CDATA[<a href="http://cayenne.apache.org" target="top">Apache Cayenne</a>]]></header>
- <additionalDependencies>
- <additionalDependency>
- <groupId>net.sf.ehcache</groupId>
- <artifactId>ehcache-core</artifactId>
- <version>2.4.3</version>
- </additionalDependency>
- </additionalDependencies>
- </configuration>
- <executions>
- <execution>
- <id>javadoc</id>
- <phase>generate-resources</phase>
- <goals>
- <goal>javadoc</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
+ <executions>
+ <execution>
+ <id>javadoc</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>javadoc</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>