Skip to content

Commit 3a47f4a

Browse files
authored
Merge pull request #451 from arjantijms/distribution
Added module to create proper maven distribution files
2 parents 70d15ac + b49809f commit 3a47f4a

File tree

3 files changed

+1608
-1515
lines changed

3 files changed

+1608
-1515
lines changed

mq/distribution/pom.xml

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
5+
6+
This program and the accompanying materials are made available under the
7+
terms of the Eclipse Public License v. 2.0, which is available at
8+
http://www.eclipse.org/legal/epl-2.0.
9+
10+
This Source Code may also be made available under the following Secondary
11+
Licenses when the conditions for such availability set forth in the
12+
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
13+
version 2 with the GNU Classpath Exception, which is available at
14+
https://www.gnu.org/software/classpath/license.html.
15+
16+
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
17+
18+
-->
19+
20+
<project xmlns="http://maven.apache.org/POM/4.0.0"
21+
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+
24+
<modelVersion>4.0.0</modelVersion>
25+
26+
<parent>
27+
<groupId>org.eclipse.ee4j</groupId>
28+
<artifactId>project</artifactId>
29+
<version>1.0.5</version>
30+
</parent>
31+
32+
<groupId>org.glassfish.mq</groupId>
33+
<artifactId>mq-distribution</artifactId>
34+
<version>5.1.3-SNAPSHOT</version>
35+
<name>Message Queue</name>
36+
37+
<url>https://github.com/eclipse-ee4j/openmq</url>
38+
39+
<scm>
40+
<connection>scm:git:https://github.com/eclipse-ee4j/openmq.git</connection>
41+
<developerConnection>
42+
scm:git:[email protected]:eclipse-ee4j/openmq.git
43+
</developerConnection>
44+
<url>https://github.com/eclipse-ee4j/openmq</url>
45+
<tag>HEAD</tag>
46+
</scm>
47+
48+
<organization>
49+
<name>Eclipse Foundation</name>
50+
<url>https://www.eclipse.org/org/foundation/</url>
51+
</organization>
52+
53+
<properties>
54+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
55+
</properties>
56+
57+
<build>
58+
<plugins>
59+
<plugin>
60+
<groupId>org.codehaus.gmaven</groupId>
61+
<artifactId>groovy-maven-plugin</artifactId>
62+
<version>2.1</version>
63+
<executions>
64+
<execution>
65+
<id>set-main-artifact</id>
66+
<phase>package</phase>
67+
<goals>
68+
<goal>execute</goal>
69+
</goals>
70+
<configuration>
71+
<source>
72+
println '### Setting project artifacts for ' + project.version
73+
def projectHelper = container.lookup("org.apache.maven.project.MavenProjectHelper")
74+
75+
project.artifact.setFile(null)
76+
projectHelper.attachArtifact(project, "zip", null, new File("../dist/bundles//mq.zip").canonicalFile)
77+
projectHelper.attachArtifact(project, "zip", "sources", new File("../dist/bundles/mq-src.zip").canonicalFile)
78+
</source>
79+
</configuration>
80+
</execution>
81+
</executions>
82+
</plugin>
83+
</plugins>
84+
</build>
85+
86+
</project>

mq/main/packager-opensource/pom.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@
774774
<target name="all" />
775775
</ant>
776776

777-
<zip destfile="${ws.dist.bundles.dir}/mq${project.version}-src.zip"
777+
<zip destfile="${ws.dist.bundles.dir}/mq-src.zip"
778778
basedir="${ws.top.dir}"
779779
includes="main/**,src/**,legal/**,pom.xml,README"
780780
/>
@@ -787,7 +787,6 @@
787787
</execution>
788788
</executions>
789789
</plugin>
790-
791790
</plugins>
792791
</build>
793792

0 commit comments

Comments
 (0)