I’d like to modify the PDF Viewer Macro extension and add ability to scroll to specific pages and anchors: Mozilla’s pdf.js has this feature.
I cloned the source on github, then opened the folder and ran mvn clean install
. End of the log with the error:
[INFO]
[INFO] --- xar:8.4:xar (default-xar) @ xwiki-macro-pdfviewer ---
[INFO] Generating package.xml descriptor at [D:\Projects\Tests\macro-pdfviewer\wiki\target\classes\package.xml]
[INFO] Building zip: D:\Projects\Tests\macro-pdfviewer\wiki\target\xwiki-macro-pdfviewer-1.7.1-SNAPSHOT.xar
[INFO] package.xml already added, skipping
[INFO]
[INFO] --- xar:8.4:verify (default-verify) @ xwiki-macro-pdfviewer ---
[INFO] Checking validity of XAR XML files...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for PDF Viewer Macro - Parent POM 1.7.1-SNAPSHOT:
[INFO]
[INFO] PDF Viewer Macro - Parent POM ...................... SUCCESS [ 33.557 s]
[INFO] PDF Viewer Macro - Javascript ...................... SUCCESS [ 3.437 s]
[INFO] PDF Viewer Macro - UI .............................. FAILURE [ 47.864 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:41 min
[INFO] Finished at: 2023-06-07T15:00:25+03:00
[INFO] ------------------------------------------------------------------------
[WARNING]
[WARNING] Plugin validation issues were detected in 17 plugin(s)
[WARNING]
[WARNING] * org.apache.maven.plugins:maven-checkstyle-plugin:2.17
[WARNING] * org.apache.maven.plugins:maven-dependency-plugin:2.10
[WARNING] * org.apache.maven.plugins:maven-remote-resources-plugin:1.5
[WARNING] * org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8
[WARNING] * org.apache.maven.plugins:maven-assembly-plugin:2.6
[WARNING] * org.apache.maven.plugins:maven-clean-plugin:3.0.0
[WARNING] * org.codehaus.mojo:xml-maven-plugin:1.0.1
[WARNING] * org.xwiki.commons:xwiki-commons-tool-xar-plugin:8.4
[WARNING] * org.apache.maven.plugins:maven-resources-plugin:3.0.1
[WARNING] * org.apache.maven.plugins:maven-install-plugin:2.5.2
[WARNING] * org.apache.maven.plugins:maven-surefire-plugin:2.19.1
[WARNING] * org.apache.felix:maven-bundle-plugin:2.5.3
[WARNING] * org.revapi:revapi-maven-plugin:0.5.0
[WARNING] * org.apache.maven.plugins:maven-enforcer-plugin:1.3.1
[WARNING] * org.xwiki.platform:xwiki-platform-tool-xmldoc-update-plugin:8.4
[WARNING] * org.apache.maven.plugins:maven-compiler-plugin:3.5.1
[WARNING] * com.mycila:license-maven-plugin:2.11
[WARNING]
[WARNING] For more or less details, use 'maven.plugin.validation' property with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE]
[WARNING]
[ERROR] Failed to execute goal org.xwiki.commons:xwiki-commons-tool-xar-plugin:8.4:verify (default-verify) on project xwiki-macro-pdfviewer: Execution default-verify of goal org.xwiki.commons:xwiki-commons-tool-xar-plugin:8.4:verify failed: Cannot invoke "String.equals(Object)" because the return value of "org.xwiki.tool.xar.internal.XWikiDocument.getEncoding()" is null -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :xwiki-macro-pdfviewer
Full log: Maven PDF Viewer Macro build error · GitHub
Log with the -X switch: Maven PDF Viewer Macro build error -X switch · GitHub
Any ideas what to do from here, guys?