|
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-core <packaging>jar <name>Struts 2 Core <scm> <connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_3/core <developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_3/core <url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_2_3/core </scm> <properties> <tlib.version>2.2 </properties> <build> <plugins> <plugin> <groupId>org.apache.myfaces.tobago <artifactId>maven-apt-plugin <version>1.0.15 <configuration> <A>uri=/struts-tags,tlibVersion=${tlib.version},jspVersion=2.0,shortName=s,displayName="Struts Tags", outFile=${basedir}/target/classes/META-INF/struts-tags.tld, description="To make it easier to access dynamic data; the Apache Struts framework includes a library of custom tags. The tags interact with the framework's validation and internationalization features; to ensure that input is correct and output is localized. The Struts Tags can be used with JSP FreeMarker or Velocity.", outTemplatesDir=${basedir}/src/site/resources/tags </A> <resourceTargetPath>target <fork>false <force>true <nocompile>true <showWarnings>true <factory>org.apache.struts.annotations.taglib.apt.TLDAnnotationProcessorFactory <target>1.5 <includes> <include>**/*.java </includes> </configuration> <executions> <execution> <phase>compile <goals> <goal>execute </goals> </execution> </executions> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.codehaus.mojo <artifactId>rat-maven-plugin <version>1.0-alpha-2 <configuration> <includes> <include>pom.xml <include>src/** </includes> <excludes> <exclude>src/test/resources/org/apache/struts2/views/jsp/ui/* <exclude>src/main/resources/org/apache/struts2/static/domTT.js <exclude>src/test/resources/org/apache/struts2/interceptor/validation/* <exclude>src/site/resources/tags/** <exclude>src/main/resources/*LICENSE.txt </excludes> </configuration> </plugin> </plugins> </reporting> <profiles> <profile> <id>alljars <build> <plugins> <plugin> <artifactId>maven-javadoc-plugin <version>2.2 <executions> <execution> <id>attach-source <goals> <goal>jar </goals> </execution> </executions> <configuration> <sourcepath>${basedir}/src/main/java;${basedir}/../xwork-core/src/main/java <encoding>UTF-8 <groups> <group> <title>Struts Packages <packages>org.apache.struts2* </group> <group> <title>XWork Packages <packages>com.opensymphony.xwork2* </group> </groups> <show>private <links> <link>http://java.sun.com/j2se/1.5.0/docs/api <link>http://java.sun.com/javaee/5/docs/api/ <link>http://jakarta.apache.org/commons/logging/apidocs/ <link>http://logging.apache.org/log4j/docs/api/ </links> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins <artifactId>maven-source-plugin <executions> <execution> <id>attach-source <goals> <goal>jar </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>default-tools.jar <activation> <property> <name>java.vendor <value>Sun Microsystems Inc. </property> </activation> <dependencies> <dependency> <groupId>com.sun <artifactId>tools <version>1.5.0 <scope>system <systemPath>${java.home}/../lib/tools.jar </dependency> </dependencies> </profile> </profiles> <dependencies> <dependency> <groupId>org.apache.struts.xwork <artifactId>xwork-core </dependency> <dependency> <groupId>org.freemarker <artifactId>freemarker </dependency> <dependency> <groupId>javax.servlet <artifactId>servlet-api <scope>provided </dependency> <dependency> <groupId>javax.servlet <artifactId>jsp-api <scope>provided </dependency> <dependency> <groupId>ognl <artifactId>ognl </dependency> <!-- Velocity --> <dependency> <groupId>org.apache.velocity <artifactId>velocity <optional>true </dependency> <dependency> <groupId>org.apache.velocity <artifactId>velocity-tools <optional>true </dependency> <!-- File upload --> <dependency> <groupId>commons-fileupload <artifactId>commons-fileupload </dependency> <dependency> <groupId>commons-io <artifactId>commons-io </dependency> <!-- Mocks for unit testing (by Spring) --> <dependency> <groupId>org.springframework <artifactId>spring-test <scope>test </dependency> <!-- Test dependencies --> <dependency> <groupId>junit <artifactId>junit <scope>compile <optional>true </dependency> <dependency> <groupId>org.easymock <artifactId>easymock <scope>test </dependency> <dependency> <groupId>mockobjects <artifactId>mockobjects-core <scope>test </dependency> <dependency> <groupId>mockobjects <artifactId>mockobjects-jdk1.3 <scope>test </dependency> <dependency> <groupId>mockobjects <artifactId>mockobjects-alt-jdk1.3 <scope>test </dependency> <dependency> <groupId>mockobjects <artifactId>mockobjects-alt-jdk1.3-j2ee1.3 <scope>test </dependency> <dependency> <groupId>mockobjects <artifactId>mockobjects-jdk1.3-j2ee1.3 <scope>test </dependency> <dependency> <groupId>jmock <artifactId>jmock <scope>test </dependency> <dependency> <groupId>log4j <artifactId>log4j <scope>test </dependency> <!-- These jars have to be in the compile scope in order to work with apt plugin (struts-annotations) and javadoc (the rest to process xwork sources). Marking them optional to exclude them from transitive dependency resolution --> <dependency> <groupId>org.apache.struts <artifactId>struts-annotations <scope>compile <optional>true </dependency> <dependency> <groupId>org.testng <artifactId>testng <scope>compile <optional>true <classifier>jdk15 </dependency> <dependency> <groupId>org.springframework <artifactId>spring <scope>compile <optional>true </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.