/
dnlkk
/
DnlkkScript
Обзор
Документация
Войти
/
dnlkk
/
DnlkkScript
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
pom.xml
76 строк
3 KB
Putin Pavel Alexandrovich
feat: tree view via tabs draft
16 мар 2024, 10:14
16 мар 2024, 10:14
51cd580
Код
Авторство
О чём код?
<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"> <modelVersion>4.0.0</modelVersion> <groupId>ru.vsu.dnlkkandco</groupId> <artifactId>dnlkk-script</artifactId> <version>1.0</version> <packaging>jar</packaging> <name>dnlkk-script</name> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>org.antlr</groupId> <artifactId>antlr4-runtime</artifactId> <version>4.13.1</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.1</version> </dependency> </dependencies> <build> <plugins> <!-- This plugin sets up maven to use Java 7 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>11</source> <target>11</target> </configuration> </plugin> <!-- Plugin to compile the g4 files ahead of the java files See https://github.com/antlr/antlr4/blob/master/antlr4-maven-plugin/src/site/apt/examples/simple.apt.vm Except that the grammar does not need to contain the package declaration as stated in the documentation (I do not know why) To use this plugin, type: mvn antlr4:antlr4 In any case, Maven will invoke this plugin before the Java source is compiled --> <plugin> <groupId>org.antlr</groupId> <artifactId>antlr4-maven-plugin</artifactId> <version>4.13.1</version> <executions> <execution> <goals> <goal>antlr4</goal> </goals> </execution> </executions> </plugin> <!-- plugin to create a self-contained portable package This allows us to execute our application like this: java -cp target/array-init-1.0-jar-with-dependencies.jar org.abcd.examples.ArrayInit.ArrayInit --> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> <executions> <execution> <id>simple-command</id> <phase>package</phase> </execution> </executions> </plugin> </plugins> </build> </project>