Skip to content

Instantly share code, notes, and snippets.

@anupammaiti
Created June 13, 2020 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anupammaiti/5bf2abfc538efcf709539a7999e072c0 to your computer and use it in GitHub Desktop.
Save anupammaiti/5bf2abfc538efcf709539a7999e072c0 to your computer and use it in GitHub Desktop.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependency</id>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeArtifactIds>html2pdf</includeArtifactIds>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<executions>
<execution>
<id>bnd-process</id>
<goals>
<goal>bnd-process</goal>
</goals>
<configuration>
<bnd><![CDATA[
Bundle-Category: ITextHtml2pdf
Import-Package: javax.annotation;version=0.0.0,
-exportcontents: ${packages;VERSIONED},
Include-Resource: target/dependency/html2pdf-3.0.0.jar
Bundle-ClassPath: ., html2pdf-3.0.0.jar
Sling-Model-Packages: com.bcbsm.handbook.core.models
-snapshot: ${tstamp;yyyyMMddHHmmssSSS}
Bundle-DocURL:
-plugin org.apache.sling.caconfig.bndplugin.ConfigurationClassScannerPlugin
]]></bnd>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.caconfig.bnd-plugin</artifactId>
<version>1.0.2</version>
</dependency>
</dependencies>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment