File: pom.xml

package info (click to toggle)
jmock2 2.5.1+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,296 kB
  • sloc: java: 7,436; xml: 541; sh: 122; makefile: 24; ansic: 9
file content (179 lines) | stat: -rw-r--r-- 6,459 bytes parent folder | download | duplicates (2)
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
179
<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">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.jmock</groupId>
  <artifactId>jmock-parent</artifactId>
  <packaging>pom</packaging>
  <version>2.5.1</version>
  <name>jMock Parent</name>

  <inceptionYear>2003</inceptionYear>
  <organization>
    <name>jMock</name>
    <url>http://jmock.codehaus.org</url>
  </organization>

  <licenses>
    <license>
      <name>BSD style</name>
      <url>http://jmock.org/license.html</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <scm>
    <developerConnection>scm:svn:https://svn.codehaus.org/jmock/tags/packaging-maven-2.5.1</developerConnection>
    <url>http://svn.codehaus.org/jmock/tags/packaging-maven-2.5.1</url>
  </scm>

  <distributionManagement>
    <!--  
      The id used must match a server id defined in ~/.m2/settings.xml
    -->
    <repository>
      <id>codehaus.org</id>
      <name>Codehaus jMock Repository</name>
      <url>dav:https://dav.codehaus.org/repository/jmock/</url>
    </repository>
    <snapshotRepository>
      <id>codehaus.org</id>
      <name>Codehaus jMock Snapshot Repository</name>
      <url>dav:https://dav.codehaus.org/snapshots.repository/jmock/</url>
    </snapshotRepository>
  </distributionManagement>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <compress>false</compress>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.groovy.maven</groupId>
        <artifactId>gmaven-plugin</artifactId>
        <version>1.0-rc-2</version>
        <executions>
          <execution>
            <phase>generate-resources</phase>
            <goals>
              <goal>execute</goal>
            </goals>
            <configuration>
              <source>
                  def ant = new AntBuilder();
                  def script = "${basedir}/src/script/download-jars.sh";
                  def version = "${release.version}";
                  if ( version == "null" ){
                    println("ERROR: 'release.version' property not set.  Please use profile 'jmock1' or 'jmock2'");
                  } else {
                    println("Using release version ${release.version}");
                  }                                      
                  if ( new File(script).exists() ){
                    // we are in top-level module
                    println("Found script "+script);
                    ant.exec(executable: script, dir: "${basedir}", 
                            spawn: false, failifexecutionfails: true, failonerror: true){
                      arg(value: "http://jmock.org/dist")
                      arg(value: "jmock-${release.version}-jars.zip" )
                      arg(value: "target")
                      arg(value: "jmock-${release.version}")
                    }
                  } else {
                    // we are in child module
                    ant.copy(file: "${download.artifact.dir}/${artifact.name}.jar", 
                            tofile: "${project.build.directory}/downloaded.jar", verbose: true);
                    ant.unjar(src: "${project.build.directory}/downloaded.jar",
                              dest: "${project.build.outputDirectory}") {
                              patternset {
                                exclude(name: "**/*.java");
                              }
                    }
                    ant.unjar(src: "${project.build.directory}/downloaded.jar",
                              dest: "${project.build.directory}/generated-sources/src") {
                              patternset {
                                exclude(name: "**/*.class");
                              }
                    }
                  }
              </source>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>1.1</version>
        <executions>
          <execution>
            <id>add-source</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>target/generated-sources/src</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.0-beta-7</version>
        <configuration>
          <autoVersionSubmodules>true</autoVersionSubmodules>
          <preparationGoals>clean install</preparationGoals>
          <tagBase>https://svn.codehaus.org/jmock/tags</tagBase>
        </configuration>
      </plugin>
    </plugins>
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-webdav</artifactId>
        <version>1.0-beta-2</version>
      </extension>
    </extensions>
  </build>

  <properties>
    <download.dir>target</download.dir>
    <download.name>jmock-${release.version}</download.name>
    <artifact.name>${pom.artifactId}-${release.version}</artifact.name>
  </properties>

  <profiles>
    <profile>
      <id>jmock1</id>
      <modules>
        <module>jmock-core</module>
        <module>jmock-cglib</module>
      </modules>
      <properties>
        <release.version>1.2.0</release.version>
        <download.artifact.dir>${basedir}/../${download.dir}/${download.name}</download.artifact.dir>
      </properties>
    </profile>
    <profile>
      <id>jmock2</id>
      <modules>
        <module>jmock</module>
        <module>jmock-junit3</module>
        <module>jmock-junit4</module>
        <module>jmock-legacy</module>
        <module>jmock-script</module>
      </modules>
      <properties>
        <release.version>2.5.1</release.version>
        <download.artifact.dir>${basedir}/../${download.dir}/${download.name}/${download.name}</download.artifact.dir>
      </properties>
    </profile>
  </profiles>
</project>