1<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"> 2 <parent> 3 <artifactId>javaparser-parent</artifactId> 4 <groupId>com.github.javaparser</groupId> 5 <version>3.5.16-SNAPSHOT</version> 6 </parent> 7 <modelVersion>4.0.0</modelVersion> 8 9 <artifactId>javaparser-core</artifactId> 10 <packaging>jar</packaging> 11 <description>The core parser functionality. This may be all you need.</description> 12 13 <licenses> 14 <license> 15 <name>GNU Lesser General Public License</name> 16 <url>http://www.gnu.org/licenses/lgpl-3.0.html</url> 17 <distribution>repo</distribution> 18 </license> 19 <license> 20 <name>Apache License, Version 2.0</name> 21 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> 22 <distribution>repo</distribution> 23 <comments>A business-friendly OSS license</comments> 24 </license> 25 </licenses> 26 27 <properties> 28 <java.version>1.8</java.version> 29 <build.timestamp>${maven.build.timestamp}</build.timestamp> 30 </properties> 31 32 <build> 33 <plugins> 34 <plugin> 35 <groupId>com.helger.maven</groupId> 36 <artifactId>ph-javacc-maven-plugin</artifactId> 37 <executions> 38 <execution> 39 <id>javacc</id> 40 <goals> 41 <goal>javacc</goal> 42 </goals> 43 <configuration> 44 <grammarEncoding>${project.build.sourceEncoding}</grammarEncoding> 45 <jdkVersion>${java.version}</jdkVersion> 46 </configuration> 47 </execution> 48 </executions> 49 </plugin> 50 <plugin> 51 <groupId>org.codehaus.mojo</groupId> 52 <artifactId>animal-sniffer-maven-plugin</artifactId> 53 <configuration> 54 <signature> 55 <!-- Make sure only the API of this JDK is used --> 56 <groupId>org.codehaus.mojo.signature</groupId> 57 <artifactId>java18</artifactId> 58 <version>1.0</version> 59 </signature> 60 </configuration> 61 <executions> 62 <execution> 63 <id>animal-sniffer</id> 64 <phase>verify</phase> 65 <goals> 66 <goal>check</goal> 67 </goals> 68 </execution> 69 </executions> 70 </plugin> 71 <plugin> 72 <groupId>org.apache.maven.plugins</groupId> 73 <artifactId>maven-enforcer-plugin</artifactId> 74 <executions> 75 <execution> 76 <id>enforce-versions</id> 77 <phase>verify</phase> 78 <goals> 79 <goal>enforce</goal> 80 </goals> 81 <configuration> 82 <rules> 83 <requireJavaVersion> 84 <!-- Make sure a compiler of this version is used --> 85 <version>${java.version}</version> 86 </requireJavaVersion> 87 <enforceBytecodeVersion> 88 <!-- Make sure the dependencies are compiled for our Java version --> 89 <maxJdkVersion>${java.version}</maxJdkVersion> 90 </enforceBytecodeVersion> 91 </rules> 92 </configuration> 93 </execution> 94 </executions> 95 <dependencies> 96 <dependency> 97 <groupId>org.codehaus.mojo</groupId> 98 <artifactId>extra-enforcer-rules</artifactId> 99 <version>1.0-beta-6</version> 100 </dependency> 101 </dependencies> 102 </plugin> 103 <!-- Generate an OSGi-enabled MANIFEST during the build --> 104 <plugin> 105 <groupId>biz.aQute.bnd</groupId> 106 <artifactId>bnd-maven-plugin</artifactId> 107 <executions> 108 <execution> 109 <goals> 110 <goal>bnd-process</goal> 111 </goals> 112 </execution> 113 </executions> 114 </plugin> 115 <plugin> 116 <groupId>org.apache.maven.plugins</groupId> 117 <artifactId>maven-jar-plugin</artifactId> 118 <configuration> 119 <archive> 120 <!-- Make sure the bnd-generated manifest is picked up, see MJAR-193 --> 121 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> 122 <!-- Set module name --> 123 <manifestEntries> 124 <Automatic-Module-Name>com.github.javaparser.core</Automatic-Module-Name> 125 </manifestEntries> 126 </archive> 127 </configuration> 128 </plugin> 129 <plugin> 130 <groupId>org.apache.maven.plugins</groupId> 131 <artifactId>maven-compiler-plugin</artifactId> 132 <configuration> 133 <compilerArgs> 134 <!-- This stores method parameter names in the class file, which are used by the metamodel generator --> 135 <arg>-parameters</arg> 136 </compilerArgs> 137 </configuration> 138 </plugin> 139 <plugin> 140 <groupId>org.codehaus.mojo</groupId> 141 <artifactId>build-helper-maven-plugin</artifactId> 142 <executions> 143 <execution> 144 <id>add-source</id> 145 <phase>generate-sources</phase> 146 <goals> 147 <goal>add-source</goal> 148 </goals> 149 <configuration> 150 <sources> 151 <source>src/main/javacc-support</source> 152 </sources> 153 </configuration> 154 </execution> 155 </executions> 156 </plugin> 157 <plugin> 158 <groupId>org.codehaus.mojo</groupId> 159 <artifactId>templating-maven-plugin</artifactId> 160 <version>1.0.0</version> 161 <executions> 162 <execution> 163 <id>filter-src</id> 164 <goals> 165 <goal>filter-sources</goal> 166 </goals> 167 </execution> 168 </executions> 169 </plugin> 170 </plugins> 171 </build> 172 173</project> 174