New user (liferay), getting all the time BUILD FAILED message

Tanguy Thomas <[email protected]>
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <CAO8fFT2DvyF2E33QbcP64yKYtAa9KB0r-nTGMC_Jcd_HzEF4yw@mail.gmail.com>
Hello,

I am not familiar anymore to Java, trying hard to self learn from a
Microsoft development background. I installed Apache Ant, following the
"Liferay in Action" manual. Everything worked fine up to the point of
setting up "hello-world" example with Apache Ant ...

Tomcat is installed (Liferay base portal is working) and Apache Ant is
installed but when I run the command

create.bat hello-world "Hello World"

It takes a lot of time and I get several errors about some of the servers
not available (but I see the ivy cache being loaded with some stuffs). I
tried with and without Windows Firewall turned on.
The output will always be BUILD FAILED:

F:\COEProjects\plugins\liferay-plugins-sdk-6.2\portlets>create.bat
hello-world "
Hello World"
Buildfile: F:\COEProjects\plugins\liferay-plugins-sdk-6.2\portlets\build.xml
[ivy:resolve] :: Apache Ivy 2.3.0 - 20130110142753 ::
http://ant.apache.org/ivy/
 ::
[ivy:resolve] :: loading settings :: file =
F:\COEProjects\plugins\liferay-plugi
ns-sdk-6.2\ivy-settings.xml
[ivy:resolve]
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]           module not found: biz.aQute#bnd;2.3.0
[ivy:resolve]   ==== asu-gibson: tried
[ivy:resolve]
https://gibson.asu.edu/maven/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom

[ivy:resolve]     -- artifact biz.aQute#bnd;2.3.0!bnd.jar:
[ivy:resolve]
https://gibson.asu.edu/maven/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar

[ivy:resolve]   ==== jboss-nexus: tried
[ivy:resolve]
https://repository.jboss.org/nexus/content/repositories/releas
es/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom
[ivy:resolve]     -- artifact biz.aQute#bnd;2.3.0!bnd.jar:
[ivy:resolve]
https://repository.jboss.org/nexus/content/repositories/releas
es/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar
[ivy:resolve]   ==== jboss-thirdparty: tried
[ivy:resolve]
https://repository.jboss.org/nexus/content/repositories/thirdp
arty-releases/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom
[ivy:resolve]     -- artifact biz.aQute#bnd;2.3.0!bnd.jar:
[ivy:resolve]
https://repository.jboss.org/nexus/content/repositories/thirdp
arty-releases/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar
[ivy:resolve]   ==== maven2: tried
[ivy:resolve]
http://repo1.maven.org/maven2/biz/aQute/bnd/2.3.0/bnd-2.3.0.po
m
[ivy:resolve]     -- artifact biz.aQute#bnd;2.3.0!bnd.jar:
[ivy:resolve]
http://repo1.maven.org/maven2/biz/aQute/bnd/2.3.0/bnd-2.3.0.ja
r
[ivy:resolve]   ==== ow2-public: tried
[ivy:resolve]
http://repository.ow2.org/nexus/content/repositories/public/bi
z/aQute/bnd/2.3.0/bnd-2.3.0.pom
[ivy:resolve]     -- artifact biz.aQute#bnd;2.3.0!bnd.jar:
[ivy:resolve]
http://repository.ow2.org/nexus/content/repositories/public/bi
z/aQute/bnd/2.3.0/bnd-2.3.0.jar
[ivy:resolve]   ==== primefaces: tried
[ivy:resolve]
http://repository.primefaces.org/biz/aQute/bnd/2.3.0/bnd-2.3.0
.pom
[ivy:resolve]     -- artifact biz.aQute#bnd;2.3.0!bnd.jar:
[ivy:resolve]
http://repository.primefaces.org/biz/aQute/bnd/2.3.0/bnd-2.3.0
.jar
[ivy:resolve]   ==== liferay-public: tried
[ivy:resolve]
https://repository.liferay.com/nexus/content/groups/public/biz
/aQute/bnd/2.3.0/bnd-2.3.0.pom
[ivy:resolve]     -- artifact biz.aQute#bnd;2.3.0!bnd.jar:
[ivy:resolve]
https://repository.liferay.com/nexus/content/groups/public/biz
/aQute/bnd/2.3.0/bnd-2.3.0.jar
[ivy:resolve]   ==== pentaho: tried
[ivy:resolve]
http://repository.pentaho.org/artifactory/repo/biz/aQute/bnd/2
.3.0/bnd-2.3.0.pom
[ivy:resolve]     -- artifact biz.aQute#bnd;2.3.0!bnd.jar:
[ivy:resolve]
http://repository.pentaho.org/artifactory/repo/biz/aQute/bnd/2
.3.0/bnd-2.3.0.jar
[ivy:resolve]   ==== soapui: tried
[ivy:resolve]
http://www.soapui.org/repository/maven2/biz/aQute/bnd/2.3.0/bn
d-2.3.0.pom
[ivy:resolve]     -- artifact biz.aQute#bnd;2.3.0!bnd.jar:
[ivy:resolve]
http://www.soapui.org/repository/maven2/biz/aQute/bnd/2.3.0/bn
d-2.3.0.jar
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           :: biz.aQute#bnd;2.3.0: not found
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :::: ERRORS
[ivy:resolve]   Server access Error: handshake alert:  unrecognized_name
url=htt
ps://gibson.asu.edu/maven/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom
[ivy:resolve]   Server access Error: handshake alert:  unrecognized_name
url=htt
ps://gibson.asu.edu/maven/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar
[ivy:resolve]   SERVER ERROR: Proxy Error url=
http://repository.pentaho.org/arti
factory/repo/biz/aQute/bnd/2.3.0/bnd-2.3.0.pom
[ivy:resolve]   SERVER ERROR: Service Temporarily Unavailable url=
http://reposit
ory.pentaho.org/artifactory/repo/biz/aQute/bnd/2.3.0/bnd-2.3.0.jar
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
F:\COEProjects\plugins\liferay-plugins-sdk-6.2\portlets\build.xml:5: The
followi
ng error occurred while executing this line:
F:\COEProjects\plugins\liferay-plugins-sdk-6.2\build-common-plugins.xml:5:
The f
ollowing error occurred while executing this line:
F:\COEProjects\plugins\liferay-plugins-sdk-6.2\build-common.xml:47: The
followin
g error occurred while executing this line:
F:\COEProjects\plugins\liferay-plugins-sdk-6.2\build-common-ivy.xml:34: The
foll
owing error occurred while executing this line:
F:\COEProjects\plugins\liferay-plugins-sdk-6.2\build-common-ivy.xml:50:
impossib
le to resolve dependencies:
        resolve failed - see output for details

Total time: 2 minutes 7 seconds

I did not program in Java for very long, but I understand the "hello-world"
is a simple program that ant is going to try to find somewhere for me and
download it, am I correct? If yes, why can't he find it in my case? In case
this helps, I ran the diagnostics:

F:\COEProjects\plugins\liferay-plugins-sdk-6.2\portlets>ant -diagnostics
------- Ant diagnostics report -------
Apache Ant(TM) version 1.9.4 compiled on April 29 2014

-------------------------------------------
 Implementation Version
-------------------------------------------
core tasks     : 1.9.4 in file:/F:/COEProjects/apache-ant-1.9.4/lib/ant.jar

-------------------------------------------
 ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant(TM) version 1.9.4 compiled on April 29 2014
ant.java.version: 1.8
Is this the Apache Harmony VM? no
Is this the Kaffe VM? no
Is this gij/gcj? no
ant.core.lib: F:\COEProjects\apache-ant-1.9.4\lib\ant.jar
ant.home: f:\COEProjects\apache-ant-1.9.4

-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: f:\COEProjects\apache-ant-1.9.4
ant-antlr.jar (11612 bytes)
ant-apache-bcel.jar (15104 bytes)
ant-apache-bsf.jar (9792 bytes)
ant-apache-log4j.jar (8637 bytes)
ant-apache-oro.jar (9756 bytes)
ant-apache-regexp.jar (9616 bytes)
ant-apache-resolver.jar (9687 bytes)
ant-apache-xalan2.jar (8147 bytes)
ant-commons-logging.jar (9765 bytes)
ant-commons-net.jar (91353 bytes)
ant-jai.jar (28274 bytes)
ant-javamail.jar (13844 bytes)
ant-jdepend.jar (13866 bytes)
ant-jmf.jar (12323 bytes)
ant-jsch.jar (46998 bytes)
ant-junit.jar (117783 bytes)
ant-junit4.jar (13110 bytes)
ant-launcher.jar (18381 bytes)
ant-netrexx.jar (16317 bytes)
ant-swing.jar (13289 bytes)
ant-testutil.jar (21320 bytes)
ant.jar (2019274 bytes)

-------------------------------------------
 USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: C:\Users\Tanguy
No such directory.

-------------------------------------------
 Tasks availability
-------------------------------------------
image : Missing dependency javax.media.jai.PlanarImage
sshexec : Missing dependency com.jcraft.jsch.Logger
scp : Missing dependency com.jcraft.jsch.Logger
sshsession : Missing dependency com.jcraft.jsch.Logger
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 : com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
XML Parser Location: unknown
Namespace-aware parser :
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$J
AXPSAXParser
Namespace-aware parser Location: unknown

-------------------------------------------
 XSLT Processor information
-------------------------------------------
XSLT Processor :
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl
XSLT Processor Location: unknown

-------------------------------------------
 System properties
-------------------------------------------
java.runtime.name : Java(TM) SE Runtime Environment
sun.boot.library.path : C:\Program Files\Java\jdk1.8.0_25\jre\bin
java.vm.version : 25.25-b02
ant.library.dir : F:\COEProjects\apache-ant-1.9.4\lib
java.vm.vendor : Oracle Corporation
java.vendor.url : http://java.oracle.com/
path.separator : ;
java.vm.name : Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg : sun.io
user.script :
user.country : BE
sun.java.launcher : SUN_STANDARD
sun.os.patch.level : Service Pack 1
java.vm.specification.name : Java Virtual Machine Specification
user.dir : F:\COEProjects\plugins\liferay-plugins-sdk-6.2\portlets
java.runtime.version : 1.8.0_25-b18
java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs : C:\Program Files\Java\jdk1.8.0_25\jre\lib\endorsed
os.arch : amd64
java.io.tmpdir : C:\Users\Tanguy\AppData\Local\Temp\
line.separator :

java.vm.specification.vendor : Oracle Corporation
user.variant :
os.name : Windows 7
ant.home : f:\COEProjects\apache-ant-1.9.4
sun.jnu.encoding : Cp1252
java.library.path : C:\Program
Files\Java\jdk1.8.0_25\bin;C:\Windows\Sun\Java\bi
n;C:\Windows\system32;C:\Windows;C:\Python34\;C:\Python34\Scripts;C:\ProgramData
\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA
Corporation\PhysX\Common;C:\
Program Files\AuthenTec TrueSuite\;C:\Program Files\Common Files\Microsoft
Share
d\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows
Live
;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Win
dowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program
Files
 (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program
Files
 (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL
Serve
r\100\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\100\DTS\Binn\;C:\P
rogram Files (x86)\QuickTime\QTSystem\;f:\COEProjects\apache-ant-1.9.4\bin;.
java.specification.name : Java Platform API Specification
java.class.version : 52.0
sun.management.compiler : HotSpot 64-Bit Tiered Compilers
os.version : 6.1
user.home : C:\Users\Tanguy
user.timezone : America/New_York
java.awt.printerjob : sun.awt.windows.WPrinterJob
java.specification.version : 1.8
file.encoding : Cp1252
user.name : Tanguy
java.class.path :
f:\COEProjects\apache-ant-1.9.4\lib\ant-launcher.jar;F:\COEPro
jects\apache-ant-1.9.4\lib\ant-antlr.jar;F:\COEProjects\apache-ant-1.9.4\lib\ant
-apache-bcel.jar;F:\COEProjects\apache-ant-1.9.4\lib\ant-apache-bsf.jar;F:\COEPr
ojects\apache-ant-1.9.4\lib\ant-apache-log4j.jar;F:\COEProjects\apache-ant-1.9.4
\lib\ant-apache-oro.jar;F:\COEProjects\apache-ant-1.9.4\lib\ant-apache-regexp.ja
r;F:\COEProjects\apache-ant-1.9.4\lib\ant-apache-resolver.jar;F:\COEProjects\apa
che-ant-1.9.4\lib\ant-apache-xalan2.jar;F:\COEProjects\apache-ant-1.9.4\lib\ant-
commons-logging.jar;F:\COEProjects\apache-ant-1.9.4\lib\ant-commons-net.jar;F:\C
OEProjects\apache-ant-1.9.4\lib\ant-jai.jar;F:\COEProjects\apache-ant-1.9.4\lib\
ant-javamail.jar;F:\COEProjects\apache-ant-1.9.4\lib\ant-jdepend.jar;F:\COEProje
cts\apache-ant-1.9.4\lib\ant-jmf.jar;F:\COEProjects\apache-ant-1.9.4\lib\ant-jsc
h.jar;F:\COEProjects\apache-ant-1.9.4\lib\ant-junit.jar;F:\COEProjects\apache-an
t-1.9.4\lib\ant-junit4.jar;F:\COEProjects\apache-ant-1.9.4\lib\ant-launcher.jar;
F:\COEProjects\apache-ant-1.9.4\lib\ant-netrexx.jar;F:\COEProjects\apache-ant-1.
9.4\lib\ant-swing.jar;F:\COEProjects\apache-ant-1.9.4\lib\ant-testutil.jar;F:\CO
EProjects\apache-ant-1.9.4\lib\ant.jar;C:\Program
Files\Java\jdk1.8.0_25\lib\too
ls.jar
java.vm.specification.version : 1.8
sun.arch.data.model : 64
java.home : C:\Program Files\Java\jdk1.8.0_25\jre
sun.java.command : org.apache.tools.ant.launch.Launcher -diagnostics
java.specification.vendor : Oracle Corporation
user.language : fr
awt.toolkit : sun.awt.windows.WToolkit
java.vm.info : mixed mode
java.version : 1.8.0_25
java.ext.dirs : C:\Program
Files\Java\jdk1.8.0_25\jre\lib\ext;C:\Windows\Sun\Jav
a\lib\ext
sun.boot.class.path : C:\Program
Files\Java\jdk1.8.0_25\jre\lib\resources.jar;C:
\Program Files\Java\jdk1.8.0_25\jre\lib\rt.jar;C:\Program
Files\Java\jdk1.8.0_25
\jre\lib\sunrsasign.jar;C:\Program
Files\Java\jdk1.8.0_25\jre\lib\jsse.jar;C:\Pr
ogram Files\Java\jdk1.8.0_25\jre\lib\jce.jar;C:\Program
Files\Java\jdk1.8.0_25\j
re\lib\charsets.jar;C:\Program
Files\Java\jdk1.8.0_25\jre\lib\jfr.jar;C:\Program
 Files\Java\jdk1.8.0_25\jre\classes
sun.stderr.encoding : cp850
java.vendor : Oracle Corporation
file.separator : \
java.vendor.url.bug : http://bugreport.sun.com/bugreport/
sun.cpu.endian : little
sun.io.unicode.encoding : UnicodeLittle
sun.stdout.encoding : cp850
sun.desktop : windows
sun.cpu.isalist : amd64

-------------------------------------------
 Temp dir
-------------------------------------------
Temp dir is C:\Users\Tanguy\AppData\Local\Temp\
Temp dir is writeable
Temp dir alignment with system clock is 241 ms

-------------------------------------------
 Locale information
-------------------------------------------
Timezone Heure normale de l'Est offset=-18000000

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

I hope someone can help me with this, I spent the whole day trying to move
on with this but without success.

Thanks in advance for any help you may provide

-- 
Tanguy Thomas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.