Fix bootstrap build.
This commit is contained in:
parent
312839e256
commit
43e579bd3b
2
sources
2
sources
@ -1,2 +1,2 @@
|
||||
012fd267fc85a6b3372acac6e4860e76 tycho-0.19.x.tar.bz2
|
||||
42dfaf1a7768e5ddb6268ae7e4ad2e11 maven-repo.tar.xz
|
||||
183829fbd3e779e4ee68f91d2140d90f maven-repo.tar.xz
|
||||
|
@ -1,4 +1,4 @@
|
||||
From 446e73cd3c2ef5ed8d5dc57615d88ef36445bafa Mon Sep 17 00:00:00 2001
|
||||
From 4ff6d1a5652d8825611cb3dd016b50eb0454883b Mon Sep 17 00:00:00 2001
|
||||
From: Roland Grunberg <rgrunber@redhat.com>
|
||||
Date: Mon, 19 Nov 2012 10:33:43 -0500
|
||||
Subject: [PATCH] Minor fixes of limited scope to get a Tycho bootstrapped
|
||||
@ -18,12 +18,26 @@ the same.
|
||||
|
||||
Change-Id: Ib8f471e5df40eb06da4f2d4ca6c2d3ab14f5dc99
|
||||
---
|
||||
.../main/java/org/eclipse/tycho/test/util/HttpServer.java | 5 ++---
|
||||
.../tycho-bundles-target/tycho-bundles-target.target | 12 ++++++------
|
||||
.../java/org/eclipse/tycho/core/osgitools/OsgiManifest.java | 12 ++++++------
|
||||
.../META-INF/MANIFEST.MF | 2 +-
|
||||
.../java/org/eclipse/tycho/test/util/HttpServer.java | 5 ++---
|
||||
.../tycho-bundles-target/tycho-bundles-target.target | 20 ++++++++++----------
|
||||
.../eclipse/tycho/core/osgitools/OsgiManifest.java | 12 ++++++------
|
||||
tycho-surefire/pom.xml | 2 +-
|
||||
4 files changed, 15 insertions(+), 16 deletions(-)
|
||||
5 files changed, 20 insertions(+), 21 deletions(-)
|
||||
|
||||
diff --git a/tycho-bundles/org.eclipse.tycho.p2.maven.repository.tests/META-INF/MANIFEST.MF b/tycho-bundles/org.eclipse.tycho.p2.maven.repository.tests/META-INF/MANIFEST.MF
|
||||
index 0a01dd5..1d0965a 100644
|
||||
--- a/tycho-bundles/org.eclipse.tycho.p2.maven.repository.tests/META-INF/MANIFEST.MF
|
||||
+++ b/tycho-bundles/org.eclipse.tycho.p2.maven.repository.tests/META-INF/MANIFEST.MF
|
||||
@@ -9,7 +9,7 @@ Fragment-Host: org.eclipse.tycho.p2.maven.repository
|
||||
Require-Bundle: org.junit,
|
||||
org.eclipse.equinox.p2.publisher,
|
||||
org.eclipse.equinox.ds,
|
||||
- org.mockito.mockito-core
|
||||
+ org.mockito
|
||||
Import-Package: org.eclipse.tycho.locking.facade,
|
||||
org.eclipse.tycho.repository.local.testutil,
|
||||
org.eclipse.tycho.repository.streaming.testutil,
|
||||
diff --git a/tycho-bundles/org.eclipse.tycho.test.utils/src/main/java/org/eclipse/tycho/test/util/HttpServer.java b/tycho-bundles/org.eclipse.tycho.test.utils/src/main/java/org/eclipse/tycho/test/util/HttpServer.java
|
||||
index 47423e5..4b4c600 100644
|
||||
--- a/tycho-bundles/org.eclipse.tycho.test.utils/src/main/java/org/eclipse/tycho/test/util/HttpServer.java
|
||||
@ -50,24 +64,37 @@ index 47423e5..4b4c600 100644
|
||||
jetty.addConnector(connector);
|
||||
|
||||
diff --git a/tycho-bundles/tycho-bundles-target/tycho-bundles-target.target b/tycho-bundles/tycho-bundles-target/tycho-bundles-target.target
|
||||
index 2a04214..400117a 100644
|
||||
index b099b7d..6031d7b 100644
|
||||
--- a/tycho-bundles/tycho-bundles-target/tycho-bundles-target.target
|
||||
+++ b/tycho-bundles/tycho-bundles-target/tycho-bundles-target.target
|
||||
@@ -2,16 +2,16 @@
|
||||
<?pde version="3.8"?><target name="Target platform for Tycho's bundles" sequenceNumber="16">
|
||||
@@ -1,14 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?pde version="3.8"?><target name="Target platform for Tycho's bundles" sequenceNumber="17">
|
||||
<locations>
|
||||
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
|
||||
-<unit id="org.eclipse.equinox.executable.feature.group" version="3.6.0.v20130521-0416"/>
|
||||
-<unit id="org.eclipse.sdk.ide" version="4.3.0.I20130605-2000"/>
|
||||
-<unit id="org.eclipse.equinox.p2.sdk.feature.group" version="3.8.0.v20130604-2046"/>
|
||||
-<unit id="org.eclipse.equinox.core.sdk.feature.group" version="3.8.0.v20130529-1710"/>
|
||||
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
|
||||
-<unit id="org.eclipse.equinox.executable.feature.group" version="3.6.0.v20130807-1835"/>
|
||||
-<unit id="org.eclipse.sdk.ide" version="4.3.1.M20130911-1000"/>
|
||||
-<unit id="org.eclipse.equinox.p2.sdk.feature.group" version="3.8.1.v20130828-0031"/>
|
||||
-<unit id="org.eclipse.equinox.core.sdk.feature.group" version="3.8.0.v20130814-1242"/>
|
||||
-<repository location="http://download.eclipse.org/releases/kepler/"/>
|
||||
+<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
|
||||
+<unit id="org.eclipse.equinox.executable.feature.group"/>
|
||||
+<unit id="org.eclipse.sdk.ide"/>
|
||||
+<unit id="org.eclipse.equinox.p2.sdk.feature.group"/>
|
||||
+<unit id="org.eclipse.equinox.core.sdk.feature.group"/>
|
||||
<repository location="http://download.eclipse.org/releases/kepler/"/>
|
||||
+<repository location="http://download.eclipse.org/releases/kepler/201306260900"/>
|
||||
</location>
|
||||
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
|
||||
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
|
||||
+<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
|
||||
<unit id="org.mockito" version="1.8.4.v201303031500"/>
|
||||
<unit id="org.objenesis" version="1.0.0.v201105211943"/>
|
||||
<unit id="org.hamcrest" version="1.1.0.v20090501071000"/>
|
||||
@@ -18,10 +18,10 @@
|
||||
<unit id="org.hamcrest.text" version="1.1.0.v20090501071000"/>
|
||||
<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20130517111416/repository/"/>
|
||||
</location>
|
||||
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
|
||||
+<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
|
||||
<!-- required for surefire junit3 provider -->
|
||||
-<unit id="org.junit" version="3.8.2.v3_8_2_v20100427-1100"/>
|
||||
-<repository location="http://download.eclipse.org/releases/indigo"/>
|
||||
@ -132,7 +159,7 @@ index 1aec480..0eeb0fa 100644
|
||||
throw new OsgiManifestParserException(location, e);
|
||||
}
|
||||
diff --git a/tycho-surefire/pom.xml b/tycho-surefire/pom.xml
|
||||
index 7b9697c..43ab800 100644
|
||||
index 811dff0..ea2f657 100644
|
||||
--- a/tycho-surefire/pom.xml
|
||||
+++ b/tycho-surefire/pom.xml
|
||||
@@ -41,7 +41,7 @@
|
||||
@ -145,5 +172,5 @@ index 7b9697c..43ab800 100644
|
||||
</repositories>
|
||||
|
||||
--
|
||||
1.8.1.4
|
||||
1.8.3.1
|
||||
|
||||
|
27
tycho.spec
27
tycho.spec
@ -9,7 +9,7 @@
|
||||
|
||||
Name: tycho
|
||||
Version: 0.19.0
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Summary: Plugins and extensions for building Eclipse plugins and OSGI bundles with Maven
|
||||
|
||||
Group: Development/Libraries
|
||||
@ -95,6 +95,10 @@ Requires: maven-jar-plugin
|
||||
Requires: maven-resources-plugin
|
||||
Requires: maven-site-plugin
|
||||
Requires: maven-surefire-plugin
|
||||
%if %{bootstrap}
|
||||
BuildRequires: maven-deploy-plugin
|
||||
BuildRequires: maven-site-plugin
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
@ -162,7 +166,7 @@ tar -xf %{SOURCE4}
|
||||
# EXACT version in reactor cache to build against when bootstrapping
|
||||
# If we built our own Tycho locally and put it into reactor cache instead
|
||||
# of using upstream's then we need to make sure the build finds it.
|
||||
sed -i 's/<tychoBootstrapVersion>0.16.0<\/tychoBootstrapVersion>/<tychoBootstrapVersion>0.18.0<\/tychoBootstrapVersion>/' pom.xml
|
||||
sed -i 's/<tychoBootstrapVersion>0.18.1<\/tychoBootstrapVersion>/<tychoBootstrapVersion>0.18.1<\/tychoBootstrapVersion>/' pom.xml
|
||||
|
||||
# gid:aid used by bootstrapped build dependencies
|
||||
mkdir -p .m2/org/ow2/asm/asm-debug-all/4.0/
|
||||
@ -173,8 +177,9 @@ popd
|
||||
|
||||
%patch7 -p1
|
||||
|
||||
# Tycho can't use cached composite repository metadata so use other type
|
||||
sed -i 's/releases\/kepler\//releases\/kepler\/201306260900/' tycho-bundles/tycho-bundles-target/tycho-bundles-target.target
|
||||
# Tests are skipped anyways, so remove some test dependencies
|
||||
%pom_xpath_remove "pom:dependency[pom:classifier='tests']" tycho-compiler-plugin
|
||||
%pom_xpath_remove "pom:dependency[pom:classifier='tests']" tycho-packaging-plugin
|
||||
|
||||
# Non-Bootstrap Build
|
||||
%else
|
||||
@ -211,7 +216,7 @@ fi
|
||||
%endif
|
||||
|
||||
%build
|
||||
%mvn_build -f -i -g clean -- -Dmaven.repo.local=$(pwd)/.m2
|
||||
xmvn -o -Dmaven.test.skip=true -Dmaven.repo.local=$(pwd)/.m2 clean install org.apache.maven.plugins:maven-javadoc-plugin:aggregate
|
||||
|
||||
%install
|
||||
|
||||
@ -254,7 +259,7 @@ install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-main.pom
|
||||
%add_maven_depmap JPP.%{name}-main.pom -a "org.eclipse.tycho:$aid,org.sonatype.tycho:$aid"
|
||||
|
||||
# standalone p2 director
|
||||
pushd .m2/org/eclipse/tycho/tycho-standalone-p2-director/%{version}*/
|
||||
pushd .m2/org/eclipse/tycho/tycho-standalone-p2-director/%{version}%{snap}/
|
||||
install -m 644 tycho-standalone-p2-director-%{version}*.zip $RPM_BUILD_ROOT%{_javadir}/%{name}/tycho-standalone-p2-director.zip
|
||||
install -pm 644 tycho-standalone-p2-director-%{version}*.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-tycho-standalone-p2-director.pom
|
||||
popd
|
||||
@ -272,13 +277,6 @@ osgiJarPath=`find ".m2" -name "org.eclipse.osgi_*.jar"`
|
||||
osgiJar=`basename $osgiJarPath`
|
||||
osgiVer=`echo $osgiJar | sed 's/^.*_//' | sed 's/.jar//'`
|
||||
|
||||
mvn-rpmbuild org.apache.maven.plugins:maven-install-plugin:install-file \
|
||||
-Dfile=$osgiJarPath \
|
||||
-Dpackaging=jar \
|
||||
-DgroupId=org.eclipse.tycho \
|
||||
-DartifactId=org.eclipse.osgi \
|
||||
-Dversion=$osgiVer
|
||||
|
||||
osgiPomPath=`find ".m2/org/eclipse/tycho/org.eclipse.osgi" -name "org.eclipse.osgi-$osgiVer.pom"`
|
||||
|
||||
install -pm 644 $osgiPomPath $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.tycho-osgi.pom
|
||||
@ -296,6 +294,9 @@ install -m 644 $osgiJarPath $RPM_BUILD_ROOT%{_javadir}/%{name}/osgi.jar
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Thu Jan 09 2014 Roland Grunberg <rgrunber@redhat.com> - 0.19.0-7
|
||||
- Fix bootstrap build.
|
||||
|
||||
* Mon Jan 6 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.19.0-6
|
||||
- Fix usage of %%add_maven_depmap for zip files
|
||||
- Resolves: rhbz#1004310
|
||||
|
Loading…
Reference in New Issue
Block a user