xref: /aosp_15_r20/external/javaparser/javaparser-core/pom.xml (revision f0340d8e30c177f9125cc02e7b512609509b136e)
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.14.10-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            <!-- Generate an OSGi-enabled MANIFEST during the build -->
51            <plugin>
52                <groupId>biz.aQute.bnd</groupId>
53                <artifactId>bnd-maven-plugin</artifactId>
54                <executions>
55                    <execution>
56                        <goals>
57                            <goal>bnd-process</goal>
58                        </goals>
59                    </execution>
60                </executions>
61            </plugin>
62            <plugin>
63                <groupId>org.apache.maven.plugins</groupId>
64                <artifactId>maven-jar-plugin</artifactId>
65                <configuration>
66                    <archive>
67                        <!-- Make sure the bnd-generated manifest is picked up, see MJAR-193 -->
68                        <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
69                        <!-- Set module name -->
70                        <manifestEntries>
71                            <Automatic-Module-Name>com.github.javaparser.core</Automatic-Module-Name>
72                        </manifestEntries>
73                    </archive>
74                </configuration>
75            </plugin>
76            <plugin>
77                <groupId>org.apache.maven.plugins</groupId>
78                <artifactId>maven-compiler-plugin</artifactId>
79                <configuration>
80                    <compilerArgs>
81                        <!-- This stores method parameter names in the class file, which are used by the metamodel generator -->
82                        <arg>-parameters</arg>
83                    </compilerArgs>
84                </configuration>
85            </plugin>
86            <plugin>
87                <groupId>org.codehaus.mojo</groupId>
88                <artifactId>build-helper-maven-plugin</artifactId>
89                <executions>
90                    <execution>
91                        <id>add-source</id>
92                        <phase>generate-sources</phase>
93                        <goals>
94                            <goal>add-source</goal>
95                        </goals>
96                        <configuration>
97                            <sources>
98                                <source>src/main/javacc-support</source>
99                            </sources>
100                        </configuration>
101                    </execution>
102                </executions>
103            </plugin>
104            <plugin>
105                <groupId>org.codehaus.mojo</groupId>
106                <artifactId>templating-maven-plugin</artifactId>
107                <version>1.0.0</version>
108                <executions>
109                    <execution>
110                        <id>filter-src</id>
111                        <goals>
112                            <goal>filter-sources</goal>
113                        </goals>
114                    </execution>
115                </executions>
116            </plugin>
117        </plugins>
118    </build>
119
120</project>
121