Page 1 of 1

Unable to run Broadleaf

Posted: Thu Mar 19, 2015 12:56 am
by gutyfa
Hi everyone, I'm trying to run Broadleaf demo, but I can't get it, when I run jetty-demo or another option such as jetty-demo-no-db i got an error like this:

Code: Select all

Buildfile: /home/developer/Documentos/eclipse-workspace/DemoSite/site/build.xml
jetty-demo-no-db:
[artifact:mvn] Listening for transport dt_socket at address: 8000
[artifact:mvn] -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.
[artifact:mvn] Java Result: 1
BUILD SUCCESSFUL
Total time: 1 second


These are my environment variables
File: /etc/bash.bashrc

Code: Select all

# Set PATH Maven
export M2_HOME=/usr/share/maven
export PATH=${M2_HOME}/bin:$PATH

# Set PATH Java
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_75/
export PATH=${JAVA_HOME}bin:$PATH


and this is my build.properties

Code: Select all

########
#The following file is used to define runtime properties that will read by ant tasks.
#if you need to override any of them,
#then create a file in your home directory called .build.properties that contains only the override properties.
#########

#required
maven.home=/usr/share/maven

#optional
jrebel.path=/usr/lib/jrebel/jrebel.jar

#optional for build-create-sql and build-update-sql ant tasks
ant.hibernate.sql.ddl.dialect=org.hibernate.dialect.HSQLDialect

#The following allow the build-update-sql ant task to connect to a database and generate DDL to
#update the schema
ant.blPU.url=jdbc:hsqldb:hsql://localhost/broadleaf
ant.blPU.userName=sa
ant.blPU.password=null
ant.blPU.driverClassName=org.hsqldb.jdbcDriver

ant.blSecurePU.url=jdbc:hsqldb:hsql://localhost/broadleaf
ant.blSecurePU.userName=sa
ant.blSecurePU.password=null
ant.blSecurePU.driverClassName=org.hsqldb.jdbcDriver

ant.blCMSStorage.url=jdbc:hsqldb:hsql://localhost/broadleaf
ant.blCMSStorage.userName=sa
ant.blCMSStorage.password=null
ant.blCMSStorage.driverClassName=org.hsqldb.jdbcDriver

#Required for correct operation of some 3rd party modules
#Relative paths are from the ant build.xml files, so site/build.xml and admin/build.xml.
spring.instrument.path=../lib/spring-instrument-3.2.12.RELEASE.jar

#End build-*-sql Ant Task Properties


S.O: Debian 8
jdk1.7.0_75 above it is
eclipse Luna with maven integration


I hope you can help me : )
Thanks in advance
:D :D

Re: Unable to run Broadleaf

Posted: Wed Apr 01, 2015 10:24 pm
by miriyala5@yahoo.com
Hi
Any luck resolving this issue?

Tried: added this to jetty-demo
<jvmarg value="-Dmaven.multiModuleProjectDirectory=1" />

Re: Unable to run Broadleaf

Posted: Thu Apr 02, 2015 9:54 am
by phillipuniverse
Bump the version of Maven from 3.3 to 3.2 that should fix it.

Re: Unable to run Broadleaf

Posted: Wed May 06, 2015 11:49 am
by kaazx88x

Code: Select all

<jvmarg value="-Dmaven.multiModuleProjectDirectory=$M2_HOME" />


add this code to build file..

Re: Unable to run Broadleaf

Posted: Thu May 07, 2015 2:17 am
by Grzyby15
It didn't work for me. Any more solutions?

Re: Unable to run Broadleaf

Posted: Mon May 11, 2015 2:11 am
by narayanb
I had encountered the same issue and adding
<jvmarg value="-Dmaven.multiModuleProjectDirectory=$M2_HOME" />
to every target in the build.xml file fixed that problem.