You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one
  4. ~ or more contributor license agreements. See the NOTICE file
  5. ~ distributed with this work for additional information
  6. ~ regarding copyright ownership. The ASF licenses this file
  7. ~ to you under the Apache License, Version 2.0 (the
  8. ~ "License"); you may not use this file except in compliance
  9. ~ with the License. You may obtain a copy of the License at
  10. ~
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~
  13. ~ Unless required by applicable law or agreed to in writing,
  14. ~ software distributed under the License is distributed on an
  15. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. ~ KIND, either express or implied. See the License for the
  17. ~ specific language governing permissions and limitations
  18. ~ under the License.
  19. -->
  20. <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/maven-v4_0_0.xsd">
  21. <parent>
  22. <groupId>org.apache.maven.archiva</groupId>
  23. <artifactId>archiva-base</artifactId>
  24. <version>1.0.3-SNAPSHOT</version>
  25. </parent>
  26. <modelVersion>4.0.0</modelVersion>
  27. <artifactId>archiva-model</artifactId>
  28. <name>Archiva Base :: Model</name>
  29. <dependencies>
  30. <dependency>
  31. <groupId>org.apache.maven.archiva</groupId>
  32. <artifactId>archiva-common</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.codehaus.plexus</groupId>
  36. <artifactId>plexus-utils</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>javax.jdo</groupId>
  40. <artifactId>jdo2-api</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.codehaus.plexus</groupId>
  44. <artifactId>plexus-container-default</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>commons-lang</groupId>
  48. <artifactId>commons-lang</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>commons-collections</groupId>
  52. <artifactId>commons-collections</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>commons-io</groupId>
  56. <artifactId>commons-io</artifactId>
  57. </dependency>
  58. </dependencies>
  59. <build>
  60. <plugins>
  61. <plugin>
  62. <groupId>org.codehaus.plexus</groupId>
  63. <artifactId>plexus-maven-plugin</artifactId>
  64. </plugin>
  65. <plugin>
  66. <groupId>org.codehaus.modello</groupId>
  67. <artifactId>modello-maven-plugin</artifactId>
  68. <version>1.0-alpha-17</version>
  69. <configuration>
  70. <version>1.0.0</version>
  71. <packageWithVersion>false</packageWithVersion>
  72. <model>src/main/mdo/archiva-base.xml</model>
  73. </configuration>
  74. <executions>
  75. <execution>
  76. <id>archiva-base</id>
  77. <goals>
  78. <goal>java</goal>
  79. <goal>xsd</goal>
  80. <goal>jpox-jdo-mapping</goal>
  81. <goal>jpox-metadata-class</goal>
  82. <!--
  83. <goal>xpp3-writer</goal>
  84. <goal>xpp3-reader</goal>
  85. -->
  86. </goals>
  87. </execution>
  88. </executions>
  89. </plugin>
  90. <plugin>
  91. <groupId>org.codehaus.mojo</groupId>
  92. <artifactId>jpox-maven-plugin</artifactId>
  93. <version>1.1.7</version>
  94. <dependencies>
  95. <dependency>
  96. <groupId>org.apache.derby</groupId>
  97. <artifactId>derby</artifactId>
  98. <version>10.2.1.6</version>
  99. </dependency>
  100. </dependencies>
  101. <executions>
  102. <!-- TODO: put this into a profile
  103. <execution>
  104. <id>create-ddl</id>
  105. <phase>generate-test-resources</phase>
  106. <goals>
  107. <goal>schema-create</goal>
  108. </goals>
  109. <configuration>
  110. <outputFile>${basedir}/target/classes/org/apache/maven/archiva/model/schema.ddl</outputFile>
  111. <toolProperties>
  112. <property>
  113. <name>javax.jdo.option.ConnectionDriverName</name>
  114. <value>org.apache.derby.jdbc.EmbeddedDriver</value>
  115. </property>
  116. <property>
  117. <name>javax.jdo.option.ConnectionURL</name>
  118. <value>jdbc:derby:target/jdo-schema-create;create=true</value>
  119. </property>
  120. <property>
  121. <name>javax.jdo.option.ConnectionUserName</name>
  122. <value>sa</value>
  123. </property>
  124. <property>
  125. <name>javax.jdo.option.ConnectionPassword</name>
  126. <value></value>
  127. </property>
  128. <property>
  129. <name>log4j.configuration</name>
  130. <value>${basedir}/src/test/resources/log4j.xml</value>
  131. </property>
  132. <property>
  133. <name>org.jpox.autoCreateTables</name>
  134. <value>true</value>
  135. </property>
  136. </toolProperties>
  137. </configuration>
  138. </execution>
  139. -->
  140. <execution>
  141. <id>enhance</id>
  142. <goals>
  143. <goal>enhance</goal>
  144. </goals>
  145. </execution>
  146. </executions>
  147. </plugin>
  148. <plugin>
  149. <groupId>org.codehaus.mojo</groupId>
  150. <artifactId>cobertura-maven-plugin</artifactId>
  151. <configuration>
  152. <instrumentation>
  153. <!-- exclude generated -->
  154. <excludes>
  155. <exclude>org/apache/maven/archiva/reporting/model/**</exclude>
  156. </excludes>
  157. </instrumentation>
  158. </configuration>
  159. </plugin>
  160. </plugins>
  161. </build>
  162. </project>