pom.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4. <parent>
  5. <groupId>com.dianping.cat</groupId>
  6. <artifactId>parent</artifactId>
  7. <version>2.0.0</version>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <artifactId>cat-consumer</artifactId>
  11. <name>cat-consumer</name>
  12. <packaging>jar</packaging>
  13. <dependencies>
  14. <dependency>
  15. <groupId>com.dianping.cat</groupId>
  16. <artifactId>cat-core</artifactId>
  17. </dependency>
  18. <dependency>
  19. <groupId>com.dianping.cat</groupId>
  20. <artifactId>cat-hadoop</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.unidal.framework</groupId>
  24. <artifactId>test-framework</artifactId>
  25. <scope>test</scope>
  26. </dependency>
  27. <dependency>
  28. <groupId>com.google.code.gson</groupId>
  29. <artifactId>gson</artifactId>
  30. <scope>test</scope>
  31. </dependency>
  32. <dependency>
  33. <groupId>mysql</groupId>
  34. <artifactId>mysql-connector-java</artifactId>
  35. <scope>runtime</scope>
  36. </dependency>
  37. </dependencies>
  38. <build>
  39. <plugins>
  40. <plugin>
  41. <groupId>org.unidal.maven.plugins</groupId>
  42. <artifactId>codegen-maven-plugin</artifactId>
  43. <executions>
  44. <execution>
  45. <id>generate report models</id>
  46. <phase>generate-sources</phase>
  47. <goals>
  48. <goal>dal-model</goal>
  49. </goals>
  50. <configuration>
  51. <manifest>${basedir}/src/main/resources/META-INF/dal/model/transaction-report-manifest.xml,
  52. ${basedir}/src/main/resources/META-INF/dal/model/all-report-manifest.xml,
  53. ${basedir}/src/main/resources/META-INF/dal/model/event-report-manifest.xml,
  54. ${basedir}/src/main/resources/META-INF/dal/model/problem-report-manifest.xml,
  55. ${basedir}/src/main/resources/META-INF/dal/model/heartbeat-report-manifest.xml,
  56. ${basedir}/src/main/resources/META-INF/dal/model/state-report-manifest.xml,
  57. ${basedir}/src/main/resources/META-INF/dal/model/top-report-manifest.xml,
  58. ${basedir}/src/main/resources/META-INF/dal/model/company-manifest.xml,
  59. ${basedir}/src/main/resources/META-INF/dal/model/cross-report-manifest.xml,
  60. ${basedir}/src/main/resources/META-INF/dal/model/matrix-report-manifest.xml,
  61. ${basedir}/src/main/resources/META-INF/dal/model/metric-report-manifest.xml,
  62. ${basedir}/src/main/resources/META-INF/dal/model/dependency-report-manifest.xml,
  63. ${basedir}/src/main/resources/META-INF/dal/model/metric-config-manifest.xml,
  64. ${basedir}/src/main/resources/META-INF/dal/model/storage-report-manifest.xml,
  65. </manifest>
  66. </configuration>
  67. </execution>
  68. <execution>
  69. <id>generate dal jdbc model</id>
  70. <phase>generate-sources</phase>
  71. <goals>
  72. <goal>dal-jdbc</goal>
  73. </goals>
  74. <configuration>
  75. <manifest><![CDATA[${basedir}/src/main/resources/META-INF/dal/jdbc/report-manifest.xml,]]> <![CDATA[${basedir}/src/main/resources/META-INF/dal/jdbc/report-manifest.xml,]]></manifest>
  76. </configuration>
  77. </execution>
  78. </executions>
  79. </plugin>
  80. <plugin>
  81. <groupId>org.unidal.maven.plugins</groupId>
  82. <artifactId>plexus-maven-plugin</artifactId>
  83. <executions>
  84. <execution>
  85. <id>generate plexus component descriptor</id>
  86. <phase>process-classes</phase>
  87. <goals>
  88. <goal>plexus</goal>
  89. </goals>
  90. <configuration>
  91. <className>com.dianping.cat.consumer.build.ComponentsConfigurator</className>
  92. </configuration>
  93. </execution>
  94. </executions>
  95. </plugin>
  96. </plugins>
  97. </build>
  98. <properties>
  99. <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
  100. </properties>
  101. </project>