diff --git a/pom.xml b/pom.xml index 7dd5e808d4..194e20f822 100644 --- a/pom.xml +++ b/pom.xml @@ -366,99 +366,30 @@ org.apache.maven.plugins maven-assembly-plugin + + io.spring.maven.antora + antora-maven-plugin + 0.0.2-SNAPSHOT + true + + src/main/antora/antora-playbook.yml + + + + io.spring.maven.antora + antora-component-version-maven-plugin + 0.0.2-SNAPSHOT + + + + antora-component-version + + + + - - - docs - - - - com.github.eirslett - frontend-maven-plugin - 1.12.1 - - - install node and npm - - install-node-and-npm - - initialize - - ${node.version} - ${npm.version} - - - - npm install antora - - npm - - initialize - - install @antora/cli@${antora.version} @antora/site-generator-default@${antora.version} @antora/atlas-extension@${antora-atlas.version} @antora/collector-extension@${antora-collector.version} @asciidoctor/tabs@${asciidoctor-tabs.version} @springio/antora-extensions@${spring-antora-extensions.version} @springio/asciidoctor-extensions@${spring-asciidoctor-extensions.version} - - - - - - org.codehaus.mojo - exec-maven-plugin - 3.0.0 - - - antora - - exec - - compile - - - node/node - - node_modules/.bin/antora - src/main/antora/antora-playbook.yml - --to-dir=target/site - - ${project.basedir} - - - - - - org.apache.maven.plugins - maven-clean-plugin - 3.1.0 - - - - node - false - - - node_modules - false - - - build - false - - - - - - - - src/main/resources - true - - - - - - spring-snapshot diff --git a/src/main/antora/antora.yml b/src/main/antora/antora.yml index 62b9e11558..a80e24aadd 100644 --- a/src/main/antora/antora.yml +++ b/src/main/antora/antora.yml @@ -6,7 +6,7 @@ nav: ext: collector: - run: - command: mvnw -Pdocs resources:resources + command: mvnw process-resources local: true scan: dir: target/classes/antora-resources diff --git a/src/main/resources/antora-resources/antora.yml b/src/main/antora/resources/antora-resources/antora.yml similarity index 89% rename from src/main/resources/antora-resources/antora.yml rename to src/main/antora/resources/antora-resources/antora.yml index 21dce4bd0c..1c3c07b42d 100644 --- a/src/main/resources/antora-resources/antora.yml +++ b/src/main/antora/resources/antora-resources/antora.yml @@ -1,5 +1,5 @@ -version: ${project.version} - +version: ${antora-component.version} +prerelease: ${antora-component.prerelease} asciidoc: attributes: attribute-missing: 'warn'