jbake-org / jbake-maven-plugin

JBake Maven Plugin - NOTE: Code now resides in main JBake repository - https://github.com/jbake-org/jbake
9 stars 15 forks source link

Adjustments to make it compatible with JBake 2.6.2 #17

Closed kwin closed 5 years ago

kwin commented 6 years ago

This closes #16

kwin commented 6 years ago

Unfortunately that fix isn't enough, whenever I try to execute the Maven Goal generate now I run into the following exception:

[ERROR] Failed to execute goal org.jbake:jbake-maven-plugin:0.4.0-SNAPSHOT:generate (default-generate) on project sling-site: Execution default-generate of goal org.jbake:jbake-maven-plugin:0.4.0-SNAPSHOT:generate failed: A required class was missing while executing org.jbake:jbake-maven-plugin:0.4.0-SNAPSHOT:generate: de/neuland/jade4j/template/TemplateLoader
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.jbake:jbake-maven-plugin:0.4.0-SNAPSHOT
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/konradwindszus/.m2/repository/org/jbake/jbake-maven-plugin/0.4.0-SNAPSHOT/jbake-maven-plugin-0.4.0-SNAPSHOT.jar
[ERROR] urls[1] = file:/Users/konradwindszus/.m2/repository/org/jbake/jbake-core/2.6.2/jbake-core-2.6.2.jar
[ERROR] urls[2] = file:/Users/konradwindszus/.m2/repository/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar
[ERROR] urls[3] = file:/Users/konradwindszus/.m2/repository/commons-configuration/commons-configuration/1.10/commons-configuration-1.10.jar
[ERROR] urls[4] = file:/Users/konradwindszus/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
[ERROR] urls[5] = file:/Users/konradwindszus/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar
[ERROR] urls[6] = file:/Users/konradwindszus/.m2/repository/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar
[ERROR] urls[7] = file:/Users/konradwindszus/.m2/repository/com/orientechnologies/orientdb-core/2.2.37/orientdb-core-2.2.37.jar
[ERROR] urls[8] = file:/Users/konradwindszus/.m2/repository/org/xerial/snappy/snappy-java/1.1.0.1/snappy-java-1.1.0.1.jar
[ERROR] urls[9] = file:/Users/konradwindszus/.m2/repository/net/java/dev/jna/jna/4.5.0/jna-4.5.0.jar
[ERROR] urls[10] = file:/Users/konradwindszus/.m2/repository/net/java/dev/jna/jna-platform/4.5.0/jna-platform-4.5.0.jar
[ERROR] urls[11] = file:/Users/konradwindszus/.m2/repository/com/googlecode/concurrentlinkedhashmap/concurrentlinkedhashmap-lru/1.4.2/concurrentlinkedhashmap-lru-1.4.2.jar
[ERROR] urls[12] = file:/Users/konradwindszus/.m2/repository/org/jsoup/jsoup/1.11.3/jsoup-1.11.3.jar
[ERROR] urls[13] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark/0.34.48/flexmark-0.34.48.jar
[ERROR] urls[14] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-util/0.34.48/flexmark-util-0.34.48.jar
[ERROR] urls[15] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-profile-pegdown/0.34.48/flexmark-profile-pegdown-0.34.48.jar
[ERROR] urls[16] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-abbreviation/0.34.48/flexmark-ext-abbreviation-0.34.48.jar
[ERROR] urls[17] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-formatter/0.34.48/flexmark-formatter-0.34.48.jar
[ERROR] urls[18] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-anchorlink/0.34.48/flexmark-ext-anchorlink-0.34.48.jar
[ERROR] urls[19] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-aside/0.34.48/flexmark-ext-aside-0.34.48.jar
[ERROR] urls[20] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-jira-converter/0.34.48/flexmark-jira-converter-0.34.48.jar
[ERROR] urls[21] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-autolink/0.34.48/flexmark-ext-autolink-0.34.48.jar
[ERROR] urls[22] = file:/Users/konradwindszus/.m2/repository/org/nibor/autolink/autolink/0.6.0/autolink-0.6.0.jar
[ERROR] urls[23] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-definition/0.34.48/flexmark-ext-definition-0.34.48.jar
[ERROR] urls[24] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-emoji/0.34.48/flexmark-ext-emoji-0.34.48.jar
[ERROR] urls[25] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-escaped-character/0.34.48/flexmark-ext-escaped-character-0.34.48.jar
[ERROR] urls[26] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-footnotes/0.34.48/flexmark-ext-footnotes-0.34.48.jar
[ERROR] urls[27] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-gfm-strikethrough/0.34.48/flexmark-ext-gfm-strikethrough-0.34.48.jar
[ERROR] urls[28] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-gfm-tasklist/0.34.48/flexmark-ext-gfm-tasklist-0.34.48.jar
[ERROR] urls[29] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-ins/0.34.48/flexmark-ext-ins-0.34.48.jar
[ERROR] urls[30] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-jekyll-front-matter/0.34.48/flexmark-ext-jekyll-front-matter-0.34.48.jar
[ERROR] urls[31] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-yaml-front-matter/0.34.48/flexmark-ext-yaml-front-matter-0.34.48.jar
[ERROR] urls[32] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-superscript/0.34.48/flexmark-ext-superscript-0.34.48.jar
[ERROR] urls[33] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-tables/0.34.48/flexmark-ext-tables-0.34.48.jar
[ERROR] urls[34] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-toc/0.34.48/flexmark-ext-toc-0.34.48.jar
[ERROR] urls[35] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-typographic/0.34.48/flexmark-ext-typographic-0.34.48.jar
[ERROR] urls[36] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-wikilink/0.34.48/flexmark-ext-wikilink-0.34.48.jar
[ERROR] urls[37] = file:/Users/konradwindszus/.m2/repository/org/codehaus/groovy/groovy-templates/2.5.2/groovy-templates-2.5.2.jar
[ERROR] urls[38] = file:/Users/konradwindszus/.m2/repository/org/codehaus/groovy/groovy/2.5.2/groovy-2.5.2.jar
[ERROR] urls[39] = file:/Users/konradwindszus/.m2/repository/org/codehaus/groovy/groovy-xml/2.5.2/groovy-xml-2.5.2.jar
[ERROR] urls[40] = file:/Users/konradwindszus/.m2/repository/com/sparkjava/spark-core/2.3/spark-core-2.3.jar
[ERROR] urls[41] = file:/Users/konradwindszus/.m2/repository/org/slf4j/slf4j-simple/1.7.12/slf4j-simple-1.7.12.jar
[ERROR] urls[42] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-server/9.3.2.v20150730/jetty-server-9.3.2.v20150730.jar
[ERROR] urls[43] = file:/Users/konradwindszus/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar
[ERROR] urls[44] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-http/9.3.2.v20150730/jetty-http-9.3.2.v20150730.jar
[ERROR] urls[45] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-util/9.3.2.v20150730/jetty-util-9.3.2.v20150730.jar
[ERROR] urls[46] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-io/9.3.2.v20150730/jetty-io-9.3.2.v20150730.jar
[ERROR] urls[47] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-webapp/9.3.2.v20150730/jetty-webapp-9.3.2.v20150730.jar
[ERROR] urls[48] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-xml/9.3.2.v20150730/jetty-xml-9.3.2.v20150730.jar
[ERROR] urls[49] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-servlet/9.3.2.v20150730/jetty-servlet-9.3.2.v20150730.jar
[ERROR] urls[50] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-security/9.3.2.v20150730/jetty-security-9.3.2.v20150730.jar
[ERROR] urls[51] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-server/9.3.2.v20150730/websocket-server-9.3.2.v20150730.jar
[ERROR] urls[52] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-common/9.3.2.v20150730/websocket-common-9.3.2.v20150730.jar
[ERROR] urls[53] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-client/9.3.2.v20150730/websocket-client-9.3.2.v20150730.jar
[ERROR] urls[54] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-servlet/9.3.2.v20150730/websocket-servlet-9.3.2.v20150730.jar
[ERROR] urls[55] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-api/9.3.2.v20150730/websocket-api-9.3.2.v20150730.jar
[ERROR] urls[56] = file:/Users/konradwindszus/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
[ERROR] urls[57] = file:/Users/konradwindszus/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.2/org.eclipse.sisu.inject-0.3.2.jar
[ERROR] urls[58] = file:/Users/konradwindszus/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
[ERROR] urls[59] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/maven-builder-support/3.3.9/maven-builder-support-3.3.9.jar
[ERROR] urls[60] = file:/Users/konradwindszus/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar
[ERROR] urls[61] = file:/Users/konradwindszus/.m2/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar
[ERROR] urls[62] = file:/Users/konradwindszus/.m2/repository/com/google/inject/guice/4.0/guice-4.0-no_aop.jar
[ERROR] urls[63] = file:/Users/konradwindszus/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[ERROR] urls[64] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar
[ERROR] urls[65] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
[ERROR] urls[66] = file:/Users/konradwindszus/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[67] = file:/Users/konradwindszus/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[68] = file:/Users/konradwindszus/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
[ERROR] urls[69] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.22/plexus-utils-3.0.22.jar
[ERROR] urls[70] = file:/Users/konradwindszus/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[project>org.apache.sling:sling-site:0.1-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR] 
[ERROR] -----------------------------------------------------
[ERROR] : de.neuland.jade4j.template.TemplateLoader
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jbake:jbake-maven-plugin:0.4.0-SNAPSHOT:generate (default-generate) on project sling-site: Execution default-generate of goal org.jbake:jbake-maven-plugin:0.4.0-SNAPSHOT:generate failed: A required class was missing while executing org.jbake:jbake-maven-plugin:0.4.0-SNAPSHOT:generate: de/neuland/jade4j/template/TemplateLoader
-----------------------------------------------------
realm =    plugin>org.jbake:jbake-maven-plugin:0.4.0-SNAPSHOT
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/Users/konradwindszus/.m2/repository/org/jbake/jbake-maven-plugin/0.4.0-SNAPSHOT/jbake-maven-plugin-0.4.0-SNAPSHOT.jar
urls[1] = file:/Users/konradwindszus/.m2/repository/org/jbake/jbake-core/2.6.2/jbake-core-2.6.2.jar
urls[2] = file:/Users/konradwindszus/.m2/repository/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar
urls[3] = file:/Users/konradwindszus/.m2/repository/commons-configuration/commons-configuration/1.10/commons-configuration-1.10.jar
urls[4] = file:/Users/konradwindszus/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
urls[5] = file:/Users/konradwindszus/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar
urls[6] = file:/Users/konradwindszus/.m2/repository/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar
urls[7] = file:/Users/konradwindszus/.m2/repository/com/orientechnologies/orientdb-core/2.2.37/orientdb-core-2.2.37.jar
urls[8] = file:/Users/konradwindszus/.m2/repository/org/xerial/snappy/snappy-java/1.1.0.1/snappy-java-1.1.0.1.jar
urls[9] = file:/Users/konradwindszus/.m2/repository/net/java/dev/jna/jna/4.5.0/jna-4.5.0.jar
urls[10] = file:/Users/konradwindszus/.m2/repository/net/java/dev/jna/jna-platform/4.5.0/jna-platform-4.5.0.jar
urls[11] = file:/Users/konradwindszus/.m2/repository/com/googlecode/concurrentlinkedhashmap/concurrentlinkedhashmap-lru/1.4.2/concurrentlinkedhashmap-lru-1.4.2.jar
urls[12] = file:/Users/konradwindszus/.m2/repository/org/jsoup/jsoup/1.11.3/jsoup-1.11.3.jar
urls[13] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark/0.34.48/flexmark-0.34.48.jar
urls[14] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-util/0.34.48/flexmark-util-0.34.48.jar
urls[15] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-profile-pegdown/0.34.48/flexmark-profile-pegdown-0.34.48.jar
urls[16] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-abbreviation/0.34.48/flexmark-ext-abbreviation-0.34.48.jar
urls[17] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-formatter/0.34.48/flexmark-formatter-0.34.48.jar
urls[18] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-anchorlink/0.34.48/flexmark-ext-anchorlink-0.34.48.jar
urls[19] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-aside/0.34.48/flexmark-ext-aside-0.34.48.jar
urls[20] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-jira-converter/0.34.48/flexmark-jira-converter-0.34.48.jar
urls[21] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-autolink/0.34.48/flexmark-ext-autolink-0.34.48.jar
urls[22] = file:/Users/konradwindszus/.m2/repository/org/nibor/autolink/autolink/0.6.0/autolink-0.6.0.jar
urls[23] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-definition/0.34.48/flexmark-ext-definition-0.34.48.jar
urls[24] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-emoji/0.34.48/flexmark-ext-emoji-0.34.48.jar
urls[25] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-escaped-character/0.34.48/flexmark-ext-escaped-character-0.34.48.jar
urls[26] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-footnotes/0.34.48/flexmark-ext-footnotes-0.34.48.jar
urls[27] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-gfm-strikethrough/0.34.48/flexmark-ext-gfm-strikethrough-0.34.48.jar
urls[28] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-gfm-tasklist/0.34.48/flexmark-ext-gfm-tasklist-0.34.48.jar
urls[29] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-ins/0.34.48/flexmark-ext-ins-0.34.48.jar
urls[30] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-jekyll-front-matter/0.34.48/flexmark-ext-jekyll-front-matter-0.34.48.jar
urls[31] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-yaml-front-matter/0.34.48/flexmark-ext-yaml-front-matter-0.34.48.jar
urls[32] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-superscript/0.34.48/flexmark-ext-superscript-0.34.48.jar
urls[33] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-tables/0.34.48/flexmark-ext-tables-0.34.48.jar
urls[34] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-toc/0.34.48/flexmark-ext-toc-0.34.48.jar
urls[35] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-typographic/0.34.48/flexmark-ext-typographic-0.34.48.jar
urls[36] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-wikilink/0.34.48/flexmark-ext-wikilink-0.34.48.jar
urls[37] = file:/Users/konradwindszus/.m2/repository/org/codehaus/groovy/groovy-templates/2.5.2/groovy-templates-2.5.2.jar
urls[38] = file:/Users/konradwindszus/.m2/repository/org/codehaus/groovy/groovy/2.5.2/groovy-2.5.2.jar
urls[39] = file:/Users/konradwindszus/.m2/repository/org/codehaus/groovy/groovy-xml/2.5.2/groovy-xml-2.5.2.jar
urls[40] = file:/Users/konradwindszus/.m2/repository/com/sparkjava/spark-core/2.3/spark-core-2.3.jar
urls[41] = file:/Users/konradwindszus/.m2/repository/org/slf4j/slf4j-simple/1.7.12/slf4j-simple-1.7.12.jar
urls[42] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-server/9.3.2.v20150730/jetty-server-9.3.2.v20150730.jar
urls[43] = file:/Users/konradwindszus/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar
urls[44] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-http/9.3.2.v20150730/jetty-http-9.3.2.v20150730.jar
urls[45] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-util/9.3.2.v20150730/jetty-util-9.3.2.v20150730.jar
urls[46] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-io/9.3.2.v20150730/jetty-io-9.3.2.v20150730.jar
urls[47] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-webapp/9.3.2.v20150730/jetty-webapp-9.3.2.v20150730.jar
urls[48] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-xml/9.3.2.v20150730/jetty-xml-9.3.2.v20150730.jar
urls[49] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-servlet/9.3.2.v20150730/jetty-servlet-9.3.2.v20150730.jar
urls[50] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-security/9.3.2.v20150730/jetty-security-9.3.2.v20150730.jar
urls[51] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-server/9.3.2.v20150730/websocket-server-9.3.2.v20150730.jar
urls[52] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-common/9.3.2.v20150730/websocket-common-9.3.2.v20150730.jar
urls[53] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-client/9.3.2.v20150730/websocket-client-9.3.2.v20150730.jar
urls[54] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-servlet/9.3.2.v20150730/websocket-servlet-9.3.2.v20150730.jar
urls[55] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-api/9.3.2.v20150730/websocket-api-9.3.2.v20150730.jar
urls[56] = file:/Users/konradwindszus/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
urls[57] = file:/Users/konradwindszus/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.2/org.eclipse.sisu.inject-0.3.2.jar
urls[58] = file:/Users/konradwindszus/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
urls[59] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/maven-builder-support/3.3.9/maven-builder-support-3.3.9.jar
urls[60] = file:/Users/konradwindszus/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar
urls[61] = file:/Users/konradwindszus/.m2/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar
urls[62] = file:/Users/konradwindszus/.m2/repository/com/google/inject/guice/4.0/guice-4.0-no_aop.jar
urls[63] = file:/Users/konradwindszus/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
urls[64] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar
urls[65] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
urls[66] = file:/Users/konradwindszus/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
urls[67] = file:/Users/konradwindszus/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
urls[68] = file:/Users/konradwindszus/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
urls[69] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.22/plexus-utils-3.0.22.jar
urls[70] = file:/Users/konradwindszus/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
Number of foreign imports: 1
import: Entry[import  from realm ClassRealm[project>org.apache.sling:sling-site:0.1-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]

-----------------------------------------------------

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-generate of goal org.jbake:jbake-maven-plugin:0.4.0-SNAPSHOT:generate failed: A required class was missing while executing org.jbake:jbake-maven-plugin:0.4.0-SNAPSHOT:generate: de/neuland/jade4j/template/TemplateLoader
-----------------------------------------------------
realm =    plugin>org.jbake:jbake-maven-plugin:0.4.0-SNAPSHOT
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/Users/konradwindszus/.m2/repository/org/jbake/jbake-maven-plugin/0.4.0-SNAPSHOT/jbake-maven-plugin-0.4.0-SNAPSHOT.jar
urls[1] = file:/Users/konradwindszus/.m2/repository/org/jbake/jbake-core/2.6.2/jbake-core-2.6.2.jar
urls[2] = file:/Users/konradwindszus/.m2/repository/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar
urls[3] = file:/Users/konradwindszus/.m2/repository/commons-configuration/commons-configuration/1.10/commons-configuration-1.10.jar
urls[4] = file:/Users/konradwindszus/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
urls[5] = file:/Users/konradwindszus/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar
urls[6] = file:/Users/konradwindszus/.m2/repository/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar
urls[7] = file:/Users/konradwindszus/.m2/repository/com/orientechnologies/orientdb-core/2.2.37/orientdb-core-2.2.37.jar
urls[8] = file:/Users/konradwindszus/.m2/repository/org/xerial/snappy/snappy-java/1.1.0.1/snappy-java-1.1.0.1.jar
urls[9] = file:/Users/konradwindszus/.m2/repository/net/java/dev/jna/jna/4.5.0/jna-4.5.0.jar
urls[10] = file:/Users/konradwindszus/.m2/repository/net/java/dev/jna/jna-platform/4.5.0/jna-platform-4.5.0.jar
urls[11] = file:/Users/konradwindszus/.m2/repository/com/googlecode/concurrentlinkedhashmap/concurrentlinkedhashmap-lru/1.4.2/concurrentlinkedhashmap-lru-1.4.2.jar
urls[12] = file:/Users/konradwindszus/.m2/repository/org/jsoup/jsoup/1.11.3/jsoup-1.11.3.jar
urls[13] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark/0.34.48/flexmark-0.34.48.jar
urls[14] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-util/0.34.48/flexmark-util-0.34.48.jar
urls[15] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-profile-pegdown/0.34.48/flexmark-profile-pegdown-0.34.48.jar
urls[16] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-abbreviation/0.34.48/flexmark-ext-abbreviation-0.34.48.jar
urls[17] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-formatter/0.34.48/flexmark-formatter-0.34.48.jar
urls[18] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-anchorlink/0.34.48/flexmark-ext-anchorlink-0.34.48.jar
urls[19] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-aside/0.34.48/flexmark-ext-aside-0.34.48.jar
urls[20] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-jira-converter/0.34.48/flexmark-jira-converter-0.34.48.jar
urls[21] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-autolink/0.34.48/flexmark-ext-autolink-0.34.48.jar
urls[22] = file:/Users/konradwindszus/.m2/repository/org/nibor/autolink/autolink/0.6.0/autolink-0.6.0.jar
urls[23] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-definition/0.34.48/flexmark-ext-definition-0.34.48.jar
urls[24] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-emoji/0.34.48/flexmark-ext-emoji-0.34.48.jar
urls[25] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-escaped-character/0.34.48/flexmark-ext-escaped-character-0.34.48.jar
urls[26] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-footnotes/0.34.48/flexmark-ext-footnotes-0.34.48.jar
urls[27] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-gfm-strikethrough/0.34.48/flexmark-ext-gfm-strikethrough-0.34.48.jar
urls[28] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-gfm-tasklist/0.34.48/flexmark-ext-gfm-tasklist-0.34.48.jar
urls[29] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-ins/0.34.48/flexmark-ext-ins-0.34.48.jar
urls[30] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-jekyll-front-matter/0.34.48/flexmark-ext-jekyll-front-matter-0.34.48.jar
urls[31] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-yaml-front-matter/0.34.48/flexmark-ext-yaml-front-matter-0.34.48.jar
urls[32] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-superscript/0.34.48/flexmark-ext-superscript-0.34.48.jar
urls[33] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-tables/0.34.48/flexmark-ext-tables-0.34.48.jar
urls[34] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-toc/0.34.48/flexmark-ext-toc-0.34.48.jar
urls[35] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-typographic/0.34.48/flexmark-ext-typographic-0.34.48.jar
urls[36] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-wikilink/0.34.48/flexmark-ext-wikilink-0.34.48.jar
urls[37] = file:/Users/konradwindszus/.m2/repository/org/codehaus/groovy/groovy-templates/2.5.2/groovy-templates-2.5.2.jar
urls[38] = file:/Users/konradwindszus/.m2/repository/org/codehaus/groovy/groovy/2.5.2/groovy-2.5.2.jar
urls[39] = file:/Users/konradwindszus/.m2/repository/org/codehaus/groovy/groovy-xml/2.5.2/groovy-xml-2.5.2.jar
urls[40] = file:/Users/konradwindszus/.m2/repository/com/sparkjava/spark-core/2.3/spark-core-2.3.jar
urls[41] = file:/Users/konradwindszus/.m2/repository/org/slf4j/slf4j-simple/1.7.12/slf4j-simple-1.7.12.jar
urls[42] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-server/9.3.2.v20150730/jetty-server-9.3.2.v20150730.jar
urls[43] = file:/Users/konradwindszus/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar
urls[44] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-http/9.3.2.v20150730/jetty-http-9.3.2.v20150730.jar
urls[45] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-util/9.3.2.v20150730/jetty-util-9.3.2.v20150730.jar
urls[46] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-io/9.3.2.v20150730/jetty-io-9.3.2.v20150730.jar
urls[47] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-webapp/9.3.2.v20150730/jetty-webapp-9.3.2.v20150730.jar
urls[48] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-xml/9.3.2.v20150730/jetty-xml-9.3.2.v20150730.jar
urls[49] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-servlet/9.3.2.v20150730/jetty-servlet-9.3.2.v20150730.jar
urls[50] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-security/9.3.2.v20150730/jetty-security-9.3.2.v20150730.jar
urls[51] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-server/9.3.2.v20150730/websocket-server-9.3.2.v20150730.jar
urls[52] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-common/9.3.2.v20150730/websocket-common-9.3.2.v20150730.jar
urls[53] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-client/9.3.2.v20150730/websocket-client-9.3.2.v20150730.jar
urls[54] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-servlet/9.3.2.v20150730/websocket-servlet-9.3.2.v20150730.jar
urls[55] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-api/9.3.2.v20150730/websocket-api-9.3.2.v20150730.jar
urls[56] = file:/Users/konradwindszus/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
urls[57] = file:/Users/konradwindszus/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.2/org.eclipse.sisu.inject-0.3.2.jar
urls[58] = file:/Users/konradwindszus/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
urls[59] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/maven-builder-support/3.3.9/maven-builder-support-3.3.9.jar
urls[60] = file:/Users/konradwindszus/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar
urls[61] = file:/Users/konradwindszus/.m2/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar
urls[62] = file:/Users/konradwindszus/.m2/repository/com/google/inject/guice/4.0/guice-4.0-no_aop.jar
urls[63] = file:/Users/konradwindszus/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
urls[64] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar
urls[65] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
urls[66] = file:/Users/konradwindszus/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
urls[67] = file:/Users/konradwindszus/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
urls[68] = file:/Users/konradwindszus/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
urls[69] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.22/plexus-utils-3.0.22.jar
urls[70] = file:/Users/konradwindszus/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
Number of foreign imports: 1
import: Entry[import  from realm ClassRealm[project>org.apache.sling:sling-site:0.1-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]

-----------------------------------------------------

    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:171)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginContainerException: A required class was missing while executing org.jbake:jbake-maven-plugin:0.4.0-SNAPSHOT:generate: de/neuland/jade4j/template/TemplateLoader
-----------------------------------------------------
realm =    plugin>org.jbake:jbake-maven-plugin:0.4.0-SNAPSHOT
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/Users/konradwindszus/.m2/repository/org/jbake/jbake-maven-plugin/0.4.0-SNAPSHOT/jbake-maven-plugin-0.4.0-SNAPSHOT.jar
urls[1] = file:/Users/konradwindszus/.m2/repository/org/jbake/jbake-core/2.6.2/jbake-core-2.6.2.jar
urls[2] = file:/Users/konradwindszus/.m2/repository/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar
urls[3] = file:/Users/konradwindszus/.m2/repository/commons-configuration/commons-configuration/1.10/commons-configuration-1.10.jar
urls[4] = file:/Users/konradwindszus/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
urls[5] = file:/Users/konradwindszus/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar
urls[6] = file:/Users/konradwindszus/.m2/repository/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar
urls[7] = file:/Users/konradwindszus/.m2/repository/com/orientechnologies/orientdb-core/2.2.37/orientdb-core-2.2.37.jar
urls[8] = file:/Users/konradwindszus/.m2/repository/org/xerial/snappy/snappy-java/1.1.0.1/snappy-java-1.1.0.1.jar
urls[9] = file:/Users/konradwindszus/.m2/repository/net/java/dev/jna/jna/4.5.0/jna-4.5.0.jar
urls[10] = file:/Users/konradwindszus/.m2/repository/net/java/dev/jna/jna-platform/4.5.0/jna-platform-4.5.0.jar
urls[11] = file:/Users/konradwindszus/.m2/repository/com/googlecode/concurrentlinkedhashmap/concurrentlinkedhashmap-lru/1.4.2/concurrentlinkedhashmap-lru-1.4.2.jar
urls[12] = file:/Users/konradwindszus/.m2/repository/org/jsoup/jsoup/1.11.3/jsoup-1.11.3.jar
urls[13] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark/0.34.48/flexmark-0.34.48.jar
urls[14] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-util/0.34.48/flexmark-util-0.34.48.jar
urls[15] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-profile-pegdown/0.34.48/flexmark-profile-pegdown-0.34.48.jar
urls[16] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-abbreviation/0.34.48/flexmark-ext-abbreviation-0.34.48.jar
urls[17] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-formatter/0.34.48/flexmark-formatter-0.34.48.jar
urls[18] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-anchorlink/0.34.48/flexmark-ext-anchorlink-0.34.48.jar
urls[19] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-aside/0.34.48/flexmark-ext-aside-0.34.48.jar
urls[20] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-jira-converter/0.34.48/flexmark-jira-converter-0.34.48.jar
urls[21] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-autolink/0.34.48/flexmark-ext-autolink-0.34.48.jar
urls[22] = file:/Users/konradwindszus/.m2/repository/org/nibor/autolink/autolink/0.6.0/autolink-0.6.0.jar
urls[23] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-definition/0.34.48/flexmark-ext-definition-0.34.48.jar
urls[24] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-emoji/0.34.48/flexmark-ext-emoji-0.34.48.jar
urls[25] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-escaped-character/0.34.48/flexmark-ext-escaped-character-0.34.48.jar
urls[26] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-footnotes/0.34.48/flexmark-ext-footnotes-0.34.48.jar
urls[27] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-gfm-strikethrough/0.34.48/flexmark-ext-gfm-strikethrough-0.34.48.jar
urls[28] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-gfm-tasklist/0.34.48/flexmark-ext-gfm-tasklist-0.34.48.jar
urls[29] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-ins/0.34.48/flexmark-ext-ins-0.34.48.jar
urls[30] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-jekyll-front-matter/0.34.48/flexmark-ext-jekyll-front-matter-0.34.48.jar
urls[31] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-yaml-front-matter/0.34.48/flexmark-ext-yaml-front-matter-0.34.48.jar
urls[32] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-superscript/0.34.48/flexmark-ext-superscript-0.34.48.jar
urls[33] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-tables/0.34.48/flexmark-ext-tables-0.34.48.jar
urls[34] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-toc/0.34.48/flexmark-ext-toc-0.34.48.jar
urls[35] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-typographic/0.34.48/flexmark-ext-typographic-0.34.48.jar
urls[36] = file:/Users/konradwindszus/.m2/repository/com/vladsch/flexmark/flexmark-ext-wikilink/0.34.48/flexmark-ext-wikilink-0.34.48.jar
urls[37] = file:/Users/konradwindszus/.m2/repository/org/codehaus/groovy/groovy-templates/2.5.2/groovy-templates-2.5.2.jar
urls[38] = file:/Users/konradwindszus/.m2/repository/org/codehaus/groovy/groovy/2.5.2/groovy-2.5.2.jar
urls[39] = file:/Users/konradwindszus/.m2/repository/org/codehaus/groovy/groovy-xml/2.5.2/groovy-xml-2.5.2.jar
urls[40] = file:/Users/konradwindszus/.m2/repository/com/sparkjava/spark-core/2.3/spark-core-2.3.jar
urls[41] = file:/Users/konradwindszus/.m2/repository/org/slf4j/slf4j-simple/1.7.12/slf4j-simple-1.7.12.jar
urls[42] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-server/9.3.2.v20150730/jetty-server-9.3.2.v20150730.jar
urls[43] = file:/Users/konradwindszus/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar
urls[44] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-http/9.3.2.v20150730/jetty-http-9.3.2.v20150730.jar
urls[45] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-util/9.3.2.v20150730/jetty-util-9.3.2.v20150730.jar
urls[46] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-io/9.3.2.v20150730/jetty-io-9.3.2.v20150730.jar
urls[47] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-webapp/9.3.2.v20150730/jetty-webapp-9.3.2.v20150730.jar
urls[48] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-xml/9.3.2.v20150730/jetty-xml-9.3.2.v20150730.jar
urls[49] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-servlet/9.3.2.v20150730/jetty-servlet-9.3.2.v20150730.jar
urls[50] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/jetty-security/9.3.2.v20150730/jetty-security-9.3.2.v20150730.jar
urls[51] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-server/9.3.2.v20150730/websocket-server-9.3.2.v20150730.jar
urls[52] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-common/9.3.2.v20150730/websocket-common-9.3.2.v20150730.jar
urls[53] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-client/9.3.2.v20150730/websocket-client-9.3.2.v20150730.jar
urls[54] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-servlet/9.3.2.v20150730/websocket-servlet-9.3.2.v20150730.jar
urls[55] = file:/Users/konradwindszus/.m2/repository/org/eclipse/jetty/websocket/websocket-api/9.3.2.v20150730/websocket-api-9.3.2.v20150730.jar
urls[56] = file:/Users/konradwindszus/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
urls[57] = file:/Users/konradwindszus/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.2/org.eclipse.sisu.inject-0.3.2.jar
urls[58] = file:/Users/konradwindszus/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
urls[59] = file:/Users/konradwindszus/.m2/repository/org/apache/maven/maven-builder-support/3.3.9/maven-builder-support-3.3.9.jar
urls[60] = file:/Users/konradwindszus/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar
urls[61] = file:/Users/konradwindszus/.m2/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar
urls[62] = file:/Users/konradwindszus/.m2/repository/com/google/inject/guice/4.0/guice-4.0-no_aop.jar
urls[63] = file:/Users/konradwindszus/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
urls[64] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar
urls[65] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
urls[66] = file:/Users/konradwindszus/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
urls[67] = file:/Users/konradwindszus/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
urls[68] = file:/Users/konradwindszus/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
urls[69] = file:/Users/konradwindszus/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.22/plexus-utils-3.0.22.jar
urls[70] = file:/Users/konradwindszus/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
Number of foreign imports: 1
import: Entry[import  from realm ClassRealm[project>org.apache.sling:sling-site:0.1-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]

-----------------------------------------------------

    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:169)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: java.lang.NoClassDefFoundError: de/neuland/jade4j/template/TemplateLoader
    at java.lang.Class.getDeclaredConstructors0 (Native Method)
    at java.lang.Class.privateGetDeclaredConstructors (Class.java:2671)
    at java.lang.Class.getConstructor0 (Class.java:3075)
    at java.lang.Class.getConstructor (Class.java:1825)
    at org.jbake.template.TemplateEngines.tryLoadEngine (TemplateEngines.java:78)
    at org.jbake.template.TemplateEngines.registerEngine (TemplateEngines.java:110)
    at org.jbake.template.TemplateEngines.loadEngines (TemplateEngines.java:101)
    at org.jbake.template.TemplateEngines.<init> (TemplateEngines.java:51)
    at org.jbake.template.DelegatingTemplateEngine.<init> (DelegatingTemplateEngine.java:39)
    at org.jbake.app.Renderer.<init> (Renderer.java:82)
    at org.jbake.app.UtensilsFactory.createDefaultUtensils (UtensilsFactory.java:26)
    at org.jbake.app.Oven.<init> (Oven.java:71)
    at org.jbake.maven.GenerateMojo.reRender (GenerateMojo.java:92)
    at org.jbake.maven.GenerateMojo.executeInternal (GenerateMojo.java:83)
    at org.jbake.maven.GenerateMojo.execute (GenerateMojo.java:68)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: java.lang.ClassNotFoundException: de.neuland.jade4j.template.TemplateLoader
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:239)
    at java.lang.Class.getDeclaredConstructors0 (Native Method)
    at java.lang.Class.privateGetDeclaredConstructors (Class.java:2671)
    at java.lang.Class.getConstructor0 (Class.java:3075)
    at java.lang.Class.getConstructor (Class.java:1825)
    at org.jbake.template.TemplateEngines.tryLoadEngine (TemplateEngines.java:78)
    at org.jbake.template.TemplateEngines.registerEngine (TemplateEngines.java:110)
    at org.jbake.template.TemplateEngines.loadEngines (TemplateEngines.java:101)
    at org.jbake.template.TemplateEngines.<init> (TemplateEngines.java:51)
    at org.jbake.template.DelegatingTemplateEngine.<init> (DelegatingTemplateEngine.java:39)
    at org.jbake.app.Renderer.<init> (Renderer.java:82)
    at org.jbake.app.UtensilsFactory.createDefaultUtensils (UtensilsFactory.java:26)
    at org.jbake.app.Oven.<init> (Oven.java:71)
    at org.jbake.maven.GenerateMojo.reRender (GenerateMojo.java:92)
    at org.jbake.maven.GenerateMojo.executeInternal (GenerateMojo.java:83)
    at org.jbake.maven.GenerateMojo.execute (GenerateMojo.java:68)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

The reason is that the Jade Engine is referenced in https://github.com/jbake-org/jbake/blob/master/jbake-core/src/main/resources/META-INF/org.jbake.parser.TemplateEngines.properties but the class is no contained on the classpath. Actually JBake Core should not fail in that case, to be able to prevent to load dependencies for actually not used classes (like Jade in my case).

That was not an issue with JBake 2.6.1 (that silently ignored not available template engines).

jonbullock commented 5 years ago

Did you figure out the root cause of the class not found issue in relation to Jade?

jonbullock commented 5 years ago

Oh and thanks for taking the time to raise this PR 👍

kwin commented 5 years ago

Well the exception is thrown from https://github.com/jbake-org/jbake/blob/4f3a18ae5a42686ffa761cef2e604f0a9f0f2000/jbake-core/src/main/java/org/jbake/template/TemplateEngines.java#L78. as the constructor cannot be executed due to missing classes. It is not caught by the surrounding catch block (https://github.com/jbake-org/jbake/blob/4f3a18ae5a42686ffa761cef2e604f0a9f0f2000/jbake-core/src/main/java/org/jbake/template/TemplateEngines.java#L81), because the java.lang.ClassNotFoundException is wrapped inside a java.lang.NoClassDefFoundError. The latter is not derived from java.lang.exception.

Most probably switching from catch (Exception e) to catch (Throwable e) in https://github.com/jbake-org/jbake/blob/4f3a18ae5a42686ffa761cef2e604f0a9f0f2000/jbake-core/src/main/java/org/jbake/template/TemplateEngines.java#L81 will fix this issue.

I logged the issue https://github.com/jbake-org/jbake/issues/567 for that.

jonbullock commented 5 years ago

Excellent work @kwin 👍