This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configure the eclipse proxy service of the embedded equinox according to the proxies section of maven's settings.xml. Take care to discard persistent proxy settings after maven session has ended because the eclipse proxy service always persists its configuration in a .prefs file which would then affect subsequent builds. Remove native fragments for org.eclipse.core.net from tycho-p2-runtime as they interfere with settting the proxy settings by getting proxy settings directly from the OS which is no longer needed now. Added integration test which starts an HTTP server as well as a proxy server to serve a p2 repo via a proxy (with and w/o proxy authentication). Resolve conflicting versions of jetty-embedded in ITs: use version 6.1.12.
- Loading branch information
Showing
23 changed files
with
934 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
tycho-its/projects/TYCHO279HttpProxy/bundle/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Bundle | ||
Bundle-SymbolicName: bundle | ||
Bundle-Version: 0.0.1.qualifier | ||
Bundle-RequiredExecutionEnvironment: J2SE-1.5 | ||
Require-Bundle: tycho279.bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source.. = src/ | ||
output.. = bin/ | ||
bin.includes = META-INF/,\ | ||
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.sonatype.tycho.its</groupId> | ||
<artifactId>parent</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>bundle</artifactId> | ||
<packaging>eclipse-plugin</packaging> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.sonatype.tycho.its</groupId> | ||
<artifactId>parent</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
|
||
<modules> | ||
<module>bundle</module> | ||
</modules> | ||
|
||
<repositories> | ||
<repository> | ||
<id>test</id> | ||
<layout>p2</layout> | ||
<url>${p2.repo}</url> | ||
</repository> | ||
</repositories> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.sonatype.tycho</groupId> | ||
<artifactId>tycho-maven-plugin</artifactId> | ||
<version>${tycho-version}</version> | ||
<extensions>true</extensions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.sonatype.tycho</groupId> | ||
<artifactId>target-platform-configuration</artifactId> | ||
<version>${tycho-version}</version> | ||
<configuration> | ||
<resolver>p2</resolver> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<?artifactRepository version='1.1.0'?> | ||
<repository name='file:/c:/tmp/test279/repo - artifacts' type='org.eclipse.equinox.p2.artifact.repository.simpleRepository' version='1'> | ||
<properties size='2'> | ||
<property name='p2.timestamp' value='1278495494171'/> | ||
<property name='p2.compressed' value='false'/> | ||
</properties> | ||
<mappings size='3'> | ||
<rule filter='(& (classifier=osgi.bundle))' output='${repoUrl}/plugins/${id}_${version}.jar'/> | ||
<rule filter='(& (classifier=binary))' output='${repoUrl}/binary/${id}_${version}'/> | ||
<rule filter='(& (classifier=org.eclipse.update.feature))' output='${repoUrl}/features/${id}_${version}.jar'/> | ||
</mappings> | ||
<artifacts size='1'> | ||
<artifact classifier='osgi.bundle' id='tycho279.bundle' version='1.0.0.201007071134'> | ||
<properties size='3'> | ||
<property name='artifact.size' value='368'/> | ||
<property name='download.size' value='368'/> | ||
<property name='download.md5' value='41a4da2745bc458d0cb6a7d86bd8a0e3'/> | ||
</properties> | ||
</artifact> | ||
</artifacts> | ||
</repository> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<?metadataRepository version='1.1.0'?> | ||
<repository name='file:/c:/tmp/test279/repo - metadata' type='org.eclipse.equinox.internal.p2.metadata.repository.LocalMetadataRepository' version='1'> | ||
<properties size='2'> | ||
<property name='p2.timestamp' value='1278495494203'/> | ||
<property name='p2.compressed' value='false'/> | ||
</properties> | ||
<units size='1'> | ||
<unit id='tycho279.bundle' version='1.0.0.201007071134' singleton='false'> | ||
<update id='tycho279.bundle' range='[0.0.0,1.0.0.201007071134)' severity='0'/> | ||
<properties size='1'> | ||
<property name='org.eclipse.equinox.p2.name' value='tycho279.bundle'/> | ||
</properties> | ||
<provides size='3'> | ||
<provided namespace='org.eclipse.equinox.p2.iu' name='tycho279.bundle' version='1.0.0.201007071134'/> | ||
<provided namespace='osgi.bundle' name='tycho279.bundle' version='1.0.0.201007071134'/> | ||
<provided namespace='org.eclipse.equinox.p2.eclipse.type' name='bundle' version='1.0.0'/> | ||
</provides> | ||
<artifacts size='1'> | ||
<artifact classifier='osgi.bundle' id='tycho279.bundle' version='1.0.0.201007071134'/> | ||
</artifacts> | ||
<touchpoint id='org.eclipse.equinox.p2.osgi' version='1.0.0'/> | ||
<touchpointData size='1'> | ||
<instructions size='1'> | ||
<instruction key='manifest'> | ||
Bundle-ManifestVersion: 2
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-SymbolicName: tycho279.bundle
Bundle-Name: tycho279.bundle
Manifest-Version: 1.0
Bundle-Version: 1.0.0.201007071134
 | ||
</instruction> | ||
</instructions> | ||
</touchpointData> | ||
</unit> | ||
</units> | ||
</repository> |
Binary file added
BIN
+368 Bytes
tycho-its/projects/TYCHO279HttpProxy/repo/plugins/tycho279.bundle_1.0.0.201007071134.jar
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
|
||
<proxies> | ||
<proxy> | ||
<id>http</id> | ||
<active>true</active> | ||
<protocol>http</protocol> | ||
<host>localhost</host> | ||
<port>WILL_BE_REPLACED</port> | ||
<!-- it seems localhost is a nonProxyHost by default, next line will | ||
cause also localhost to be proxied. This is needed for the test because both | ||
http server and proxy server are running on localhost --> | ||
<nonProxyHosts>DUMMY_NON_EXISTING_HOST</nonProxyHosts> | ||
</proxy> | ||
</proxies> | ||
</settings> |
Oops, something went wrong.