Re: [Dspace-tech] maven error

2015-03-09 Thread Lewatle Phaladi
Thanks Tim.

Regards,
Lewatle 

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

Hi Lewatle,

Aha, there's the issue then.

It looks like you only installed the JRE.  DSpace requires the JDK as noted in 
the Installation docs:

https://wiki.duraspace.org/display/DSDOC5x/Installing+DSpace#InstallingDSpace-OracleJavaJDK7orOpenJDK7

So, you need to install the *full* JDK:

sudo apt-get install openjdk-7-jdk

(It's likely you just installed "openjdk-7-jre" previously, which doesn't 
include that "/lib" folder and the "tools.jar")

After installing the full JDK, things should work properly.

- Tim


On 3/6/2015 8:53 AM, Lewatle Phaladi 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]
> Sent: 06 March 2015 04:16 PM
> To: Lewatle Phaladi; 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]
>> Sent: 05 March 2015 11:40 PM
>> To: Lewatle Phaladi; 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
>>
>> O

Re: [Dspace-tech] maven error

2015-03-09 Thread Lewatle Phaladi
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 
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:dspa

Re: [Dspace-tech] maven error

2015-03-06 Thread Tim Donohue
Hi Lewatle,

Aha, there's the issue then.

It looks like you only installed the JRE.  DSpace requires the JDK as 
noted in the Installation docs:

https://wiki.duraspace.org/display/DSDOC5x/Installing+DSpace#InstallingDSpace-OracleJavaJDK7orOpenJDK7

So, you need to install the *full* JDK:

sudo apt-get install openjdk-7-jdk

(It's likely you just installed "openjdk-7-jre" previously, which 
doesn't include that "/lib" folder and the "tools.jar")

After installing the full JDK, things should work properly.

- Tim


On 3/6/2015 8:53 AM, Lewatle Phaladi 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]
> Sent: 06 March 2015 04:16 PM
> To: Lewatle Phaladi; 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]
>> Sent: 05 March 2015 11:40 PM
>> To: Lewatle Phaladi; 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$ mvn package
>>>
>&

Re: [Dspace-tech] maven error

2015-03-06 Thread Hilton Gibson
PS: Also see:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S08


*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 
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]
> Sent: 06 March 2015 04:16 PM
> To: Lewatle Phaladi; 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]
> > Sent: 05 March 2015 11:40 PM
> > To: Lewatle Phaladi; 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$ 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.systemPat

Re: [Dspace-tech] maven error

2015-03-06 Thread Hilton Gibson
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 
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]
> Sent: 06 March 2015 04:16 PM
> To: Lewatle Phaladi; 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]
> > Sent: 05 March 2015 11:40 PM
> > To: Lewatle Phaladi; 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$ 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.plugi

Re: [Dspace-tech] maven error

2015-03-06 Thread Lewatle Phaladi
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] 
Sent: 06 March 2015 04:16 PM
To: Lewatle Phaladi; 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]
> Sent: 05 March 2015 11:40 PM
> To: Lewatle Phaladi; 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$ 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,
>>
>> Lewat

Re: [Dspace-tech] maven error

2015-03-06 Thread Tim Donohue
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]
> Sent: 05 March 2015 11:40 PM
> To: Lewatle Phaladi; 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$ 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/ProjectBuildingExcept
>> 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 a

Re: [Dspace-tech] maven error

2015-03-06 Thread Lewatle Phaladi
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] 
Sent: 05 March 2015 11:40 PM
To: Lewatle Phaladi; 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$ 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/ProjectBuildingExcept
> 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
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: 
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
>
 

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 ag

Re: [Dspace-tech] maven error

2015-03-05 Thread Tim Donohue
A minor update, another user reported this same sort of issue.

There's a ticket at https://jira.duraspace.org/browse/DS-2481

As noted in my comment to that ticket, I suspect the JAVA_HOME is not 
set (or improperly set). I'm able to build DSpace 5.0 and 5.1 fine on 
multiple OSes (Windows 8, Ubuntu 14.04), so it seems like a possible 
configuration issue.

- Tim

On 3/5/2015 3:40 PM, Tim Donohue wrote:
> 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$ 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/ProjectBuildingException
>>
>> 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
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> List Etiquette:
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
>>
>>

--
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


Re: [Dspace-tech] maven error

2015-03-05 Thread Tim Donohue
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$ 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/ProjectBuildingException
>
> 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
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: 
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
>

--
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


[Dspace-tech] maven error

2015-03-04 Thread Lewatle Phaladi
Hi,

I am getting the following error, any idea what am I doing wrongly

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

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
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] maven error

2015-02-18 Thread Lewatle Phaladi
Hi All,

I am testing dspace-5 on test server, when I run $ mvn -U clean package I get 
the following errors, any suggestions is welcome.

[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.dspace:dspace:5.0 
(/dspace/src/dspace-5.0-src-release/dspace/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} @ 
org.dspace:dspace-parent:5.0, /dspace/src/dspace-5.0-src-release/pom.xml, 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/ProjectBuildingException


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. 

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk___
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

Re: [Dspace-tech] Maven error

2014-06-26 Thread Tim Donohue
Hi,

This looks to be related to a known issue with Solr (which DSpace uses):

https://jira.duraspace.org/browse/DS-1921

Essentially, there is a dependency in Solr ("restlet") which is not in 
the normal Maven repository.  Instead it's off in a third-party hosted 
site at http://maven.restlet.org

It looks like at the time you tried to build DSpace, that third-party 
siet (http://maven.restlet.org) was unavailable or temporarily down. You 
may want to try the build again -- hopefully this time that site will be 
available.

Unfortunately we are waiting on this to be resolved by the Restlet team. 
They are working on it, and as soon as they fix the problem, we'll make 
sure to update DSpace as well.

- Tim

On 6/24/2014 8:39 AM, Webshet, Sisay (ILRI) wrote:
> Hi All
>
> Iam installing dspace 4.1 on Ubuntu 14.04 LTS. Iam using maven 3.0.5 and
>
> cd /home/xxx/dspace-4.1-src-release
>
> and   renaming build.properties to test.properties  and run mvn -U clean
> package -Denv=test
>
> [ERROR] Failed to execute goal on project dspace-solr: Could not resolve
> dependencies for project org.dspace:dspace-solr:war:5.0-SNAPSHOT: Failed
> to collect dependencies at org.apache.solr:solr-core:jar:4.4.0 ->
> org.restlet.jee:org.restlet:jar:2.1.1: Failed to read artifact
> descriptor for org.restlet.jee:org.restlet:jar:2.1.1: Could not transfer
> artifact org.restlet.jee:org.restlet:pom:2.1.1 from/to maven-restlet
> (http://maven.restlet.org): Connection to http://maven.restlet.org
> refused: Connection refused -> [Help 1]
>
> Can anybody helps me
>
>
>
> --
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> http://p.sf.net/sfu/Bonitasoft
>
>
>
> ___
> 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
>

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
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


[Dspace-tech] Maven error

2014-06-24 Thread Webshet, Sisay (ILRI)
Hi All

Iam installing dspace 4.1 on Ubuntu 14.04 LTS. Iam using maven 3.0.5 and
cd /home/xxx/dspace-4.1-src-release

and   renaming build.properties to test.properties  and run mvn -U clean 
package -Denv=test

[ERROR] Failed to execute goal on project dspace-solr: Could not resolve 
dependencies for project org.dspace:dspace-solr:war:5.0-SNAPSHOT: Failed to 
collect dependencies at org.apache.solr:solr-core:jar:4.4.0 -> 
org.restlet.jee:org.restlet:jar:2.1.1: Failed to read artifact descriptor for 
org.restlet.jee:org.restlet:jar:2.1.1: Could not transfer artifact 
org.restlet.jee:org.restlet:pom:2.1.1 from/to maven-restlet 
(http://maven.restlet.org): Connection to http://maven.restlet.org refused: 
Connection refused -> [Help 1]

Can anybody helps me
--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft___
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

Re: [Dspace-tech] Maven Error

2014-06-18 Thread Anja Le Blanc
oss.sonatype.org changed from the http to https protocol. What you are 
getting back at the moment is an html page which tells you that the web 
site has permanently moved.

Change the location of that repository in the main pom.xml to (note: 
https -- everything else stays the same)


 
 sonatype-releases
 Sonatype Releases Repository
 
https://oss.sonatype.org/content/repositories/releases/
 
 

Regards,
Anja

On 17/06/2014 16:08, Henry Atsu Agbodza wrote:
> Dear all,
> i kindly need support on this. I'm trying to setup a test instance of
> Dspace 4.1 and i got stuck on this point**/mvn -U package. I am using
> maven 2 and openjdk. I removed /the ~/.m2 directory (rm -rf
> /home/dspace/.m2) and did a redo but still the same result.
> Below is the error stack:
>
> dspace@dspacetest:~$ cd /home/dspace/source
> dspace@dspacetest:~/source$ mvn -U package
> [INFO] Scanning for projects...
> Downloading:
> http://oss.sonatype.org/content/repositories/releases//org/sonatype/oss/oss-parent/7/oss-parent-7.pom
> 184b downloaded  (oss-parent-7.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '
> 301' - RETRYING
> Downloading:
> http://oss.sonatype.org/content/repositories/releases//org/sonatype/oss/oss-parent/7/oss-parent-7.pom
> 184b downloaded  (oss-parent-7.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '
> 301' - IGNORING
> [INFO]
> 
> [ERROR] FATAL ERROR
> [INFO]
> 
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.dspace:dspace-parent:pom:4.1
>
> Reason: Cannot find parent: org.sonatype.oss:oss-parent for project:
> org.dspace:dspace-parent:pom:4.1 for project
> org.dspace:dspace-parent:pom:4.1
>
>
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
> org.sonatype.oss:oss-parent for project:
> org.dspace:dspace-parent:pom:4.1 for project
> org.dspace:dspace-parent:pom:4.1
>  at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
>  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
>  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>  at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>  at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>  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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>  at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.project.ProjectBuildingException: Cannot
> find parent: org.sonatype.oss:oss-parent for project:
> org.dspace:dspace-parent:pom:4.1 for project
> org.dspace:dspace-parent:pom:4.1
>  at
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)
>  at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
>  at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
>  at
> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
>  at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
>  at
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
>  at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
>  ... 12 more
> Caused by: org.apache.maven.project.InvalidProjectModelException: Not a
> v4.0.0 POM. for project org.sonatype.oss:oss-parent at
> /home/dspace/.m2/repository/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
>  at
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1599)
>  at
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1571)
>  at
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:562)
>  at
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)
>   

[Dspace-tech] Maven Error

2014-06-17 Thread Henry Atsu Agbodza
Dear all,
i kindly need support on this. I'm trying to setup a test instance of
Dspace 4.1 and i got stuck on this point  *mvn -U package. I am using maven
2 and openjdk. I removed *the ~/.m2 directory (rm -rf /home/dspace/.m2) and
did a redo but still the same result.
Below is the error stack:

dspace@dspacetest:~$ cd /home/dspace/source
dspace@dspacetest:~/source$ mvn -U package
[INFO] Scanning for projects...
Downloading:
http://oss.sonatype.org/content/repositories/releases//org/sonatype/oss/oss-parent/7/oss-parent-7.pom
184b downloaded  (oss-parent-7.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '
301' - RETRYING
Downloading:
http://oss.sonatype.org/content/repositories/releases//org/sonatype/oss/oss-parent/7/oss-parent-7.pom
184b downloaded  (oss-parent-7.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '
301' - IGNORING
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Error building POM (may not be this project's POM).


Project ID: org.dspace:dspace-parent:pom:4.1

Reason: Cannot find parent: org.sonatype.oss:oss-parent for project:
org.dspace:dspace-parent:pom:4.1 for project
org.dspace:dspace-parent:pom:4.1


[INFO]

[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.sonatype.oss:oss-parent for project: org.dspace:dspace-parent:pom:4.1
for project org.dspace:dspace-parent:pom:4.1
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find
parent: org.sonatype.oss:oss-parent for project:
org.dspace:dspace-parent:pom:4.1 for project
org.dspace:dspace-parent:pom:4.1
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
... 12 more
Caused by: org.apache.maven.project.InvalidProjectModelException: Not a
v4.0.0 POM. for project org.sonatype.oss:oss-parent at
/home/dspace/.m2/repository/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
at
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1599)
at
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1571)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:562)
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)
... 18 more
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Jun 17 14:55:41 GMT 2014
[INFO] Final Memory: 2M/58M
[INFO]






-- 
*Sincerely Yours,*

*Henry Atsu Agbodza*
*Library Systems and Research Support, *
*Academic Computing Unit,*
*University of Ghana Computing Systems (UGCS)*
*Room G3, Ground Floor - East Wing, *
*Balme Library*
*Legon*
*Tel.: +233 (0) 207 027360*
*IP Phone: 2442*




*University of Ghana Digital Collection (UGSpace)
University of Ghana Online Catalogue
(UGCat) 

Re: [Dspace-tech] Maven - Error building Discovery (Provider Library?)

2012-07-04 Thread André
Dear TRUONG,

Yes, of course, I do agree with you. It's simpler, easier, safer and has
many bug fixes.

But the problem is that I need to use a customized theme, which has some
custom code that is only compatible with Discovery from DS1.6.2. Then I
will try to check all the customization that was made and try to adapt it
to DS1.8.2.

Regards
Andre


2012/7/4 revskill 

> I think the simplest way is to use dspace 1.8.2 and Maven 3 to build. It's
> painless for sure. Good luck.
>
> 2012/7/4 André 
>
>> Dear all,
>>
>> I am trying to install DSpace 1.6.2
>> I am running SLES 11 SP1, Apache Maven 2.2.1, Sun JDK 1.6.0_33
>>
>> Running "mvn package" I got a message informing that it could not
>> retreive metadata from solrj SNAPSHOT (I don't know what it is) from
>> maven.dspace.org. But this address does not exist. The error message:
>>
>>
>>
>>
>> /* START
>> ***/
>>
>>
>> [INFO]
>> 
>> [INFO] Building DSpace Discovery :: Provider Library
>> [INFO]task-segment: [package]
>> [INFO]
>> 
>> [INFO] [resources:resources {execution: default-resources}]
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] Copying 2 resources
>> [INFO] snapshot
>> org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT: checking
>> for updates from maven.dspace.org-snapshot
>> [WARNING] repository metadata for: 'snapshot
>> org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT' could not
>> be retrieved from repository: maven.dspace.org-snapshot due to an error:
>> Error transferring file: maven.dspace.org
>> [INFO] Repository 'maven.dspace.org-snapshot' will be blacklisted
>> [INFO]
>> 
>> [ERROR] BUILD ERROR
>> [INFO]
>> 
>> [INFO] Failed to resolve artifact.
>>
>> Missing:
>> --
>> 1) org.dspace.dependencies.solr:dspace-solr-solrj:jar:1.4.0.1-SNAPSHOT
>>
>>   Try downloading the file manually from the project website.
>>
>>   Then, install it using the command:
>>   mvn install:install-file -DgroupId=org.dspace.dependencies.solr
>> -DartifactId=dspace-solr-solrj -Dversion=1.4.0.1-SNAPSHOT -Dpackaging=jar
>> -Dfile=/path/to/file
>>
>>   Alternatively, if you host your own repository you can deploy the file
>> there:
>>   mvn deploy:deploy-file -DgroupId=org.dspace.dependencies.solr
>> -DartifactId=dspace-solr-solrj -Dversion=1.4.0.1-SNAPSHOT -Dpackaging=jar
>> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>
>>   Path to dependency:
>> 1) org.dspace.discovery:discovery-solr-provider:jar:0.9.2-SNAPSHOT
>> 2)
>> org.dspace.dependencies.solr:dspace-solr-solrj:jar:1.4.0.1-SNAPSHOT
>>
>> --
>> 1 required artifact is missing.
>>
>> for artifact:
>>   org.dspace.discovery:discovery-solr-provider:jar:0.9.2-SNAPSHOT
>>
>> from the specified remote repositories:
>>   maven.dspace.org-snapshot (http://maven.dspace.org/snapshot),
>>   central (http://repo1.maven.org/maven2)
>>
>>
>> /* END
>> ***/
>>
>>
>>
>>
>>
>>
>>
>> Sorry for I am a complete ignorant in MVN, so I don't really know what is
>> this repository for. I find references for it in many of the pom.xml .
>> I also tried to compile DSpace 1.8.2 and all went ok, without any error
>> messages, so I am guessing this repository was taken down because it is not
>> needed in the newer version.
>>
>> Anyway, then I followed the instructions and downloaded the .jar from
>>
>> http://repo1.maven.org/maven2/org/dspace/dependencies/solr/dspace-solr-solrj/1.4.0.1/
>>
>> And called:
>> mvn install:install-file -DgroupId=org.dspace.dependencies.solr
>> -DartifactId=dspace-solr-solrj -Dversion=1.4.0.1-SNAPSHOT -Dpackaging=jar
>> -Dfile=/home/andre/dspace-solr-solrj-1.4.0.1.jar
>>
>> mvn install:install-file -DgroupId=org.dspace.discovery
>> -DartifactId=discovery-solr-provider -Dversion=0.9.2-SNAPSHOT
>> -Dpackaging=jar -Dfile=/home/andre/discovery-solr-provider-0.9.2.jar
>>
>>
>> Received a "BUILD SUCCESSFUL" at the end of each call.
>>
>> But after this, calling mvn package still returns and error message. I
>> can't understand what's missing, did the "mvn install" not compile
>> correctly? Why or is there really a package from Solr still missing? The
>> error message follows:
>>
>>
>>
>>
>>
>>
>>
>> /* START
>> ***/
>>
>>
>> [INFO]
>> 
>> [INFO] Building DSpace Discovery :: Modules
>> [INFO]task-segment: [package]
>> [INFO]
>> 
>> [INFO] [site:attach-descriptor {execution: default-a

[Dspace-tech] Maven - Error building Discovery (Provider Library?)

2012-07-04 Thread André
Dear all,

I am trying to install DSpace 1.6.2
I am running SLES 11 SP1, Apache Maven 2.2.1, Sun JDK 1.6.0_33

Running "mvn package" I got a message informing that it could not retreive
metadata from solrj SNAPSHOT (I don't know what it is) from maven.dspace.org.
But this address does not exist. The error message:




/* START
***/


[INFO]

[INFO] Building DSpace Discovery :: Provider Library
[INFO]task-segment: [package]
[INFO]

[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] snapshot
org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT: checking
for updates from maven.dspace.org-snapshot
[WARNING] repository metadata for: 'snapshot
org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT' could not
be retrieved from repository: maven.dspace.org-snapshot due to an error:
Error transferring file: maven.dspace.org
[INFO] Repository 'maven.dspace.org-snapshot' will be blacklisted
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

Missing:
--
1) org.dspace.dependencies.solr:dspace-solr-solrj:jar:1.4.0.1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.dspace.dependencies.solr
-DartifactId=dspace-solr-solrj -Dversion=1.4.0.1-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there:
  mvn deploy:deploy-file -DgroupId=org.dspace.dependencies.solr
-DartifactId=dspace-solr-solrj -Dversion=1.4.0.1-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
1) org.dspace.discovery:discovery-solr-provider:jar:0.9.2-SNAPSHOT
2)
org.dspace.dependencies.solr:dspace-solr-solrj:jar:1.4.0.1-SNAPSHOT

--
1 required artifact is missing.

for artifact:
  org.dspace.discovery:discovery-solr-provider:jar:0.9.2-SNAPSHOT

from the specified remote repositories:
  maven.dspace.org-snapshot (http://maven.dspace.org/snapshot),
  central (http://repo1.maven.org/maven2)


/* END
***/







Sorry for I am a complete ignorant in MVN, so I don't really know what is
this repository for. I find references for it in many of the pom.xml .
I also tried to compile DSpace 1.8.2 and all went ok, without any error
messages, so I am guessing this repository was taken down because it is not
needed in the newer version.

Anyway, then I followed the instructions and downloaded the .jar from
http://repo1.maven.org/maven2/org/dspace/dependencies/solr/dspace-solr-solrj/1.4.0.1/

And called:
mvn install:install-file -DgroupId=org.dspace.dependencies.solr
-DartifactId=dspace-solr-solrj -Dversion=1.4.0.1-SNAPSHOT -Dpackaging=jar
-Dfile=/home/andre/dspace-solr-solrj-1.4.0.1.jar

mvn install:install-file -DgroupId=org.dspace.discovery
-DartifactId=discovery-solr-provider -Dversion=0.9.2-SNAPSHOT
-Dpackaging=jar -Dfile=/home/andre/discovery-solr-provider-0.9.2.jar


Received a "BUILD SUCCESSFUL" at the end of each call.

But after this, calling mvn package still returns and error message. I
can't understand what's missing, did the "mvn install" not compile
correctly? Why or is there really a package from Solr still missing? The
error message follows:







/* START
***/


[INFO]

[INFO] Building DSpace Discovery :: Modules
[INFO]task-segment: [package]
[INFO]

[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [jar:test-jar {execution: default}]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO]

[INFO] Building DSpace Discovery :: Provider Library
[INFO]task-segment: [package]
[INFO]

[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] snapshot
org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT: checking
for updates from maven.dspace.org-snapshot
[WARNING] repository metadata for: 'snapshot
org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT' could not
be retrieved from repository: maven.dspace.org-snapshot due to an e

Re: [Dspace-tech] maven error web(HTTP) proxy

2010-09-28 Thread Mark H. Wood
On Tue, Sep 28, 2010 at 10:09:12AM +0530, इन्‍दु भूषण Indu Bhushan wrote:
> i m assembling DSpace 1.6.2 using maven 2.2.1. My server is not directly
> connected to internet and it is connected to net via web(HTTP) proxy not by
> socks proxy.
>
> I tried to change settings.XML in maven for proxy use but is not working.
 ^^^
Perhaps that is the problem.  Maven expects the file to be named
'settings.xml', not 'settings.XML'.  On Windows those names would
refer to the same file; on Unix, definitely not.

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Balance your desire for bells and whistles with the reality that only a 
little more than 2 percent of world population has broadband.
-- Ledford and Tyler, _Google Analytics 2.0_


pgppQ0FzMYg7J.pgp
Description: PGP signature
--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] maven error web(HTTP) proxy

2010-09-27 Thread इन्‍दु भूषण Indu Bhushan
Dear All

i m assembling DSpace 1.6.2  using maven 2.2.1. My server is not directly
connected to internet and it is connected to net via web(HTTP) proxy not by
socks proxy.

I tried to change settings.XML in maven for proxy use but is not working.

Now i want to download the dependencies and keeping them to .m2. How many
files and folder i will have to copy.
What are the URL for downloading the dependencies and what is the exact path
or .m2. will i create repository directory under .m2

Please help me.


With Regards

Indu Bhushan
--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech