I have downloaded the camunda-bpm-webapp source code from github, now when i build the project, iam getting this error : Caused by: org.apache.ibatis.exceptions.PersistenceException: Error getting a new connection

T E S T S

Running org.camunda.bpm.cockpit.plugin.base.authorization.IncidentRestServiceAuthorizationTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.631 sec <<< FAILURE! - in org.camunda.bpm.cockpit.plugin.base.authorization.IncidentRestServiceAuthorizationTest
org.camunda.bpm.cockpit.plugin.base.authorization.IncidentRestServiceAuthorizationTest Time elapsed: 5.629 sec <<< ERROR!
org.camunda.bpm.engine.ProcessEngineException: ENGINE-03018 Could not check if tables are already present using metadata.
at org.camunda.bpm.engine.impl.db.EnginePersistenceLogger.checkDatabaseTableException(EnginePersistenceLogger.java:230)
at org.camunda.bpm.engine.impl.db.sql.DbSqlSession.isTablePresent(DbSqlSession.java:458)
at org.camunda.bpm.engine.impl.db.sql.DbSqlSession.isEngineTablePresent(DbSqlSession.java:400)
at org.camunda.bpm.engine.impl.db.AbstractPersistenceSession.dbSchemaUpdate(AbstractPersistenceSession.java:215)
at org.camunda.bpm.engine.impl.SchemaOperationsProcessEngineBuild.execute(SchemaOperationsProcessEngineBuild.java:56)
at org.camunda.bpm.engine.impl.SchemaOperationsProcessEngineBuild.execute(SchemaOperationsProcessEngineBuild.java:34)
at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:104)
at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:66)
at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
at org.camunda.bpm.engine.impl.ProcessEngineImpl.executeSchemaOperations(ProcessEngineImpl.java:126)
at org.camunda.bpm.engine.impl.ProcessEngineImpl.(ProcessEngineImpl.java:98)
at org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:613)
at org.camunda.bpm.engine.impl.test.TestHelper.getProcessEngine(TestHelper.java:514)
at org.camunda.bpm.engine.test.ProcessEngineRule.initializeProcessEngine(ProcessEngineRule.java:172)
at org.camunda.bpm.engine.test.ProcessEngineRule.apply(ProcessEngineRule.java:154)
at org.junit.rules.RunRules.applyAll(RunRules.java:26)
at org.junit.rules.RunRules.(RunRules.java:15)
at org.junit.runners.BlockJUnit4ClassRunner.withTestRules(BlockJUnit4ClassRunner.java:379)
at org.junit.runners.BlockJUnit4ClassRunner.withRules(BlockJUnit4ClassRunner.java:340)
at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:256)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: org.apache.ibatis.exceptions.PersistenceException:

Error getting a new connection. Cause: java.sql.SQLException: Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNotFoundException: ${database.driver}

Cause: java.sql.SQLException: Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNotFoundException: ${database.driver}

at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:26)
at org.apache.ibatis.session.defaults.DefaultSqlSession.getConnection(DefaultSqlSession.java:229)
at org.camunda.bpm.engine.impl.db.sql.DbSqlSession.isTablePresent(DbSqlSession.java:435)
... 35 more

Caused by: java.sql.SQLException: Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNotFoundException: ${database.driver}
at org.apache.ibatis.datasource.unpooled.UnpooledDataSource.initializeDriver(UnpooledDataSource.java:215)
at org.apache.ibatis.datasource.unpooled.UnpooledDataSource.doGetConnection(UnpooledDataSource.java:194)
at org.apache.ibatis.datasource.unpooled.UnpooledDataSource.doGetConnection(UnpooledDataSource.java:190)
at org.apache.ibatis.datasource.unpooled.UnpooledDataSource.getConnection(UnpooledDataSource.java:92)
at org.apache.ibatis.datasource.pooled.PooledDataSource.popConnection(PooledDataSource.java:375)
at org.apache.ibatis.datasource.pooled.PooledDataSource.getConnection(PooledDataSource.java:84)
at org.apache.ibatis.transaction.jdbc.JdbcTransaction.openConnection(JdbcTransaction.java:134)
at org.apache.ibatis.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java:61)
at org.apache.ibatis.session.defaults.DefaultSqlSession.getConnection(DefaultSqlSession.java:227)
… 36 more

Results :

Tests in error:
IncidentRestServiceAuthorizationTest.org.camunda.bpm.cockpit.plugin.base.authorization.IncidentRestServiceAuthorizationTest » ProcessEngine
ProcessDefinitionResourceAuthorizationTest.org.camunda.bpm.cockpit.plugin.base.authorization.ProcessDefinitionResourceAuthorizationTest » ProcessEngine
ProcessInstanceResourceAuthorizationTest.org.camunda.bpm.cockpit.plugin.base.authorization.ProcessInstanceResourceAuthorizationTest » ProcessEngine
ProcessInstanceRestServiceAuthorizationTest.org.camunda.bpm.cockpit.plugin.base.authorization.ProcessInstanceRestServiceAuthorizationTest » ProcessEngine
IncidentRestServiceTest.org.camunda.bpm.cockpit.plugin.base.IncidentRestServiceTest » ProcessEngine
PluginQueryTest.org.camunda.bpm.cockpit.plugin.base.PluginQueryTest » ProcessEngine
ProcessDefinitionResourceTest.org.camunda.bpm.cockpit.plugin.base.ProcessDefinitionResourceTest » ProcessEngine
ProcessInstanceResourceTest.org.camunda.bpm.cockpit.plugin.base.ProcessInstanceResourceTest » ProcessEngine
ProcessInstanceRestServiceTest.org.camunda.bpm.cockpit.plugin.base.ProcessInstanceRestServiceTest » ProcessEngine
IncidentRestServiceTenantCheckTest.org.camunda.bpm.cockpit.plugin.base.tenantcheck.IncidentRestServiceTenantCheckTest » ProcessEngine
ProcessDefinitionResourceTenantCheckTest.org.camunda.bpm.cockpit.plugin.base.tenantcheck.ProcessDefinitionResourceTenantCheckTest » ProcessEngine
ProcessInstanceResourceTenantCheckTest.org.camunda.bpm.cockpit.plugin.base.tenantcheck.ProcessInstanceResourceTenantCheckTest » ProcessEngine
ProcessInstanceRestServiceTenantCheckTest.org.camunda.bpm.cockpit.plugin.base.tenantcheck.ProcessInstanceRestServiceTenantCheckTest » ProcessEngine

Tests run: 31, Failures: 0, Errors: 13, Skipped: 1

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 49.464 s
[INFO] Finished at: 2016-11-24T17:10:03+05:30
[INFO] Final Memory: 26M/302M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project camunda-webapp: There are test failures.

Hi @yash,

Could you please post the mvn cmd line, which you used for building?
By default, without any given additional profiles, the ‘h2-in-memory’ profile in the parent pom of the webapp should be executed. It will add the necessary configuration for the database.

Cheers,
Christian

actually, i have imported the source code in my eclipse, so not through cmnd prompt, directly, right click on project and run as maven clean and then maven install…

i seriously new to dis, so donno what exactly to do

i had many issues with my Pom, i added many dependencies, to resolve those errors, below is my pom.xml

<?xml version="1.0"?>

<modelVersion>4.0.0</modelVersion>

<!-- <parent> <groupId>org.camunda.bpm</groupId> <artifactId>camunda-bom</artifactId> 
	<version>7.6.0-SNAPSHOT</version> <relativePath></relativePath> </parent> -->

<artifactId>camunda-webapp</artifactId>
<version>7.4.0</version>
<groupId>org.camunda.bpm.webapp</groupId>
<packaging>war</packaging>
<name>camunda BPM - webapp - app</name>

<properties>
	<web.resources.override>src/main/runtime/default/webapp</web.resources.override>
	<java.resources.override>src/main/runtime/default/resources</java.resources.override>
	<properties.override>src/main/runtime/default/config.properties</properties.override>

	<history.level>full</history.level>

	<frontend.app.path>${project.build.directory}/webapp/</frontend.app.path>

	<frontend.development.cockpit.path>${frontend.app.path}</frontend.development.cockpit.path>
	<frontend.development.tasklist.path>${frontend.app.path}</frontend.development.tasklist.path>

	<exec.shell>bash</exec.shell>
	<exec.arg>-c</exec.arg>

	<grunt.target>development</grunt.target>
	<skip.frontend.build>false</skip.frontend.build>

	<authorizationCheckRevokes>auto</authorizationCheckRevokes>
</properties>

<dependencyManagement>
	<dependencies>
		<!-- https://mvnrepository.com/artifact/org.camunda.bpm/camunda-engine-rest-core -->
		<dependency>
			<groupId>org.camunda.bpm</groupId>
			<artifactId>camunda-engine-rest-core</artifactId>
			<version>7.5.0</version>
		</dependency>

		<dependency>
			<groupId>org.camunda.bpm</groupId>
			<artifactId>camunda-engine-rest</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>javax.activation</groupId>
			<artifactId>activation</artifactId>
			<version>1.1</version>
		</dependency> 
	</dependencies>
</dependencyManagement>

<repositories>
	<repository>
		<id>camunda-nexus</id>
		<name>camunda BPM Maven Repository</name>
		<url>https://app.camunda.com/nexus/content/groups/public</url>
		<releases>
			<enabled>true</enabled>
		</releases>
		<snapshots>
			<enabled>true</enabled>
		</snapshots>
	</repository>
	<repository>
		<id>forplay-legacy</id>
		<url>http://forplay.googlecode.com/svn/mavenrepo</url>
	</repository>
</repositories>

<dependencies>

	<!-- jee spec -->
	<!-- https://mvnrepository.com/artifact/org.jboss.spec/jboss-javaee-6.0 -->

	<dependency>
		<groupId>org.jboss.spec</groupId>
		<artifactId>jboss-javaee-6.0</artifactId>
		<version>3.0.2.Final</version>
		<type>pom</type>
		<scope>provided</scope>
	</dependency>
	<!-- Required by jboss-javaee-6.0:3.0.2.Final (https://issues.jboss.org/browse/JBBUILD-708) -->
	<dependency>
		<groupId>xalan</groupId>
		<artifactId>xalan</artifactId>
		<version>2.7.1</version>
		<scope>provided</scope>
	</dependency>



	<!-- https://mvnrepository.com/artifact/org.camunda.bpm/camunda-engine -->
	<dependency>
		<groupId>org.camunda.bpm</groupId>
		<artifactId>camunda-engine</artifactId>
		<version>7.5.0</version>
	</dependency>


	<!-- rest api -->
	<dependency>
		<groupId>org.camunda.bpm</groupId>
		<artifactId>camunda-engine-rest-core</artifactId>
	</dependency>

	<!-- tests -->
	<!-- https://mvnrepository.com/artifact/junit/junit -->
	<dependency>
		<groupId>junit</groupId>
		<artifactId>junit</artifactId>
		<version>4.11</version>
	</dependency>


	<!-- https://mvnrepository.com/artifact/com.fasterxml.uuid/java-uuid-generator -->
	<dependency>
		<groupId>com.fasterxml.uuid</groupId>
		<artifactId>java-uuid-generator</artifactId>
		<version>3.1.2</version>
	</dependency>


	<!-- https://mvnrepository.com/artifact/com.h2database/h2 -->
	<dependency>
		<groupId>com.h2database</groupId>
		<artifactId>h2</artifactId>
		<version>1.3.168</version>
	</dependency>

	<dependency>
		<groupId>org.easytesting</groupId>
		<artifactId>fest-assert</artifactId>
		<version>1.4</version>
		<scope>test</scope>
	</dependency>

	<dependency>
		<groupId>com.sun.jersey</groupId>
		<artifactId>jersey-client</artifactId>
		<version>1.17</version>
		<scope>test</scope>
	</dependency>

</dependencies>

<build>
	<finalName>camunda-webapp</finalName>
	<resources>
		<resource>
			<directory>src/main/resources</directory>
		</resource>
		<resource>
			<directory>${java.resources.override}</directory>
			<filtering>true</filtering>
		</resource>
	</resources>

	<testResources>
		<testResource>
			<directory>src/test/resources</directory>
			<filtering>true</filtering>
		</testResource>
	</testResources>

	<pluginManagement>
		<plugins>
			<!-- test plugins -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.16</version>
				<configuration>
					<systemPropertyVariables>
						<myWorkingDir>${project.build.directory}</myWorkingDir>
					</systemPropertyVariables>
					<argLine>-XX:MaxPermSize=128m</argLine>
				</configuration>
			</plugin>

			<!-- code plugins -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<version>2.8</version>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<version>2.6</version>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>1.8</version>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<version>1.9.1</version>
			</plugin>
		</plugins>
	</pluginManagement>

	<plugins>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-war-plugin</artifactId>
			<version>2.4</version>
			<configuration>
				<failOnMissingWebXml>false</failOnMissingWebXml>
				<webResources>
					<resource>
						<filtering>true</filtering>
						<directory>${web.resources.override}</directory>
					</resource>
					<resource>
						<filtering>false</filtering>
						<directory>target/webapp</directory>
						<excludes>
							<exclude>**/*.html</exclude>
						</excludes>
					</resource>
					<resource>
						<filtering>true</filtering>
						<directory>target/webapp</directory>
						<!-- no filtering for favicon because linux destroys images through 
							carriage return -->
						<includes>
							<include>**/*.html</include>
						</includes>
					</resource>
				</webResources>
				<!-- exclude development resources (task forms etc.) -->
				<packagingExcludes>
					develop/**
				</packagingExcludes>
			</configuration>
		</plugin>
		<plugin>
			<artifactId>maven-surefire-plugin</artifactId>
			<configuration>
				<failIfNoTests>false</failIfNoTests>
				<trimStackTrace>false</trimStackTrace>
				<redirectTestOutputToFile>true</redirectTestOutputToFile>
			</configuration>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-jar-plugin</artifactId>
			<version>2.6</version>
			<executions>
				<execution>
					<id>create-jar</id>
					<goals>
						<goal>jar</goal>
					</goals>
					<phase>package</phase>
					<configuration>
						<classifier>classes</classifier>
					</configuration>
				</execution>
			</executions>
		</plugin>
	</plugins>
</build>

<profiles>
	<profile>
		<id>distro</id>
		<properties>
			<grunt.target>production</grunt.target>
		</properties>
	</profile>
	<profile>
		<id>os</id>
		<activation>
			<os>
				<family>Windows</family>
			</os>
		</activation>
		<properties>
			<exec.shell>cmd</exec.shell>
			<exec.arg>/c</exec.arg>
		</properties>
	</profile>

	<profile>
		<id>develop</id>
		<dependencies>
			<dependency>
				<groupId>org.jboss.resteasy</groupId>
				<artifactId>resteasy-jaxrs</artifactId>
				<scope>runtime</scope>
			</dependency>
			<dependency>
				<groupId>org.camunda.bpm</groupId>
				<artifactId>camunda-engine</artifactId>
			</dependency>
			<dependency>
				<groupId>org.camunda.bpm</groupId>
				<artifactId>camunda-engine-plugin-spin</artifactId>
			</dependency>
			<dependency>
				<groupId>org.camunda.spin</groupId>
				<artifactId>camunda-spin-dataformat-json-jackson</artifactId>
			</dependency>
			<dependency>
				<groupId>org.camunda.spin</groupId>
				<artifactId>camunda-spin-dataformat-xml-dom</artifactId>
			</dependency>
			<dependency>
				<groupId>org.camunda.bpm</groupId>
				<artifactId>camunda-engine-plugin-connect</artifactId>
			</dependency>
			<dependency>
				<groupId>org.camunda.connect</groupId>
				<artifactId>camunda-connect-http-client</artifactId>
			</dependency>
			<dependency>
				<groupId>org.camunda.connect</groupId>
				<artifactId>camunda-connect-soap-http-client</artifactId>
			</dependency>
			<dependency>
				<groupId>org.camunda.bpm.identity</groupId>
				<artifactId>camunda-identity-ldap</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>com.h2database</groupId>
				<artifactId>h2</artifactId>
			</dependency>
			<dependency>
				<groupId>com.fasterxml.uuid</groupId>
				<artifactId>java-uuid-generator</artifactId>
			</dependency>

			<dependency>
				<groupId>org.apache.tomcat</groupId>
				<artifactId>tomcat-jdbc</artifactId>
				<version>7.0.33</version>
			</dependency>

			<dependency>
				<groupId>org.apache.tomcat</groupId>
				<artifactId>tomcat-juli</artifactId>
				<version>7.0.33</version>
			</dependency>

			<dependency>
				<groupId>ch.qos.logback</groupId>
				<artifactId>logback-classic</artifactId>
			</dependency>
			<!-- MySql 5.5 Connector -->   
		    <dependency>
		        <groupId>mysql</groupId>
		        <artifactId>mysql-connector-java</artifactId>
		        <version>5.1.40</version>
		    </dependency>
		    <dependency>
			   <groupId>org.mybatis</groupId>
			   <artifactId>mybatis</artifactId>
			   <version>3.2.8</version>
			</dependency> 

		</dependencies>
		<build>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-antrun-plugin</artifactId>
					<executions>
						<execution>
							<phase>generate-resources</phase>
							<configuration>
								<target>
									<mkdir dir="${project.basedir}/target/webapp" />
								</target>
							</configuration>
							<goals>
								<goal>run</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.mortbay.jetty</groupId>
					<artifactId>jetty-maven-plugin</artifactId>
					<version>8.1.14.v20131031</version>
					<configuration>
						<webAppConfig>
							<contextPath>/camunda</contextPath>
							<defaultsDescriptor>${project.basedir}/src/main/runtime/develop/jetty/webdefault.xml</defaultsDescriptor>
							<resourceBases>
								<resourceBase>${project.basedir}/target/webapp</resourceBase>
								<resourceBase>${project.basedir}/src/main/webapp</resourceBase>
							</resourceBases>
						</webAppConfig>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>build-helper-maven-plugin</artifactId>
					<executions>
						<execution>
							<id>add-sources</id>
							<goals>
								<goal>add-source</goal>
							</goals>
							<configuration>
								<sources>
									<source>src/main/runtime/develop/java</source>
								</sources>
							</configuration>
						</execution>
						<execution>
							<id>add-resources</id>
							<goals>
								<goal>add-resource</goal>
							</goals>
							<configuration>
								<resources>
									<resource>
										<directory>src/main/runtime/develop/resources</directory>
									</resource>
								</resources>
							</configuration>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</build>
		<properties>
			<java.resources.override>src/main/runtime/develop/resources</java.resources.override>
			<skip.frontend.build>true</skip.frontend.build>
		</properties>
	</profile>

	<profile>
		<id>mariadb</id>
		<build>
			<plugins>
				<plugin>
					<artifactId>maven-surefire-plugin</artifactId>
					<configuration>
						<excludedGroups>org.camunda.bpm.cockpit.plugin.base.SlowMariaDbTest</excludedGroups>
					</configuration>
				</plugin>
			</plugins>
		</build>
	</profile>


	<profile>
		<id>dev-e2e</id>
		<dependencies>
			<dependency>
				<groupId>org.jboss.resteasy</groupId>
				<artifactId>resteasy-jaxrs</artifactId>
				<scope>runtime</scope>
			</dependency>
			<dependency>
				<groupId>org.apache.tomcat</groupId>
				<artifactId>tomcat-jdbc</artifactId>
				<version>7.0.33</version>
			</dependency>
			<dependency>
				<groupId>org.apache.tomcat</groupId>
				<artifactId>tomcat-juli</artifactId>
				<version>7.0.33</version>
			</dependency>
		</dependencies>
		<build>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-antrun-plugin</artifactId>
					<executions>
						<execution>
							<phase>generate-resources</phase>
							<configuration>
								<target>
									<mkdir dir="${project.basedir}/target/webapp" />
								</target>
							</configuration>
							<goals>
								<goal>run</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.mortbay.jetty</groupId>
					<artifactId>jetty-maven-plugin</artifactId>
					<version>8.1.14.v20131031</version>
					<configuration>
						<webAppConfig>
							<contextPath>/camunda</contextPath>
							<defaultsDescriptor>${project.basedir}/src/main/runtime/test/jetty/webdefault.xml</defaultsDescriptor>
							<resourceBases>
								<resourceBase>${project.basedir}/target/webapp</resourceBase>
								<resourceBase>${project.basedir}/src/main/webapp</resourceBase>
							</resourceBases>
						</webAppConfig>
						<contextHandlers>
							<contextHandler implementation="org.eclipse.jetty.webapp.WebAppContext">
								<war>${basedir}/target/engine-rest.war</war>
								<contextPath>/engine-rest</contextPath>
							</contextHandler>
						</contextHandlers>
					</configuration>
					<dependencies>
						<dependency>
							<groupId>org.camunda.bpm</groupId>
							<artifactId>camunda-engine</artifactId>
							<version>${project.version}</version>
						</dependency>
						<dependency>
							<groupId>org.camunda.bpm.identity</groupId>
							<artifactId>camunda-identity-ldap</artifactId>
							<version>${project.version}</version>
						</dependency>
						<dependency>
							<groupId>org.slf4j</groupId>
							<artifactId>slf4j-jdk14</artifactId>
							<version>1.7.7</version>
						</dependency>
						<dependency>
							<groupId>com.h2database</groupId>
							<artifactId>h2</artifactId>
							<version>1.3.168</version>
						</dependency>
						<dependency>
							<groupId>com.fasterxml.uuid</groupId>
							<artifactId>java-uuid-generator</artifactId>
							<version>3.1.2</version>
						</dependency>
					</dependencies>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>build-helper-maven-plugin</artifactId>
					<executions>
						<execution>
							<id>add-sources</id>
							<goals>
								<goal>add-source</goal>
							</goals>
							<configuration>
								<sources>
									<source>src/main/runtime/test/java</source>
								</sources>
							</configuration>
						</execution>
						<execution>
							<id>add-resources</id>
							<goals>
								<goal>add-resource</goal>
							</goals>
							<configuration>
								<resources>
									<resource>
										<directory>src/main/runtime/test/resources</directory>
									</resource>
								</resources>
							</configuration>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-dependency-plugin</artifactId>
					<version>2.10</version>
					<executions>
						<execution>
							<id>copy</id>
							<phase>generate-resources</phase>
							<goals>
								<goal>copy</goal>
							</goals>
							<configuration>
								<artifactItems>
									<artifactItem>
										<groupId>org.camunda.bpm</groupId>
										<artifactId>camunda-engine-rest</artifactId>
										<version>${project.version}</version>
										<type>war</type>
										<classifier>tomcat</classifier>
										<overWrite>true</overWrite>
										<outputDirectory>${project.build.directory}/</outputDirectory>
										<destFileName>engine-rest.war</destFileName>
									</artifactItem>
								</artifactItems>
							</configuration>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</build>
		<properties>
			<java.resources.override>src/main/runtime/test/resources</java.resources.override>
			<skip.frontend.build>true</skip.frontend.build>
		</properties>
	</profile>

	<profile>
		<id>test-e2e</id>
		<dependencies>
			<dependency>
				<groupId>org.jboss.resteasy</groupId>
				<artifactId>resteasy-jaxrs</artifactId>
				<scope>runtime</scope>
			</dependency>
			<dependency>
				<groupId>org.apache.tomcat</groupId>
				<artifactId>tomcat-jdbc</artifactId>
				<version>7.0.33</version>
			</dependency>
			<dependency>
				<groupId>org.apache.tomcat</groupId>
				<artifactId>tomcat-juli</artifactId>
				<version>7.0.33</version>
			</dependency>
			<dependency>
				<groupId>org.camunda.bpm.identity</groupId>
				<artifactId>camunda-identity-ldap</artifactId>
				<version>${project.version}</version>
				<scope>test</scope>
			</dependency>
		</dependencies>
		<build>
			<plugins>
				<plugin>
					<artifactId>maven-surefire-plugin</artifactId>
					<configuration>
						<skipTests>true</skipTests>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.mortbay.jetty</groupId>
					<artifactId>jetty-maven-plugin</artifactId>
					<version>8.1.14.v20131031</version>
					<configuration>
						<webAppConfig>
							<contextPath>/camunda</contextPath>
							<defaultsDescriptor>${project.basedir}/src/main/runtime/test/jetty/webdefault.xml</defaultsDescriptor>
						</webAppConfig>
						<contextHandlers>
							<contextHandler implementation="org.eclipse.jetty.webapp.WebAppContext">
								<war>${basedir}/target/engine-rest.war</war>
								<contextPath>/engine-rest</contextPath>
							</contextHandler>
						</contextHandlers>
						<stopKey>STOP</stopKey>
						<stopPort>9999</stopPort>
						<stopWait>10</stopWait>
					</configuration>
					<executions>
						<execution>
							<id>start-jetty</id>
							<phase>pre-integration-test</phase>
							<goals>
								<goal>run-war</goal>
							</goals>
							<configuration>
								<scanIntervalSeconds>0</scanIntervalSeconds>
								<daemon>true</daemon>
							</configuration>
						</execution>
						<execution>
							<id>stop-jetty</id>
							<phase>post-integration-test</phase>
							<goals>
								<goal>stop</goal>
							</goals>
						</execution>
					</executions>
					<dependencies>
						<dependency>
							<groupId>org.camunda.bpm</groupId>
							<artifactId>camunda-engine</artifactId>
							<version>${project.version}</version>
						</dependency>
						<dependency>
							<groupId>org.camunda.bpm.identity</groupId>
							<artifactId>camunda-identity-ldap</artifactId>
							<version>${project.version}</version>
						</dependency>
						<dependency>
							<groupId>org.slf4j</groupId>
							<artifactId>slf4j-jdk14</artifactId>
							<version>1.7.7</version>
						</dependency>
						<dependency>
							<groupId>com.h2database</groupId>
							<artifactId>h2</artifactId>
							<version>1.3.168</version>
						</dependency>
						<dependency>
							<groupId>com.fasterxml.uuid</groupId>
							<artifactId>java-uuid-generator</artifactId>
							<version>3.1.2</version>
						</dependency>
					</dependencies>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-antrun-plugin</artifactId>
					<executions>
						<execution>
							<id>grunt-test</id>
							<phase>integration-test</phase>
							<goals>
								<goal>run</goal>
							</goals>
							<inherited>false</inherited>
							<configuration>
								<target>
									<!-- grunt test-e2e -->
									<exec executable="./node_modules/grunt-cli/bin/grunt"
										failonerror="true" osfamily="unix">
										<env key="XUNIT_FILE" value="target/xunit.xml" />
										<env key="LOG_XUNIT" value="true" />
										<arg value="test-e2e" />
										<arg value="--color=false" />
									</exec>
									<exec executable="cmd" failonerror="true" osfamily="windows">
										<env key="XUNIT_FILE" value="target/xunit.xml" />
										<env key="LOG_XUNIT" value="true" />
										<arg value="/c" />
										<arg value="node_modules\.bin\grunt.cmd" />
										<arg value="test-e2e" />
										<arg value="--color=false" />
									</exec>
								</target>
							</configuration>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>build-helper-maven-plugin</artifactId>
					<executions>
						<execution>
							<id>add-sources</id>
							<goals>
								<goal>add-source</goal>
							</goals>
							<configuration>
								<sources>
									<source>src/main/runtime/test/java</source>
								</sources>
							</configuration>
						</execution>
						<execution>
							<id>add-resources</id>
							<goals>
								<goal>add-resource</goal>
							</goals>
							<configuration>
								<resources>
									<resource>
										<directory>src/main/runtime/test/resources</directory>
									</resource>
								</resources>
							</configuration>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.springframework.boot</groupId>
					<artifactId>spring-boot-maven-plugin</artifactId>
					<configuration>
						<classifier>exec</classifier>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-dependency-plugin</artifactId>
					<version>2.10</version>
					<executions>
						<execution>
							<id>copy</id>
							<phase>generate-resources</phase>
							<goals>
								<goal>copy</goal>
							</goals>
							<configuration>
								<artifactItems>
									<artifactItem>
										<groupId>org.camunda.bpm</groupId>
										<artifactId>camunda-engine-rest</artifactId>
										<version>${project.version}</version>
										<type>war</type>
										<classifier>tomcat</classifier>
										<overWrite>true</overWrite>
										<outputDirectory>${project.build.directory}/</outputDirectory>
										<destFileName>engine-rest.war</destFileName>
									</artifactItem>
								</artifactItems>
							</configuration>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</build>
		<properties>
			<java.resources.override>src/main/runtime/test/resources</java.resources.override>
		</properties>
	</profile>

	<!-- database QA profiles -->
	<profile>
		<id>database</id>
		<build>
			<plugins>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>exec-maven-plugin</artifactId>
					<executions>
						<execution>
							<id>database-test-drop-schema-before-test</id>
							<phase>process-test-classes</phase>
							<goals>
								<goal>java</goal>
							</goals>
						</execution>
						<execution>
							<id>database-test-drop-schema-after-test</id>
							<phase>prepare-package</phase>
							<goals>
								<goal>java</goal>
							</goals>
						</execution>
					</executions>
					<configuration>
						<mainClass>org.camunda.bpm.engine.impl.db.DbSchemaDrop</mainClass>
						<classpathScope>test</classpathScope>
					</configuration>
				</plugin>
			</plugins>
		</build>
	</profile>

	<!-- profile for running cockpit testsuite with database table prefix -->
	<profile>
		<id>db-table-prefix</id>
		<build>
			<plugins>
				<plugin>
					<artifactId>maven-antrun-plugin</artifactId>
					<executions>
						<execution>
							<id>database-test-create-schema</id>
							<phase>process-test-classes</phase>
							<goals>
								<goal>run</goal>
							</goals>
							<configuration>
								<target>
									<copy file="target/test-classes/camunda.cfg.prefix.xml"
										tofile="target/test-classes/camunda.cfg.xml" overwrite="true" />
								</target>
							</configuration>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</build>
	</profile>

	<profile>
		<id>node-build-windows</id>
		<activation>
			<os>
				<family>windows</family>
			</os>
		</activation>
		<build>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-antrun-plugin</artifactId>
					<executions>
						<!-- <execution> <id>generate-zip</id> <phase>generate-resources</phase> 
							<goals> <goal>run</goal> </goals> <inherited>false</inherited> <configuration> 
							<skip>${skip.frontend.build}</skip> <target> run node build <exec executable="cmd" 
							failonerror="true"> <arg value="/c" /> <arg value="npm" /> <arg value="install" 
							/> </exec> <exec executable="cmd" failonerror="true"> <arg value="/c" /> 
							<arg value="node_modules\.bin\bower.cmd" /> <arg value="install" /> </exec> 
							<exec executable="cmd" failonerror="true"> <arg value="/c" /> <arg value="node_modules\.bin\grunt.cmd" 
							/> <arg value="build" /> <arg value=" color=false" /> </exec> </target> </configuration> 
							</execution> -->
					</executions>
				</plugin>
			</plugins>
		</build>
	</profile>

	<profile>
		<id>node-build-unix</id>
		<activation>
			<os>
				<family>!windows</family>
			</os>
		</activation>
		<build>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-antrun-plugin</artifactId>
					<executions>
						<execution>
							<id>generate-zip</id>
							<phase>generate-resources</phase>
							<goals>
								<goal>run</goal>
							</goals>
							<inherited>false</inherited>
							<configuration>
								<skip>${skip.frontend.build}</skip>
								<target>
									<!-- run node build -->
									<exec executable="npm" failonerror="true">
										<arg value="install" />
									</exec>
									<!-- <exec executable="./node_modules/bower/bin/bower" failonerror="true"> 
										<arg value="install" /> </exec> -->
									<exec executable="./node_modules/grunt-cli/bin/grunt"
										failonerror="true">
										<arg value="build" />
										<arg value="--color=false" />
									</exec>
								</target>
							</configuration>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</build>
	</profile>

	<profile>
		<id>doFrontendBuild</id>
		<properties>
			<skip.frontend.build>false</skip.frontend.build>
		</properties>
	</profile>

	<profile>
		<id>skipFrontendBuild</id>
		<properties>
			<skip.frontend.build>true</skip.frontend.build>
		</properties>
	</profile>

	<profile>
		<id>cfgAuthorizationCheckRevokesAlways</id>
		<properties>
			<authorizationCheckRevokes>always</authorizationCheckRevokes>
		</properties>
	</profile>

	<!-- check history audit -->
	<profile>
		<id>cfghistoryaudit</id>
		<properties>
			<history.level>audit</history.level>
		</properties>
	</profile>

	<!-- check history activity -->
	<profile>
		<id>cfghistoryactivity</id>
		<properties>
			<history.level>activity</history.level>
		</properties>
	</profile>

	<!-- check history none -->
	<profile>
		<id>cfghistorynone</id>
		<properties>
			<history.level>none</history.level>
		</properties>
	</profile>

</profiles>

Hi @yash,

Could you please tell me your usecase? Do you want to develop the WebApp in a specific version?

Because you are mixing up the Camunda BPM versions in the pom. It won’t work that way. If you want to develop the WebApp for version 7.4, please go to the 7.4 branch in the WebApp’s github repo and download it anew so you get the right version.

Correction:
If you are a community user, please go to the 7.4.0 tag, not the 7.4 branch, because only enterprise customers are able to download the artifacts.

Cheers,
Christian

As you said i have downloaded the specific webapp of version 7.5, but i have issue with my pom, this was facing with this issue for the first downloaded source code, thats why i had to change all the dependency versions in my pom. The issue is below:

Project build error: Non-resolvable parent POM for org.camunda.bpm.webapp:camunda-webapp:[unknown-version]: Failure to transfer
org.camunda.bpm:camunda-database-settings:pom:7.5.7-SNAPSHOT from http://10.232.196.180:8081/repository/mavenRepo/ was cached in the local
repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced. Original error: Could not transfer artifact
org.camunda.bpm:camunda-database-settings:pom:7.5.7-SNAPSHOT from/to nexusFailed to transfer

http://10.232.196.180:8081/repository/mavenRepo/org/camunda/bpm/camunda-database-settings/7.5.7-SNAPSHOT/camunda-database-settings-7.5.7-
SNAPSHOT.pom. Error code 400, Bad Request and ‘parent.relativePath’ points at wrong local POM

Use this link to download the 7.5.0 tagged source code or this one when you want to use git clone. Then the project should work out of the box.

Cheers
Christian

as soon as i import the project which u have mentioned above, a dialog box, import maven projects has shown up
MAVEN BUILD
maven-antrun-plugin:1.8:run(1errors)
Executuion generate-zip,in/camunda-webapp/pom.xml

ACTION
Resolve Later

description:
No marketplace entries found to handle Execution generate-zip, in /camunda-webapp/pom.xml in Eclipse. Please see Help for more information.

Hi @yash,

Sorry it took some time to come back to you.
To get rid of the error, you have to tell your Eclipse to ignore the maven-antrun-plugin step or how to handle it. It is a limitation of Eclipse. See this site on how to add some stuff to the pom to solve it.
I think you can also install some stuff inside Eclipse, which will make it work, but I cannot help you any further with configuring eclipse.
You should always try to run the maven project from the command line. If that works, then you have problems with your development environment.

Cheers,
Christian

hi @hawky4s,

Thanks for the reply, i got rid of that(maven-antrun-plugin:1.8:run(1errors)) error , by follwing the instructions in the link gave by you, and i ran the project from command line, but still i have the same error

Project build error: Non-resolvable parent POM for org.camunda.bpm.webapp:camunda-webapp:[unknown-version]: Failure to transfer.

Thanks,
Yash