cdap-web-app
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>co.cask.cdap</groupId>
<artifactId>cdap-web-app</artifactId>
<version>2.8.3</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright © 2014 Cask Data, Inc.
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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>co.cask.cdap</groupId>
<artifactId>cdap</artifactId>
<version>2.8.3</version>
</parent>
<artifactId>cdap-web-app</artifactId>
<name>CDAP Web-App</name>
<dependencies>
<dependency>
<groupId>co.cask.cdap</groupId>
<artifactId>cdap-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>co.cask.cdap</groupId>
<artifactId>cdap-ui</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.10</version>
<executions>
<execution>
<!-- Disable rat check for the web-app module for now. Check with rohit on how to do it. -->
<id>rat-check</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>dist</id>
<build>
<resources>
<resource>
<directory>client/core/lib</directory>
<targetPath>${project.build.directory}/local/client/core/lib</targetPath>
</resource>
<resource>
<directory>client/core/lib</directory>
<targetPath>${project.build.directory}/sandbox/client/core/lib</targetPath>
</resource>
<resource>
<directory>client/core/lib</directory>
<targetPath>${project.build.directory}/enterprise/client/core/lib</targetPath>
</resource>
<resource>
<directory>client/third_party</directory>
<targetPath>${project.build.directory}/local/client/third_party</targetPath>
</resource>
<resource>
<directory>client/third_party</directory>
<targetPath>${project.build.directory}/sandbox/client/third_party</targetPath>
</resource>
<resource>
<directory>client/third_party</directory>
<targetPath>${project.build.directory}/enterprise/client/third_party</targetPath>
</resource>
<resource>
<directory>client/assets</directory>
<targetPath>${project.build.directory}/local/client/assets</targetPath>
</resource>
<resource>
<directory>client/assets</directory>
<targetPath>${project.build.directory}/sandbox/client/assets</targetPath>
</resource>
<resource>
<directory>client/assets</directory>
<targetPath>${project.build.directory}/enterprise/client/assets</targetPath>
</resource>
<resource>
<directory>client/local/views</directory>
<targetPath>${project.build.directory}/local/client/local/views</targetPath>
</resource>
<resource>
<directory>client/sandbox/views</directory>
<targetPath>${project.build.directory}/sandbox/client/sandbox/views</targetPath>
</resource>
<resource>
<directory>client/enterprise/views</directory>
<targetPath>${project.build.directory}/enterprise/client/enterprise/views</targetPath>
</resource>
<resource>
<directory>client/local/partials</directory>
<targetPath>${project.build.directory}/local/client/local/partials</targetPath>
</resource>
<resource>
<directory>client/sandbox/partials</directory>
<targetPath>${project.build.directory}/sandbox/client/sandbox/partials</targetPath>
</resource>
<resource>
<directory>client/enterprise/partials</directory>
<targetPath>${project.build.directory}/enterprise/client/enterprise/partials</targetPath>
</resource>
<resource>
<directory>client/local</directory>
<includes>
<include>*.html</include>
</includes>
<targetPath>${project.build.directory}/local/client</targetPath>
</resource>
<resource>
<directory>client/sandbox</directory>
<includes>
<include>*.html</include>
</includes>
<targetPath>${project.build.directory}/sandbox/client</targetPath>
</resource>
<resource>
<directory>client/enterprise</directory>
<includes>
<include>*.html</include>
</includes>
<targetPath>${project.build.directory}/enterprise/client</targetPath>
</resource>
<resource>
<directory>client</directory>
<includes>
<include>index.html</include>
</includes>
<targetPath>${project.build.directory}/local/client</targetPath>
</resource>
<resource>
<directory>client</directory>
<includes>
<include>index.html</include>
</includes>
<targetPath>${project.build.directory}/sandbox/client</targetPath>
</resource>
<resource>
<directory>client</directory>
<includes>
<include>index.html</include>
</includes>
<targetPath>${project.build.directory}/enterprise/client</targetPath>
</resource>
<resource>
<directory>server/common</directory>
<targetPath>${project.build.directory}/local/common</targetPath>
</resource>
<resource>
<directory>server/common</directory>
<targetPath>${project.build.directory}/sandbox/common</targetPath>
</resource>
<resource>
<directory>server/common</directory>
<targetPath>${project.build.directory}/enterprise/common</targetPath>
</resource>
<resource>
<directory>server/local</directory>
<targetPath>${project.build.directory}/local/server</targetPath>
</resource>
<resource>
<directory>server/sandbox</directory>
<targetPath>${project.build.directory}/sandbox/server</targetPath>
</resource>
<resource>
<directory>server/enterprise</directory>
<targetPath>${project.build.directory}/enterprise/server</targetPath>
</resource>
<resource>
<directory>server/common</directory>
<includes>
<include>VERSION</include>
</includes>
<filtering>true</filtering>
<targetPath>${project.build.directory}/local</targetPath>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<id>local</id>
<phase>process-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>node</executable>
<arguments>
<argument>tools/requirejs/bin/r.js</argument>
<argument>-o</argument>
<argument>app.build.js</argument>
<argument>baseUrl=client/</argument>
<argument>out=${project.build.directory}/local/client/main.js</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>sandbox</id>
<phase>process-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>node</executable>
<arguments>
<argument>tools/requirejs/bin/r.js</argument>
<argument>-o</argument>
<argument>app.build.js</argument>
<argument>baseUrl=client/</argument>
<argument>out=${project.build.directory}/sandbox/client/main.js</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>enterprise</id>
<phase>process-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>node</executable>
<arguments>
<argument>tools/requirejs/bin/r.js</argument>
<argument>-o</argument>
<argument>app.build.js</argument>
<argument>baseUrl=client/</argument>
<argument>out=${project.build.directory}/enterprise/client/main.js</argument>
</arguments>
</configuration>
</execution>
</executions>
</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.7</version>
<executions>
<execution>
<id>copy-enterprise</id>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy todir="${stage.opt.dir}">
<fileset dir="${project.build.directory}/enterprise">
<include name="**"/>
</fileset>
</copy>
<copy todir = "${stage.opt.dir}/alpha/server">
<fileset dir = "../cdap-ui/server"/>
</copy>
<copy todir = "${stage.opt.dir}/alpha/dist">
<fileset dir = "../cdap-ui/dist"/>
</copy>
<copy todir = "${stage.opt.dir}/alpha/node_modules">
<fileset dir = "../cdap-ui/node_modules"/>
</copy>
<copy todir = "${stage.opt.dir}/alpha/">
<fileset dir = "../cdap-ui">
<include name="package.json" />
</fileset>
</copy>
<copy todir = "${stage.opt.dir}/alpha/">
<fileset dir = "../cdap-ui">
<include name="server.js" />
</fileset>
</copy>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>rpm-prepare</id>
<build>
<plugins>
<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.7</version>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>deb-prepare</id>
<build>
<plugins>
<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.7</version>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>rpm</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.1</version>
</plugin>
<!-- Extra deployment for rpm package. -->
<!-- This has to be in child level, otherwise all modules would try to deploy. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>deploy-rpm</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<version>${project.version}</version>
<groupId>${dist.deploy.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<packaging>noarch.rpm</packaging>
<generatePom>false</generatePom>
<file>${project.build.directory}/${project.artifactId}-${package.version}-1.noarch.rpm</file>
<classifier>1</classifier>
<repositoryId>continuuity</repositoryId>
<url>${deploy.url}</url>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>deb</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.1</version>
</plugin>
<!-- Extra deployment for deb package -->
<!-- This has to be in child level, otherwise all modules would try to deploy. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>deploy-deb</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<version>${project.version}</version>
<groupId>${dist.deploy.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<packaging>deb</packaging>
<generatePom>false</generatePom>
<file>${project.build.directory}/${project.artifactId}_${package.version}-1_all.deb</file>
<repositoryId>continuuity</repositoryId>
<url>${deploy.url}</url>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>tgz</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
</plugin>
<!-- Extra deployment for tgz package -->
<!-- This has to be in child level, otherwise all modules would try to deploy. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>deploy-tgz</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<version>${project.version}</version>
<groupId>${dist.deploy.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<packaging>tar.gz</packaging>
<generatePom>false</generatePom>
<file>${project.build.directory}/${project.artifactId}-${package.version}.tar.gz</file>
<repositoryId>continuuity</repositoryId>
<url>${deploy.url}</url>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>