summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-model/pom.xml
blob: 983db89706b5fc0ead817340307e9835b243a755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<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">
  <parent>
    <groupId>org.apache.archiva</groupId>
    <artifactId>archiva-base</artifactId>
    <version>1.2</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>archiva-model</artifactId>
  <name>Archiva Base :: Model</name>
  <dependencies>
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
    </dependency>
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.archiva</groupId>
      <artifactId>archiva-common</artifactId>
    </dependency>
    <dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-spring</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>javax.jdo</groupId>
      <artifactId>jdo2-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>jcl104-over-slf4j</artifactId>
      <scope>runtime</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.plexus</groupId>
        <artifactId>plexus-component-metadata</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.modello</groupId>
        <artifactId>modello-maven-plugin</artifactId>
        <configuration>
          <version>1.2.0</version>
          <packageWithVersion>false</packageWithVersion>
          <models>
            <model>src/main/mdo/archiva-base.xml</model>
          </models>
        </configuration>
        <executions>
          <execution>
            <id>archiva-base</id>
            <goals>
              <goal>java</goal>
              <goal>xsd</goal>
            </goals>
          </execution>
          <execution>
            <id>archiva-jpox-jdo-mapping</id>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <generatorId>jpox-jdo-mapping</generatorId>
            </configuration>
          </execution>
          <execution>
            <id>archiva-jpox-metadata-class</id>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <generatorId>jpox-metadata-class</generatorId>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>jpox-maven-plugin</artifactId>
        <version>1.1.7</version>
        <dependencies>
          <dependency>
            <groupId>org.apache.derby</groupId>
            <artifactId>derby</artifactId>
            <version>10.2.1.6</version>
          </dependency>
        </dependencies>
        <executions>
          <!-- TODO: put this into a profile
       <execution>
         <id>create-ddl</id>
         <phase>generate-test-resources</phase>
         <goals>
           <goal>schema-create</goal>
         </goals>
         <configuration>
           <outputFile>${basedir}/target/classes/org/apache/maven/archiva/model/schema.ddl</outputFile>
           <toolProperties>
             <property>
               <name>javax.jdo.option.ConnectionDriverName</name>
               <value>org.apache.derby.jdbc.EmbeddedDriver</value>
             </property>
             <property>
               <name>javax.jdo.option.ConnectionURL</name>
               <value>jdbc:derby:target/jdo-schema-create;create=true</value>
             </property>
             <property>
               <name>javax.jdo.option.ConnectionUserName</name>
               <value>sa</value>
             </property>
             <property>
               <name>javax.jdo.option.ConnectionPassword</name>
               <value></value>
             </property>
             <property>
               <name>log4j.configuration</name>
               <value>${basedir}/src/test/resources/log4j.xml</value>
             </property>
             <property>
               <name>org.jpox.autoCreateTables</name>
               <value>true</value>
             </property>
           </toolProperties>
         </configuration>
       </execution>
          -->
          <execution>
            <id>enhance</id>
            <goals>
              <goal>enhance</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
	  <!-- stupid hack because jpox/modello is not supported anymore and it has bugs
    -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>process-sources</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
                <copy file="${project.build.directory}/generated-sources/modello/org/apache/maven/archiva/model/package.jdo" todir="${project.build.outputDirectory}/org/apache/maven/archiva/model/" />
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <configuration>
          <instrumentation>
            <!-- exclude generated -->
            <excludes>
              <exclude>org/apache/maven/archiva/reporting/model/**</exclude>
            </excludes>
          </instrumentation>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>