Login  Register

Re: Asciidoctor YAML style file for PDF and maven

Posted by Jeremie Bresson on Dec 23, 2015; 11:36am
URL: https://discuss.asciidoctor.org/Asciidoctor-YAML-style-file-for-PDF-and-maven-tp3849p4126.html

I have rethinked the problem and your possible workaround. My goal was: being able to run everything from maven (no need to setup anything else). This possible with the TorqueBox RubyGems Maven Proxy Repository.

I have now a plain maven solution where I set the prawn version to 2.0.2
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Asciidoctor PDF Book Maven example 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- gem-maven-plugin:1.0.10:initialize (default) @ asciidoctor-pdf-book-example ---
[INFO] Successfully installed prawn-2.0.2
[INFO] Successfully installed ttfunk-1.4.0
[INFO] Successfully installed pdf-core-0.6.0
[INFO] 3 gems installed
[INFO]
[INFO] --- asciidoctor-maven-plugin:1.5.3:process-asciidoc (generate-pdf-book-doc) @ asciidoctor-pdf-book-example ---
[WARNING] Using inherited external environment to resolve gems (C:/****/asciidoctor-maven-examples/asciidoctor-pdf-book-example/target/gems-provided), i.e. build is platform dependent!
[INFO] Rendered C:\****\asciidoctor-maven-examples\asciidoctor-pdf-book-example\src\docs\asciidoc\example-manual.adoc
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ asciidoctor-pdf-book-example ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\****\asciidoctor-maven-examples\asciidoctor-pdf-book-example\src\main\resources
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.830 s
[INFO] Finished at: 2015-12-23T12:21:18+01:00
[INFO] Final Memory: 85M/989M
[INFO] ------------------------------------------------------------------------
And it works!

Pull request:
https://github.com/asciidoctor/asciidoctor-maven-examples/pull/39

If this pull request is accepted, I will create an issue to remove the rubygem work arround, when everything is released directly in asciidoctorj-pdf (version 1.6.0 or something).