[Bug 849138] New: mandatory=core attribute in Export-Package header makes bundle unresolvable in Eclipse
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=849138
Bug ID: 849138
QA Contact: extras-qa(a)fedoraproject.org
Severity: unspecified
Version: 17
Priority: unspecified
CC: akurtako(a)redhat.com, hicham.haouari(a)gmail.com,
java-sig-commits(a)lists.fedoraproject.org,
kdaniel(a)redhat.com
Assignee: akurtako(a)redhat.com
Summary: mandatory=core attribute in Export-Package header
makes bundle unresolvable in Eclipse
Regression: ---
Story Points: ---
Classification: Fedora
OS: Unspecified
Reporter: sgehwolf(a)redhat.com
Type: Bug
Documentation: ---
Hardware: Unspecified
Mount Type: ---
Status: NEW
Component: lucene
Product: Fedora
Description of problem:
Any eclipse plug-in requiring org.apache.lucene.* packages fail to resolve due
to mandatory=core attribute in Export-Package OSGi header.
Note that this is only an issue on F17 (F18, rawhide have fixed manifests)
Version-Release number of selected component (if applicable):
$ rpm -q lucene
lucene-2.9.4-8.fc17.noarch
How reproducible:
Always.
Steps to Reproduce:
1. Create Eclipse plug-in with Import-Package: org.apache.lucene.index
2. Attempt to run application
3. Plug-in fails to resolve
Actual results:
Resolution errors.
Expected results:
imported lucene packages should resolve
Additional info:
Removing 'mandadory=core' from the metadata in the manifest fixes this.
--
You are receiving this mail because:
You are on the CC list for the bug.
11 years, 1 month
[Bug 842611] New: lucene - compile with -target 1.5 or greater
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=842611
Bug ID: 842611
QA Contact: extras-qa(a)fedoraproject.org
Severity: medium
Version: rawhide
Priority: medium
CC: akurtako(a)redhat.com, hicham.haouari(a)gmail.com,
java-sig-commits(a)lists.fedoraproject.org,
kdaniel(a)redhat.com
Assignee: akurtako(a)redhat.com
Summary: lucene - compile with -target 1.5 or greater
Regression: ---
Story Points: ---
Classification: Fedora
OS: Linux
Reporter: mizdebsk(a)redhat.com
Type: ---
Documentation: ---
Hardware: All
Mount Type: ---
Status: NEW
Component: lucene
Product: Fedora
Package lucene appears to be using Java generics,
but generates class files in format older than 49.0,
which corresponds to J2SE 5.0, in which generics were introduced.
Please update this package to generate classes in format 49.0 or
above. This corresponds to -target 1.5 option of javac (or ecj).
For more information, see bug #842394
--
You are receiving this mail because:
You are on the CC list for the bug.
11 years, 1 month
[Bug 830762] New: lucene ships POMs with uninitialized version properties
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=830762
Bug ID: 830762
QA Contact: extras-qa(a)fedoraproject.org
Severity: unspecified
Version: 17
Priority: unspecified
CC: akurtako(a)redhat.com, hicham.haouari(a)gmail.com,
java-sig-commits(a)lists.fedoraproject.org,
kdaniel(a)redhat.com
Assignee: akurtako(a)redhat.com
Summary: lucene ships POMs with uninitialized version
properties
Regression: ---
Story Points: ---
Classification: Fedora
OS: Unspecified
Reporter: michel+fdr(a)sylvestre.me
Type: Bug
Documentation: ---
Hardware: Unspecified
Mount Type: ---
Status: NEW
Component: lucene
Product: Fedora
Created attachment 590902
--> https://bugzilla.redhat.com/attachment.cgi?id=590902&action=edit
POM file for clucy
Description of problem:
The latest Lucene RPM ships with POMs that have unitialized version properties,
thus causing mvn-rpmpackage to fail when building a package that uses Lucene as
a dependency.
Version-Release number of selected component (if applicable):
lucene-2.9.4-8.fc17.noarch
How reproducible:
Always
Steps to Reproduce:
1. grep "<version>@version@</version>" *lucene*.pom | wc -l
2. Attempt to build clucy (https://github.com/weavejester/clucy) using the
attached POM file
Actual results:
1. => 59
2. => fails with
[ERROR] Failed to execute goal on project clucy: Could not resolve dependencies
for project clucy:clucy:jar:0.3.0: The following artifacts could not be
resolved
: org.apache.lucene:lucene-highlighter:jar:latest,
org.apache.lucene:lucene-memo
ry:jar:@version@: The repository system is offline but the artifact
org.apache.l
ucene:lucene-highlighter:jar:latest is not available in the local repository.
->
[Help 1]
Expected results:
1. => 0
2. => succeeds
Additional info:
--
You are receiving this mail because:
You are on the CC list for the bug.
11 years, 1 month
[maven-site-plugin: 2/2] Merge branch 'port-to-jetty-9'
by Mikolaj Izdebski
commit 17d607e8244df660608b22b9107d6f5188a8b220
Merge: 0e4168d 1d759d5
Author: Mikolaj Izdebski <mizdebsk(a)redhat.com>
Date: Fri Mar 1 09:26:51 2013 +0100
Merge branch 'port-to-jetty-9'
Conflicts:
maven-site-plugin.spec
0001-Fix-jetty-dependencies.patch | 52 +++++++++++++++++
0001-Port-to-jetty-9.patch | 74 ++++++++++++++++++++++++
0002-Port-to-jetty-8.x.patch | 98 --------------------------------
maven-site-plugin-jetty-provided.patch | 23 +++++---
maven-site-plugin.spec | 23 +++++--
5 files changed, 157 insertions(+), 113 deletions(-)
---
diff --cc maven-site-plugin-jetty-provided.patch
index 7530c9b,0000000..e5f3a73
mode 100644,000000..100644
--- a/maven-site-plugin-jetty-provided.patch
+++ b/maven-site-plugin-jetty-provided.patch
@@@ -1,24 -1,0 +1,31 @@@
- --- pom.xml~ 2013-02-26 10:22:46.367919263 +0100
- +++ pom.xml 2013-02-26 10:26:19.330517747 +0100
- @@ -406,18 +406,21 @@
++--- pom.xml~ 2013-03-01 09:27:48.503184556 +0100
+++++ pom.xml 2013-03-01 09:29:26.886220106 +0100
++@@ -406,24 +406,28 @@
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-server</artifactId>
- <version>8.1.0.RC4</version>
++ <version>6.1.25</version>
++ <scope>provided</scope>
- </dependency>
++ </dependency>
+
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-webapp</artifactId>
- <version>8.1.0.RC4</version>
++ <version>6.1.25</version>
++ <scope>provided</scope>
- </dependency>
++ </dependency>
++
++ <dependency>
++ <groupId>org.eclipse.jetty</groupId>
++ <artifactId>jetty-servlet</artifactId>
++ <version>6.1.25</version>
+++ <scope>provided</scope>
++ </dependency>
+
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-util</artifactId>
- <version>8.1.0.RC4</version>
++ <version>6.1.25</version>
++ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
diff --cc maven-site-plugin.spec
index a7cde3d,c7156a9..610b48a
--- a/maven-site-plugin.spec
+++ b/maven-site-plugin.spec
@@@ -1,6 -1,6 +1,6 @@@
Name: maven-site-plugin
Version: 3.2
--Release: 3%{?dist}
++Release: 4%{?dist}
Summary: Maven Site Plugin
Group: Development/Libraries
@@@ -8,10 -8,8 +8,11 @@@ License: ASL 2.
URL: http://maven.apache.org/plugins/maven-site-plugin/
Source0: http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}...
- Patch1: 0002-Port-to-jetty-8.x.patch
+ Patch0: 0001-Port-to-jetty-9.patch
+ Patch1: 0001-Fix-jetty-dependencies.patch
+# Jetty is needed only in interactive mode of maven-site-plugin. Change
+# dependency scope from compile to provided to reduce dependency bloat.
+Patch2: %{name}-jetty-provided.patch
BuildArch: noarch
@@@ -70,8 -69,8 +72,9 @@@ API documentation for %{name}
%prep
%setup -q
+ %patch0 -p1
%patch1 -p1
+%patch2
%build
# skipping tests because we need to fix them first for jetty update
@@@ -87,9 -86,9 +90,15 @@@
%doc LICENSE NOTICE
%changelog
++* Fri Mar 1 2013 Mikolaj Izdebski <mizdebsk(a)redhat.com> - 3.2-4
++- Merge branch 'port-to-jetty-9' into master
++
+* Tue Feb 26 2013 Mikolaj Izdebski <mizdebsk(a)redhat.com> - 3.2-3
+- Change jetty dependency scope to provided
+
+ * Mon Feb 25 2013 Michal Srb <msrb(a)redhat.com> - 3.2-3
+ - Port to jetty 9.0.0
+
* Thu Feb 07 2013 Michal Srb <msrb(a)redhat.com> - 3.2-2
- Migrate from maven-doxia to doxia subpackages
11 years, 1 month
[maven-site-plugin/port-to-jetty-9] Port to jetty 9.0.0
by Michal Srb
commit 1d759d52f4805e2a022a6b174f74d85be91d7c13
Author: Michal Srb <msrb(a)redhat.com>
Date: Mon Feb 25 10:14:56 2013 +0100
Port to jetty 9.0.0
0001-Fix-jetty-dependencies.patch | 52 +++++++++++++++++++
0001-Port-to-jetty-9.patch | 74 ++++++++++++++++++++++++++++
0002-Port-to-jetty-8.x.patch | 98 -------------------------------------
maven-site-plugin.spec | 20 +++++---
4 files changed, 139 insertions(+), 105 deletions(-)
---
diff --git a/0001-Fix-jetty-dependencies.patch b/0001-Fix-jetty-dependencies.patch
new file mode 100644
index 0000000..b9756fe
--- /dev/null
+++ b/0001-Fix-jetty-dependencies.patch
@@ -0,0 +1,52 @@
+From 5f1902e3e0003d989e29578d6c40a5e936fcb65a Mon Sep 17 00:00:00 2001
+From: Michal Srb <msrb(a)redhat.com>
+Date: Fri, 22 Feb 2013 11:13:23 +0100
+Subject: [PATCH] Fix jetty dependencies
+
+---
+ pom.xml | 21 +++++++++++++++++----
+ 1 file changed, 17 insertions(+), 4 deletions(-)
+
+diff --git a/pom.xml b/pom.xml
+index 9e99e5f..267cc91 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -403,18 +403,31 @@ under the License.
+ </dependency>
+
+ <dependency>
+- <groupId>org.mortbay.jetty</groupId>
+- <artifactId>jetty</artifactId>
++ <groupId>org.eclipse.jetty</groupId>
++ <artifactId>jetty-server</artifactId>
+ <version>6.1.25</version>
+ </dependency>
++
++ <dependency>
++ <groupId>org.eclipse.jetty</groupId>
++ <artifactId>jetty-webapp</artifactId>
++ <version>6.1.25</version>
++ </dependency>
++
++ <dependency>
++ <groupId>org.eclipse.jetty</groupId>
++ <artifactId>jetty-servlet</artifactId>
++ <version>6.1.25</version>
++ </dependency>
++
+ <dependency>
+- <groupId>org.mortbay.jetty</groupId>
++ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-util</artifactId>
+ <version>6.1.25</version>
+ </dependency>
+
+ <dependency>
+- <groupId>org.mortbay.jetty</groupId>
++ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-client</artifactId>
+ <version>6.1.25</version>
+ <scope>test</scope>
+--
+1.8.1.2
+
diff --git a/0001-Port-to-jetty-9.patch b/0001-Port-to-jetty-9.patch
new file mode 100644
index 0000000..89229ce
--- /dev/null
+++ b/0001-Port-to-jetty-9.patch
@@ -0,0 +1,74 @@
+From 4c2e25dd41672533a6f6f3da490d2cbfa385884a Mon Sep 17 00:00:00 2001
+From: Michal Srb <msrb(a)redhat.com>
+Date: Fri, 22 Feb 2013 10:56:19 +0100
+Subject: [PATCH] Port to jetty 9
+
+---
+ .../org/apache/maven/plugins/site/SiteRunMojo.java | 28 +++++++++++-----------
+ 1 file changed, 14 insertions(+), 14 deletions(-)
+
+diff --git a/src/main/java/org/apache/maven/plugins/site/SiteRunMojo.java b/src/main/java/org/apache/maven/plugins/site/SiteRunMojo.java
+index f341eef..d7e6c09 100644
+--- a/src/main/java/org/apache/maven/plugins/site/SiteRunMojo.java
++++ b/src/main/java/org/apache/maven/plugins/site/SiteRunMojo.java
+@@ -42,12 +42,13 @@ import org.apache.maven.reporting.exec.MavenReportExecution;
+
+ import org.codehaus.plexus.util.IOUtil;
+
+-import org.mortbay.jetty.Connector;
+-import org.mortbay.jetty.Handler;
+-import org.mortbay.jetty.Server;
+-import org.mortbay.jetty.handler.DefaultHandler;
+-import org.mortbay.jetty.nio.SelectChannelConnector;
+-import org.mortbay.jetty.webapp.WebAppContext;
++import org.eclipse.jetty.server.Connector;
++import org.eclipse.jetty.server.Handler;
++import org.eclipse.jetty.server.Server;
++import org.eclipse.jetty.server.handler.DefaultHandler;
++import org.eclipse.jetty.server.handler.HandlerList;
++import org.eclipse.jetty.server.ServerConnector;
++import org.eclipse.jetty.webapp.WebAppContext;
+
+ /**
+ * Starts the site up, rendering documents as requested for faster editing.
+@@ -84,7 +85,7 @@ public class SiteRunMojo
+ Server server = new Server();
+ server.setStopAtShutdown( true );
+
+- Connector defaultConnector = getDefaultConnector();
++ ServerConnector defaultConnector = getDefaultConnector( server );
+ server.setConnectors( new Connector[] { defaultConnector } );
+
+ WebAppContext webapp = createWebApplication();
+@@ -93,10 +94,9 @@ public class SiteRunMojo
+ DefaultHandler defaultHandler = new DefaultHandler();
+ defaultHandler.setServer( server );
+
+- Handler[] handlers = new Handler[2];
+- handlers[0] = webapp;
+- handlers[1] = defaultHandler;
+- server.setHandlers( handlers );
++ HandlerList handlers = new HandlerList();
++ handlers.setHandlers(new Handler[] { webapp, defaultHandler } );
++ server.setHandler( handlers );
+
+ getLog().info( "Starting Jetty on http://localhost:" + port + "/" );
+ try
+@@ -219,11 +219,11 @@ public class SiteRunMojo
+ return webapp;
+ }
+
+- private Connector getDefaultConnector()
++ private ServerConnector getDefaultConnector( Server server )
+ {
+- Connector connector = new SelectChannelConnector();
++ ServerConnector connector = new ServerConnector( server );
+ connector.setPort( port );
+- connector.setMaxIdleTime( MAX_IDLE_TIME );
++ connector.setIdleTimeout( MAX_IDLE_TIME );
+ return connector;
+ }
+
+--
+1.8.1.2
+
diff --git a/maven-site-plugin.spec b/maven-site-plugin.spec
index 78b3f60..c7156a9 100644
--- a/maven-site-plugin.spec
+++ b/maven-site-plugin.spec
@@ -1,6 +1,6 @@
Name: maven-site-plugin
Version: 3.2
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Maven Site Plugin
Group: Development/Libraries
@@ -8,7 +8,8 @@ License: ASL 2.0
URL: http://maven.apache.org/plugins/maven-site-plugin/
Source0: http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}...
-Patch1: 0002-Port-to-jetty-8.x.patch
+Patch0: 0001-Port-to-jetty-9.patch
+Patch1: 0001-Fix-jetty-dependencies.patch
BuildArch: noarch
@@ -39,11 +40,12 @@ BuildRequires: maven-plugin-testing-harness
BuildRequires: maven-wagon
BuildRequires: maven-reporting-exec
BuildRequires: plexus-containers-component-metadata
-BuildRequires: jetty-client >= 8.1.0-0.1.rc5
-BuildRequires: jetty-server >= 8.1.0-0.1.rc5
-BuildRequires: jetty-servlet >= 8.1.0-0.1.rc5
-BuildRequires: jetty-util >= 8.1.0-0.1.rc5
-BuildRequires: jetty-webapp >= 8.1.0-0.1.rc5
+BuildRequires: jetty >= 9.0.0-0.1.RC0
+BuildRequires: jetty-client >= 9.0.0-0.1.RC0
+BuildRequires: jetty-server >= 9.0.0-0.1.RC0
+BuildRequires: jetty-servlet >= 9.0.0-0.1.RC0
+BuildRequires: jetty-util >= 9.0.0-0.1.RC0
+BuildRequires: jetty-webapp >= 9.0.0-0.1.RC0
BuildRequires: servlet3
BuildRequires: plexus-archiver
BuildRequires: plexus-containers-container-default
@@ -67,6 +69,7 @@ API documentation for %{name}.
%prep
%setup -q
+%patch0 -p1
%patch1 -p1
%build
@@ -83,6 +86,9 @@ API documentation for %{name}.
%doc LICENSE NOTICE
%changelog
+* Mon Feb 25 2013 Michal Srb <msrb(a)redhat.com> - 3.2-3
+- Port to jetty 9.0.0
+
* Thu Feb 07 2013 Michal Srb <msrb(a)redhat.com> - 3.2-2
- Migrate from maven-doxia to doxia subpackages
11 years, 1 month
[lucene] 830762 - lucene ships POMs with uninitialized version properties
by Krzysztof Daniel
commit 5d70442adb4f1bf59b4186a973d049369ed72a5d
Author: Michel Salim <salimma(a)fedoraproject.org>
Date: Fri Mar 1 09:03:49 2013 +0100
830762 - lucene ships POMs with uninitialized version properties
.gitignore | 2 ++
lucene.spec | 9 ++++++---
2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 5596e37..4a3aa87 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,5 @@ lucene-2.4.1-src.tar.gz
/lucene-3.6.0-src.tgz
dev-tools.tar.xz
/lucene-3.6.2-src.tgz
+/lucene-3.6.2
+/noarch
diff --git a/lucene.spec b/lucene.spec
index 4febe3d..b705abc 100644
--- a/lucene.spec
+++ b/lucene.spec
@@ -31,7 +31,7 @@
Summary: High-performance, full-featured text search engine
Name: lucene
Version: 3.6.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Epoch: 0
License: ASL 2.0
URL: http://lucene.apache.org/
@@ -114,8 +114,8 @@ popd
iconv --from=ISO-8859-1 --to=UTF-8 CHANGES.txt > CHANGES.txt.new
# prepare pom files (replace @version@ with real version)
-find contrib -iname '*.pom.xml.template' -exec \
- sed -i "s:@version@:%{version}:g" \{\} \;
+find . -name '*pom.xml.template' -exec \
+ sed -i "s:@version@:%{version}:g" '{}' \;
cp %{SOURCE3} .
@@ -246,6 +246,9 @@ cp -pr build/docs/api/* \
%endif
%changelog
+* Fri Mar 1 2013 Krzysztof Daniel <kdaniel(a)redhat.com> 0:3.6.2-2
+- 830762: lucene ships POMs with uninitialized version properties
+
* Tue Feb 26 2013 Severin Gehwolf <sgehwolf(a)redhat.com> 0:3.6.2-1
- Update to upstream release 3.6.2
- Fix build errors related to icu4j v50 incompatibility.
11 years, 1 month