This isn't involving Ant directly, the stage where you are building Maven is failing. Because you are not in the proper directory that would have been created by Maven when running Ant, that stage fails as well later on.

This might be a typical file permissions error, Make sure you have full write access to the dspace-source directory under the user you are building as.

Cheers,
Mark

On Jun 1, 2008, at 9:28 PM, Twaha Daudi wrote:

Dale,
Thank you for your reply.
I'm using java version  1.6 and Ant version is 1.7.0.
If I run the java -version and ant version on the command terminal it works fine
 Tried again to run ant diagnostic,here is the output.
please forgive me if am not supposed to post the whole result.Just want to make my problem clear to you.

- Ant diagnostics report -------
Apache Ant version 1.7.0 compiled on December 13 2006

-------------------------------------------
 Implementation Version
-------------------------------------------
core tasks     : 1.7.0
optional tasks : not available

-------------------------------------------
 ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant version 1.7.0 compiled on December 13 2006
ant.java.version: 1.6
ant.core.lib: /usr/local/ant/lib/ant.jar
ant.home: /usr/local/ant/

-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: /usr/local/ant/
ant-apache-bsf.jar (3980 bytes)
ant-javamail.jar (7011 bytes)
ant-jdepend.jar (8152 bytes)
ant-junit.jar (92792 bytes)
ant-commons-net.jar (47163 bytes)
ant.jar (1289806 bytes)
ant-jsch.jar (30122 bytes)
ant-starteam.jar (35404 bytes)
ant-apache-oro.jar (39591 bytes)
ant-launcher.jar (11734 bytes)
ant-jmf.jar (6609 bytes)
ant-commons-logging.jar (3943 bytes)
ant-trax.jar (6897 bytes)
xml-apis.jar (195119 bytes)
ant-apache-log4j.jar (3074 bytes)
xercesImpl.jar (1212965 bytes)
ant-nodeps.jar (430311 bytes)
ant-testutil.jar (14919 bytes)
ant-apache-resolver.jar (4080 bytes)
ant-stylebook.jar (2334 bytes)
ant-antlr.jar (5769 bytes)
ant-swing.jar (6713 bytes)
ant-apache-bcel.jar (8627 bytes)
ant-apache-regexp.jar (3737 bytes)
ant-jai.jar (21368 bytes)
ant-weblogic.jar (14254 bytes)
ant-netrexx.jar (9895 bytes)

-------------------------------------------
 USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: /home/library
No such directory.

-------------------------------------------
 Tasks availability
-------------------------------------------
image : Missing dependency javax.media.jai.PlanarImage
sshexec : Missing dependency com.jcraft.jsch.UserInfo
scp : Missing dependency com.jcraft.jsch.UserInfo
jdepend : Missing dependency jdepend.xmlui.JDepend
A task being missing/unavailable should only matter if you are trying to use it

-------------------------------------------
 org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/

-------------------------------------------
 XML Parser information
-------------------------------------------
XML Parser : org.apache.xerces.jaxp.SAXParserImpl
XML Parser Location: /usr/share/java/xercesImpl.jar
Namespace-aware parser : org.apache.xerces.jaxp.SAXParserImpl $JAXPSAXParser
Namespace-aware parser Location: /usr/share/java/xercesImpl.jar

-------------------------------------------
 System properties
-------------------------------------------
java.runtime.name : Java(TM) SE Runtime Environment
sun.boot.library.path : /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386
java.vm.version : 1.6.0-b105
ant.library.dir : /usr/local/ant//lib
java.vm.vendor : Sun Microsystems Inc.
java.vendor.url : http://java.sun.com/
path.separator : :
java.vm.name : Java HotSpot(TM) Client VM
file.encoding.pkg : sun.io
user.country : US
sun.java.launcher : SUN_STANDARD
sun.os.patch.level : unknown
java.vm.specification.name : Java Virtual Machine Specification
user.dir : /home/library
java.runtime.version : 1.6.0-b105
java.awt.graphicsenv : sun.awt.X11GraphicsEnvironment
java.endorsed.dirs : /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/endorsed
os.arch : i386
java.io.tmpdir : /tmp
line.separator :

java.vm.specification.vendor : Sun Microsystems Inc.
os.name : Linux
ant.home : /usr/local/ant/
sun.jnu.encoding : UTF-8
java.library.path : /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/ client:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386:/usr/lib/jvm/ java-6-sun-1.6.0.00/jre/../lib/i386:/usr/java/packages/lib/i386:/ lib:/usr/lib
java.specification.name : Java Platform API Specification
java.class.version : 50.0
sun.management.compiler : HotSpot Client Compiler
os.version : 2.6.20-16-generic
user.home : /home/library
user.timezone : (removed)
java.awt.printerjob : sun.print.PSPrinterJob
file.encoding : UTF-8
java.specification.version : 1.6
user.name : library
java.class.path : /usr/local/ant//lib/ant-launcher.jar:/usr/share/ java/xmlParserAPIs.jar:/usr/share/java/xercesImpl.jar:/usr/local/ ant/lib/ant-apache-bsf.jar:/usr/local/ant/lib/ant-javamail.jar:/usr/ local/ant/lib/ant-jdepend.jar:/usr/local/ant/lib/ant-junit.jar:/usr/ local/ant/lib/ant-commons-net.jar:/usr/local/ant/lib/ant.jar:/usr/ local/ant/lib/ant-jsch.jar:/usr/local/ant/lib/ant-starteam.jar:/usr/ local/ant/lib/ant-apache-oro.jar:/usr/local/ant/lib/ant- launcher.jar:/usr/local/ant/lib/ant-jmf.jar:/usr/local/ant/lib/ant- commons-logging.jar:/usr/local/ant/lib/ant-trax.jar:/usr/local/ant/ lib/xml-apis.jar:/usr/local/ant/lib/ant-apache-log4j.jar:/usr/local/ ant/lib/xercesImpl.jar:/usr/local/ant/lib/ant-nodeps.jar:/usr/local/ ant/lib/ant-testutil.jar:/usr/local/ant/lib/ant-apache- resolver.jar:/usr/local/ant/lib/ant-stylebook.jar:/usr/local/ant/ lib/ant-antlr.jar:/usr/local/ant/lib/ant-swing.jar:/usr/local/ant/ lib/ant-apache-bcel.jar:/usr/local/ant/lib/ant-apache-regexp.jar:/ usr/l ocal/ant/lib/ant-jai.jar:/usr/local/ant/lib/ant-weblogic.jar:/ usr/local/ant/lib/ant-netrexx.jar:/usr/lib/jvm/java-6-sun-1.6.0.00/ lib/tools.jar
java.vm.specification.version : 1.0
sun.arch.data.model : 32
java.home : /usr/lib/jvm/java-6-sun-1.6.0.00/jre
java.specification.vendor : Sun Microsystems Inc.
user.language : en
java.vm.info : mixed mode, sharing
java.version : 1.6.0
java.ext.dirs : /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/ext:/usr/ java/packages/lib/ext sun.boot.class.path : /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/ resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/rt.jar:/usr/ lib/jvm/java-6-sun-1.6.0.00/jre/lib/sunrsasign.jar:/usr/lib/jvm/ java-6-sun-1.6.0.00/jre/lib/jsse.jar:/usr/lib/jvm/java-6- sun-1.6.0.00/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/ lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/classes
java.vendor : Sun Microsystems Inc.
file.separator : /
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
sun.cpu.endian : little
sun.io.unicode.encoding : UnicodeLittle
sun.desktop : gnome
sun.cpu.isalist :

-------------------------------------------
 Temp dir
-------------------------------------------
Temp dir is /tmp
Temp dir is writeable
Temp dir alignment with system clock is -352 ms

-------------------------------------------
 Locale information
-------------------------------------------


-------------------------------------------
 Proxy information
-------------------------------------------
Java1.5+ proxy settings:
Direct connection

how about the java1.5+ proxy settings could it be a problem?. maybe it should show java1.6?? not sure
thank you again

udd

----- Original Message ----
From: "Poulter, Dale" <[EMAIL PROTECTED]>
To: Twaha Daudi <[EMAIL PROTECTED]>; dspace- [EMAIL PROTECTED]
Sent: Sunday, June 1, 2008 6:20:13 PM
Subject: RE: [Dspace-tech] dspace 1.5 ant error(building the dspace binaries)

What version of ant are you running? If I remember correctly, I encountered this issue with either an earlier version of ant or java. I upgrade java to 1.6 and ant to 1.7.


From: [EMAIL PROTECTED] [mailto:dspace-tech- [EMAIL PROTECTED] On Behalf Of Twaha Daudi
Sent: Sunday, June 01, 2008 10:10 AM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] dspace 1.5 ant error(building the dspace binaries)



Hello
here is what I have done so far  to see if my environment is ok

[EMAIL PROTECTED]:/dspace-source/dspace$ ant --execdebug
exec "/usr/java/jdk/bin/java" -classpath "/usr/local/ant/lib/ant- launcher.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/ xercesImpl.jar" -Dant.home="/usr/local/ant" -Dant.library.dir="/usr/ local/ant/lib" org.apache.tools.ant.launch.Launcher -cp ""
Buildfile: build.xml does not exist!
Build failed

Please,any help appreciated
ud


----- Original Message ----
From: Twaha Daudi <[EMAIL PROTECTED]>
To: dspace-tech@lists.sourceforge.net
Sent: Sunday, June 1, 2008 5:27:42 PM
Subject: [Dspace-tech] dspace 1.5 ant error

Hello all,
Greetings to all
Iam trying to implement it on ubuntu 7.04.I have installed all the requred package by
following the documentation.

In step 6 ,I have done the following:

    * cd /dspace-source/dspace/
    * /dspace-source/dspace/mvn package
    *  it downloaded the packages with some errors as shown below:
[INFO] Assembling webapp[xmlui] in [/dspace-source/dspace/modules/ xmlui/target/xmlui-1.5.0]
[INFO] Processing war project
[WARNING]
Not copying webapp
webResources[/dspace-source/dspace/modules/xmlui/src/main/webapp]:
webapp
directory[/dspace-source/dspace/modules/xmlui/target/xmlui-1.5.0] does
not exist!
[INFO]
Copy webapp
webResources[/dspace-source/dspace/modules/xmlui/src/main/webapp]
to[/dspace-source/dspace/modules/xmlui/target/xmlui-1.5.0]
[INFO] ---------------------------------------------------------------------- --
[ERROR] BUILD ERROR
[INFO] ---------------------------------------------------------------------- -- [INFO] Failed to copy file for artifact[org.dspace:dspace-xmlui- api:jar:1.5.0:compile]

Embedded
error:
/dspace-source/dspace/modules/xmlui/target/xmlui-1.5.0/WEB-INF/lib/ dspace-xmlui-api-1.5.0.jar
(No such file or directory)
[INFO] ---------------------------------------------------------------------- --
[INFO] For more information, run Maven with the -e switch
[INFO] ---------------------------------------------------------------------- --
[INFO] Total time: 6 seconds
[INFO] Finished at: Sun Jun 01 15:05:07 EAT 2008
[INFO] Final Memory: 13M/24M
[INFO] ---------------------------------------------------------------------- --


in step 7 I have done the following

    * cd /dspace-source/dspace/
* /dspace-source/dspace/ ant fresh_install I got the following error
[EMAIL PROTECTED]:/dspace-source/dspace$ ant fresh_install

Buildfile: build.xml does not exist!

Build failed
What am I doing wrong?

I appreciate for your help

huu





---------------------------------------------------------------------- ---
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech



~~~~~~~~~~~~~
Mark R. Diggory - DSpace Developer and Systems Manager
MIT Libraries, Systems and Technology Services
Massachusetts Institute of Technology
Home Page: http://purl.org/net/mdiggory/homepage





-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to