Skip to content
This repository was archived by the owner on Jan 30, 2019. It is now read-only.

Commit 7100180

Browse files
committed
New POM for Apache Derby repackaging
1 parent c7e85c5 commit 7100180

File tree

2 files changed

+247
-0
lines changed

2 files changed

+247
-0
lines changed

derby/pom.xml

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5+
6+
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
7+
8+
The contents of this file are subject to the terms of either the GNU
9+
General Public License Version 2 only ("GPL") or the Common Development
10+
and Distribution License("CDDL") (collectively, the "License"). You
11+
may not use this file except in compliance with the License. You can
12+
obtain a copy of the License at
13+
https://oss.oracle.com/licenses/CDDL+GPL-1.1
14+
or LICENSE.txt. See the License for the specific
15+
language governing permissions and limitations under the License.
16+
17+
When distributing the software, include this License Header Notice in each
18+
file and include the License file at LICENSE.txt.
19+
20+
GPL Classpath Exception:
21+
Oracle designates this particular file as subject to the "Classpath"
22+
exception as provided by Oracle in the GPL Version 2 section of the License
23+
file that accompanied this code.
24+
25+
Modifications:
26+
If applicable, add the following below the License Header, with the fields
27+
enclosed by brackets [] replaced by your own identifying information:
28+
"Portions Copyright [year] [name of copyright owner]"
29+
30+
Contributor(s):
31+
If you wish your version of this file to be governed by only the CDDL or
32+
only the GPL Version 2, indicate your decision by adding "[Contributor]
33+
elects to include this software in this distribution under the [CDDL or GPL
34+
Version 2] license." If you don't indicate a single choice of license, a
35+
recipient has the option to distribute your version of this file under
36+
either the CDDL, the GPL Version 2 or to extend the choice of license to
37+
its licensees as provided above. However, if you add GPL Version 2 code
38+
and therefore, elected the GPL Version 2 license, then the option applies
39+
only if the new code is made subject to such option by the copyright
40+
holder.
41+
42+
-->
43+
44+
<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">
45+
<modelVersion>4.0.0</modelVersion>
46+
<parent>
47+
<groupId>net.java</groupId>
48+
<artifactId>jvnet-parent</artifactId>
49+
<version>5</version>
50+
<relativePath />
51+
</parent>
52+
53+
<groupId>org.glassfish.external</groupId>
54+
<artifactId>derby</artifactId>
55+
<name>Apache Derby repackaged</name>
56+
<version>10.13.1.1-SNAPSHOT</version>
57+
<packaging>pom</packaging>
58+
59+
<properties>
60+
<derby.version>10.13.1.1</derby.version>
61+
<derby.download.url>http://www-eu.apache.org/dist/db/derby/db-derby-${derby.version}/db-derby-${derby.version}-bin.zip</derby.download.url>
62+
</properties>
63+
64+
<licenses>
65+
<license>
66+
<name>CDDL + GPLv2 with classpath exception</name>
67+
<url>https://oss.oracle.com/licenses/CDDL+GPL-1.1</url>
68+
<distribution>repo</distribution>
69+
<comments>A business-friendly OSS license</comments>
70+
</license>
71+
</licenses>
72+
73+
<scm>
74+
<connection>scm:git:git@github.com:javaee/repackaged.git</connection>
75+
<developerConnection>scm:git:git@github.com:javaee/repackaged.git</developerConnection>
76+
<url>https://github.com/javaee/repackaged.git</url>
77+
</scm>
78+
79+
<build>
80+
<plugins>
81+
<plugin>
82+
<groupId>org.apache.maven.plugins</groupId>
83+
<artifactId>maven-antrun-plugin</artifactId>
84+
<version>1.8</version>
85+
<executions>
86+
<execution>
87+
<id>download-files</id>
88+
<phase>prepare-package</phase>
89+
<goals>
90+
<goal>run</goal>
91+
</goals>
92+
<configuration>
93+
<target>
94+
<!-- download the zip -->
95+
<get src="${derby.download.url}"
96+
dest="target/derby-${project.version}.zip"
97+
verbose="false" usetimestamp="true" />
98+
</target>
99+
</configuration>
100+
</execution>
101+
</executions>
102+
</plugin>
103+
<plugin>
104+
<groupId>org.codehaus.mojo</groupId>
105+
<artifactId>build-helper-maven-plugin</artifactId>
106+
<version>3.0.0</version>
107+
<executions>
108+
<execution>
109+
<id>attach-artifacts</id>
110+
<phase>prepare-package</phase>
111+
<goals>
112+
<goal>attach-artifact</goal>
113+
</goals>
114+
<configuration>
115+
<artifacts>
116+
<artifact>
117+
<file>${project.build.directory}/${project.build.finalName}.zip</file>
118+
<type>zip</type>
119+
</artifact>
120+
</artifacts>
121+
</configuration>
122+
</execution>
123+
</executions>
124+
</plugin>
125+
<plugin>
126+
<groupId>org.apache.maven.plugins</groupId>
127+
<artifactId>maven-gpg-plugin</artifactId>
128+
<version>1.6</version>
129+
<executions>
130+
<execution>
131+
<id>sign-artifacts</id>
132+
<phase>verify</phase>
133+
<goals>
134+
<goal>sign</goal>
135+
</goals>
136+
</execution>
137+
</executions>
138+
</plugin>
139+
<plugin>
140+
<groupId>org.apache.maven.plugins</groupId>
141+
<artifactId>maven-release-plugin</artifactId>
142+
<version>2.5.2</version>
143+
<configuration>
144+
<mavenExecutorId>forked-path</mavenExecutorId>
145+
<useReleaseProfile>false</useReleaseProfile>
146+
<tagNameFormat>@{project.version}</tagNameFormat>
147+
<arguments>${release.arguments}</arguments>
148+
</configuration>
149+
<dependencies>
150+
<dependency>
151+
<groupId>org.apache.maven.scm</groupId>
152+
<artifactId>maven-scm-provider-gitexe</artifactId>
153+
<version>1.9.4</version>
154+
</dependency>
155+
</dependencies>
156+
</plugin>
157+
</plugins>
158+
</build>
159+
</project>

derby/release.sh

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
#!/bin/bash -e
2+
#
3+
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4+
#
5+
# Copyright (c) 2010-2018 Oracle and/or its affiliates. All rights reserved.
6+
#
7+
# The contents of this file are subject to the terms of either the GNU
8+
# General Public License Version 2 only ("GPL") or the Common Development
9+
# and Distribution License("CDDL") (collectively, the "License"). You
10+
# may not use this file except in compliance with the License. You can
11+
# obtain a copy of the License at
12+
# https://oss.oracle.com/licenses/CDDL+GPL-1.1
13+
# or LICENSE.txt. See the License for the specific
14+
# language governing permissions and limitations under the License.
15+
#
16+
# When distributing the software, include this License Header Notice in each
17+
# file and include the License file at LICENSE.txt.
18+
#
19+
# GPL Classpath Exception:
20+
# Oracle designates this particular file as subject to the "Classpath"
21+
# exception as provided by Oracle in the GPL Version 2 section of the License
22+
# file that accompanied this code.
23+
#
24+
# Modifications:
25+
# If applicable, add the following below the License Header, with the fields
26+
# enclosed by brackets [] replaced by your own identifying information:
27+
# "Portions Copyright [year] [name of copyright owner]"
28+
#
29+
# Contributor(s):
30+
# If you wish your version of this file to be governed by only the CDDL or
31+
# only the GPL Version 2, indicate your decision by adding "[Contributor]
32+
# elects to include this software in this distribution under the [CDDL or GPL
33+
# Version 2] license." If you don't indicate a single choice of license, a
34+
# recipient has the option to distribute your version of this file under
35+
# either the CDDL, the GPL Version 2 or to extend the choice of license to
36+
# its licensees as provided above. However, if you add GPL Version 2 code
37+
# and therefore, elected the GPL Version 2 license, then the option applies
38+
# only if the new code is made subject to such option by the copyright
39+
# holder.
40+
#
41+
42+
#------------------------------------------------------
43+
#-- BE SURE TO HAVE THE FOLLOWING IN YOUR SETTINGS.XML
44+
#------------------------------------------------------
45+
#
46+
# <servers>
47+
# <server>
48+
# <id>jvnet-nexus-staging</id>
49+
# <username>jvnet_id</username>
50+
# <password>password</password>
51+
# </server>
52+
# <server>
53+
# <id>website.java.net</id>
54+
# <username>jvnet</username>
55+
# <password>password</password>
56+
# </server>
57+
# </servers>
58+
# <profiles>
59+
# <profile>
60+
# <id>release</id>
61+
# <properties>
62+
# <user.name>jvnet_id</user.name>
63+
# <release.arguments>-Dhttps.proxyHost=<proxy-host> -Dhttps.proxyPort=80 -Dgpg.passphrase=glassfish</release.arguments>
64+
# </properties>
65+
# <activation>
66+
# <activeByDefault>false</activeByDefault>
67+
# </activation>
68+
# </profile>
69+
# </profiles>
70+
71+
# see the following URL for gpg issues
72+
# https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven#HowToGeneratePGPSignaturesWithMaven-GenerateaKeyPair
73+
74+
# login to nexus at maven.java.net, using your jvnet crendentials, and release (Close) the artifact
75+
# https://maven.java.net/index.html#stagingRepositories
76+
77+
# More information:
78+
# https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-8.ReleaseIt
79+
80+
# Note: the release process may use ssh key to interact with the SCM. If so, it will use your user.name as define in the release profile of your settings.xml.
81+
# Be sure to have your ssh public key exported in your java.net account.
82+
83+
ARGS=" $*"
84+
# everything supplied as argument will be provided to every maven command.
85+
# e.g to supply -Dmaven.skip.test or -Dmaven.repo.local=/path/to/repo
86+
87+
mvn -B -e release:prepare -DpreparationGoals="'install' $ARGS" $ARGS -Prelease
88+
mvn -B -e release:perform -Dgoals="'deploy' $ARGS" $ARGS -Prelease

0 commit comments

Comments
 (0)