Added npm-frontend-plugin to install gitbook and use from maven directly
This commit is contained in:
parent
da17f039a5
commit
67e3e207cf
|
@ -0,0 +1,2 @@
|
|||
node_modules/
|
||||
node/
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"name": "artemis-websiteb",
|
||||
"version": "1.5.0",
|
||||
"description": "ActiveMQ Artemis Web",
|
||||
"license": "Apache-2.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/apache/activemq-artemis"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gitbook": "~1.5.0",
|
||||
"gitbook-cli": "~0.3.6"
|
||||
}
|
||||
}
|
|
@ -84,6 +84,35 @@
|
|||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.github.eirslett</groupId>
|
||||
<artifactId>frontend-maven-plugin</artifactId>
|
||||
<version>${frontend-maven-plugin-version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>install node and npm</id>
|
||||
<goals>
|
||||
<goal>install-node-and-npm</goal>
|
||||
</goals>
|
||||
<phase>generate-sources</phase>
|
||||
<configuration>
|
||||
<nodeVersion>v0.11.16</nodeVersion>
|
||||
<npmVersion>1.4.12</npmVersion>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>npm install</id>
|
||||
<goals>
|
||||
<goal>npm</goal>
|
||||
</goals>
|
||||
<phase>generate-sources</phase>
|
||||
<configuration>
|
||||
<arguments>install</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.10.1</version>
|
||||
|
@ -134,7 +163,7 @@
|
|||
<phase>generate-sources</phase>
|
||||
<configuration>
|
||||
<target>
|
||||
<condition property="gitbook.cmd" value="gitbook.cmd" else="gitbook">
|
||||
<condition property="gitbook.cmd" value="${basedir}/node_modules/.bin/gitbook.cmd" else="${basedir}/node_modules/.bin/gitbook">
|
||||
<os family="windows" />
|
||||
</condition>
|
||||
<!-- lets generate the gitbook -->
|
||||
|
|
5
pom.xml
5
pom.xml
|
@ -97,6 +97,8 @@
|
|||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
|
||||
<frontend-maven-plugin-version>0.0.24</frontend-maven-plugin-version>
|
||||
|
||||
<!--
|
||||
|
||||
note for idea users:
|
||||
|
@ -1023,6 +1025,9 @@
|
|||
<exclude>**/src/test/resources/keystore</exclude>
|
||||
<exclude>**/*.log</exclude>
|
||||
<exclude>**/*.redo</exclude>
|
||||
<exclude>**/node/**</exclude>
|
||||
<exclude>**/node_modules/**</exclude>
|
||||
<exclude>**/package.json</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
<executions>
|
||||
|
|
Loading…
Reference in New Issue