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

Commit 05fd2b8

Browse files
Do not delete trilead
1 parent 5f1704d commit 05fd2b8

File tree

2 files changed

+391
-0
lines changed

2 files changed

+391
-0
lines changed

trilead-ssh2/pom.xml

Lines changed: 302 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,302 @@
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) 1997-2017 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+
</parent>
51+
<groupId>org.glassfish.external</groupId>
52+
<artifactId>trilead-ssh2</artifactId>
53+
<version>2.1.3-SNAPSHOT</version>
54+
55+
<name>trilead-ssh2 repackaged as an OSGI bundle</name>
56+
57+
<properties>
58+
<trilead-ssh2.version>build-217-jenkins-11</trilead-ssh2.version>
59+
<eddsa.version>0.2.0</eddsa.version>
60+
<release.arguments />
61+
</properties>
62+
63+
<licenses>
64+
<license>
65+
<name>CDDL + GPLv2 with classpath exception</name>
66+
<url>http://glassfish.java.net/nonav/public/CDDL+GPL.html</url>
67+
<distribution>repo</distribution>
68+
<comments>A business-friendly OSS license</comments>
69+
</license>
70+
</licenses>
71+
72+
<scm>
73+
<connection>scm:git:git@github.com:javaee/repackaged.git</connection>
74+
<developerConnection>scm:git:git@github.com:javaee/repackaged.git</developerConnection>
75+
<url>https://github.com/javaee/repackaged.git</url>
76+
</scm>
77+
78+
<issueManagement>
79+
<system>IssueTracker</system>
80+
<url>https://github.com/javaee/repackaged/issues</url>
81+
</issueManagement>
82+
83+
<build>
84+
<pluginManagement>
85+
<plugins>
86+
<plugin>
87+
<groupId>org.apache.felix</groupId>
88+
<artifactId>maven-bundle-plugin</artifactId>
89+
<version>3.3.0</version>
90+
</plugin>
91+
<plugin>
92+
<groupId>org.apache.maven.plugins</groupId>
93+
<artifactId>maven-dependency-plugin</artifactId>
94+
<version>2.8</version>
95+
</plugin>
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-source-plugin</artifactId>
99+
<version>3.0.1</version>
100+
</plugin>
101+
<plugin>
102+
<groupId>org.apache.maven.plugins</groupId>
103+
<artifactId>maven-javadoc-plugin</artifactId>
104+
<version>2.9.1</version>
105+
<configuration>
106+
<additionalparam>${javadoc.options}</additionalparam>
107+
</configuration>
108+
</plugin>
109+
<plugin>
110+
<groupId>org.codehaus.mojo</groupId>
111+
<artifactId>build-helper-maven-plugin</artifactId>
112+
<version>1.8</version>
113+
</plugin>
114+
<plugin>
115+
<groupId>org.apache.maven.plugins</groupId>
116+
<artifactId>maven-gpg-plugin</artifactId>
117+
<version>1.4</version>
118+
</plugin>
119+
<plugin>
120+
<groupId>org.apache.maven.plugins</groupId>
121+
<artifactId>maven-enforcer-plugin</artifactId>
122+
<version>1.3.1</version>
123+
</plugin>
124+
<plugin>
125+
<groupId>org.apache.maven.plugins</groupId>
126+
<artifactId>maven-compiler-plugin</artifactId>
127+
<version>3.1</version>
128+
</plugin>
129+
<plugin>
130+
<groupId>org.apache.maven.plugins</groupId>
131+
<artifactId>maven-jar-plugin</artifactId>
132+
<version>2.4</version>
133+
</plugin>
134+
</plugins>
135+
</pluginManagement>
136+
<plugins>
137+
<plugin>
138+
<groupId>org.apache.felix</groupId>
139+
<artifactId>maven-bundle-plugin</artifactId>
140+
<configuration>
141+
<instructions>
142+
<Embed-Dependency>
143+
*;scope=compile;inline=true
144+
</Embed-Dependency>
145+
<!-- Export everything from the embedded jar
146+
in the final bundle
147+
-->
148+
<_exportcontents>*</_exportcontents>
149+
<!-- Exclude unnecessary imports -->
150+
<Import-Package>com.sun.jndi.ldap,!com.sun.jndi.toolkit.corba,!com.sun.security.sasl.preview,!com.sun.security.sasl.util,*</Import-Package>
151+
<!-- !* matches with nothing, so no other class will be included in this bundle,
152+
other than what is specified above -->
153+
<Private-Package>!*</Private-Package>
154+
</instructions>
155+
<!-- Maven uses the output directory (target/classes)
156+
rather than the final bundle, when compiling against
157+
projects in the same reactor (ie. the same build).
158+
Since this jar comprises of classes that come from
159+
some other jar and other modules depend on this
160+
artifact, we need to unpack.
161+
-->
162+
<unpackBundle>true</unpackBundle>
163+
</configuration>
164+
<executions>
165+
<execution>
166+
<id>osgi-bundle</id>
167+
<phase>package</phase>
168+
<goals>
169+
<goal>bundle</goal>
170+
</goals>
171+
</execution>
172+
</executions>
173+
</plugin>
174+
<!--
175+
unpack and attach the sources.jar(s) available
176+
This allows us to generate proper sources.jar and javadoc.jar
177+
-->
178+
<plugin>
179+
<groupId>org.apache.maven.plugins</groupId>
180+
<artifactId>maven-dependency-plugin</artifactId>
181+
<executions>
182+
<execution>
183+
<id>add-source-step1</id>
184+
<goals>
185+
<goal>unpack</goal>
186+
</goals>
187+
<phase>generate-sources</phase>
188+
<configuration>
189+
<artifactItems>
190+
<artifactItem>
191+
<groupId>org.jenkins-ci</groupId>
192+
<artifactId>trilead-ssh2</artifactId>
193+
<version>${trilead-ssh2.version}</version>
194+
<classifier>sources</classifier>
195+
<outputDirectory>${project.build.directory}/sources</outputDirectory>
196+
</artifactItem>
197+
</artifactItems>
198+
</configuration>
199+
</execution>
200+
</executions>
201+
</plugin>
202+
<plugin>
203+
<groupId>org.codehaus.mojo</groupId>
204+
<artifactId>build-helper-maven-plugin</artifactId>
205+
<executions>
206+
<execution>
207+
<id>add-source-step2</id>
208+
<phase>generate-sources</phase>
209+
<goals>
210+
<goal>add-source</goal>
211+
</goals>
212+
<configuration>
213+
<sources>
214+
<source>${project.build.directory}/sources</source>
215+
</sources>
216+
</configuration>
217+
</execution>
218+
</executions>
219+
</plugin>
220+
<!--
221+
We don't use sources to build the jar from scratch, but only
222+
for generating proper sources.jar and javadoc.jar
223+
We disable default-compile, to make sure we don't compile sources
224+
-->
225+
<plugin>
226+
<groupId>org.apache.maven.plugins</groupId>
227+
<artifactId>maven-compiler-plugin</artifactId>
228+
<executions>
229+
<execution>
230+
<id>default-compile</id>
231+
<configuration>
232+
<skipMain>true</skipMain>
233+
</configuration>
234+
</execution>
235+
</executions>
236+
</plugin>
237+
<plugin>
238+
<groupId>org.apache.maven.plugins</groupId>
239+
<artifactId>maven-jar-plugin</artifactId>
240+
<executions>
241+
<execution>
242+
<id>default-jar</id>
243+
<configuration>
244+
<skipIfEmpty>true</skipIfEmpty>
245+
</configuration>
246+
</execution>
247+
</executions>
248+
</plugin>
249+
<plugin>
250+
<groupId>org.apache.maven.plugins</groupId>
251+
<artifactId>maven-release-plugin</artifactId>
252+
<version>2.5.2</version>
253+
<configuration>
254+
<mavenExecutorId>forked-path</mavenExecutorId>
255+
<useReleaseProfile>false</useReleaseProfile>
256+
<arguments>${release.arguments}</arguments>
257+
</configuration>
258+
<dependencies>
259+
<dependency>
260+
<groupId>org.apache.maven.scm</groupId>
261+
<artifactId>maven-scm-provider-gitexe</artifactId>
262+
<version>1.9.4</version>
263+
</dependency>
264+
</dependencies>
265+
</plugin>
266+
</plugins>
267+
</build>
268+
269+
<repositories>
270+
<repository>
271+
<id>Jenkins repo</id>
272+
<url>http://repo.jenkins-ci.org/releases</url>
273+
</repository>
274+
</repositories>
275+
276+
<dependencies>
277+
<dependency>
278+
<groupId>org.jenkins-ci</groupId>
279+
<artifactId>trilead-ssh2</artifactId>
280+
<optional>true</optional>
281+
<version>${trilead-ssh2.version}</version>
282+
</dependency>
283+
<dependency>
284+
<groupId>net.i2p.crypto</groupId>
285+
<artifactId>eddsa</artifactId>
286+
<version>${eddsa.version}</version>
287+
</dependency>
288+
</dependencies>
289+
290+
<profiles>
291+
<profile>
292+
<id>javadoc-jdk8+</id>
293+
<activation>
294+
<jdk>[1.8,)</jdk>
295+
<activeByDefault>false</activeByDefault>
296+
</activation>
297+
<properties>
298+
<javadoc.options>-Xdoclint:none</javadoc.options>
299+
</properties>
300+
</profile>
301+
</profiles>
302+
</project>

trilead-ssh2/release.sh

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
#!/bin/bash -e
2+
#
3+
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4+
#
5+
# Copyright (c) 2010-2013 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://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
13+
# or packager/legal/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 packager/legal/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=www-proxy.us.oracle.com -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+
# http://aseng-wiki.us.oracle.com/asengwiki/display/GlassFish/Migrating+Maven+deployment+to+maven.java.net
80+
81+
# 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.
82+
# Be sure to have your ssh public key exported in your java.net account.
83+
84+
ARGS=" $*"
85+
# everything supplied as argument will be provided to every maven command.
86+
# e.g to supply -Dmaven.skip.test or -Dmaven.repo.local=/path/to/repo
87+
88+
mvn -B -e release:prepare -DpreparationGoals="'install' $ARGS" $ARGS -Pjvnet-release,release
89+
mvn -B -e release:perform -Dgoals="'deploy' $ARGS" $ARGS -Pjvnet-release,release

0 commit comments

Comments
 (0)