|
Struts example source code file (pom.xml)
The Struts pom.xml source code
<?xml version="1.0" encoding="UTF-8"?>
<!--
/*
* $Id: pom.xml 1090129 2011-04-08 06:27:42Z lukaszlenart $
*
* 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/maven-v4_0_0.xsd">
<modelVersion>4.0.0
<parent>
<groupId>org.apache.struts
<artifactId>struts2-parent
<version>2.2.3
</parent>
<groupId>org.apache.struts
<artifactId>struts2-apps
<packaging>pom
<name>Webapps
<modules>
<module>blank
<module>jboss-blank
<module>mailreader
<module>portlet
<module>showcase
<module>rest-showcase
</modules>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_3/apps
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_3/apps
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_2_3/apps
</scm>
<profiles>
<profile>
<id>hostedqa
<dependencies>
<dependency>
<groupId>com.hostedqa
<artifactId>hostedqa-remote-ant
<version>1.7
<scope>test
</dependency>
</dependencies>
<repositories>
<repository>
<id>codehaus
<name>codehaus
<url>http://repository.codehaus.org
</repository>
<repository>
<id>maven-hostedqa
<name>maven-hostedqa
<snapshots>
<enabled>true
<updatePolicy>always
<checksumPolicy>ignore
</snapshots>
<releases>
<enabled>true
</releases>
<url>http://maven.hostedqa.com
</repository>
</repositories>
<build>
<resources>
<!-- Include resources under src/main/java in WEB-INF/classes -->
<resource>
<directory>src/main/java
<includes>
<include>**/*.properties
<include>**/*.xml
</includes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin
<groupId>org.apache.maven.plugins
<executions>
<execution>
<phase>package
<goals>
<goal>run
</goals>
<configuration>
<tasks>
<taskdef resource="hostedqatasks" classpathref="maven.plugin.classpath" />
<upload file="${project.build.directory}/${project.build.finalName}.war" account="struts" email="${email}" password="${password}" resourceId="${resourceId}" />
<playsuite suiteId="${suiteId}" clientConfigs="${clientConfigs}" appConfigs="${appConfigs}" account="struts" email="${email}" password="${password}" />
</tasks>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.hostedqa
<artifactId>hostedqa-remote-ant
<version>1.7
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release
<activation>
<property>
<name>release
</property>
</activation>
<build>
<plugins>
<plugin>
<inherited>true
<groupId>org.codehaus.mojo
<artifactId>rat-maven-plugin
<executions>
<execution>
<phase>verify
<goals>
<goal>check
</goals>
<configuration>
<addDefaultLicenseMatchers>false
<licenseMatchers>
<classNames>
<className>rat.analysis.license.ApacheSoftwareLicense20
</classNames>
</licenseMatchers>
<includes>
<include>pom.xml
</includes>
<excludes>
<exclude>src/**
</excludes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<plugins>
<!-- Include source code under WEB-INF/src/java -->
<plugin>
<artifactId>maven-antrun-plugin
<executions>
<execution>
<id>copy-sources
<phase>process-sources
<configuration>
<tasks>
<copy todir="${project.build.directory}/${project.artifactId}/WEB-INF/src/java" failonerror="false">
<fileset dir="${basedir}/src/main/java" />
</copy>
<copy todir="${project.build.directory}/${project.artifactId}/WEB-INF/src/java" failonerror="false">
<fileset dir="${basedir}/src/main/resources" />
</copy>
</tasks>
</configuration>
<goals>
<goal>run
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins
<artifactId>maven-war-plugin
<configuration>
<webResources>
<resource>
<directory>${basedir}/src/main/resources
<targetPath>META-INF
<includes>
<include>LICENSE.txt
<include>NOTICE.txt
</includes>
</resource>
</webResources>
<warSourceExcludes>WEB-INF/classes/LICENSE.txt,WEB-INF/classes/NOTICE.txt
</configuration>
</plugin>
</plugins>
<finalName>${project.artifactId}
</build>
<dependencies>
<dependency>
<groupId>org.apache.struts
<artifactId>struts2-core
<version>${project.version}
</dependency>
<dependency>
<groupId>org.springframework
<artifactId>spring-test
<version>${struts2.springPlatformVersion}
<scope>test
</dependency>
</dependencies>
</project>
Other Struts examples (source code examples)Here is a short list of links related to this Struts pom.xml source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.