为 pom.xml 添加组织,法律和开发人员信息


转载请声明出处:
http://blog.csdn.net/luhuajcdd/article/details/7966489


为 pom.xml 添加组织,法律和开发人员信息: 


Xml代码 
  1. <?xml version="1.0"?>  
  2. <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"  
  3.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">  
  4.   <modelVersion>4.0.0</modelVersion>  
  5.     
  6. .....  
  7.   
  8.   <licenses>  
  9.     <license>  
  10.         <name>Apache 2</name>  
  11.         <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>  
  12.         <distribution>repo</distribution>  
  13.         <comments>A business-friendly OSS license</comments>  
  14.     </license>  
  15.   </licenses>  
  16.   <organization>  
  17.     <name></name>  
  18.     <url></url>  
  19.   </organization>  
  20.   <developers>  
  21.     <developer>  
  22.         <id>daniel</id>  
  23.         <name>luhua</name>  
  24.         <email>luhuazhuce@163.com</email>  
  25.         <url>http://blog.csdn.net/luhuajcdd/article/list</url>  
  26.         <organization></organization>  
  27.         <organizationUrl></organizationUrl>  
  28.         <roles>  
  29.             <role>developer</role>  
  30.         </roles>  
  31.         <timezone>-6</timezone>  
  32.     </developer>  
  33.     </developers>  
  34.   
  35.   <properties>  
  36.     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>  
  37.   </properties>  
  38.   <dependencies>  
  39.     <dependency>  
  40.       <groupId>junit</groupId>  
  41.       <artifactId>junit</artifactId>  
  42.       <version>3.8.1</version>  
  43.       <scope>test</scope>  
  44.     </dependency>  
  45.   </dependencies>  
  46. </project>  
 “为 pom.xml 添加组织,法律和开发人员信息” 中的省略号是为了使代码清

单变得简短。


原文地址:https://www.cnblogs.com/java20130722/p/3207318.html