1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  2.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 
  3.     <modelVersion>4.0.0modelVersion> 
  4.      
  5.     <groupId>com.juvenxu.mvnbookgroupId> 
  6.      
  7.     <artifactId>hello-worldartifactId> 
  8.     <version>1.0-SNAPSHOTversion> 
  9.     <name>Maven Hello word Projectname> 
  10.  
  11.     <properties> 
  12.         <project.build.sourceEncoding>UTF-8project.build.sourceEncoding> 
  13.     properties> 
  14.  
  15.     <dependencies> 
  16.         <dependency> 
  17.             <groupId>junitgroupId> 
  18.             <artifactId>junitartifactId> 
  19.             <version>4.7version> 
  20.             <scope>testscope> 
  21.         dependency> 
  22.  
  23.         <dependency> 
  24.             <groupId>com.oracle.qudonggroupId> 
  25.             <artifactId>jdbc-qudongartifactId> 
  26.             <version>10version> 
  27.         dependency> 
  28.         <dependency> 
  29.             <groupId>com.juvenxu.mvnbook.accountgroupId> 
  30.              
  31.             <artifactId>account-emailartifactId> 
  32.             <version>1.0-SNAPSHOTversion> 
  33.         dependency> 
  34.  
  35.     dependencies> 
  36.  
  37.  
  38.     <distributionManagement> 
  39.         <repository> 
  40.             <id>releasesid> 
  41.             <name>Internal Releasesname> 
  42.             <url>http://localhost:8080/nexus-2.1.1/content/repositories/myHosted/url> 
  43.         repository> 
  44.         <snapshotRepository> 
  45.             <id>Snapshotsid> 
  46.             <name>Internal Snapshotsname> 
  47.             <url>http://localhost:8080/nexus-2.1.1/content/repositories/snapshots/url> 
  48.         snapshotRepository> 
  49.     distributionManagement> 
  50.  
  51.  
  52. project> 
   
   
   
   
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  2.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 
  3.     <modelVersion>4.0.0modelVersion> 
  4.      
  5.     <groupId>com.juvenxu.mvnbook.accountgroupId> 
  6.      
  7.     <artifactId>account-emailartifactId> 
  8.     <version>1.0-SNAPSHOTversion> 
  9.     <name>Maven Hello word Projectname> 
  10.      
  11.     <properties> 
  12.         <project.build.sourceEncoding>UTF-8project.build.sourceEncoding> 
  13.         <springframework.version>2.5.6springframework.version> 
  14.     properties> 
  15.      
  16.         <dependencies> 
  17.             <dependency> 
  18.                 <groupId>org.springframeworkgroupId> 
  19.                 <artifactId>spring-coreartifactId> 
  20.                 <version>${springframework.version}version> 
  21.             dependency> 
  22.              
  23.             <dependency> 
  24.                 <groupId>org.springframeworkgroupId> 
  25.                 <artifactId>spring-beansartifactId> 
  26.                 <version>${springframework.version}version> 
  27.             dependency> 
  28.              
  29.             <dependency> 
  30.                 <groupId>org.springframeworkgroupId> 
  31.                 <artifactId>spring-contextartifactId> 
  32.                 <version>${springframework.version}version> 
  33.             dependency> 
  34.              
  35.             <dependency> 
  36.                 <groupId>org.springframeworkgroupId> 
  37.                 <artifactId>spring-context-supportartifactId> 
  38.                 <version>${springframework.version}version> 
  39.             dependency> 
  40.              
  41.             <dependency> 
  42.                 <groupId>javax.mailgroupId> 
  43.                 <artifactId>mailartifactId> 
  44.                 <version>1.4.1version> 
  45.             dependency> 
  46.              
  47.             <dependency> 
  48.                 <groupId>junitgroupId> 
  49.                 <artifactId>junitartifactId> 
  50.                 <version>4.7version> 
  51.                 <scope>testscope> 
  52.             dependency> 
  53.              
  54.             <dependency> 
  55.                 <groupId>com.icegreengroupId> 
  56.                 <artifactId>greenmailartifactId> 
  57.                 <version>1.3.1bversion> 
  58.                 <scope>testscope> 
  59.             dependency> 
  60.         dependencies> 
  61.          
  62.