pom.xml 2.4 KB

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