1 2 <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"> 3 <modelVersion>4.0.0</modelVersion> 4 5 <parent> 6 <groupId>com.tunnelvisionlabs</groupId> 7 <artifactId>antlr4-master</artifactId> 8 <version>4.5</version> 9 <relativePath>../..</relativePath> 10 </parent> 11 12 <artifactId>antlr4-runtime</artifactId> 13 14 <name>ANTLR 4 Runtime</name> 15 <description>The ANTLR 4 Runtime</description> 16 17 <properties> 18 <!-- Assumes dot is in the system path, or specified for the build. --> 19 <dot.path>dot</dot.path> 20 </properties> 21 22 <dependencies> 23 <dependency> 24 <groupId>org.abego.treelayout</groupId> 25 <artifactId>org.abego.treelayout.core</artifactId> 26 <version>1.0.1</version> 27 <scope>compile</scope> 28 </dependency> 29 30 <dependency> 31 <groupId>com.tunnelvisionlabs</groupId> 32 <artifactId>antlr4-annotations</artifactId> 33 <version>${project.version}</version> 34 <scope>compile</scope> 35 </dependency> 36 </dependencies> 37 38 <profiles> 39 <profile> 40 <id>sonatype-oss-release</id> 41 <build> 42 <plugins> 43 <plugin> 44 <groupId>us.bryon</groupId> 45 <artifactId>graphviz-maven-plugin</artifactId> 46 <version>1.0</version> 47 <executions> 48 <execution> 49 <goals> 50 <goal>dot</goal> 51 </goals> 52 <configuration> 53 <dot>${dot.path}</dot> 54 <destdir>${project.build.directory}/apidocs</destdir> 55 <output>svg</output> 56 </configuration> 57 </execution> 58 </executions> 59 </plugin> 60 61 <plugin> 62 <groupId>org.apache.maven.plugins</groupId> 63 <artifactId>maven-javadoc-plugin</artifactId> 64 <configuration> 65 <includeDependencySources>true</includeDependencySources> 66 <dependencySourceIncludes> 67 <dependencySourceInclude>org.antlr:*</dependencySourceInclude> 68 </dependencySourceIncludes> 69 </configuration> 70 </plugin> 71 72 <plugin> 73 <groupId>org.apache.maven.plugins</groupId> 74 <artifactId>maven-shade-plugin</artifactId> 75 <version>2.2</version> 76 <inherited>false</inherited> 77 <executions> 78 <execution> 79 <phase>package</phase> 80 <goals> 81 <goal>shade</goal> 82 </goals> 83 <configuration> 84 <minimizeJar>false</minimizeJar> 85 <createDependencyReducedPom>false</createDependencyReducedPom> 86 <shadedArtifactAttached>true</shadedArtifactAttached> 87 <createSourcesJar>true</createSourcesJar> 88 <shadedClassifierName>complete</shadedClassifierName> 89 </configuration> 90 </execution> 91 </executions> 92 </plugin> 93 </plugins> 94 </build> 95 </profile> 96 </profiles> 97 98 <build> 99 100 <sourceDirectory>src</sourceDirectory> 101 <resources> 102 <resource> 103 <directory>resources</directory> 104 </resource> 105 </resources> 106 107 <plugins> 108 <plugin> 109 <groupId>org.apache.maven.plugins</groupId> 110 <artifactId>maven-compiler-plugin</artifactId> 111 <configuration> 112 <compilerArgs> 113 <compilerArg>-processor</compilerArg> 114 <compilerArg>org.antlr.v4.runtime.misc.NullUsageProcessor</compilerArg> 115 </compilerArgs> 116 </configuration> 117 </plugin> 118 119 <plugin> 120 <groupId>com.tunnelvisionlabs</groupId> 121 <artifactId>antlr4-maven-plugin</artifactId> 122 <version>4.4.1</version> 123 <configuration> 124 <sourceDirectory>src</sourceDirectory> 125 </configuration> 126 <executions> 127 <execution> 128 <goals> 129 <goal>antlr4</goal> 130 </goals> 131 </execution> 132 </executions> 133 </plugin> 134 </plugins> 135 </build> 136 137 </project> 138