Hi Enrique,
That error is saying that you are running an old version of Java (<1.7)
which cannot compile DSpace (DSpace 5.x requires Java 1.7 or above):
"invalid target release: 1.7"
So, it's likely one of two things:
1) You may have Java 1.6 installed and need to upgrade
OR
2) Your Maven is using an older version of Java (via JAVA_HOME). Here's
a StackOverflow answer that should help you figure out if this is the issue:
http://stackoverflow.com/questions/14043042/compiling-java-7-code-via-maven
While you are at it, you may want to double check that you have the
proper version of Maven and other prerequisites. See the 5.x
installation docs:
https://wiki.duraspace.org/display/DSDOC5x/Installing+DSpace
Good luck,
Tim
On 10/5/2015 10:23 AM, MARTINEZ ZUÑIGA, ENRIQUE wrote:
Hi All!
I’ve Downloaded dspace-5.3-release and also tried dspace-5.2-release,
with the following error: DSpace Kernel :: Additions and Local
Customizations FAILURE
Also tried clean package and deleting ~/-m2 directory without success. L
Best regards,
Enrique Martínez
Maven:
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.6.0_36, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-4-amd64", arch: "amd64", family: "unix"
The summary:
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to
/usr/src/dspace-5.2-release/dspace/modules/additions/target/classes
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] DSpace Addon Modules .............................. SUCCESS [2.439s]
[INFO] DSpace Kernel :: Additions and Local Customizations FAILURE
[1:46.228s]
[INFO] DSpace XML-UI (Manakin) :: Local Customizations ... SKIPPED
[INFO] DSpace JSP-UI :: Local Customizations ............. SKIPPED
[INFO] DSpace RDF :: Local Customizations ................ SKIPPED
[INFO] DSpace REST :: Local Customizations ............... SKIPPED
[INFO] DSpace SWORD :: Local Customizations .............. SKIPPED
[INFO] DSpace SWORD v2 :: Local Customizations ........... SKIPPED
[INFO] DSpace SOLR :: Local Customizations ............... SKIPPED
[INFO] DSpace OAI-PMH :: Local Customizations ............ SKIPPED
[INFO] DSpace Assembly and Configuration ................. SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1:50.193s
[INFO] Finished at: Fri Oct 02 15:36:06 CDT 2015
[INFO] Final Memory: 19M/60M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project additions: Fatal error compiling: invalid
target release: 1.7 -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :additions
--
You received this message because you are subscribed to the Google
Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org
--
You received this message because you are subscribed to the Google Groups "DSpace
Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.