[apache-commons-discovery] add maven pom
by Stanislav Ochotnicky
commit fb22e8e528a9adba04cc40e762b60bec3deac5ce
Author: gil <puntogil(a)libero.it>
Date: Thu May 17 09:14:29 2012 +0200
add maven pom
apache-commons-discovery.spec | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/apache-commons-discovery.spec b/apache-commons-discovery.spec
index 201fd29..9aae1fe 100644
--- a/apache-commons-discovery.spec
+++ b/apache-commons-discovery.spec
@@ -3,7 +3,7 @@
Name: apache-%{short_name}
Version: 0.5
-Release: 2%{?dist}
+Release: 3%{?dist}
Epoch: 2
Summary: Apache Commons Discovery
License: ASL 2.0
@@ -54,6 +54,10 @@ install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -p -m 644 target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
ln -sf %{name}.jar %{buildroot}%{_javadir}/%{short_name}.jar
+mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir}
+install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{short_name}.pom
+%add_maven_depmap JPP-%{short_name}.pom %{short_name}.jar
+
# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
@@ -61,12 +65,17 @@ cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%files
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
%{_javadir}/*
+%{_mavenpomdir}/JPP-%{short_name}.pom
+%{_mavendepmapfragdir}/%{name}
%files javadoc
%doc %{_javadocdir}/%{name}
%doc LICENSE.txt NOTICE.txt
%changelog
+* Thu May 17 2012 gil cattaneo <puntogil(a)libero.it> - 2:0.5-3
+- add maven pom
+
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 2:0.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
12 years, 1 month
[Bug 822112] New: update to 3.1
by Red Hat Bugzilla
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
Summary: update to 3.1
https://bugzilla.redhat.com/show_bug.cgi?id=822112
Summary: update to 3.1
Product: Fedora
Version: rawhide
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: unspecified
Priority: unspecified
Component: apache-commons-lang3
AssignedTo: sochotni(a)redhat.com
ReportedBy: puntogil(a)libero.it
QAContact: extras-qa(a)fedoraproject.org
CC: sochotni(a)redhat.com,
java-sig-commits(a)lists.fedoraproject.org
Classification: Fedora
Story Points: ---
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Created attachment 584931
--> https://bugzilla.redhat.com/attachment.cgi?id=584931
update to 3.1
Description of problem:
update to 3.1
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
12 years, 1 month
[tycho] Non-bootstrap build.
by Roland Grunberg
commit 9ff3cfa8c5d204d234ec8c4c0510879c19d7b56e
Author: Roland Grunberg <rgrunber(a)redhat.com>
Date: Wed May 16 13:53:54 2012 -0400
Non-bootstrap build.
tycho.spec | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/tycho.spec b/tycho.spec
index 1ecd5a5..6429d18 100644
--- a/tycho.spec
+++ b/tycho.spec
@@ -1,4 +1,4 @@
-%global bootstrap 1
+%global bootstrap 0
%if %{bootstrap}
%global snap -SNAPSHOT
@@ -8,7 +8,7 @@
Name: tycho
Version: 0.14.1
-Release: 2.1%{?dist}
+Release: 3%{?dist}
Summary: Plugins and extensions for building Eclipse plugins and OSGI bundles with Maven
Group: Development/Libraries
@@ -193,6 +193,9 @@ cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}
%{_javadocdir}/%{name}
%changelog
+* Wed May 16 2012 Roland Grunberg <rgrunber(a)redhat.com> 0.14.1-3
+- Non-bootstrap build.
+
* Wed Apr 25 2012 Roland Grunberg <rgrunber(a)redhat.com> 0.14.1-2.1
- Implement a custom resolver when running in local mode.
- Use upstream solution for BZ #372395 to fix the build.
12 years, 1 month
[tycho] Implement a custom resolver when running in local mode.
by Roland Grunberg
commit 733e99cdb19652d7b2bc543c022b8ef55edc66c4
Author: Roland Grunberg <rgrunber(a)redhat.com>
Date: Fri May 4 15:28:57 2012 -0400
Implement a custom resolver when running in local mode.
When running in local mode, dependencies should be resolved by looking
on the local system. Remote repositories should be ignored.
depmap.xml | 76 +----------------------------------
tycho-fix-build.patch | 36 +++++++++++-----
tycho-use-custom-resolver.patch | 84 +++++++++++++++++++++++++++++++++++++++
tycho.spec | 16 +++++--
4 files changed, 121 insertions(+), 91 deletions(-)
---
diff --git a/depmap.xml b/depmap.xml
index 71ff51b..ce74541 100644
--- a/depmap.xml
+++ b/depmap.xml
@@ -1,52 +1,4 @@
-<dependencies>
-<dependency>
- <maven>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-artifact</artifactId>
- <version>3.0.3</version>
- </maven>
- <jpp>
- <groupId>JPP/maven</groupId>
- <artifactId>maven-artifact</artifactId>
- <version>3.0.3</version>
- </jpp>
-</dependency>
-<dependency>
- <maven>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>3.0.3</version>
- </maven>
- <jpp>
- <groupId>JPP/maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>3.0.3</version>
- </jpp>
-</dependency>
-<dependency>
- <maven>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-core</artifactId>
- <version>3.0.3</version>
- </maven>
- <jpp>
- <groupId>JPP/maven</groupId>
- <artifactId>maven-core</artifactId>
- <version>3.0.3</version>
- </jpp>
-</dependency>
-<dependency>
- <maven>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-settings</artifactId>
- <version>3.0.3</version>
- </maven>
- <jpp>
- <groupId>JPP/maven</groupId>
- <artifactId>maven-settings</artifactId>
- <version>3.0.3</version>
- </jpp>
-</dependency>
+<dependencies>
<dependency>
<maven>
<groupId>org.apache.maven</groupId>
@@ -59,30 +11,4 @@
<version>3.0.3</version>
</jpp>
</dependency>
-<dependency>
- <maven>
- <groupId>org.sonatype.tycho</groupId>
- <artifactId>org.eclipse.jdt.core</artifactId>
- <version>3.6.0</version>
- </maven>
- <jpp>
- <groupId>JPP</groupId>
- <artifactId>jdt-core</artifactId>
- <version>3.6.0</version>
- </jpp>
-</dependency>
-<dependency>
- <maven>
- <groupId>org.sonatype.tycho</groupId>
- <artifactId>org.eclipse.osgi</artifactId>
- <version>3.6.0</version>
- </maven>
- <jpp>
- <groupId>JPP</groupId>
- <artifactId>jdt-osgi</artifactId>
- <version>3.6.0</version>
- </jpp>
-</dependency>
-
-
</dependencies>
diff --git a/tycho-fix-build.patch b/tycho-fix-build.patch
index 2ed901b..f78242c 100644
--- a/tycho-fix-build.patch
+++ b/tycho-fix-build.patch
@@ -44,17 +44,6 @@
assertEquals(originalManifest.size(), writtenManifest.size());
for (Enumeration<String> keys = writtenManifest.keys(); keys.hasMoreElements();) {
String key = keys.nextElement();
---- ./tycho-0.14.0.old/tycho-core/src/main/java/org/eclipse/tycho/core/utils/EEVersion.java 2012-02-06 10:26:59.000000000 -0500
-+++ ./tycho-0.14.0/tycho-core/src/main/java/org/eclipse/tycho/core/utils/EEVersion.java 2012-02-14 10:47:58.743002506 -0500
-@@ -18,7 +18,7 @@
- public enum EEType {
-
- // order is significant for comparison
-- OSGI_MINIMUM("OSGi/Minimum"), CDC_FOUNDATION("CDC/Foundation"), JAVA_SE("JavaSE");
-+ OSGI_MINIMUM("OSGi/Minimum"), CDC_FOUNDATION("CDC/Foundation"), JAVA_SE("JavaSE"), JRE("JRE");
-
- private final String profileName;
-
--- ./tycho-0.14.0.old/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/OsgiManifest.java 2012-02-06 10:26:59.000000000 -0500
+++ ./tycho-0.14.0/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/OsgiManifest.java 2012-02-10 15:36:32.000000000 -0500
@@ -25,7 +25,7 @@
@@ -118,3 +107,28 @@
+Require-Bundle: org.junit;bundle-version="[3.8.0,4.9.0)"
Bundle-ClassPath: jars/surefire-junit3-2.10.jar
Bundle-Vendor: %providerName
+--- ./tycho-0.14.x.old/tycho-core/src/main/java/org/eclipse/tycho/core/utils/EEVersion.java 2012-02-24 06:40:15.000000000 -0500
++++ ./tycho-0.14.x/tycho-core/src/main/java/org/eclipse/tycho/core/utils/EEVersion.java 2012-05-03 14:09:09.000000000 -0400
+@@ -18,7 +18,7 @@
+ public enum EEType {
+
+ // order is significant for comparison
+- OSGI_MINIMUM("OSGi/Minimum"), CDC_FOUNDATION("CDC/Foundation"), JAVA_SE("JavaSE");
++ OSGI_MINIMUM("OSGi/Minimum"), CDC_FOUNDATION("CDC/Foundation"), JRE("JRE"), JAVA_SE("JavaSE");
+
+ private final String profileName;
+
+--- ./tycho-0.14.x.old/tycho-core/src/main/java/org/eclipse/tycho/core/utils/ExecutionEnvironment.java 2012-02-24 06:40:15.000000000 -0500
++++ ./tycho-0.14.x/tycho-core/src/main/java/org/eclipse/tycho/core/utils/ExecutionEnvironment.java 2012-05-03 14:09:09.000000000 -0400
+@@ -50,8 +50,9 @@
+
+ private EEVersion parseEEVersion(String systemCaps) {
+ if (systemCaps == null && "JRE-1.1".equals(profileName)) {
+- // system capabilities entry is missing for JRE-1.1
+- return new EEVersion(Version.parseVersion("1.1"), EEType.JAVA_SE);
++ // system capabilities entry is missing for JRE-1.1
++ // TODO remove workaround when https://bugs.eclipse.org/377277 is fixed
++ return new EEVersion(Version.parseVersion("1.1"), EEType.JRE);
+ }
+ List<EEVersion> eeVersions = new ArrayList<EEVersion>();
+ try {
diff --git a/tycho-use-custom-resolver.patch b/tycho-use-custom-resolver.patch
new file mode 100644
index 0000000..3894258
--- /dev/null
+++ b/tycho-use-custom-resolver.patch
@@ -0,0 +1,84 @@
+diff --git a/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/target/TargetDefinitionResolver.java b/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/target/TargetDefinitionResolver.java
+index 2d7d3b9..3084fff 100644
+--- a/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/target/TargetDefinitionResolver.java
++++ b/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/target/TargetDefinitionResolver.java
+@@ -24,6 +24,7 @@ import org.eclipse.core.runtime.CoreException;
+ import org.eclipse.core.runtime.IProgressMonitor;
+ import org.eclipse.core.runtime.IStatus;
+ import org.eclipse.core.runtime.NullProgressMonitor;
++import org.eclipse.core.runtime.URIUtil;
+ import org.eclipse.equinox.p2.core.IProvisioningAgent;
+ import org.eclipse.equinox.p2.core.ProvisionException;
+ import org.eclipse.equinox.p2.metadata.IInstallableUnit;
+@@ -100,8 +101,11 @@ public class TargetDefinitionResolver {
+
+ List<IMetadataRepository> metadataRepositories = new ArrayList<IMetadataRepository>();
+ for (Repository repository : iuLocationDefinition.getRepositories()) {
+- artifactRepositories.add(repository.getLocation());
+- metadataRepositories.add(loadRepository(repository));
++ // We cannot resolve a non-file URI in local mode
++ if (System.getProperty("maven.local.mode") == null || URIUtil.isFileURI(repository.getLocation())) {
++ artifactRepositories.add(repository.getLocation());
++ metadataRepositories.add(loadRepository(repository));
++ }
+ }
+
+ IQueryable<IInstallableUnit> locationUnits = new CompoundQueryable<IInstallableUnit>(
+diff --git a/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/target/TargetPlatformBuilderImpl.java b/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/target/TargetPlatformBuilderImpl.java
+index 9da87bb..3d15c5e 100644
+--- a/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/target/TargetPlatformBuilderImpl.java
++++ b/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/target/TargetPlatformBuilderImpl.java
+@@ -255,6 +255,11 @@ public class TargetPlatformBuilderImpl implements TargetPlatformBuilder {
+ return;
+ }
+
++ // We cannot resolve a non-file URI in local mode
++ if (System.getProperty("maven.local.mode") != null && !URIUtil.isFileURI(location)) {
++ return;
++ }
++
+ try {
+ metadataRepository = metadataRepositoryManager.loadRepository(location, monitor);
+ metadataRepositories.add(metadataRepository);
+diff --git a/tycho-core/src/main/java/org/eclipse/tycho/osgi/runtime/TychoP2RuntimeLocator.java b/tycho-core/src/main/java/org/eclipse/tycho/osgi/runtime/TychoP2RuntimeLocator.java
+index 15b3fff..c8f14df 100644
+--- a/tycho-core/src/main/java/org/eclipse/tycho/osgi/runtime/TychoP2RuntimeLocator.java
++++ b/tycho-core/src/main/java/org/eclipse/tycho/osgi/runtime/TychoP2RuntimeLocator.java
+@@ -23,6 +23,7 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
+ import org.apache.maven.artifact.resolver.ArtifactResolutionException;
+ import org.apache.maven.artifact.resolver.ArtifactResolutionRequest;
+ import org.apache.maven.artifact.resolver.ArtifactResolutionResult;
++import org.apache.maven.artifact.resolver.JavadirWorkspaceReader;
+ import org.apache.maven.artifact.resolver.ResolutionErrorHandler;
+ import org.apache.maven.execution.MavenSession;
+ import org.apache.maven.model.Dependency;
+@@ -38,6 +39,7 @@ import org.codehaus.plexus.util.FileUtils;
+ import org.eclipse.sisu.equinox.embedder.EquinoxRuntimeLocator;
+ import org.eclipse.tycho.locking.facade.FileLockService;
+ import org.eclipse.tycho.locking.facade.FileLocker;
++import org.sonatype.aether.util.artifact.DefaultArtifact;
+
+ @Component(role = EquinoxRuntimeLocator.class)
+ public class TychoP2RuntimeLocator implements EquinoxRuntimeLocator {
+@@ -158,6 +160,21 @@ public class TychoP2RuntimeLocator implements EquinoxRuntimeLocator {
+ }
+
+ private File resolveArtifact(MavenSession session, Artifact artifact) throws MavenExecutionException {
++
++ // If we are in local mode, find the artifact on the system
++ if (System.getProperty("maven.local.mode") != null) {
++ JavadirWorkspaceReader wReader = new JavadirWorkspaceReader();
++ DefaultArtifact newArtifact = new DefaultArtifact(artifact.getGroupId()
++ + ":" + artifact.getArtifactId()
++ + ":" + artifact.getType()
++ + ":" + artifact.getVersion());
++ File file = wReader.findArtifact(newArtifact);
++ if (file != null) {
++ artifact.setFile(file);
++ return file;
++ }
++ }
++
+ List<ArtifactRepository> repositories = new ArrayList<ArtifactRepository>();
+ for (MavenProject project : session.getProjects()) {
+ repositories.addAll(project.getPluginArtifactRepositories());
diff --git a/tycho.spec b/tycho.spec
index d0fba72..1ecd5a5 100644
--- a/tycho.spec
+++ b/tycho.spec
@@ -1,4 +1,4 @@
-%global bootstrap 0
+%global bootstrap 1
%if %{bootstrap}
%global snap -SNAPSHOT
@@ -8,7 +8,7 @@
Name: tycho
Version: 0.14.1
-Release: 2%{?dist}
+Release: 2.1%{?dist}
Summary: Plugins and extensions for building Eclipse plugins and OSGI bundles with Maven
Group: Development/Libraries
@@ -22,17 +22,18 @@ Source0: %{name}-0.14.x.tar.bz2
# version 2.4.3 (impossible to have empty mojo created as aggregate). This
# should be fixed upstream properly
Source1: EmptyMojo.java
-
# we need to make sure we are using maven 3 deps
Source2: depmap.xml
+
Patch0: %{name}-fix-build.patch
# Upstream builds against maven-surefire 2.10 but in rawhide we have 2.12
Patch1: %{name}-maven-surefire.patch
+Patch2: %{name}-use-custom-resolver.patch
# Set some temporary build version so that the bootstrapped build has
# a different version from the nonbootstrapped. Otherwise there will
# be cyclic dependencies.
%if %{bootstrap}
-Patch2: %{name}-bootstrap.patch
+Patch3: %{name}-bootstrap.patch
%endif
BuildArch: noarch
@@ -109,8 +110,9 @@ This package contains the API documentation for %{name}.
%patch0 -p2
%patch1 -p2
-%if %{bootstrap}
%patch2 -p1
+%if %{bootstrap}
+%patch3 -p1
%endif
find tycho-core -iname '*html' -delete
@@ -191,6 +193,10 @@ cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}
%{_javadocdir}/%{name}
%changelog
+* Wed Apr 25 2012 Roland Grunberg <rgrunber(a)redhat.com> 0.14.1-2.1
+- Implement a custom resolver when running in local mode.
+- Use upstream solution for BZ #372395 to fix the build.
+
* Wed Apr 4 2012 Roland Grunberg <rgrunber(a)redhat.com> 0.14.1-2
- Non-bootstrap build.
12 years, 1 month
[apache-commons-lang3] update to 3.1
by Stanislav Ochotnicky
commit 6fd296837fde511a27db5169a727dbe63267b956
Author: gil <puntogil(a)libero.it>
Date: Wed May 16 11:49:57 2012 +0200
update to 3.1
.gitignore | 1 +
apache-commons-lang3.spec | 12 +++++++++---
sources | 2 +-
3 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 53101a3..03f5790 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/commons-lang3-3.0.1-src.tar.gz
+/commons-lang3-3.1-src.tar.gz
diff --git a/apache-commons-lang3.spec b/apache-commons-lang3.spec
index 0851ad2..722d95f 100644
--- a/apache-commons-lang3.spec
+++ b/apache-commons-lang3.spec
@@ -3,8 +3,8 @@
%global short_name commons-%{base_name}3
Name: apache-%{short_name}
-Version: 3.0.1
-Release: 2%{?dist}
+Version: 3.1
+Release: 1%{?dist}
Summary: Provides a host of helper utilities for the java.lang API
License: ASL 2.0
Group: Development/Libraries
@@ -19,7 +19,10 @@ BuildRequires: maven
BuildRequires: apache-commons-parent
BuildRequires: apache-commons-io
BuildRequires: junit4
-BuildRequires: easymock2
+BuildRequires: easymock3
+BuildRequires: maven-antrun-plugin
+BuildRequires: maven-plugin-bundle
+BuildRequires: maven-resources-plugin
BuildRequires: maven-surefire-provider-junit4
Requires: java >= 1:1.6.0
@@ -85,6 +88,9 @@ cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
%doc %{_javadocdir}/%{name}
%changelog
+* Wed May 16 2012 gil cattaneo <puntogil(a)libero.it> - 3.1-1
+- update to 3.1
+
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 3.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
diff --git a/sources b/sources
index 9d08ef9..335db55 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-6d39fa5eceaabc46f0a088cdc305c4d6 commons-lang3-3.0.1-src.tar.gz
+b74a927ff2f8d39d7e2da362fa8ca655 commons-lang3-3.1-src.tar.gz
12 years, 1 month