Thanks Hilton!

From: Hilton Gibson [mailto:hilton.gib...@gmail.com]
Sent: 06 March 2015 05:15 PM
To: Lewatle Phaladi
Cc: Tim Donohue; dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] maven error

Ok, Try to install the following:

sudo apt-get install default-jdk default-jre

Also see: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S03

Cheers

hg

Hilton Gibson
Ubuntu Linux Systems Administrator
JS Gericke Library
Room 1025C
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa

Tel: +27 21 808 4100 | Cell: +27 84 646 4758

On 6 March 2015 at 16:53, Lewatle Phaladi 
<lewatle.phal...@wits.ac.za<mailto:lewatle.phal...@wits.ac.za>> wrote:
Hi Tim,

Inside my ~/.m2/ there is :

dspace@lcstest:~$ ls .m2/
repository/   settings.xml

The file /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar is not existing on my 
test server I have only :

dspace@lcstest:~$ ls -l /usr/lib/jvm/java-7-openjdk-amd64/
bin/  docs/ jre/  man/

environment variable is set as follows    :.
 JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

Regards,
Lewatle


-----Original Message-----
From: Tim Donohue [mailto:tdono...@duraspace.org<mailto:tdono...@duraspace.org>]
Sent: 06 March 2015 04:16 PM
To: Lewatle Phaladi; 
dspace-tech@lists.sourceforge.net<mailto:dspace-tech@lists.sourceforge.net>
Subject: Re: [Dspace-tech] maven error

Hi Lewatle,

Interesting. I have a nearly identical setup (Ubuntu 14.04, OpenJDK 7, Maven 
3.0.5) and I'm not seeing this same behavior.

Does this file exist on your server? Is it publicly readable (mine is 644)?

/usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar

Do you have the JAVA_HOME environment variable set?

Essentially, the Maven command is trying to locate the "tools.jar" on your 
server, and it's trying to find it at "JAVA_HOME/../lib/tools.jar".
(This logic was added initially in DSpace 4.0 and is unchanged in DSpace 5)

For some reason it is working on my Ubuntu 14.04 server, but not on yours...so, 
I'm just trying to narrow down the cause of the issue here.

You also could try to run the following to ensure any prior maven builds are 
first cleaned out (in case that could be causing issues):

mvn -U clean package

(The -U tells Maven to also update its dependencies in your local ~/.m2/
repository)

- Tim

On 3/6/2015 2:17 AM, Lewatle Phaladi wrote:
> Hi Tim,
>
> I am running Ubuntu OS version  : Distributor ID: Ubuntu
>                                                                       
> Description:    Ubuntu 14.04.1 LTS
>                                                                       
> Release:        14.04
>                                                                       
> Codename:       trusty
>
>
> Java version :  java version "1.7.0_75"
>                               OpenJDK Runtime Environment (IcedTea 2.5.4) 
> (7u75-2.5.4-1~trusty1)
>                                OpenJDK 64-Bit Server VM (build
> 24.75-b04, mixed mode)
>
> Maven : Apache Maven 3.0.5
>                    Maven home: /usr/share/maven
>                    Java version: 1.7.0_75, vendor: Oracle Corporation
>                    Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
>                    Default locale: en_ZA, platform encoding: UTF-8
>                    OS name: "linux", version: "3.13.0-46-generic", arch: 
> "amd64", family: "unix"
>
> Ant : Apache Ant(TM) version 1.9.3 compiled on April 8 2014
>
> Tomcat version  : apache-tomcat-8.0.20 Database : PostgreSQL 9.3
> database server
>
> Regards,
> Lewatle
>
> -----Original Message-----
> From: Tim Donohue 
> [mailto:tdono...@duraspace.org<mailto:tdono...@duraspace.org>]
> Sent: 05 March 2015 11:40 PM
> To: Lewatle Phaladi; 
> dspace-tech@lists.sourceforge.net<mailto:dspace-tech@lists.sourceforge.net>
> Subject: Re: [Dspace-tech] maven error
>
> Hi Lewatle,
>
> We likely need more information here on your environment. What OS are you 
> using?  What version of Java?
>
> The ${toolsjar} setting is supposed to be auto-determined by our Maven POM 
> based on your JAVA_HOME..and it's different based on your operating system.
>
> Here's the relevant part of the Maven POM which seems to be having issues:
> https://github.com/DSpace/DSpace/blob/master/pom.xml#L447
>
> - Tim
>
> On 3/4/2015 4:06 AM, Lewatle Phaladi wrote:
>> Hi,
>>
>> I am getting the following error, any idea what am I doing wrongly
>>
>> dspace@lcstest:~/dspace-5.0-src-release$<mailto:dspace@lcstest:~/dspace-5.0-src-release$>
>>  mvn package
>>
>> [INFO] Scanning for projects...
>>
>> [ERROR] The build could not read 1 project -> [Help 1]
>>
>> [ERROR]
>>
>> [ERROR]   The project org.dspace:dspace-parent:5.0
>> (/home/dspace/dspace-5.0-src-release/pom.xml) has 1 error
>>
>> [ERROR]
>> 'build.plugins.plugin[org.apache.maven.plugins:maven-antrun-plugin].dependencies.dependency.systemPath'
>> for com.sun:tools:jar must specify an absolute path but is
>> ${toolsjar} @ line 176, column 28
>>
>> [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/ProjectBuildingExcep
>> t
>> ion
>>
>> Regards,
>>
>> Lewatle
>>
>> This communication is intended for the addressee only. It is
>> confidential. If you have received this communication in error,
>> please notify us immediately and destroy the original message. You
>> may not copy or disseminate this communication without the permission
>> of the University. Only authorised signatories are competent to enter
>> into agreements on behalf of the University and recipients are thus
>> advised that the content of this message may not be legally binding
>> on the University and may contain the personal views and opinions of
>> the author, which are not necessarily the views and opinions of The
>> University of the Witwatersrand, Johannesburg. All agreements between
>> the University and outsiders are subject to South African Law unless
>> the University agrees in writing to the contrary.
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> -
>> -------- Dive into the World of Parallel Programming The Go Parallel
>> Website, sponsored by Intel and developed in partnership with
>> Slashdot Media, is your hub for all things parallel software
>> development, from weekly thought leadership blogs to news, videos,
>> case studies, tutorials and more. Take a look and join the conversation now.
>> http://goparallel.sourceforge.net/
>>
>>
>>
>> _______________________________________________
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net<mailto:DSpace-tech@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> List Etiquette:
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
>>
>>
> <table width="100%" border="0" cellspacing="0" cellpadding="0"
> style="width:100%;"> <tr> <td align="left"
> style="text-align:justify;"><font face="arial,sans-serif" size="1"
> color="#999999"><span style="font-size:11px;">This communication is
> intended for the addressee only. It is confidential. If you have
> received this communication in error, please notify us immediately and
> destroy the original message. You may not copy or disseminate this
> communication without the permission of the University. Only
> authorised signatories are competent to enter into agreements on
> behalf of the University and recipients are thus advised that the
> content of this message may not be legally binding on the University
> and may contain the personal views and opinions of the author, which
> are not necessarily the views and opinions of The University of the
> Witwatersrand, Johannesburg. All agreements between the University and
> outsiders are subject to South African Law unless the University
> agrees in writing to the contrary. </span></font></td> </tr> </table
>
<table width="100%" border="0" cellspacing="0" cellpadding="0" 
style="width:100%;">
<tr>
<td align="left" style="text-align:justify;"><font face="arial,sans-serif" 
size="1" color="#999999"><span style="font-size:11px;">This communication is 
intended for the addressee only. It is confidential. If you have received this 
communication in error, please notify us immediately and destroy the original 
message. You may not copy or disseminate this communication without the 
permission of the University. Only authorised signatories are competent to 
enter into agreements on behalf of the University and recipients are thus 
advised that the content of this message may not be legally binding on the 
University and may contain the personal views and opinions of the author, which 
are not necessarily the views and opinions of The University of the 
Witwatersrand, Johannesburg. All agreements between the University and 
outsiders are subject to South African Law unless the University agrees in 
writing to the contrary. </span></font></td>
</tr>
</table


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net<mailto:DSpace-tech@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


<table width="100%" border="0" cellspacing="0" cellpadding="0" 
style="width:100%;"> 
<tr>
<td align="left" style="text-align:justify;"><font face="arial,sans-serif" 
size="1" color="#999999"><span style="font-size:11px;">This communication is 
intended for the addressee only. It is confidential. If you have received this 
communication in error, please notify us immediately and destroy the original 
message. You may not copy or disseminate this communication without the 
permission of the University. Only authorised signatories are competent to 
enter into agreements on behalf of the University and recipients are thus 
advised that the content of this message may not be legally binding on the 
University and may contain the personal views and opinions of the author, which 
are not necessarily the views and opinions of The University of the 
Witwatersrand, Johannesburg. All agreements between the University and 
outsiders are subject to South African Law unless the University agrees in 
writing to the contrary. </span></font></td>
</tr>
</table
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to