`
ssydxa219
  • 浏览: 627020 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论

maven pom.xml

 
阅读更多

<repositories> 
               
<repository> 
                       
<id>MavenCentral</id> 
                       
<name>Maven repository</name> 
                       
<url>http://repo1.maven.org/maven2</url> 
                       
<releases> 
                               
<enabled>true</enabled> 
                       
</releases> 
                       
<snapshots> 
                               
<enabled>false</enabled> 
                       
</snapshots> 
               
</repository> 

 

 

                <repository> 
                       
<id>Codehaus Snapshots</id> 
                       
<url>http://snapshots.repository.codehaus.org/</url> 
                       
<snapshots> 
                               
<enabled>true</enabled> 
                       
</snapshots> 
                       
<releases> 
                               
<enabled>false</enabled> 
                       
</releases> 
               
</repository> 
       
</repositories> 
 
        <pluginRepositories> 
               
<pluginRepository> 
                       
<id>apache.snapshots</id> 
                       
<name>Apache Snapshot Repository</name> 
                       
<url>http://people.apache.org/repo/m2-snapshot-repository</url> 
                       
<releases> 
                               
<enabled>false</enabled> 
                       
</releases> 
               
</pluginRepository> 

 


               

<pluginRepository> 
                       
<id>Codehaus Snapshots</id> 
                       
<url>http://snapshots.repository.codehaus.org/</url> 
                       
<snapshots> 
                               
<enabled>true</enabled> 
                       
</snapshots> 
                       
<releases> 
                               
<enabled>false</enabled> 
                       
</releases> 
               
</pluginRepository> 
       
</pluginRepositories>

 

 

<build>
  <!-- 默认的主代码目录 -->
<!-- <sourceDirectory>src</sourceDirectory>  -->
<!-- <testSourceDirectory>src/test/java</testSourceDirectory>  -->
  <finalName>xxx</finalName>
  <plugins>
  <plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <configuration>
  <source>1.6</source>
  <target>1.6</target>
  </configuration>
  </plugin>
  <plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-resources-plugin</artifactId>
  <configuration>
  <encoding>UTF-8</encoding>
  </configuration>
  </plugin> 
  

 <plugin>
        <groupId>org.mortbay.jetty</groupId>
         <artifactId>maven-jetty-plugin</artifactId>
         <version>6.1.5</version>
         <configuration>
            <scanIntervalSeconds>10</scanIntervalSeconds>
           </configuration>
    </plugin>


  <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>build-helper-maven-plugin</artifactId>
                 <version>1.7</version>
                 <executions>
                    <execution>
                         <id>add-source</id>
                         <phase>generate-sources</phase>
                         <goals>
                             <goal>add-source</goal>
                         </goals>
                         <configuration>
                            <sources>
                                 <source>src</source>
                             </sources>
                         </configuration>
                     </execution>
                </executions>
             </plugin>
            <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-war-plugin</artifactId>
                 <configuration>
                     <!-- 设置WebRoot目录为Web目录 -->
                     <warSourceDirectory>WebRoot</warSourceDirectory>
                </configuration>
             </plugin>
            
             <plugin>
             <groupId>org.codehaus.cargo</groupId>
       <artifactId>cargo-maven2-plugin</artifactId>
             <version>1.2.0</version>
             <configuration>
  <container>
    <containerId>tomcat6x</containerId>
    <type>remote</type>
  </container>

<configuration>
    <type>runtime</type>
    <properties>
      <cargo.remote.username>maven</cargo.remote.username>
      <cargo.remote.password>maven</cargo.remote.password>
      <cargo.tomcat.manager.url>http://127.0.0.1:8080/manager</cargo.tomcat.manager.url>
    </properties>
  </configuration>
  <deployer>
    <type>remote</type>
    <deployables>
      <deployable>
        <groupId>com.ttpod</groupId>
        <artifactId>ttpod-atj</artifactId>
        <type>war</type>
        <properties>
          <context>atj</context>
        </properties>
        <pingURL>http://127.0.0.1:8080/xxx</pingURL>
        <pingTimeout>30000</pingTimeout>
      </deployable>
    </deployables>
  </deployer>
</configuration>
             </plugin>
  </plugins>
  <outputDirectory>WebRoot/WEB-INF/classes</outputDirectory>
  </build>

 

 

 

 

 

 <mirror>
      <id>maven central</id>
      <mirrorOf>maven central</mirrorOf>
      <name>maven central for this Mirror.</name>
      <url>http://repo1.maven.org/maven2</url>
    </mirror>
    <mirror>
      <id>mirrorId</id>
      <mirrorOf>repositoryId</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://my.repository.com/repo/path</url>
    </mirror>
       <mirror>
      <id>planetmirror.com</id>
      <name>PlanetMirror Australia</name>
      <url>http://downloads.planetmirror.com/pub/maven2</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
 <mirror>
      <id>ibiblio.org</id>
      <name>ibiblio Mirror ofhttp://repo1.maven.org/maven2/</name>
      <url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
      <mirrorOf>central</mirrorOf>
      <!-- United States, North Carolina -->
    </mirror>
    <mirror>
      <id>redv.com</id>
      <url>http://mirrors.redv.com/maven2</url>
      <mirrorOf>central</mirrorOf>
      <!-- Shanghai, China , Very fast-->
    </mirror>
     <mirror>
      <id>dotsrc.org</id>
      <url>http://mirrors.dotsrc.org/maven2</url>
      <mirrorOf>central</mirrorOf>
      <!-- Denmark -->
    </mirror>
    <mirror>
      <id>sunsite.dk</id>
      <url>http://mirrors.sunsite.dk/maven2</url>
      <mirrorOf>central</mirrorOf>
      <!-- Denmark -->
    </mirror>
    <mirror>
      <id>skynet.be</id>
      <url>http://maven2.mirrors.skynet.be/pub/maven2</url>
      <mirrorOf>central</mirrorOf>
      <!-- Belgium -->
    </mirror>
    <mirror>
      <id>cica.es</id>
      <url>http://ftp.cica.es/mirrors/maven2</url>
      <mirrorOf>central</mirrorOf>
      <!-- Spain, Sevilla -->
    </mirror>
    <!-- these just point to ibiblio.org -->
    <mirror>
      <id>ibiblio.net</id>
      <name>ibiblio.net Mirror ofhttp://repo1.maven.org/maven2/</name>
      <url>http://www.ibiblio.net/pub/packages/maven2</url>
      <mirrorOf>central</mirrorOf>
      <!-- United States, North Carolina  Fast-->
    </mirror>

 

 <repositories>
  <repository>
   <id>offical</id>
   <name>Maven Official Repository</name>
   <url>http://repo1.maven.org/maven2</url>
   <snapshots>
    <enabled>false</enabled>
   </snapshots>
  </repository>
  <repository>
   <id>jboss</id>
   <name>Jboss Repository</name>
   <url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
   <snapshots>
    <enabled>false</enabled>
   </snapshots>
  </repository>
 </repositories>

分享到:
评论

相关推荐

    Maven pom.xml与settings.xml详解

    在Maven的世界里,`pom.xml`和`settings.xml`是两个至关重要的配置文件,它们共同决定了Maven项目的构建过程和环境配置。`pom.xml`(Project Object Model)文件是每个Maven项目的核心,它包含了项目的基本信息、...

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

    史上最全的Maven的Pom.xml文件详解 Maven是Java领域最流行的构建工具之一,其核心配置文件是Pom.xml。在Pom.xml文件中,我们可以定义项目的基本信息、依赖关系、构建过程、测试环境等。下面,我们将详细解析Pom.xml...

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

    该jar包功能,可以在一个properties文件里面定义jdbc.url=${url},在另一个properties文件定义具体的值,通过该jar可以获取到哪个具体的值。下载之后,自行安装到本地...具体pom.xml配置使用可以参考网络其他博文,谢谢

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

    一、Idea关联的maven本地仓库配置文件settings.xml (1)必须使用默认文件名 D:\developsoft\javaweb\commonPlugins\maven\apache-maven-3.8.1_first\conf\settings.xml ...pom-maven-spring-CusConfigV1不推荐使用.xml

    maven项目pom.xml最详细配置

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

    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 build之pom.xml文件中的Build配置

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

    maven pom.xml详解

    ### Maven POM.xml 文件详解 #### 一、概述 POM (Project Object Model) 是 Maven 构建项目的核心配置文件,采用 XML 格式编写。它定义了项目的元数据、依赖关系、构建逻辑等信息。POM 文件允许开发者通过简单的...

    Maven_pom.xml常用配置解析

    Maven pom.xml 常用配置解析 Maven 项目对象模型(POM)是 Maven 的核心概念,它是 Maven 项目的描述文件,用于定义项目的坐标、依赖关系、编译、打包、测试、部署等过程。pom.xml 文件是 Maven 项目的核心配置文件...

    maven pom.xml 详解

    maven 中 pom.xml 文件详解

    MAVEN pom.xml 配置oracle driver jar

    本主题将深入探讨如何在Maven的配置文件`pom.xml`中添加Oracle数据库驱动(jar)以实现与Oracle数据库的连接。首先,我们需要理解`pom.xml`文件的作用,它是Maven项目的元数据文件,包含了项目的信息、构建指令以及...

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

    首先,`pom.xml`是Maven项目对象模型(Project Object Model)的配置文件,它定义了项目的构建过程、依赖关系、项目信息等。在`pom.xml`中,开发者可以声明项目所需的外部库,Maven会自动下载这些库以满足项目构建...

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

    "Maven 项目 pom.xml 中 parent 标签的使用" Maven 项目 pom.xml 文件中的 parent 标签是 Maven 项目管理依赖的核心组件之一。parent 标签的使用可以简化项目间的依赖管理,使得项目结构更加清晰、易于维护。 ...

    spirng mvc maven pom.xml

    spirng mvc maven pom.xml

    SSH框架Maven项目pom.xml

    SSH框架Maven项目pom.xml

    pom.xml android maven 工程

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

    常用pom.xml文件.zip

    《深入解析Maven工程中的pom.xml配置》 在软件开发过程中,管理依赖关系是一项繁重的任务,而Apache Maven提供了一种优雅的方式来处理这个问题。本文将深入探讨Maven工程的核心配置文件——pom.xml,以及它在项目...

    Maven之pom.xml配置文件详解.pdf

    本篇详解主要针对Maven中的核心配置文件——pom.xml进行深入解析,帮助理解和应用其配置。 首先,pom.xml是每个使用Maven的项目的必配文件,它位于项目的根目录下,用于定义项目的构建配置和其他信息。配置文件的...

    eclipse安装maven插件,处理无Maven Pom editor打开方式问题

    在Eclipse中安装Maven插件,可以方便开发者在IDE内进行Maven项目的操作,解决无法用Maven Pom editor打开pom.xml文件的问题。以下是对这个主题的详细说明: 1. **Maven Pom Editor**: Maven的pom.xml文件是项目...

Global site tag (gtag.js) - Google Analytics