pom.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. 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. <artifactId>java-1.2</artifactId>
  5. <version>0.0.1-SNAPSHOT</version>
  6. <build>
  7. <plugins>
  8. <plugin>
  9. <groupId>org.codehaus.mojo</groupId>
  10. <artifactId>build-helper-maven-plugin</artifactId>
  11. <version>3.2.0</version>
  12. <configuration>
  13. <sources>
  14. <source>src/main/antlr</source>
  15. <source>target/generated-sources/antlr</source>
  16. </sources>
  17. </configuration>
  18. <executions>
  19. <execution>
  20. <id>add-antlr-source</id>
  21. <phase>generate-sources</phase>
  22. <goals>
  23. <goal>add-source</goal>
  24. </goals>
  25. </execution>
  26. </executions>
  27. </plugin>
  28. <plugin>
  29. <groupId>org.codehaus.mojo</groupId>
  30. <artifactId>antlr-maven-plugin</artifactId>
  31. <version>2.2</version>
  32. <configuration>
  33. <!-- Comma separated list of grammar files or pattern grammar files
  34. By default, grammar file(s) is in ${basedir}/src/main/antlr -->
  35. <grammars>java.g</grammars>
  36. <!-- <grammars>*.g</grammars> -->
  37. </configuration>
  38. <executions>
  39. <execution>
  40. <goals>
  41. <goal>generate</goal>
  42. </goals>
  43. </execution>
  44. </executions>
  45. </plugin>
  46. <plugin>
  47. <groupId>org.apache.maven.plugins</groupId>
  48. <artifactId>maven-jar-plugin</artifactId>
  49. <configuration>
  50. <archive>
  51. <manifest>
  52. <mainClass>de.jplag.java.Parser</mainClass>
  53. <packageName>jplag.java</packageName>
  54. </manifest>
  55. </archive>
  56. </configuration>
  57. </plugin>
  58. </plugins>
  59. </build>
  60. <dependencies>
  61. <dependency>
  62. <groupId>antlr</groupId>
  63. <artifactId>antlr</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>de.jplag</groupId>
  67. <artifactId>frontend-utils</artifactId>
  68. </dependency>
  69. </dependencies>
  70. <parent>
  71. <groupId>de.jplag</groupId>
  72. <artifactId>parent</artifactId>
  73. <version>0.3-SNAPSHOT</version>
  74. <relativePath>../jplag.parent/pom.xml</relativePath>
  75. </parent>
  76. </project>