blob: 9f4b66b8c5bc8c0c685929613ae2aba485fbe50c [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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>
<artifactId>rave-project</artifactId>
<groupId>org.apache.rave</groupId>
<version>0.22-SNAPSHOT</version>
</parent>
<artifactId>rave-portal-resources</artifactId>
<name>Apache Rave :: rave-portal-resources</name>
<description>Apache Rave Portal Resources</description>
<packaging>war</packaging>
<!--
The dependencies defined here should have the scope provided.
They are not needed for compilation, only to support JSTL code completion in IDE's.
-->
<dependencies>
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>jstl-impl</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-taglibs</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-ldap</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.rave</groupId>
<artifactId>rave-web</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-jsp</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<!-- exclude the wro4j config files from the WAR as they are only needed for build -->
<excludes>
<exclude>**/wro.properties</exclude>
<exclude>**/wro.xml</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>com.googlecode.mavenfilesync</groupId>
<artifactId>maven-filesync-plugin</artifactId>
<configuration>
<mappings>
<mapping>
<sourceFolder>src/main/webapp</sourceFolder>
<destinationFolder>@../rave-portal/target/tomcat6x/webapps/portal</destinationFolder>
</mapping>
<mapping>
<sourceFolder>src/main/resources</sourceFolder>
<destinationFolder>@../rave-portal/target/tomcat6x/webapps/portal/WEB-INF/classes</destinationFolder>
</mapping>
</mappings>
</configuration>
</plugin>
<plugin>
<groupId>com.github.searls</groupId>
<artifactId>jasmine-maven-plugin</artifactId>
<version>1.3.1.0</version>
<executions>
<execution>
<goals>
<goal>bdd</goal>
<goal>test</goal>
</goals>
</execution>
</executions>
<configuration>
<jsSrcDir>${project.basedir}/src/main/webapp/static/script</jsSrcDir>
<jsTestSrcDir>${project.basedir}/src/test/javascript</jsTestSrcDir>
<specDirectoryName>/src/test/javascript</specDirectoryName>
<sourceIncludes>
<include>core/rave_api.js</include>
<include>core/rave_state_manager.js</include>
<include>core/rave_event_manager.js</include>
<include>core/rave_widget.js</include>
<include>core/rave_widget_manager.js</include>
<include>core/rave_view_manager.js</include>
<include>core/rave_openajax_hub.js</include>
</sourceIncludes>
<preloadSources>
<source>/src/test/dependencies/require.js</source>
<source>/src/test/dependencies/testr.js</source>
<source>/src/test/dependencies/underscore.js</source>
</preloadSources>
<customRunnerTemplate>src/test/testTemplate.htmltemplate</customRunnerTemplate>
</configuration>
</plugin>
<!--
wro4j maven plugin is used for lesscss compilation
-->
<plugin>
<groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-maven-plugin</artifactId>
<version>1.6.1</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- wro.properties defines which pre and post processors to execute -->
<extraConfigFile>${basedir}/src/main/resources/wro.properties</extraConfigFile>
<!-- wro.xml defines the resource groups -->
<wroFile>${basedir}/src/main/resources/wro.xml</wroFile>
<!-- targetGroups is the set of resource groups, defined in wro.xml, that you want to process -->
<targetGroups>rave</targetGroups>
<!-- minimize instructs the processors to handle their minimization work -->
<minimize>true</minimize>
<!-- location of the CSS after processing -->
<cssDestinationFolder>${project.build.directory}/${project.build.finalName}/static/css/</cssDestinationFolder>
<!-- location of webapp directory that wro4j uses for its location context -->
<contextFolder>${basedir}/src/main/webapp/</contextFolder>
<wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory>
<ignoreMissingResources>false</ignoreMissingResources>
</configuration>
</plugin>
<!-- requirejs optimizer -->
<plugin>
<groupId>com.github.mcheely</groupId>
<artifactId>requirejs-maven-plugin</artifactId>
<version>2.0.0</version>
<executions>
<execution>
<goals>
<goal>optimize</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- path to optimizer json config file -->
<configFile>
${basedir}/src/main/resources/requireBuild.js
</configFile>
<!-- optional path to optimizer executable -->
<optimizerFile>
${basedir}/src/main/resources/r.js
</optimizerFile>
<!--
Whether or not to process configFile with maven filters.
If you use this option, some options in your configFile
must resolve to absolute paths (see below)
-->
<filterConfig>
true
</filterConfig>
<!-- Skip requirejs optimization if true -->
<skip>
false
</skip>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>jpa</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
<configuration>
<webResources>
<resource>
<directory>src/main/resources_jpa</directory>
<targetPath>WEB-INF/</targetPath>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>mongodb</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
<configuration>
<webResources>
<resource>
<directory>src/main/resources_mongo</directory>
<targetPath>WEB-INF/</targetPath>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>