1 <?xml version="1.0" encoding="UTF-8"?> 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 5 6 <modelVersion>4.0.0</modelVersion> 7 <groupId>org.antlr</groupId> 8 <artifactId>antlr3-maven-archetype</artifactId> 9 <version>3.4</version> 10 <packaging>maven-archetype</packaging> 11 <name>ANTLR3 Maven Archetype 3.4</name> 12 13 <properties> 14 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 15 </properties> 16 17 <!-- 18 19 Inherit from the ANTLR master pom, which tells us what 20 version we are and allows us to inherit dependencies 21 and so on. 22 23 Unfortunately, because of a bug in the archetype plugin 24 we cannot use the parent pom because it causes the 25 artifactId in the generated pom to be set to antlr3-maven-archetype 26 We will reinstate this parent usage when that is fixed. 27 28 <parent> 29 <groupId>org.antlr</groupId> 30 <artifactId>antlr-master</artifactId> 31 <version>3.4</version> 32 </parent> 33 --> 34 <!-- 35 The ANTLR Maven artifacts are now released via the Sonotype OSS 36 repository, which means that they are synced to Maven central 37 within a few minutes of hitting the release repo for Sonotype. 38 To enable this, we inherit from the Sonotype provided parent 39 pom. However, we must also configure our .m2/settings.xml to include 40 the snapshot and staging server and the sonotype password. This 41 means that only ANTLR developers can released the artifacts, but 42 anyone can build locally. 43 --> 44 <parent> 45 <groupId>org.sonatype.oss</groupId> 46 <artifactId>oss-parent</artifactId> 47 <version>7</version> 48 </parent> 49 50 <profiles> 51 <profile> 52 <id>release-sign-artifacts</id> 53 <activation> 54 <property> 55 <name>deploy</name> 56 <value>true</value> 57 </property> 58 </activation> 59 <build> 60 <plugins> 61 <plugin> 62 <groupId>org.apache.maven.plugins</groupId> 63 <artifactId>maven-gpg-plugin</artifactId> 64 <version>1.3</version> 65 <executions> 66 <execution> 67 <id>sign-artifacts</id> 68 <phase>verify</phase> 69 <goals> 70 <goal>sign</goal> 71 </goals> 72 </execution> 73 </executions> 74 </plugin> 75 </plugins> 76 </build> 77 </profile> 78 </profiles> 79 80 <build> 81 82 <extensions> 83 84 <extension> 85 <groupId>org.apache.maven.archetype</groupId> 86 <artifactId>archetype-packaging</artifactId> 87 <version>2.0</version> 88 </extension> 89 90 </extensions> 91 92 <plugins> 93 94 <plugin> 95 <artifactId>maven-archetype-plugin</artifactId> 96 <version>2.0</version> 97 <extensions>true</extensions> 98 </plugin> 99 100 <plugin> 101 <groupId>org.apache.maven.plugins</groupId> 102 <artifactId>maven-source-plugin</artifactId> 103 <version>2.1.2</version> 104 <executions> 105 <execution> 106 <id>attach-sources</id> 107 <goals> 108 <goal>jar</goal> 109 </goals> 110 </execution> 111 </executions> 112 </plugin> 113 114 <plugin> 115 <groupId>org.apache.maven.plugins</groupId> 116 <artifactId>maven-javadoc-plugin</artifactId> 117 <version>2.8</version> 118 <executions> 119 <execution> 120 <id>attach-javadocs</id> 121 <goals> 122 <goal>jar</goal> 123 </goals> 124 </execution> 125 </executions> 126 </plugin> 127 128 </plugins> 129 130 </build> 131 132 </project> 133