Skip to content

Commit 5b43d24

Browse files
author
Prasanna Santhanam
committed
Summary: Extending API doc pom to package
Detail: Create tarball of apidocs for distribution from jenkins % mvn -Pdeveloper package Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351321002 +0530
1 parent 241daa5 commit 5b43d24

1 file changed

Lines changed: 71 additions & 54 deletions

File tree

tools/apidoc/pom.xml

Lines changed: 71 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -9,59 +9,76 @@
99
OF ANY KIND, either express or implied. See the License for the specific
1010
language governing permissions and limitations under the License. -->
1111
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
13-
<modelVersion>4.0.0</modelVersion>
14-
<artifactId>cloud-apidoc</artifactId>
15-
<name>Apache CloudStack apidoc Tools</name>
16-
<packaging>pom</packaging>
17-
<parent>
18-
<groupId>org.apache.cloudstack</groupId>
19-
<artifactId>cloudstack</artifactId>
20-
<version>4.1.0-SNAPSHOT</version>
21-
<relativePath>../../pom.xml</relativePath>
22-
</parent>
23-
<dependencies>
24-
<dependency>
25-
<groupId>org.apache.cloudstack</groupId>
26-
<artifactId>cloud-client-ui</artifactId>
27-
<version>${project.version}</version>
28-
<type>war</type>
29-
</dependency>
30-
</dependencies>
31-
<properties>
32-
<client.config.base>../../client/target/cloud-client-ui-4.1.0-SNAPSHOT/WEB-INF/</client.config.base>
33-
<client.config.jars>${client.config.base}/lib</client.config.jars>
34-
<client.config.conf>${client.config.base}/classes</client.config.conf>
35-
</properties>
12+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
13+
<modelVersion>4.0.0</modelVersion>
14+
<artifactId>cloud-apidoc</artifactId>
15+
<name>Apache CloudStack apidoc Tools</name>
16+
<packaging>pom</packaging>
17+
<parent>
18+
<groupId>org.apache.cloudstack</groupId>
19+
<artifactId>cloudstack</artifactId>
20+
<version>4.1.0-SNAPSHOT</version>
21+
<relativePath>../../pom.xml</relativePath>
22+
</parent>
23+
<dependencies>
24+
<dependency>
25+
<groupId>org.apache.cloudstack</groupId>
26+
<artifactId>cloud-client-ui</artifactId>
27+
<version>${project.version}</version>
28+
<type>war</type>
29+
</dependency>
30+
</dependencies>
31+
<properties>
32+
<client.config.base>../../client/target/cloud-client-ui-4.1.0-SNAPSHOT/WEB-INF/</client.config.base>
33+
<client.config.jars>${client.config.base}/lib</client.config.jars>
34+
<client.config.conf>${client.config.base}/classes</client.config.conf>
35+
</properties>
3636

37-
<build>
38-
<defaultGoal>install</defaultGoal>
39-
<plugins>
40-
<plugin>
41-
<groupId>org.codehaus.mojo</groupId>
42-
<artifactId>exec-maven-plugin</artifactId>
43-
<version>1.2.1</version>
44-
<executions>
45-
<execution>
46-
<phase>package</phase>
47-
<goals>
48-
<goal>exec</goal>
49-
</goals>
50-
</execution>
51-
</executions>
52-
<configuration>
53-
<executable>bash</executable>
54-
<arguments>
55-
<argument>-x</argument>
56-
<argument>./build-apidoc.sh</argument>
57-
<argument>${client.config.jars}</argument>
58-
<argument>${client.config.jars}</argument>
59-
<argument>./target</argument>
60-
<argument>-f</argument>
61-
<argument>${client.config.conf}/commands.properties, ${client.config.conf}/commands-ext.properties,${client.config.conf}/virtualrouter_commands.properties, ${client.config.conf}/nicira-nvp_commands.properties </argument>
62-
</arguments>
63-
</configuration>
64-
</plugin>
65-
</plugins>
66-
</build>
37+
<build>
38+
<defaultGoal>install</defaultGoal>
39+
<plugins>
40+
<plugin>
41+
<groupId>org.codehaus.mojo</groupId>
42+
<artifactId>exec-maven-plugin</artifactId>
43+
<version>1.2.1</version>
44+
<executions>
45+
<execution>
46+
<id>compile</id>
47+
<phase>compile</phase>
48+
<goals>
49+
<goal>exec</goal>
50+
</goals>
51+
<configuration>
52+
<executable>bash</executable>
53+
<arguments>
54+
<argument>-x</argument>
55+
<argument>./build-apidoc.sh</argument>
56+
<argument>${client.config.jars}</argument>
57+
<argument>${client.config.jars}</argument>
58+
<argument>./target</argument>
59+
<argument>-f</argument>
60+
<argument>${client.config.conf}/commands.properties, ${client.config.conf}/commands-ext.properties,${client.config.conf}/virtualrouter_commands.properties, ${client.config.conf}/nicira-nvp_commands.properties </argument>
61+
</arguments>
62+
</configuration>
63+
</execution>
64+
<execution>
65+
<id>package</id>
66+
<phase>package</phase>
67+
<goals>
68+
<goal>exec</goal>
69+
</goals>
70+
<configuration>
71+
<workingDirectory>target</workingDirectory>
72+
<executable>tar</executable>
73+
<arguments>
74+
<argument>-cvjf</argument>
75+
<argument>apidoc.tar.bz2</argument>
76+
<argument>xmldoc</argument>
77+
</arguments>
78+
</configuration>
79+
</execution>
80+
</executions>
81+
</plugin>
82+
</plugins>
83+
</build>
6784
</project>

0 commit comments

Comments
 (0)