Facebook-oss-pom 是一个基于 POM 的部署在 oss.sonatype.org 上的facebook 上开源项目。它可以任随意调用任何基于 POM 的新项目而不用进行二次编辑修改。Facebook OSS POM 平台致力于通过 Maven 的中央资源库来建立不同的组件和开发包。
示例:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.facebook</groupId> <artifactId>facebook-oss-pom</artifactId> <version> ... current version ...</version> </parent> <groupId> ... group id of the new project ... </groupId> <artifactId> ... artifact id of the new project ... </artifactId> <version> ... version of the new project ... </version> <packaging> ... jar|pom ... </packaging> <description> ... description of the new project ... </description> <name>${project.artifactId}</name> <inceptionYear>2013</inceptionYear> <scm> <connection> ... scm read only connection ... </connection> <developerConnection>... scm read write connection ... </developerConnection> <url> ... project url ... </url> </scm> <distributionManagement/> <developers/> <organization/> ... </project>