`
tof.j
  • 浏览: 135464 次
  • 性别: Icon_minigender_1
  • 来自: 宁波
社区版块
存档分类

一个完整的pom.xml

阅读更多
Distribution Management
用于配置分发管理,配置相应的产品发布信息,主要用于发布,在执行mvn deploy后表示要发布的位置
1 配置到文件系统
 <distributionManagement> 
  <repository>  
  <id>proficio-repository<id> 
  <name>Proficio Repository</name> 
  <url>file://${basedir}/target/deploy</url> 
  </repository> 
  </distributionManagement>    




<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
 <modelVersion>4.0.0</modelVersion>
 <groupId>tudu</groupId>
 <artifactId>tudu</artifactId>
 <packaging>war</packaging>
 <name>Tudu Lists</name>
 <version>1.1-rc-1</version>
 <description>
  A Web application for managing todo lists.
 </description>
 <url>http://sourceforge.net/projects/tudu/</url>
 <issueManagement>
  <system>SourceForge</system>
  <url>http://sourceforge.net/tracker/?group_id=131842</url>
 </issueManagement>
 <inceptionYear>2005</inceptionYear>
 <repositories>
  <repository>
   <id>maven2</id>
   <name>Default Maven2 repository</name>
   <url>http://repo1.maven.org/maven2</url>
  </repository>
  <repository>
   <id>julien.dubois.private.repo</id>
   <name>
    Julien Dubois private Maven repository - personnal use
    only
   </name>
   <url>http://julien.dubois.free.fr/maven2</url>
  </repository>
 </repositories>
 <developers>
  <developer>
   <name>Julien Dubois</name>
   <id>roullian</id>
   <email></email>
   <url>http://www.julien-dubois.com</url>
   <organization></organization>
  </developer>
  <developer>
   <name>Jerome Morille</name>
   <id>jmorille</id>
   <email></email>
   <organization></organization>
  </developer>
  <developer>
   <name>Jean-Philippe Retaille</name>
   <id>retaille</id>
   <email></email>
   <organization></organization>
  </developer>
  <developer>
   <name>Ralph Schaer</name>
   <id>rasch</id>
   <email></email>
   <organization></organization>
  </developer>
  <developer>
   <name>Thierry Templier</name>
   <id>templth</id>
   <email></email>
   <organization></organization>
  </developer>
 </developers>
 <licenses>
  <license>
   <name>GNU General Public License</name>
   <url>http://www.gnu.org/copyleft/gpl.html</url>
  </license>
 </licenses>
 <dependencies>
  <dependency>
   <groupId>aspectj</groupId>
   <artifactId>aspectjrt</artifactId>
   <version>1.5.0</version>
   <scope>runtime</scope>
  </dependency>
  <dependency>
   <groupId>aspectj</groupId>
   <artifactId>aspectjweaver</artifactId>
   <version>1.5.0</version>
   <scope>runtime</scope>
  </dependency>
  <dependency>
   <groupId>axis</groupId>
   <artifactId>axis-ant</artifactId>
   <version>1.3</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>axis</groupId>
   <artifactId>axis-ant</artifactId>
   <version>1.3</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>axis</groupId>
   <artifactId>axis</artifactId>
   <version>1.3</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>axis</groupId>
   <artifactId>axis-saaj</artifactId>
   <version>1.3</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>axis</groupId>
   <artifactId>axis-wsdl4j</artifactId>
   <version>1.3</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>com.jamonapi</groupId>
   <artifactId>jamon</artifactId>
   <version>1.0</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>commons-lang</groupId>
   <artifactId>commons-lang</artifactId>
   <version>2.1</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>commons-logging</groupId>
   <artifactId>commons-logging</artifactId>
   <version>1.0.4</version>
   <scope>compile</scope>
   <exclusions>
    <exclusion>
     <groupId>logkit</groupId>
     <artifactId>logkit</artifactId>
    </exclusion>
    <exclusion>
     <groupId>junit</groupId>
     <artifactId>junit</artifactId>
    </exclusion>
    <exclusion>
     <groupId>avalon-framework</groupId>
     <artifactId>avalon-framework</artifactId>
    </exclusion>
   </exclusions>
  </dependency>
  <dependency>
   <groupId>dbunit</groupId>
   <artifactId>dbunit</artifactId>
   <version>2.1</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>dom4j</groupId>
   <artifactId>dom4j</artifactId>
   <version>1.6</version>
   <exclusions>
    <exclusion>
     <groupId>jaxme</groupId>
     <artifactId>jaxme-api</artifactId>
    </exclusion>
    <exclusion>
     <groupId>jaxen</groupId>
     <artifactId>jaxen</artifactId>
    </exclusion>
    <exclusion>
     <groupId>msv</groupId>
     <artifactId>xsdlib</artifactId>
    </exclusion>
    <exclusion>
     <groupId>msv</groupId>
     <artifactId>relaxngDatatype</artifactId>
    </exclusion>
    <exclusion>
     <groupId>pull-parser</groupId>
     <artifactId>pull-parser</artifactId>
    </exclusion>
    <exclusion>
     <groupId>xpp3</groupId>
     <artifactId>xpp3</artifactId>
    </exclusion>
    <exclusion>
     <groupId>stax</groupId>
     <artifactId>stax-api</artifactId>
    </exclusion>
    <exclusion>
     <groupId>xml-apis</groupId>
     <artifactId>xml-apis</artifactId>
    </exclusion>
    <exclusion>
     <groupId>junitperf</groupId>
     <artifactId>junitperf</artifactId>
    </exclusion>
    <exclusion>
     <groupId>stax</groupId>
     <artifactId>stax-ri</artifactId>
    </exclusion>
    <exclusion>
     <groupId>xalan</groupId>
     <artifactId>xalan</artifactId>
    </exclusion>
   </exclusions>
  </dependency>
  <dependency>
   <groupId>ehcache</groupId>
   <artifactId>ehcache</artifactId>
   <version>1.1</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>hsqldb</groupId>
   <artifactId>hsqldb</artifactId>
   <version>1.8.0.1</version>
   <scope>test</scope>
  </dependency>
  <dependency>
   <groupId>javax.activation</groupId>
   <artifactId>activation</artifactId>
   <version>1.0.2</version>
   <scope>provided</scope>
  </dependency>
  <dependency>
   <groupId>javax.mail</groupId>
   <artifactId>mail</artifactId>
   <version>1.3.2</version>
   <scope>provided</scope>
  </dependency>
  <dependency>
   <groupId>javax.servlet</groupId>
   <artifactId>jstl</artifactId>
   <version>1.1.2</version>
   <scope>compile</scope>
   <exclusions>
    <exclusion>
     <groupId>javax.servlet</groupId>
     <artifactId>jsp-api</artifactId>
    </exclusion>
   </exclusions>
  </dependency>
  <dependency>
   <groupId>javax.servlet</groupId>
   <artifactId>servlet-api</artifactId>
   <version>2.4</version>
   <scope>provided</scope>
  </dependency>
  <dependency>
   <groupId>jdom</groupId>
   <artifactId>jdom</artifactId>
   <version>1.0</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>junit</groupId>
   <artifactId>junit</artifactId>
   <version>3.8.1</version>
   <scope>test</scope>
  </dependency>
  <dependency>
   <groupId>log4j</groupId>
   <artifactId>log4j</artifactId>
   <version>1.2.13</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>rome</groupId>
   <artifactId>rome</artifactId>
   <version>0.5</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.acegisecurity</groupId>
   <artifactId>acegi-security</artifactId>
   <version>1.0.0-RC1</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.easymock</groupId>
   <artifactId>easymock</artifactId>
   <version>2.0</version>
   <scope>test</scope>
  </dependency>
  <dependency>
   <groupId>org.hibernate</groupId>
   <artifactId>hibernate</artifactId>
   <version>3.1.2</version>
   <scope>compile</scope>
   <exclusions>
    <exclusion>
     <groupId>javax.transaction</groupId>
     <artifactId>jta</artifactId>
    </exclusion>
   </exclusions>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-aop</artifactId>
   <version>2.0-m2</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-aspects</artifactId>
   <version>2.0-m2</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-beans</artifactId>
   <version>2.0-m2</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-context</artifactId>
   <version>2.0-m2</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-core</artifactId>
   <version>2.0-m2</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-dao</artifactId>
   <version>2.0-m2</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-hibernate3</artifactId>
   <version>2.0-m2</version>
   <scope>compile</scope>
   <exclusions>
    <exclusion>
     <groupId>org.hibernate</groupId>
     <artifactId>hibernate-annotations</artifactId>
    </exclusion>
   </exclusions>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-jdbc</artifactId>
   <version>2.0-m2</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-mock</artifactId>
   <version>2.0-m2</version>
   <scope>test</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-remoting</artifactId>
   <version>2.0-m2</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-support</artifactId>
   <version>2.0-m2</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-web</artifactId>
   <version>2.0-m2</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-webmvc</artifactId>
   <version>2.0-m2</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>struts</groupId>
   <artifactId>struts</artifactId>
   <version>1.2.8</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>struts-menu</groupId>
   <artifactId>struts-menu</artifactId>
   <version>2.3</version>
   <scope>runtime</scope>
   <exclusions>
    <exclusion>
     <groupId>hsqldb</groupId>
     <artifactId>hsqldb</artifactId>
    </exclusion>
    <exclusion>
     <groupId>velocity</groupId>
     <artifactId>velocity</artifactId>
    </exclusion>
    <exclusion>
     <groupId>velocity-tools</groupId>
     <artifactId>velocity-tools</artifactId>
    </exclusion>
   </exclusions>
  </dependency>
  <dependency>
   <groupId>strutstestcase</groupId>
   <artifactId>strutstestcase</artifactId>
   <version>2.1.2-1.1-2.3</version>
   <scope>test</scope>
  </dependency>
  <dependency>
   <groupId>taglibs</groupId>
   <artifactId>standard</artifactId>
   <version>1.1.2</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>tomcat</groupId>
   <artifactId>jsp-api</artifactId>
   <version>5.0.18</version>
   <scope>provided</scope>
  </dependency>
  <dependency>
   <groupId>uk.ltd.getahead</groupId>
   <artifactId>dwr</artifactId>
   <version>1.1-SNAPSHOT</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>xfire</groupId>
   <artifactId>xfire-all</artifactId>
   <version>1.0-M6</version>
   <scope>deploy</scope>
   <exclusions>
    <exclusion>
     <groupId>javamail</groupId>
     <artifactId>javamail</artifactId>
    </exclusion>
   </exclusions>
  </dependency>
 </dependencies>
 <reporting>
  <plugins>
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>
     maven-project-info-reports-plugin
    </artifactId>
    <reportSets>
     <reportSet>
      <reports>
       <report>dependencies</report>
       <report>project-team</report>
       <report>issue-tracking</report>
       <report>license</report>
       <report>scm</report>
      </reports>
     </reportSet>
    </reportSets>
   </plugin>
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-javadoc-plugin</artifactId>
   </plugin>
   <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>surefire-report-maven-plugin</artifactId>
   </plugin>
   <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>jxr-maven-plugin</artifactId>
   </plugin>
  </plugins>
 </reporting>
 <scm>
  <connection>
   scm:cvs:pserver:anonymous@cvs.sourceforge.net:/cvsroot/tudu:tudu
  </connection>
  <developerConnection>
   scm:cvs:extssh:${maven.username}@cvs.sourceforge.net:/cvsroot/tudu:tudu
  </developerConnection>
  <url>http://cvs.sourceforge.net/viewcvs.py/tudu/tudu/</url>
 </scm>
 <build>
  <sourceDirectory>src/java</sourceDirectory>
  <testSourceDirectory>test/java</testSourceDirectory>
  <resources>
   <resource>
    <directory>src/resources</directory>
   </resource>
  </resources>
  <testResources>
   <testResource>
    <directory>test/resources</directory>
   </testResource>
  </testResources>
  <plugins>
   <plugin>
    <artifactId>maven-assembly-plugin</artifactId>
    <configuration>
     <descriptor>
      src/main/assembly/distribution.xml
     </descriptor>
    </configuration>
   </plugin>
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <inherited>true</inherited>
    <configuration>
     <source>1.5</source>
     <target>1.5</target>
    </configuration>
   </plugin>
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
     <systemProperties>
      <property>
       <name>tudu.webapp.dir</name>
       <value>${basedir}/src/webapp/</value>
      </property>
     </systemProperties>
     <excludes>
      <exclude>
       tudu/web/TuduBaseMockStrutsTestCase.java
      </exclude>
     </excludes>
    </configuration>
   </plugin>
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <configuration>
     <warSourceDirectory>src/webapp</warSourceDirectory>
    </configuration>
   </plugin>
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-site-plugin</artifactId>
    <configuration>
     <locales>en</locales>
    </configuration>
   </plugin>
  </plugins>
 </build>
 <distributionManagement>
  <site>
   <id>tudu-website</id>
   <url>scp://shell.sf.net/home/groups/t/tu/tudu/htdocs/</url>
  </site>
 </distributionManagement>
</project>
 
 
分享到:
评论

相关推荐

    Maven pom.xml与settings.xml详解

    1. **项目坐标**:由`groupId`、`artifactId`、`version`三个元素组成,唯一标识一个Maven项目。`groupId`通常代表组织或公司的域名倒序,`artifactId`是项目或模块的名称,`version`则是项目的版本号。 2. **依赖...

    maven的本地仓库配置文件settings.xml和项目中文件pom.xml.zip

    一、Idea关联的maven本地仓库配置...三、3个可单独使用的,maven项目文件pom.xml自定义配置 pom-maven-springboot-CusConfigV1.xml pom-maven-springboot-CusConfigV2.xml pom-maven-spring-CusConfigV1不推荐使用.xml

    史上最全的maven的pom.xml文件详解

    模型版本用于声明项目描述符遵循哪一个POM模型版本。模型版本的变化非常少,但它仍然是必不可少的,以确保Maven引入新的特性或模型变更时的稳定性。 * modelVersion:声明项目描述符遵循哪一个POM模型版本。 3. ...

    idea中pom.xml文件

    idea中pom.xml文件

    Maven build之pom.xml文件中的Build配置

    Maven通过一个叫做pom.xml的项目对象模型文件来配置项目构建的各个方面,其中标签是Maven构建配置的核心部分,它定义了整个构建生命周期中需要执行的指令和任务。 Maven构建包括编译代码、执行测试、打包以及部署等...

    pom.xml android maven 工程

    pom.xml android maven 工程 如何拿Maven 构建 一个 Android 项目的pom配置

    常用pom.xml文件.zip

    pom.xml文件通常位于项目的根目录下,是Maven识别一个项目为合法Maven工程的关键标志。 首先,我们来看看pom.xml的基本结构。一个标准的pom.xml文件通常包含以下几个部分: 1. **项目信息**:包括项目组ID...

    根据pom.xml下载依赖

    POM(Project Object Model)是Maven的核心概念,它是一个XML文件,包含了项目的基本信息、依赖管理、构建配置等。当我们说“根据pom.xml下载依赖”,实际上是在指Maven如何通过解析项目中的pom.xml文件来获取并安装...

    netty-all-4.1.5.Final完整pom.xml文件配置

    总之,这个压缩包为开发者提供了一个完整的Netty 4.1.5.Final版本的开发环境,包括必要的依赖配置和示例代码,帮助他们快速上手并有效地利用Netty开发高性能的网络应用。在使用时,只需根据自己的需求调整`pom.xml`...

    基于Java的POM.XML

    基于Java的POM.XML,如果用兴趣,可以下载下去参考一下

    maven项目pom.xml最详细配置

    maven的pom.xml的最详细配置,内含pom的依赖、jdk配置等

    通过mvn命令下载pom.xml中的jar包

    1. 配置Maven:批处理文件可能会引用一个名为`settings.xml`的配置文件,这个文件位于`~/.m2/`目录下(对于Windows用户通常是 `%USERPROFILE%\.m2\`)。`settings.xml`用于配置Maven的行为,比如定义镜像源、用户...

    netty-all-5.0.0.Alpha3 完整pom.xml配置

    这个“netty-all-5.0.0.Alpha3 完整pom.xml配置”是针对Netty 5.0.0 Alpha3版本的集成配置,包含了该版本所需的全部依赖项,便于开发者在基于Maven的项目中直接引用,避免了手动管理多个jar文件的繁琐过程。...

    pom.xml常用配置

    pom.xml常用配置 Pom.xml是Maven项目的核心配置文件,它定义了项目的结构、依赖关系和构建过程。下面是pom.xml文件中常用的配置项和解释: 1. `&lt;project&gt;`:pom.xml文件的根元素,定义了整个项目的信息。 2. `...

    Maven的pom.xml配置文件详细配置说明

    Maven的pom.xml配置文件详细配置说明 &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=...

    maven项目pom.xml中parent标签的使用.docx

    parent 标签是 pom.xml 文件中的一个重要标签,它可以将多个项目之间的公共依赖关系提取出来,形成一个独立的 parent 项目。parent 项目中不包含任何代码,只是管理多个项目之间的公共依赖关系。 使用 parent 标签...

    搭建springboot项目的 pom.xml配置,只需要创建maven项目把pom替换即可

    搭建springboot项目的 pom.xml配置,只需要创建maven项目把pom替换即可。 指定启动类,搭配上springboot相应的注解

    maven pom.xml

    maven pom.xml详解

    Maven-pom.xml.rar_POM_pom.xml

    **POM.xml详解** 在Java开发领域,Maven是一个广泛使用的项目管理工具,它通过一个称为`pom.xml`的配置文件来管理项目的构建、依赖和版本...通过阅读和分析`Maven-pom.xml.doc`文档,你可以更深入地掌握这一关键概念。

    maven pom.xml 动态读取变量值插件

    该jar包功能,可以在一个properties文件里面定义jdbc.url=${url},在另一个properties文件定义具体的值,通过该jar可以获取到哪个具体的值。下载之后,自行安装到本地maven仓库,安装命令参考我另一篇博文。具体pom....

Global site tag (gtag.js) - Google Analytics