Getting compilation errors in DC SDK for Java

New Here ,
Apr 10, 2018 Apr 10, 2018

Copy link to clipboard

Copied

Hi All,

I am getting below error when compiling DC sdk for java using mvn command:

mvn -X samples/pom.xml exec:java -Dexec.mainClass=com.adobe.dcapi.samples.AddPassword -Dexec.args="/config/default.json /SDK/test-files/foobar.pdf 12345"

Apache Maven 3.3.9

Maven home: /usr/share/maven

Java version: 1.8.0_151, vendor: Oracle Corporation

Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre

Default locale: en_IN, platform encoding: UTF-8

OS name: "linux", version: "4.4.0-112-generic", arch: "amd64", family: "unix"

[DEBUG] Created new class realm maven.api

[DEBUG] Importing foreign packages into class realm maven.api

[DEBUG]   Imported: javax.enterprise.inject.* < plexus.core

[DEBUG]   Imported: javax.enterprise.util.* < plexus.core

[DEBUG]   Imported: javax.inject.* < plexus.core

[DEBUG]   Imported: org.apache.maven.* < plexus.core

[DEBUG]   Imported: org.apache.maven.artifact < plexus.core

[DEBUG]   Imported: org.apache.maven.classrealm < plexus.core

[DEBUG]   Imported: org.apache.maven.cli < plexus.core

[DEBUG]   Imported: org.apache.maven.configuration < plexus.core

[DEBUG]   Imported: org.apache.maven.exception < plexus.core

[DEBUG]   Imported: org.apache.maven.execution < plexus.core

[DEBUG]   Imported: org.apache.maven.execution.scope < plexus.core

[DEBUG]   Imported: org.apache.maven.lifecycle < plexus.core

[DEBUG]   Imported: org.apache.maven.model < plexus.core

[DEBUG]   Imported: org.apache.maven.monitor < plexus.core

[DEBUG]   Imported: org.apache.maven.plugin < plexus.core

[DEBUG]   Imported: org.apache.maven.profiles < plexus.core

[DEBUG]   Imported: org.apache.maven.project < plexus.core

[DEBUG]   Imported: org.apache.maven.reporting < plexus.core

[DEBUG]   Imported: org.apache.maven.repository < plexus.core

[DEBUG]   Imported: org.apache.maven.rtinfo < plexus.core

[DEBUG]   Imported: org.apache.maven.settings < plexus.core

[DEBUG]   Imported: org.apache.maven.toolchain < plexus.core

[DEBUG]   Imported: org.apache.maven.usability < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.* < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.authentication < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.authorization < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.events < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.observers < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.proxy < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.repository < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.resource < plexus.core

[DEBUG]   Imported: org.codehaus.classworlds < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.* < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.classworlds < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.component < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.configuration < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.container < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.context < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.lifecycle < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.logging < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.personality < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core

[DEBUG]   Imported: org.eclipse.aether.* < plexus.core

[DEBUG]   Imported: org.eclipse.aether.artifact < plexus.core

[DEBUG]   Imported: org.eclipse.aether.collection < plexus.core

[DEBUG]   Imported: org.eclipse.aether.deployment < plexus.core

[DEBUG]   Imported: org.eclipse.aether.graph < plexus.core

[DEBUG]   Imported: org.eclipse.aether.impl < plexus.core

[DEBUG]   Imported: org.eclipse.aether.installation < plexus.core

[DEBUG]   Imported: org.eclipse.aether.internal.impl < plexus.core

[DEBUG]   Imported: org.eclipse.aether.metadata < plexus.core

[DEBUG]   Imported: org.eclipse.aether.repository < plexus.core

[DEBUG]   Imported: org.eclipse.aether.resolution < plexus.core

[DEBUG]   Imported: org.eclipse.aether.spi < plexus.core

[DEBUG]   Imported: org.eclipse.aether.transfer < plexus.core

[DEBUG]   Imported: org.eclipse.aether.version < plexus.core

[DEBUG]   Imported: org.slf4j.* < plexus.core

[DEBUG]   Imported: org.slf4j.helpers.* < plexus.core

[DEBUG]   Imported: org.slf4j.spi.* < plexus.core

[DEBUG] Populating class realm maven.api

[INFO] Error stacktraces are turned on.

[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml

[DEBUG] Reading user settings from .m2/settings.xml

[DEBUG] Reading global toolchains from /usr/share/maven/conf/toolchains.xml

[DEBUG] Reading user toolchains from .m2/toolchains.xml

[DEBUG] Using local repository at .m2/repository

[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for .m2/repository

[INFO] Scanning for projects...

[DEBUG] Extension realms for project com.adobe.dcapi:dcapi-java-sdk:pom:0.5.0: (none)

[DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null]

[ERROR] [ERROR] Some problems were encountered while processing the POMs:

[ERROR] Child module /.local/share/Trash/files/SDK.4/java/spring of .local/share/Trash/files/SDK.4/java/pom.xml does not exist @

@

[ERROR] The build could not read 1 project -> [Help 1]

org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:

[ERROR] Child module .local/share/Trash/files/SDK.4/java/spring of .local/share/Trash/files/SDK.4/java/pom.xml does not exist @

  at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:422)

  at org.apache.maven.graph.DefaultGraphBuilder.collectProjects(DefaultGraphBuilder.java:419)

  at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor(DefaultGraphBuilder.java:410)

  at org.apache.maven.graph.DefaultGraphBuilder.build(DefaultGraphBuilder.java:83)

  at org.apache.maven.DefaultMaven.buildGraph(DefaultMaven.java:491)

  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:219)

  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)

  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)

  at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)

  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)

  at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)

  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]   The project com.adobe.dcapi:dcapi-java-sdk:0.5.0 (.local/share/Trash/files/SDK.4/java/pom.xml) has 1 error

[ERROR]     Child module .local/share/Trash/files/SDK.4/java/spring of .local/share/Trash/files/SDK.4/java/pom.xml does not exist

[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/ProjectBuildingException

Please let me know how to resolve this?

I want to add password in pdf.

--

Thanks

TOPICS
Acrobat SDK and JavaScript

Views

224

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 10, 2018 Apr 10, 2018

Copy link to clipboard

Copied

LATEST

Not an answer: I wondered what this DCAPI is, and was surprised to find that Adobe offer a Java API to Document Cloud services. See here: NodeJS and Java SDK Sample

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines