File: pom.xml

package info (click to toggle)
jsamp 1.3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 3,144 kB
  • ctags: 3,194
  • sloc: java: 23,994; xml: 3,005; sh: 20; makefile: 6
file content (227 lines) | stat: -rw-r--r-- 7,913 bytes parent folder | download
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                             http://maven.apache.org/xsd/maven-4.0.0.xsd"
         xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.astrogrid</groupId>
  <artifactId>jsamp</artifactId>
  <version>1.3.5</version>
  <name>JSAMP</name>
  <url>http://www.star.bristol.ac.uk/~mbt/jsamp/</url>
  <scm>
    <connection>scm:git:https://github.com/mbtaylor/jsamp.git</connection>
    <developerConnection>scm:git:git@github.com:mbtaylor/jsamp.git</developerConnection>
  </scm>
  <description>Various components used for developing and deploying
    Simple Applications Messaging Protocol-compliant 
    applications and middleware.
  </description>
  <inceptionYear>2008</inceptionYear>
   <developers>
    <developer>
      <id>mbt</id>
      <name>Mark Taylor</name>
      <email>m.b.taylor@bristol.ac.uk</email>
      <url>http://www.star.bristol.ac.uk/~mbt/</url>
      <organization>Bristol University</organization>
    </developer>
  </developers>

  <properties>
    <builddocdir>${project.build.directory}/docs</builddocdir>
    <maven.build.timestamp.format>yyyy/MM/dd HH:mm:ss</maven.build.timestamp.format>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

    <!-- Set this to the version number, must be updated by hand
     !   to match pom.currentVersion.
     !   It's used for filtering into site/xdoc/downloads.xml.vm.
     !   That filtering module apparently won't cope with embedded "."
     !   characters in the name, so I can't use pom.currentVersion.
     !   Even putting ${pom.currentVersion} in the line below doesn't work.
     !   There may be a less horrible way to do this. -->
    <jsampVersion>1.3.5</jsampVersion>
  </properties>
 
  <distributionManagement>
    <site>
      <id>www.star.bristol.ac.uk</id>

      <!-- I was hoping that this would cause mvn install to copy the
       !   site files to the named directory.  It doesn't seem to do that
       !   (or anything else).
       !   Currently I'm doing that copying by hand when releasing
       !   a new version. -->
      <url>file:///homeb/mbt/public_html/jsamp/</url>
    </site>
  </distributionManagement>

  <build>
    <sourceDirectory>src/java</sourceDirectory>
    <testSourceDirectory>src/test/java</testSourceDirectory>
    <resources>
      <resource>
        <directory>src/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>

    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.16</version>
        <configuration>
          <argLine>-ea</argLine>
          <testFailureIgnore>false</testFailureIgnore>
          <useFile>false</useFile>
          <includes>
            <include>org/astrogrid/samp/**/*Test.java</include>
          </includes>
        </configuration>
      </plugin>

      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.1</version>
        <configuration>
          <source>1.4</source>
          <target>1.4</target>
        </configuration>
      </plugin>

      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.4</version>
        <configuration>
          <archive>
            <manifest>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
              <mainClass>org.astrogrid.samp.JSamp</mainClass>
            </manifest>
            <manifestEntries>

              <!-- Permissions and Application-Name attributes are required
               !   for WebStart if this jar is signed, for java 7u51+. -->
              <Permissions>all-permissions</Permissions>
              <Application-Name>JSAMP</Application-Name>
              <BuildTime>${maven.build.timestamp}</BuildTime>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>

      <!-- Write command usage for command-line tools to files. -->
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>pre-site</phase>
            <configuration>
              <tasks>
                <taskdef resource="net/sf/antcontrib/antlib.xml"
                         classpathref="maven.plugin.classpath"/>
                <mkdir dir="${project.build.directory}/docs"/>
                <echo>Generating command usage strings</echo>
                <for param="command" trim="true"
                     list="org.astrogrid.samp.JSamp,
                           org.astrogrid.samp.hub.Hub,
                           org.astrogrid.samp.gui.HubMonitor,
                           org.astrogrid.samp.test.Snooper,
                           org.astrogrid.samp.test.MessageSender,
                           org.astrogrid.samp.test.CalcStorm,
                           org.astrogrid.samp.test.HubTester,
                           org.astrogrid.samp.bridge.Bridge">
                  <sequential>
                    <echo>   @{command}</echo>
                    <java classname="@{command}" 
                          output="${project.build.directory}/docs/@{command}.usage"
                          fork="true" failonerror="true">
                      <classpath>
                        <pathelement
                             location="${project.build.outputDirectory}"/>
                      </classpath>
                      <arg value="-help"/>
                    </java>
                  </sequential>
                  
                </for>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>ant</groupId>
            <artifactId>ant</artifactId>
            <version>1.6.5</version>
          </dependency>
          <dependency>
            <groupId>ant-contrib</groupId>
            <artifactId>ant-contrib</artifactId>
            <version>1.0b2</version>
          </dependency>
        </dependencies>
      </plugin>

      <plugin>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>2.8.1</version>
      </plugin>

    </plugins>
  </build>
    
  <reporting>
    <plugins>

      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.9.1</version>
        <configuration>
          <links>
            <link>http://docs.oracle.com/javase/6/docs/api/</link>
            <link>http://ws.apache.org/xmlrpc/xmlrpc2/apidocs/</link>
          </links> 
          <offlineLinks>
            <offlineLink>
              <url>http://docs.oracle.com/javase/6/docs/api/</url>
              <location>${project.build.sourceDirectory}/../docs/packagelists/j2se</location>
            </offlineLink>
            <offlineLink>
              <url>http://ws.apache.org/xmlrpc/xmlrpc2/apidocs/</url>
              <location>${project.build.sourceDirectory}/../docs/packagelists/xmlrpc</location>
            </offlineLink>
          </offlineLinks>
          <source>1.4</source>
        </configuration>
      </plugin>

      <plugin>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>2.7</version>
        <configuration>
          <webAccessUrl>https://github.com/mbtaylor/jsamp</webAccessUrl>
        </configuration>
      </plugin>

    </plugins>
  </reporting>

  <dependencies>
    <dependency>
      <groupId>xmlrpc</groupId>
      <artifactId>xmlrpc</artifactId>
      <version>1.2-b1</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  
</project>