alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Struts example source code file (pom.xml)

This example Struts source code file (pom.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Struts tags/keywords

apache, apache, commons, java, license, mocks, software, software, struts, struts, the, to, velocity, version

The Struts pom.xml source code

<?xml version="1.0" encoding="UTF-8"?>
<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">

    <parent>
        <groupId>org.apache.struts
        <artifactId>struts-master
        <version>8
    </parent>

    <modelVersion>4.0.0
    <groupId>org.apache.struts
    <artifactId>struts2-parent
    <version>2.2.3
    <packaging>pom
    <name>Struts 2
    <url>http://struts.apache.org/struts2
    <description>Apache Struts 2

    <inceptionYear>2000

    <!--
    <description>
        Apache Struts 2 is an elegant, extensible framework,
        well suited for creating moderate to large-scale Java web
        applications. The framework is designed to streamline the
        full development cycle, from building, to deploying,
        to maintaining applications over time.
    </description>
    -->

    <scm>
        <connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_3
        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_3
        <url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_2_3
    </scm>

    <issueManagement>
        <system>JIRA
        <url>https://issues.apache.org/jira/browse/WW
    </issueManagement>

    <ciManagement />
    <distributionManagement>
        <site>
            <id>apache-site
            <url>scp://people.apache.org/www/struts.apache.org/2.x/
        </site>
    </distributionManagement>

    <modules>
        <module>xwork-core
        <module>core
        <module>apps
        <module>plugins
        <module>bundles
        <module>archetypes
    </modules>

    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt
            <distribution>repo
            <comments />
        </license>
    </licenses>

    <organization>
        <name>Apache Software Foundation
        <url>http://www.apache.org
    </organization>

    <properties>
        <currentVersion>${project.version}
        <struts2.springPlatformVersion>2.5.6
        <ognl.version>3.0.1
        <asm.version>3.1
    </properties>

    <profiles>
        <profile>
            <id>includeAssembly
            <activation>
                <property>
                    <name>!skipAssembly
                </property>
            </activation>
            <modules>
                <module>assembly
            </modules>
        </profile>
        <profile>
            <id>struts-annotations
            <modules>
                <module>../maven/struts-annotations
            </modules>
        </profile>
        <profile>
            <id>j4
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo
                        <artifactId>retrotranslator-maven-plugin
                        <version>1.0-alpha-3
                        <executions>
                            <execution>
                                <phase>package
                                <goals>
                                    <goal>translate-project
                                </goals>
                                <configuration>
                                    <verify>false
                                    <failonwarning>true
                                    <lazy>true
                                    <advanced>true
                                    <verbose>false
                                    <destdir>${project.build.directory}/classes-retro
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>


    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins
                    <artifactId>maven-idea-plugin
                    <configuration>
                        <jdkName>1.5
                        <exclude>target,test-output,.clover
                        <useShortDependencyNames>true
                        <!--
                        <libraries>
                            <library>
                                <name>xwork
                                <sources>file://$xwork$/src/java
                            </library>
                            <library>
                                <name>xwork-tiger
                                <sources>file://$xwork$/tiger/src/java
                            </library>
                        </libraries>
                        -->
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-site-plugin
                    <version>3.0-beta-3
                </plugin>
                <plugin>
                    <artifactId>maven-compiler-plugin
                    <configuration>
                        <source>1.5
                        <target>1.5
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins
                    <artifactId>maven-surefire-plugin
                    <version>2.3
                    <configuration>
                        <includes>
                            <include>**/*Test.java
                        </includes>
                        <excludes>
                            <exclude>**/TestBean.java
                        </excludes>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins
                    <artifactId>maven-war-plugin
                    <version>2.1
                </plugin>
                <plugin>
                    <groupId>org.apache.felix
                    <artifactId>maven-bundle-plugin
                    <version>2.1.0
                </plugin>

            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <artifactId>maven-jar-plugin
                <configuration>
                    <archive>
                        <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF
                    </archive>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.felix
                <artifactId>maven-bundle-plugin
                <executions>
                    <execution>
                        <id>bundle-manifest
                        <phase>process-classes
                        <goals>
                            <goal>manifest
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <!--
            <plugin>
                <groupId>org.codehaus.mojo
                <artifactId>rat-maven-plugin
                <version>1.0-alpha-2
                <executions>
                    <execution>
                        <phase>verify
                        <goals>
                            <goal>check
                        </goals>
                        <configuration>
                            <addDefaultLicenseMatchers>false
                            <licenseMatchers>
                                <classNames>
                                    <className>rat.analysis.license.ApacheSoftwareLicense20
                                </classNames>
                            </licenseMatchers>
                            <includes>
                                <include>pom.xml
                                <include>src/**
                            </includes>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            -->
            <plugin>
                <groupId>org.apache.maven.plugins
                <artifactId>maven-source-plugin
                <executions>
                    <execution>
                        <id>attach-source
                        <goals>
                            <goal>jar
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <!-- Commenting out the license plugin, until it works like we want.
            To use the "license:format" goal, remove the "core" module before running,
            otherwise it will ignore the file exclusions.

            <plugin>
	            <groupId>com.google.code.maven-license-plugin
	            <artifactId>maven-license-plugin
	            <version>1.2.7-SNAPSHOT
	            <configuration>
	            	<header>src/etc/header.txt
	            	<includes>
	            		<include>pom.xml
	            		<include>src/**
	            		<include>core/pom.xml
	            		<include>core/src/**
	            		<include>plugins/**/pom.xml
	            		<include>plugins/**/src/**
	            		<include>apps/**/pom.xml
	            	</includes>
	            	<excludes>
	            		<exclude>**/*.txt
                        <exclude>core/src/test/resources/org/apache/struts2/views/jsp/ui/*
                        <exclude>core/src/main/resources/org/apache/struts2/static/domTT.js
                        <exclude>core/src/test/resources/org/apache/struts2/interceptor/validation/*
                        <exclude>core/src/site/resources/tags/**
                        <exclude>plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/**
                        <exclude>plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/**
                        <exclude>plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/*
                        <exclude>plugins/dojo/src/test/resources/org/apache/struts2/dojo/views/jsp/ui/**
	                    <exclude>apps/**/src/**
	            	</excludes>
	            </configuration>
	        </plugin> -->

        </plugins>
        <defaultGoal>install

    </build>

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins
                <artifactId>maven-project-info-reports-plugin
            </plugin>
            <!--
            <plugin>
                <artifactId>maven-checkstyle-plugin
                <configuration>
                  <configLocation>http://svn.apache.org/repos/asf/struts/maven/trunk/build/struts_checks.xml
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo
                <artifactId>jxr-maven-plugin
                <version>2.0-beta-1
            </plugin>
            -->
        </plugins>
    </reporting>

    <dependencyManagement>
        <dependencies>

            <dependency>
                <groupId>org.apache.struts
                <artifactId>struts-annotations
                <version>1.0.5
            </dependency>

            <dependency>
                <groupId>org.apache.struts.xwork
                <artifactId>xwork-core
                <version>${project.version}
            </dependency>
            <dependency>
                <groupId>org.apache.struts
                <artifactId>struts2-spring-plugin
                <version>${project.version}
            </dependency>
            <dependency>
                <groupId>org.apache.struts
                <artifactId>struts2-portlet-plugin
                <version>${project.version}
            </dependency>
            <dependency>
                <groupId>org.apache.struts
                <artifactId>struts2-dwr-plugin
                <version>${project.version}
            </dependency>

            <dependency>
                <groupId>org.freemarker
                <artifactId>freemarker
                <version>2.3.16
            </dependency>

            <dependency>
                <groupId>org.apache.felix
                <artifactId>org.apache.felix.main
                <version>1.4.1
            </dependency>

            <!-- Velocity -->
            <dependency>
                <groupId>org.apache.velocity
                <artifactId>velocity
                <version>1.6.3
                <optional>true
            </dependency>

            <dependency>
                <groupId>org.apache.velocity
                <artifactId>velocity-tools
                <version>1.3
                <exclusions>
                    <exclusion>
                        <groupId>struts
                        <artifactId>struts
                    </exclusion>
                    <exclusion>
                        <groupId>velocity
                        <artifactId>velocity
                    </exclusion>
                </exclusions>
            </dependency>

            <dependency>
                <groupId>ognl
                <artifactId>ognl
                <version>${ognl.version}
            </dependency>
            <dependency>
                <groupId>asm
                <artifactId>asm
                <version>${asm.version}
            </dependency>
            <dependency>
                <groupId>asm
                <artifactId>asm-commons
                <version>${asm.version}
            </dependency>
            <dependency>
                <groupId>junit
                <artifactId>junit
                <version>4.8.2
            </dependency>
            <dependency>
                <groupId>cglib
                <artifactId>cglib-nodep
                <version>2.1_3
            </dependency>

            <dependency>
                <groupId>org.easymock
                <artifactId>easymock
                <version>2.4
                <scope>test
            </dependency>

            <dependency>
                <groupId>org.easymock
                <artifactId>easymockclassextension
                <version>2.4
                <scope>test
            </dependency>

            <dependency>
                <groupId>javax.servlet
                <artifactId>servlet-api
                <version>2.4
                <scope>provided
            </dependency>

            <dependency>
                <groupId>taglibs
                <artifactId>standard
                <version>1.1.2
                <scope>test
            </dependency>

            <dependency>
                <groupId>javax.servlet
                <artifactId>jstl
                <version>1.1.2
                <scope>test
            </dependency>

            <dependency>
                <groupId>org.apache.tomcat
                <artifactId>jasper
                <version>6.0.18
                <scope>provided
            </dependency>

            <dependency>
                <groupId>org.apache.tiles
                <artifactId>tiles-core
                <version>2.0.6
            </dependency>
            <dependency>
                <groupId>org.apache.tiles
                <artifactId>tiles-jsp
                <version>2.0.6
                <scope>runtime
            </dependency>

            <dependency>
                <groupId>javax.servlet
                <artifactId>jsp-api
                <version>2.0
                <scope>provided
            </dependency>

            <dependency>
                <groupId>taglibs
                <artifactId>request
                <version>1.0.1
                <scope>test
            </dependency>

            <dependency>
                <groupId>javax.servlet.jsp
                <artifactId>jsp-api
                <version>2.1
                <scope>test
            </dependency>

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

            <!-- Commons -->
            <dependency>
                <groupId>commons-logging
                <artifactId>commons-logging
                <version>1.1.1
            </dependency>
            <dependency>
                <groupId>commons-collections
                <artifactId>commons-collections
                <version>3.1
            </dependency>
            <dependency>
                <groupId>commons-fileupload
                <artifactId>commons-fileupload
                <version>1.2.2
            </dependency>
            <dependency>
                <groupId>commons-io
                <artifactId>commons-io
                <version>2.0.1
            </dependency>
            <dependency>
                <groupId>commons-lang
                <artifactId>commons-lang
                <version>2.5
            </dependency>
            <dependency>
                <groupId>commons-digester
                <artifactId>commons-digester
                <version>2.0
            </dependency>
            <dependency>
                <groupId>commons-el
                <artifactId>commons-el
                <version>1.0
            </dependency>
            <dependency>
                <groupId>org.apache.commons
                <artifactId>commons-jci-fam
                <version>1.0
                <optional>true
            </dependency>

            <!-- Mocks for unit testing (by Spring) -->
            <dependency>
                <groupId>org.springframework
                <artifactId>spring-core
                <version>${struts2.springPlatformVersion}
            </dependency>
            <dependency>
                <groupId>org.springframework
                <artifactId>spring
                <version>${struts2.springPlatformVersion}
            </dependency>
            <dependency>
                <groupId>org.springframework
                <artifactId>spring-webmvc-portlet
                <version>${struts2.springPlatformVersion}
            </dependency>
            <dependency>
                <groupId>org.springframework
                <artifactId>spring-context
                <version>${struts2.springPlatformVersion}
            </dependency>
            <dependency>
                <groupId>org.springframework
                <artifactId>spring-aop
                <version>${struts2.springPlatformVersion}
            </dependency>
            <dependency>
                <groupId>org.springframework
                <artifactId>spring-aspects
                <version>${struts2.springPlatformVersion}
            </dependency>
            <dependency>
                <groupId>org.springframework
                <artifactId>spring-beans
                <version>${struts2.springPlatformVersion}
            </dependency>
            <dependency>
                <groupId>org.springframework
                <artifactId>spring-test
                <version>${struts2.springPlatformVersion}
            </dependency>
            <dependency>
                <groupId>org.springframework
                <artifactId>spring-context-support
                <version>${struts2.springPlatformVersion}
            </dependency>
            <dependency>
                <groupId>org.springframework
                <artifactId>spring-web
                <version>${struts2.springPlatformVersion}
            </dependency>

            <dependency>
                <groupId>mockobjects
                <artifactId>mockobjects-core
                <version>0.09
                <scope>test
            </dependency>
            <dependency>
                <groupId>mockobjects
                <artifactId>mockobjects-jdk1.3
                <version>0.09
                <scope>test
            </dependency>
            <dependency>
                <groupId>mockobjects
                <artifactId>mockobjects-alt-jdk1.3
                <version>0.09
                <scope>test
            </dependency>
            <dependency>
                <groupId>mockobjects
                <artifactId>mockobjects-alt-jdk1.3-j2ee1.3
                <version>0.09
                <scope>test
            </dependency>
            <dependency>
                <groupId>mockobjects
                <artifactId>mockobjects-jdk1.3-j2ee1.3
                <version>0.09
                <scope>test
            </dependency>

            <dependency>
                <groupId>jmock
                <artifactId>jmock
                <version>1.0.1
                <scope>test
            </dependency>

            <dependency>
                <groupId>jmock
                <artifactId>jmock-cglib
                <version>1.0.1
                <scope>test
            </dependency>

            <dependency>
                <groupId>log4j
                <artifactId>log4j
                <version>1.2.9
            </dependency>

            <dependency>
                <groupId>org.testng
                <artifactId>testng
                <version>5.1
                <scope>compile
                <optional>true
                <classifier>jdk15
            </dependency>

            <dependency>
                <groupId>net.sf.oval
                <artifactId>oval
                <version>1.31
            </dependency>

            <dependency>
                <groupId>com.thoughtworks.xstream
                <artifactId>xstream
                <version>1.2.2
            </dependency>

            <dependency>
                <groupId>javax.persistence
                <artifactId>persistence-api
                <version>1.0
            </dependency>

            <dependency>
                <groupId>org.mortbay.jetty
                <artifactId>jetty
                <version>6.1.9
            </dependency>
            <dependency>
                <groupId>org.mortbay.jetty
                <artifactId>jsp-2.1
                <version>6.1.9
            </dependency>

            <!-- Portlet -->
            <dependency>
                <groupId>portlet-api
                <artifactId>portlet-api
                <version>1.0
            </dependency>

            <dependency>
                <groupId>cglib
                <artifactId>cglib
                <version>2.2
            </dependency>

            <dependency>
                <groupId>net.sf.json-lib
                <artifactId>json-lib
                <classifier>jdk15
                <version>2.1
            </dependency>

        </dependencies>
    </dependencyManagement>
</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

 

new blog posts

 

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.