Hi all,
I’m trying to use GroupDocs in my plugin to render documents in html. I’m having trouble getting it to build when adding the groupdocs dependency like this:
<dependency>
<groupId>com.groupdocs</groupId>
<artifactId>groupdocs-viewer</artifactId>
<version>19.3</version>
</dependency>
When I do atlas-run it downloads the package just fine, but it fails when it tries to unpack. Here is the build failure log
[INFO] — bitbucket-maven-plugin:8.0.2:copy-bundled-dependencies (default-copy-bundled-dependencies) @ bitbucket-groupdocs-plugin —
[INFO] Unpacking C:\Users<username>.m2\repository\com\groupdocs\groupdocs-viewer\19.3\groupdocs-viewer-19.3.jar to C:\Users<username>\dev\bitbucket-groupdocs-plugin\target\classes with includes “” and excludes “atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/.DSA,META-INF/.SF”
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13:50 min
[INFO] Finished at: 2020-03-13T00:11:54-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:bitbucket-maven-plugin:8.0.2:copy-bundled-dependencies (default-copy-bundled-dependencies) on project bitbucket-groupdocs-plugin: Error unpacking file: C:\Users<username>.m2\repository\com\groupdocs\groupdocs-viewer\19.3\groupdocs-viewer-19.3.jar to: C:\Users<username>\dev\bitbucket-groupdocs-plugin\target\classes
[ERROR] org.codehaus.plexus.archiver.ArchiverException: Entry is outside of the target directory (com/groupdocs/viewer/internal/c/a/t/con.class)
[ERROR] → [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] MojoExecutionException - Apache Maven - Apache Software Foundation
Not really sure what this means, any help would be appreciated. Thanks
Here is my output of atlas-version:
ATLAS Version: 8.0.16
ATLAS Home: C:\Applications\Atlassian\atlassian-plugin-sdk-8.0.16
ATLAS Scripts: C:\Applications\Atlassian\atlassian-plugin-sdk-8.0.16\bin
ATLAS Maven Home: C:\Applications\Atlassian\atlassian-plugin-sdk-8.0.16\apache-maven-3.5.4
AMPS Version: 8.0.2
[INFO] Project POM found
Executing: “C:\Applications\Atlassian\atlassian-plugin-sdk-8.0.16\apache-maven-3.5.4\bin\mvn.cmd” --version -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.0.16\apache-maven-3.5.4/conf/settings.xml
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T11:33:14-07:00)
Maven home: C:\Applications\Atlassian\atlassian-plugin-sdk-8.0.16\apache-maven-3.5.4\bin..
Java version: 1.8.0_201, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_201\jre
Default locale: en_US, platform encoding: Cp1252
OS name: “windows 10”, version: “10.0”, arch: “amd64”, family: “windows”