`
ssydxa219
  • 浏览: 611380 次
  • 性别: 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>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics