A quick google search led me to http://www.aspose.com/docs/display/pdfjava/Applying+a+License
Is that what you're trying to accomplish? Seems you might have the wrong package for the License class, should it be com.aspose.pdf.License. FYI: This doesn't seem like a maven problem, perhaps contact aspose support. HTH, Doug On Tue, Aug 25, 2015 at 1:07 PM, Magnanao, Hector <hector.magna...@sap.com> wrote: > I get this error when I run mvn -X compile: > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.1:compile > (default-compile) on project foundation: Compilation failure: Compilation > failure: > [ERROR] > /C:/Foundation/foundation/src/main/java/com/mycompany/app/cache/LicenseService.java:[35,23] > cannot find symbol > [ERROR] symbol: class License > [ERROR] location: package aspose.pdf > [ERROR] > /C:/Foundation/foundation/src/main/java/com/mycompany/app/cache/LicenseService.java:[35,59] > cannot find symbol > [ERROR] symbol: class License > [ERROR] location: package aspose.pdf > [ERROR] -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile > (default-compile) on project foundation: Compilation failure > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) > 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:862) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > 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.compiler.CompilationFailureException: > Compilation failure > at > org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:858) > at > org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) > ... 20 more > [ERROR] > > -----Original Message----- > From: Russell Gold [mailto:russell.g...@oracle.com] > Sent: Tuesday, August 25, 2015 2:56 PM > To: Maven Users List > Subject: Re: compile error with aspose.pdf > > What happens when you run: > > mvn -X compile? > > do you really mean to have a package named aspose.pdf? > > > > > On Aug 25, 2015, at 2:59 PM, Magnanao, Hector <hector.magna...@sap.com> > wrote: > > > > Can anyone tell me how to resolve this compile error ? I've uploaded > the jar locally and I still get the error. > > > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.1:compile > (default-compile) on project foundation: Compilation failure: Compilation > failure: > > [ERROR] > /C:/Foundation/foundation/src/main/java/com/mycompany/app/cache/LicenseService.java:[35,23] > cannot find symbol > > [ERROR] symbol: class License > > [ERROR] location: package aspose.pdf > > [ERROR] > /C:/Foundation/foundation/src/main/java/com/mycompany/app/cache/LicenseService.java:[35,59] > cannot find symbol > > [ERROR] symbol: class License > > > > Hector Magnanao Jr. > > SCM Analyst > > > > Fieldglass, Inc. > > O: (331) 702-6142 > > M: (773) 474-3051 > > hector.magna...@sap.com > > www.fieldglass.com > > > > Fieldglass is now part of SAP > > > > This email contains confidential information. If you are not the > intended recipient, do not read, distribute or reproduce this transmission > (including any attachments). If you have received this email in error, > please notify the sender by email reply. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >