]> source.dussan.org Git - archiva.git/blob
52c185ea706a5855acec976d039618057c7db7f9
[archiva.git] /
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
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
23   <parent>
24     <groupId>org.apache.maven.archiva</groupId>
25     <artifactId>archiva-base</artifactId>
26     <version>1.0-SNAPSHOT</version>
27   </parent>
28   <modelVersion>4.0.0</modelVersion>
29   <artifactId>archiva-model</artifactId>
30   <name>Archiva Base :: Model</name>
31   <dependencies>
32     <dependency>
33       <groupId>org.apache.maven.archiva</groupId>
34       <artifactId>archiva-common</artifactId>
35     </dependency>
36     <dependency>
37       <groupId>org.codehaus.plexus</groupId>
38       <artifactId>plexus-utils</artifactId>
39     </dependency>
40     <dependency>
41       <groupId>javax.jdo</groupId>
42       <artifactId>jdo2-api</artifactId>
43       <version>2.0</version>
44     </dependency>
45     <dependency>
46       <groupId>org.codehaus.plexus</groupId>
47       <artifactId>plexus-container-default</artifactId>
48     </dependency>
49     <dependency>
50       <groupId>commons-lang</groupId>
51       <artifactId>commons-lang</artifactId>
52     </dependency>
53     <dependency>
54       <groupId>commons-io</groupId>
55       <artifactId>commons-io</artifactId>
56     </dependency>
57   </dependencies>
58   <build>
59     <plugins>
60       <plugin>
61         <groupId>org.codehaus.plexus</groupId>
62         <artifactId>plexus-maven-plugin</artifactId>
63       </plugin>
64       <plugin>
65         <groupId>org.codehaus.modello</groupId>
66         <artifactId>modello-maven-plugin</artifactId>
67         <version>1.0-alpha-15-SNAPSHOT</version>
68         <configuration>
69           <version>1.0.0</version>
70           <packageWithVersion>false</packageWithVersion>
71           <model>src/main/mdo/archiva-base.xml</model>
72         </configuration>
73         <executions>
74           <execution>
75             <id>archiva-base</id>
76             <goals>
77               <goal>java</goal>
78               <goal>xsd</goal>
79               <goal>jpox-jdo-mapping</goal>
80               <goal>jpox-metadata-class</goal>
81               <!--
82               <goal>xpp3-writer</goal>
83               <goal>xpp3-reader</goal>
84                 -->
85             </goals>
86           </execution>
87         </executions>
88       </plugin>
89       <plugin>
90        <groupId>org.codehaus.mojo</groupId>
91         <artifactId>jpox-maven-plugin</artifactId>
92         <version>1.1.6</version>
93         <dependencies>
94           <dependency>
95             <groupId>org.apache.derby</groupId>
96             <artifactId>derby</artifactId>
97             <version>10.2.1.6</version>
98           </dependency>
99         </dependencies>
100         <executions>
101           <execution>
102             <id>create-ddl</id>
103             <phase>generate-test-resources</phase>
104             <goals>
105               <goal>schema-create</goal>
106             </goals>
107             <configuration>
108               <outputFile>${basedir}/target/classes/org/apache/maven/archiva/model/schema.ddl</outputFile>
109               <toolProperties>
110                 <property>
111                   <name>javax.jdo.option.ConnectionDriverName</name>
112                   <value>org.apache.derby.jdbc.EmbeddedDriver</value>
113                 </property>
114                 <property>
115                   <name>javax.jdo.option.ConnectionURL</name>
116                   <value>jdbc:derby:target/jdo-schema-create;create=true</value>
117                 </property>
118                 <property>
119                   <name>javax.jdo.option.ConnectionUserName</name>
120                   <value>sa</value>
121                 </property>
122                 <property>
123                   <name>javax.jdo.option.ConnectionPassword</name>
124                   <value></value>
125                 </property>
126                 <property>
127                   <name>log4j.configuration</name>
128                   <value>${basedir}/src/test/resources/log4j.xml</value>
129                 </property>
130                 <property>
131                   <name>org.jpox.autoCreateTables</name>
132                   <value>true</value>
133                 </property>
134               </toolProperties>
135             </configuration>
136           </execution>
137           <execution>
138             <id>enhance</id>
139             <goals>
140               <goal>enhance</goal>
141             </goals>
142           </execution>
143         </executions>
144       </plugin>
145       <plugin>
146         <groupId>org.codehaus.mojo</groupId>
147         <artifactId>cobertura-maven-plugin</artifactId>
148         <configuration>
149           <instrumentation>
150             <!-- exclude generated -->
151             <excludes>
152               <exclude>org/apache/maven/archiva/reporting/model/**</exclude>
153             </excludes>
154           </instrumentation>
155         </configuration>
156       </plugin>
157     </plugins>
158   </build>
159 </project>