Move asciidoctor plugin in a dedicated profile

master
David BRASSELY 2014-03-03 17:12:33 +01:00
parent 1f084ebee5
commit 84d3fbbf6e
2 changed files with 53 additions and 39 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
!.gitignore
target/
src/asciidoc/build/
src/asciidoc/index.html

72
pom.xml
View File

@ -52,12 +52,52 @@
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencyManagement>
<dependencies>
<!-- OpenESB Core -->
<dependency>
<groupId>net.open-esb</groupId>
<artifactId>framework-core</artifactId>
<version>${openesb.version}</version>
<exclusions>
<exclusion>
<groupId>jbiplatform</groupId>
<artifactId>jbi_compileconf</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.open-esb</groupId>
<artifactId>base</artifactId>
<version>${openesb.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
<profiles>
<profile>
<activation>
<property>
<name>docs</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${asciidoctor.version}</version>
<inherited>false</inherited>
<executions>
<execution>
<id>output-single-html</id>
@ -92,34 +132,6 @@
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<!-- OpenESB Core -->
<dependency>
<groupId>net.open-esb</groupId>
<artifactId>framework-core</artifactId>
<version>${openesb.version}</version>
<exclusions>
<exclusion>
<groupId>jbiplatform</groupId>
<artifactId>jbi_compileconf</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.open-esb</groupId>
<artifactId>base</artifactId>
<version>${openesb.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
</profiles>
</project>