<?xml version="1.0" encoding="UTF-8"?>
<!-- ~ Copyright 2020 Red Hat, Inc. and/or its affiliates. ~ ~ Licensed under 
	the Apache License, Version 2.0 (the "License"); ~ you may not use this file 
	except in compliance with the License. ~ You may obtain a copy of the License 
	at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by 
	applicable law or agreed to in writing, software ~ distributed under the 
	License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS 
	OF ANY KIND, either express or implied. ~ See the License for the specific 
	language governing permissions and ~ limitations under the License. -->
<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.dashbuilder</groupId>
		<artifactId>dashbuilder-parent</artifactId>
		<version>7.41.0.Final</version>
		<relativePath>../pom.xml</relativePath>
	</parent>

	<artifactId>dashbuilder-runtime</artifactId>
	<packaging>war</packaging>

	<name>Dashbuilder Runtime</name>
	<description>Dashbuilder Runtime for running standalone dashboards</description>

	<properties>
		<!-- Add the absolute path for $JBOSS_HOME below to manage another instance -->
		<errai.jboss.home>${project.build.directory}/wildfly-${version.org.wildfly}</errai.jboss.home>
		<gwt.compiler.skip>false</gwt.compiler.skip>
		<gwt.compiler.localWorkers>4</gwt.compiler.localWorkers>
	</properties>

	<!-- NOTE: GWT client deps are needed for GWT compilation purposes (scope=provided) -->
	<dependencies>
		<dependency>
			<groupId>org.jboss.resteasy</groupId>
			<artifactId>resteasy-multipart-provider</artifactId>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>org.jboss.resteasy</groupId>
					<artifactId>resteasy-jaxrs</artifactId>
				</exclusion>
				<exclusion>
					<groupId>com.sun.mail</groupId>
					<artifactId>javax.mail</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.jboss.resteasy</groupId>
					<artifactId>resteasy-jaxb-provider</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.james</groupId>
					<artifactId>apache-mime4j</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.jboss.resteasy</groupId>
					<artifactId>resteasy-client</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>com.google.code.gson</groupId>
			<artifactId>gson</artifactId>
		</dependency>

		<dependency>
			<groupId>org.jboss.xnio</groupId>
			<artifactId>xnio-api</artifactId>
		</dependency>

		<dependency>
			<groupId>org.jboss.spec.javax.servlet</groupId>
			<artifactId>jboss-servlet-api_3.1_spec</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.jboss.spec.javax.servlet.jsp</groupId>
			<artifactId>jboss-jsp-api_2.3_spec</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.jboss.spec.javax.xml.bind</groupId>
			<artifactId>jboss-jaxb-api_2.3_spec</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.jboss.spec.javax.security.jacc</groupId>
			<artifactId>jboss-jacc-api_1.5_spec</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-lang3</artifactId>
		</dependency>

		<!-- Dashbuilder -->
		<dependency>
			<groupId>org.kie.soup</groupId>
			<artifactId>kie-soup-dataset-core</artifactId>
		</dependency>

		<dependency>
			<groupId>org.kie.soup</groupId>
			<artifactId>kie-soup-dataset-csv</artifactId>
		</dependency>

		<dependency>
			<groupId>org.kie.soup</groupId>
			<artifactId>kie-soup-dataset-sql</artifactId>
		</dependency>

		<dependency>
			<groupId>org.kie.soup</groupId>
			<artifactId>kie-soup-dataset-elasticsearch</artifactId>
		</dependency>

		<dependency>
			<groupId>org.kie.soup</groupId>
			<artifactId>kie-soup-dataset-api</artifactId>
		</dependency>

		<dependency>
			<groupId>org.dashbuilder</groupId>
			<artifactId>dashbuilder-client-all</artifactId>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>org.jboss.errai</groupId>
					<artifactId>errai-security-server</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.dashbuilder</groupId>
					<artifactId>dashbuilder-cms-client</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>org.dashbuilder</groupId>
			<artifactId>dashbuilder-common-client</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.dashbuilder</groupId>
			<artifactId>dashbuilder-displayer-api</artifactId>
		</dependency>

		<dependency>
			<groupId>org.dashbuilder</groupId>
			<artifactId>dashbuilder-displayer-client</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.dashbuilder</groupId>
			<artifactId>dashbuilder-displayer-screen</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.dashbuilder</groupId>
			<artifactId>dashbuilder-displayer-editor</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.dashbuilder</groupId>
			<artifactId>dashbuilder-renderer-default</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.dashbuilder</groupId>
			<artifactId>dashbuilder-renderer-c3</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.dashbuilder</groupId>
			<artifactId>dashbuilder-navigation-api</artifactId>
			<exclusions>
				<exclusion>
					<groupId>org.jboss.errai</groupId>
					<artifactId>errai-security-server</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<!-- needed due navigation drag components -->
		<dependency>
			<groupId>org.dashbuilder</groupId>
			<artifactId>dashbuilder-navigation-client</artifactId>
			<scope>provided</scope>
		</dependency>
		<!-- navigation dependency... -->
		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-widgets-security-management</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-security-management-client</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-security-management-api</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.dashbuilder</groupId>
			<artifactId>dashbuilder-services-api</artifactId>
		</dependency>
		<!-- Kie Server Support -->
		<dependency>
			<groupId>org.dashbuilder</groupId>
			<artifactId>dashbuilder-kie-server-api</artifactId>
		</dependency>

		<dependency>
			<groupId>org.dashbuilder</groupId>
			<artifactId>dashbuilder-kie-server-backend</artifactId>
		</dependency>

		<!-- UberFire -->
		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-commons</artifactId>
		</dependency>

		<dependency>
			<groupId>org.kie.soup</groupId>
			<artifactId>kie-soup-commons</artifactId>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-commons-editor-api</artifactId>
			<exclusions>
				<exclusion>
					<groupId>org.jboss.errai</groupId>
					<artifactId>errai-security-server</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-commons-editor-client</artifactId>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>org.jboss.errai</groupId>
					<artifactId>errai-security-server</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>appformer-js-bridge</artifactId>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-backend-cdi</artifactId>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-api</artifactId>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-js</artifactId>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-client-api</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-io</artifactId>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-backend-api</artifactId>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-workbench-client</artifactId>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>org.jboss.errai</groupId>
					<artifactId>errai-security-server</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-workbench-processors</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-runtime-plugins-api</artifactId>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-runtime-plugins-client</artifactId>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>org.jboss.errai</groupId>
					<artifactId>errai-security-server</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-layout-editor-client</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-layout-editor-api</artifactId>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-widgets-service-api</artifactId>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-widgets-properties-editor-api</artifactId>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-widgets-properties-editor-client</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-workbench-client-views-patternfly</artifactId>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>org.jboss.errai</groupId>
					<artifactId>errai-security-server</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-widgets-commons</artifactId>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>org.jboss.errai</groupId>
					<artifactId>errai-security-server</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-widgets-table</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-simple-docks-client</artifactId>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>org.jboss.errai</groupId>
					<artifactId>errai-security-server</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<!-- UberFire Preferences. -->
		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-preferences-api</artifactId>
		</dependency>
		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-preferences-client-backend</artifactId>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>org.jboss.errai</groupId>
					<artifactId>errai-security-server</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-preferences-ui-client</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-preferences-client</artifactId>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>org.jboss.errai</groupId>
					<artifactId>errai-security-server</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<!-- UberFire Security (Extension) -->
		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-security-api</artifactId>
			<exclusions>
				<exclusion>
					<groupId>org.jboss.errai</groupId>
					<artifactId>errai-security-server</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-security-client</artifactId>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>org.jboss.errai</groupId>
					<artifactId>errai-security-server</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<!-- Log -->

		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>log4j-over-slf4j</artifactId>
		</dependency>

		<!-- Errai -->

		<dependency>
			<groupId>org.jboss.errai</groupId>
			<artifactId>errai-common</artifactId>
		</dependency>

		<dependency>
			<groupId>org.jboss.errai</groupId>
			<artifactId>errai-marshalling</artifactId>
		</dependency>

		<dependency>
			<groupId>de.benediktmeurer.gwt-slf4j</groupId>
			<artifactId>gwt-slf4j</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.jboss.errai</groupId>
			<artifactId>errai-ui</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.jboss.errai</groupId>
			<artifactId>errai-ioc</artifactId>
		</dependency>

		<dependency>
			<groupId>org.jboss.errai</groupId>
			<artifactId>errai-jboss-as-support</artifactId>
		</dependency>

		<dependency>
			<groupId>org.jboss.errai</groupId>
			<artifactId>errai-javax-enterprise</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.jboss.errai</groupId>
			<artifactId>errai-cdi-server</artifactId>
		</dependency>

		<dependency>
			<groupId>org.owasp.encoder</groupId>
			<artifactId>encoder</artifactId>
		</dependency>

		<dependency>
			<groupId>org.jboss.errai</groupId>
			<artifactId>errai-codegen-gwt</artifactId>
			<scope>provided</scope>
		</dependency>

		<!-- Experimental - when backend is cleaned we must remove it -->
		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-experimental-api</artifactId>
		</dependency>

		<!-- Validation Needed by GWT Constraint Validation -->
		<dependency>
			<groupId>javax.validation</groupId>
			<artifactId>validation-api</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-validator</artifactId>
			<scope>provided</scope>
		</dependency>

		<!-- Container provided dependencies -->

		<dependency>
			<groupId>javax.enterprise</groupId>
			<artifactId>cdi-api</artifactId>
			<scope>provided</scope>
			<exclusions>
				<!-- Collides with org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec -->
				<exclusion>
					<groupId>javax.annotation</groupId>
					<artifactId>jsr250-api</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>javax.inject</groupId>
			<artifactId>javax.inject</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.jboss.errai</groupId>
			<artifactId>errai-cdi-jboss</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>xml-apis</groupId>
			<artifactId>xml-apis</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>com.sun.xml.bind</groupId>
			<artifactId>jaxb-impl</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.jboss.spec.javax.ws.rs</groupId>
			<artifactId>jboss-jaxrs-api_2.1_spec</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.jboss.resteasy</groupId>
			<artifactId>resteasy-cdi</artifactId>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>javax.annotation</groupId>
					<artifactId>jsr250-api</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>org.jboss.resteasy</groupId>
			<artifactId>resteasy-jaxrs</artifactId>
			<scope>provided</scope>
			<exclusions>
				<!-- Collides with org.javassist:javassist -->
				<exclusion>
					<groupId>javassist</groupId>
					<artifactId>javassist</artifactId>
				</exclusion>
				<!-- Collides with org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec -->
				<exclusion>
					<groupId>javax.annotation</groupId>
					<artifactId>jsr250-api</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<!-- GWT and GWT Extensions -->

		<dependency>
			<groupId>com.google.gwt</groupId>
			<artifactId>gwt-user</artifactId>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>javax.servlet</groupId>
					<artifactId>javax.servlet-api</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>org.gwtbootstrap3</groupId>
			<artifactId>gwtbootstrap3</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.gwtbootstrap3</groupId>
			<artifactId>gwtbootstrap3-extras</artifactId>
			<scope>provided</scope>
		</dependency>

		<!-- Uberfire SSH -->
		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-ssh-api</artifactId>
			<exclusions>
				<exclusion>
					<groupId>org.jboss.errai</groupId>
					<artifactId>errai-security-server</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-ssh-client</artifactId>
		</dependency>

		<dependency>
			<groupId>com.google.inject</groupId>
			<artifactId>guice</artifactId>
		</dependency>

		<dependency>
			<groupId>org.jboss.errai</groupId>
			<artifactId>errai-data-binding</artifactId>
		</dependency>

		<dependency>
			<groupId>org.jboss.errai</groupId>
			<artifactId>errai-cdi-shared</artifactId>
		</dependency>

		<!-- Test dependencies -->
		<dependency>
			<groupId>com.google.gwt.gwtmockito</groupId>
			<artifactId>gwtmockito</artifactId>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.uberfire</groupId>
			<artifactId>uberfire-testing-utils</artifactId>
			<scope>test</scope>
		</dependency>


	</dependencies>

	<build>
		<finalName>${project.artifactId}</finalName>
		<outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>

		<plugins>

			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>gwt-maven-plugin</artifactId>
				<configuration>
					<deploy>${project.build.directory}/gwt-symbols-deploy</deploy>
					<localWorkers>${gwt.compiler.localWorkers}</localWorkers>
					<module>org.dashbuilder.FastCompiledDashbuilderRuntime</module>
					<draftCompile>true</draftCompile>
					<logLevel>INFO</logLevel>
					<strict>true</strict>
					<compileSourcesArtifacts>

						<!-- Validation -->
						<compileSourcesArtifact>org.hibernate:hibernate-validator</compileSourcesArtifact>

						<!-- Dashbuilder -->
						<compileSourcesArtifact>org.kie.soup:kie-soup-json</compileSourcesArtifact>
						<compileSourcesArtifact>org.dashbuilder:dashbuilder-widgets</compileSourcesArtifact>
						<compileSourcesArtifact>org.dashbuilder:dashbuilder-validations</compileSourcesArtifact>
						<compileSourcesArtifact>org.dashbuilder:dashbuilder-common-client</compileSourcesArtifact>
						<compileSourcesArtifact>org.dashbuilder:dashbuilder-services-api</compileSourcesArtifact>
						<compileSourcesArtifact>org.kie.soup:kie-soup-dataset-api</compileSourcesArtifact>
						<compileSourcesArtifact>org.kie.soup:kie-soup-dataset-shared</compileSourcesArtifact>
						<compileSourcesArtifact>org.dashbuilder:dashbuilder-displayer-api</compileSourcesArtifact>
						<compileSourcesArtifact>org.dashbuilder:dashbuilder-displayer-client</compileSourcesArtifact>
						<compileSourcesArtifact>org.dashbuilder:dashbuilder-displayer-screen</compileSourcesArtifact>
						<compileSourcesArtifact>org.dashbuilder:dashbuilder-displayer-editor</compileSourcesArtifact>
						<compileSourcesArtifact>org.dashbuilder:dashbuilder-renderer-default</compileSourcesArtifact>
						<compileSourcesArtifact>org.dashbuilder:dashbuilder-renderer-c3</compileSourcesArtifact>
						<compileSourcesArtifact>org.dashbuilder:dashbuilder-navigation-api</compileSourcesArtifact>
						<compileSourcesArtifact>org.dashbuilder:dashbuilder-navigation-client</compileSourcesArtifact>
						<compileSourcesArtifact>org.dashbuilder:dashbuilder-kie-server-api</compileSourcesArtifact>

						<!-- Uberfire ext -->
						<compileSourcesArtifact>org.uberfire:uberfire-runtime-plugins-api</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-runtime-plugins-client</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-layout-editor-api</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-layout-editor-client</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-commons-editor-api</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-commons-editor-client</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-widgets-service-api</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-widgets-commons</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-widgets-table</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-widgets-properties-editor-api</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-widgets-properties-editor-client</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-simple-docks-client</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-preferences-api</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-preferences-client</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-preferences-ui-client</compileSourcesArtifact>

						<compileSourcesArtifact>org.kie.soup:kie-soup-commons</compileSourcesArtifact>

						<!-- UberFire -->
						<compileSourcesArtifact>org.uberfire:uberfire-commons</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-nio2-model</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-io</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-api</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-js</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:appformer-js-bridge</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-security-api</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-security-client</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-client-api</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-workbench-client</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-workbench-client-backend</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-workbench-client-views-patternfly</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-backend-api</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-ssh-client</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-ssh-api</compileSourcesArtifact>

						<!-- Dependencies for Navigation -->
						<compileSourcesArtifact>org.uberfire:uberfire-widgets-security-management</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-security-management-client</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-security-management-api</compileSourcesArtifact>

						<!-- Uberfire Experimentals -->
						<compileSourcesArtifact>org.uberfire:uberfire-experimental-api</compileSourcesArtifact>
						<compileSourcesArtifact>org.uberfire:uberfire-experimental-client</compileSourcesArtifact>

					</compileSourcesArtifacts>
					<runTarget>dashbuilder.html</runTarget>
					<extraJvmArgs>-Xmx4024m -XX:CompileThreshold=7000
						-Derrai.jboss.home=${errai.jboss.home}</extraJvmArgs>
					<noServer>false</noServer>
					<server>org.jboss.errai.cdi.server.gwt.EmbeddedWildFlyLauncher</server>
					<hostedWebapp>src/main/webapp</hostedWebapp>
					<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
					<disableCastChecking>true</disableCastChecking>
				</configuration>
				<executions>
					<execution>
						<id>gwt-clean</id>
						<phase>clean</phase>
						<goals>
							<goal>clean</goal>
						</goals>
					</execution>
					<execution>
						<id>gwt-compile</id>
						<goals>
							<goal>resources</goal>
							<goal>compile</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<artifactId>maven-war-plugin</artifactId>
				<configuration>
					<packagingExcludes>**/javax/**/*.*,**/client/**/*.class,**/*.symbolMap</packagingExcludes>
					<archive>
						<addMavenDescriptor>false</addMavenDescriptor>
					</archive>
				</configuration>
			</plugin>

			<plugin>
				<artifactId>maven-clean-plugin</artifactId>
				<configuration>
					<filesets>
						<fileset>
							<directory>${basedir}</directory>
							<includes>
								<include>src/main/webapp/org.dashbuilder.DashbuilderRuntime/</include>
								<include>src/main/webapp/WEB-INF/classes/</include>
								<include>src/main/webapp/WEB-INF/deploy/</include>
								<include>src/main/webapp/WEB-INF/lib/</include>
								<include>**/gwt-unitCache/**</include>
								<include>.errai/</include>
								<include>.niogit/**</include>
								<include>.index/**</include>
							</includes>
						</fileset>
					</filesets>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>unpack</id>
						<phase>process-resources</phase>
						<goals>
							<goal>unpack</goal>
						</goals>
						<configuration>
							<artifactItems>
								<artifactItem>
									<groupId>org.jboss.errai</groupId>
									<artifactId>wildfly-dist</artifactId>
									<version>${version.org.jboss.errai.wildfly}</version>
									<type>zip</type>
									<overWrite>false</overWrite>
									<outputDirectory>${project.build.directory}</outputDirectory>
								</artifactItem>
							</artifactItems>
							<skip>${gwt.compiler.skip}</skip>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>

	</build>

	<profiles>
		<profile>
			<id>fullProfile</id>
			<activation>
				<property>
					<name>full</name>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin><!-- Keep in sync with soa profile -->
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>gwt-maven-plugin</artifactId>
						<configuration>
							<!-- Build all GWT permutations and optimize them -->
							<module>org.dashbuilder.DashbuilderRuntime</module>
							<draftCompile>false</draftCompile>
							<force>true</force>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
		<!-- profile to disable GWT compilation of showcase (useful in full downstream 
			builds) -->
		<profile>
			<id>no-showcase</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>gwt-maven-plugin</artifactId>
						<configuration>
							<skip>true</skip>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

</project>
