"Build failed" when run setup-maven.xml with ant.bat

Confluence User - 03 Jul, 2015

I want to make Create Userview Theme, but before that i should do Building from Source . 

I followed the requirement in Building from Source. Download the 3rd parity, copy setup-maven.xml to Joget directory and already change mvn to mvn.bat in setup-maven.xml. I also already download Java Development Kit v.8. But it's still not run and say "Build failed" when i try in command prompt

So, is anyone can help me to solve this?

I'm so newbie in this thing.. Thankyouu before..

source;build

9


05 Jul, 2015
confluenceUser
confluenceUser

Run it in Joget Workflow installation directory and not at C:\

The file setup-maven.xml is not in C:\ but instead in C:\Joget-v4-Enterprise\

06 Jul, 2015
confluenceUser
confluenceUser

okay, i didn't read the instruction to detail. Thankyou, Walter
i have a problem again when executed the command why i still found "BUILD FAILED" error..
i'm already change "mvn" to "mvn.bat" in setup-maven.xml like this screenshoot, but it's still FAILED.
Do i missed something again in this command?

06 Jul, 2015
confluenceUser
1
confluenceUser

Hi Nana

Have you install the Apache Maven 2.2?

You can get the app from  http://maven.apache.org/.

Do refer to the guide in Joget Workflow Knowledge base http://dev.joget.org/community/display/KBv4/Building+from+Source

 

06 Jul, 2015
confluenceUser
confluenceUser

Hi, Matthew King thankyou for your respond! Where i can found the link of Apache Maven 2.2? i think Apache Maven 2.2 Not longer support. So, i'm already download Apache Maven 3.3.3 (bin.zip) and set Environment Variable like this: in User variables: - JAVA_HOME -> path JAVA JDK in System variables : - M2_HOME -> C:\apache-maven-3.3.3 - M2 -> %M2_HOME%\bin - and adding JAVA_HOME and M2 to PATH variables i'm use Windows 8.1 so, i run CMD as Administrator and try to type : javac -version and the version of java JDK appear. but if i type : mvn --version i got this error "error:could not find or load main class org.codehaus.plexus.classworlds.launcher.launcher" so i'm trying to change M2 variable become MAVEN_HOME but it's still can't

06 Jul, 2015
confluenceUser
confluenceUser

i solve my problem ! i search Apache Maven 2.2 download link not from the official website.. and setup the environment variables like above.. and its work! Thankyou Walter and also Matthew King for help me out cheerss, Nana

06 Jul, 2015
confluenceUser
confluenceUser

Hi Nana

Please try with apache-maven-3.2.5, not 3.3.3 version, and set the path to point to the 3.2.5 path.

07 Jul, 2015
confluenceUser
confluenceUser

 

Hi Mat, i solved my Maven problem. So, i start "Create Userview Theme"
but i got new problem again like this capture above. Can you tell me what should i do?

Matthew King


Thanks before

 

 

07 Jul, 2015
confluenceUser
confluenceUser

I just follow this instruction http://maven.apache.org/archetype/maven-archetype-plugin/advanced-usage.html and its work. SOLVE :)

14 Jul, 2015
confluenceUser
confluenceUser

you can clean & build offline (not connected internet) with command  :

install maven -o

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print