You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Junek Leoš <ju...@oksystem.cz> on 2014/02/14 11:03:06 UTC
Building JSPWiki WAR - JUnitTask was not found
Hello to all,
I'm currently building JSPWiki.war file. There are steps written on JSPWiki unofficial pages:
http://www.ecyrd.com/JSPWiki/wiki/BuildingJSPWiki
and I follow it.
My OS is Oracle Linux Server release 6.4 (64 bit). My installation directory content is
/opt/programs/jspwiki/JSPWiki-installation-files # ls -1
build
build.bat
build.properties
build.properties.win
build.sh
build.xml
ChangeLog
DISCLAIMER
doc
etc
install.sh
KEYS
lib
LICENSE
NOTICE
OldChangeLog
pom.xml
README
ReleaseNotes
releases
src
tests
UPGRADING
After performing
# ant war
I got this
--- --- --- build results (start) --- --- ---
BUILD FAILED
/opt/programs/jspwiki/JSPWiki-installation-files/build.xml:445: The following error occurred while executing this line:
/opt/programs/jspwiki/JSPWiki-installation-files/build.xml:842: Problem: failed to create task or type junit
Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found.
This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
-/usr/share/ant/lib
-/root/.ant/lib
-a directory added on the command line with the -lib argument
Do not panic, this is a common problem.
The commonest cause is a missing JAR.
This is not a bug; it is a configuration problem
--- --- --- build results (end) --- --- ---
Unfortunately I did not find what JAR file is missing. According to
http://stackoverflow.com/questions/9774264/junit-ant-task-junittask-was-not-found
I did this:
# ln -s /usr/share/java/junit.jar /usr/share/ant/lib/junit.jar
where
# ls -la /usr/share/java/junit.jar
lrwxrwxrwx. 1 root root 15 Feb 14 10:17 /usr/share/java/junit.jar -> junit-3.8.2.jar
But it did not help. Which JAR file is missing and where can I get it?
Thanks for your help in advance
Leos
Leoš Junek, IT Systems Administrator
OKsystem s.r.o.
Na Pankráci 125, 140 21 Praha 4, Czech Republic
tel: +420 236 072 268, fax: +420 236 072 112
e-mail: junek@oksystem.cz<ma...@oksystem.cz>, web: www.oksystem.cz<http://www.oksystem.cz>
________________________________
Upozornění společnosti OKsystem s.r.o. s ohledem na zavedené standardy ISO 9001, ISO 27001 a ISO 14001:
Tato zpráva a všechny připojené soubory jsou dle obchodního zákoníku důvěrné. Jestliže nejste zamýšleným adresátem, uvědomte prosím odesilatele a smažte zprávu i přiložené soubory.
Opravdu potřebujete vytisknout tento email? Myslete na přírodu.
Disclaimer of OKsystem s.r.o. with respect to implemented standards ISO 9001, ISO 27001 and ISO 14001:
This message and all attached files are confidential and legally privileged. If you are not the intended recipient, please notify the sender and delete the message including all attachments.
Please consider the environment before printing this email.
Re: Building JSPWiki WAR - JUnitTask was not found
Posted by Harry Metske <ha...@gmail.com>.
Junek,
You were looking at the legacy site.
The current documentation is at http://jspwiki-wiki.apache.org/, and
specific for building JSPWiki, see
http://jspwiki.apache.org/development/source_and_guide.html
Running a "mvn clean install" should do the job.
Regards,
Harry
Op 14 feb. 2014 11:03 schreef "Junek Leoš" <ju...@oksystem.cz>:
> Hello to all,
>
>
>
> I'm currently building JSPWiki.war file. There are steps written on
> JSPWiki unofficial pages:
>
> http://www.ecyrd.com/JSPWiki/wiki/BuildingJSPWiki
>
> and I follow it.
>
>
>
> My OS is Oracle Linux Server release 6.4 (64 bit). My installation
> directory content is
>
>
>
> /opt/programs/jspwiki/JSPWiki-installation-files # ls -1
>
> build
>
> build.bat
>
> build.properties
>
> build.properties.win
>
> build.sh
>
> build.xml
>
> ChangeLog
>
> DISCLAIMER
>
> doc
>
> etc
>
> install.sh
>
> KEYS
>
> lib
>
> LICENSE
>
> NOTICE
>
> OldChangeLog
>
> pom.xml
>
> README
>
> ReleaseNotes
>
> releases
>
> src
>
> tests
>
> UPGRADING
>
>
>
> After performing
>
> # ant war
>
> I got this
>
> --- --- --- build results (start) --- --- ---
>
> BUILD FAILED
>
> /opt/programs/jspwiki/JSPWiki-installation-files/build.xml:445: The
> following error occurred while executing this line:
>
> /opt/programs/jspwiki/JSPWiki-installation-files/build.xml:842: Problem:
> failed to create task or type junit
>
> Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
> was not found.
>
> This looks like one of Ant's optional components.
>
> Action: Check that the appropriate optional JAR exists in
>
> -/usr/share/ant/lib
>
> -/root/.ant/lib
>
> -a directory added on the command line with the -lib argument
>
>
>
> Do not panic, this is a common problem.
>
> The commonest cause is a missing JAR.
>
>
>
> This is not a bug; it is a configuration problem
>
> --- --- --- build results (end) --- --- ---
>
>
>
> Unfortunately I did not find what JAR file is missing. According to
>
>
> http://stackoverflow.com/questions/9774264/junit-ant-task-junittask-was-not-found
>
> I did this:
>
> # ln -s /usr/share/java/junit.jar /usr/share/ant/lib/junit.jar
>
> where
>
> # ls -la /usr/share/java/junit.jar
>
> lrwxrwxrwx. 1 root root 15 Feb 14 10:17 /usr/share/java/junit.jar ->
> junit-3.8.2.jar
>
>
>
> But it did not help. Which JAR file is missing and where can I get it?
>
>
>
> Thanks for your help in advance
>
>
>
> Leos
>
> Leoš Junek, IT Systems Administrator
> OKsystem s.r.o.
> Na Pankráci 125, 140 21 Praha 4, Czech Republic
> tel: +420 236 072 268, fax: +420 236 072 112
> e-mail: junek@oksystem.cz<ma...@oksystem.cz>, web: www.oksystem.cz<
> http://www.oksystem.cz>
>
>
>
>
>
>
>
>
> ________________________________
>
> Upozornění společnosti OKsystem s.r.o. s ohledem na zavedené standardy ISO
> 9001, ISO 27001 a ISO 14001:
> Tato zpráva a všechny připojené soubory jsou dle obchodního zákoníku
> důvěrné. Jestliže nejste zamýšleným adresátem, uvědomte prosím odesilatele
> a smažte zprávu i přiložené soubory.
> Opravdu potřebujete vytisknout tento email? Myslete na přírodu.
>
> Disclaimer of OKsystem s.r.o. with respect to implemented standards ISO
> 9001, ISO 27001 and ISO 14001:
> This message and all attached files are confidential and legally
> privileged. If you are not the intended recipient, please notify the sender
> and delete the message including all attachments.
> Please consider the environment before printing this email.
>