Skip to content

Commit

Permalink
1. [PROJECT]::update antlr options.
Browse files Browse the repository at this point in the history
  • Loading branch information
whtoo committed Oct 9, 2023
1 parent 6ebb2f4 commit 90dcfc0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
1 change: 0 additions & 1 deletion ep20/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
</executions>
<configuration>
<visitor>true</visitor>
<sourceDirectory>${basedir}/${parser.g4.file}</sourceDirectory>
<!-- 指定 ANTLR4 生成代码的目录 -->
<outputDirectory>${basedir}/src/main/java/org/teachfx/antlr4/ep20/parser</outputDirectory>
</configuration>
Expand Down
26 changes: 21 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,20 @@
</dependencies>

<build>

<!-- 定义运行目标 -->
<plugins>
<!-- 编译插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.11.0</version>
<configuration>

<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>

</plugin>

<!-- Maven JAR 插件 -->
Expand All @@ -94,15 +97,28 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<!-- <executions>-->
<executions>
<!-- <execution>-->
<!-- <id>print-jdk-info</id>-->
<!-- <phase>validate</phase>-->
<!-- <goals>-->
<!-- <goal>exec</goal>-->
<!-- </goals>-->
<!-- <configuration>-->
<!-- <executable>java</executable>-->
<!-- <arguments>-->
<!-- <argument>-version</argument>-->
<!-- </arguments>-->
<!-- </configuration>-->
<!-- </execution>-->
<!-- <execution>-->
<!-- <id>run</id>-->
<!-- <phase>package</phase>-->
<!-- <goals>-->
<!-- <goal>java</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
</executions>
<configuration>
<mainClass>${run.main.entry}</mainClass> <!-- 替换为你的主类 -->
</configuration>
Expand All @@ -111,7 +127,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>3.4.1</version>
<executions>
<execution>
<phase>package</phase>
Expand All @@ -129,7 +145,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>
<version>3.3.1</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
Expand Down

0 comments on commit 90dcfc0

Please sign in to comment.