[Dspace-tech] MVN Error with Dspace 1.8.3

11 views
Skip to first unread message

Maura Carbone

unread,
Aug 26, 2015, 12:59:48 PM8/26/15
to dspac...@lists.sourceforge.net
Hello all,
I am attempting to upgrade my DSpace 1.7.x installation, but am encountering a maven error when I attempt to build 1.8.3 in preparation for the upgrade. Attached below is the error log:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project dspace-api: Compilation failure: Compilation failure:
[ERROR] could not parse error message: warning: [options] bootstrap class path not set in conjunction with -source 1.6
[ERROR] /mnt/assets/src/dspace1_8/dspace-1.8.3-src-release/dspace-api/src/main/java/org/dspace/workflow/WorkflowManager.java:28: warning: [deprecation] DCValue in org.dspace.content has been deprecated
(A lot more depreciation warnings which I will exclude for readability's sake)...
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project dspace-api: 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:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        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.CompilationFailureException: Compilation failure
        at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 19 more
[ERROR]

I am running maven version 3.1.1 and java 1.7.0_51. I didn't find an error matching this in the archives, so I figured I'd come here. Any ideas what this error means/how to fix it? Any help would be appreciated. Thank you!
--
Maura C.
Digital Initiatives Librarian
Brandeis University

helix84

unread,
Aug 26, 2015, 1:00:00 PM8/26/15
to Maura Carbone, dspace-tech
Hi Maura,

please take a look at the requirements section in the official docs
for DSpace 1.8. They specifically state which versions of Java and
Maven you can use.

https://wiki.duraspace.org/display/DSDOC18/Installation#Installation-PrerequisiteSoftware


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Maura Carbone

unread,
Aug 26, 2015, 1:00:08 PM8/26/15
to dspac...@lists.sourceforge.net
Thanks helix! Downgraded java and it worked like a charm. Thanks so much!
--
Maura Carbone
Digital Initiatives Librarian
Brandeis University
Library and Technology Services
(781) 736-4659
415 South Street, (MS 017/P.O. Box 549110)
Waltham, MA 02454-9110

email: mau...@brandeis.edu
Reply all
Reply to author
Forward
0 new messages