为 pom.xml 添加组织,法律和开发人员信息:
<?xml version="1.0"?> <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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> ..... <licenses> <license> <name>Apache 2</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> <distribution>repo</distribution> <comments>A business-friendly OSS license</comments> </license> </licenses> <organization> <name></name> <url></url> </organization> <developers> <developer> <id>daniel</id> <name>luhua</name> <email>luhuazhuce@163.com</email> <url>http://blog.csdn.net/luhuajcdd/article/list</url> <organization></organization> <organizationUrl></organizationUrl> <roles> <role>developer</role> </roles> <timezone>-6</timezone> </developer> </developers> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> </project>“为 pom.xml 添加组织,法律和开发人员信息” 中的省略号是为了使代码清
单变得简短。