[plexus-i18n] Missing plexus-container-default dependency added in the pom.xml
by Jaromír Cápík
commit 468752805f204b61a1581e8ca3fe894b9ec0e8b1
Author: Jaromir Capik <jcapik(a)redhat.com>
Date: Tue Mar 6 15:59:26 2012 +0100
Missing plexus-container-default dependency added in the pom.xml
plexus-i18n-plexus-container-default-missing.patch | 15 +++++++++++++++
plexus-i18n.spec | 7 ++++++-
2 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/plexus-i18n-plexus-container-default-missing.patch b/plexus-i18n-plexus-container-default-missing.patch
new file mode 100644
index 0000000..2238438
--- /dev/null
+++ b/plexus-i18n-plexus-container-default-missing.patch
@@ -0,0 +1,15 @@
+diff -Naur plexus-i18n-1.0-beta-10.orig/pom.xml plexus-i18n-1.0-beta-10/pom.xml
+--- plexus-i18n-1.0-beta-10.orig/pom.xml 2012-03-06 15:41:05.000000000 +0100
++++ plexus-i18n-1.0-beta-10/pom.xml 2012-03-06 15:54:20.383999743 +0100
+@@ -50,6 +50,11 @@
+ <artifactId>plexus-utils</artifactId>
+ <version>1.4.5</version>
+ </dependency>
++ <dependency>
++ <groupId>org.codehaus.plexus</groupId>
++ <artifactId>plexus-container-default</artifactId>
++ <version>1.0-alpha-9-stable-1</version>
++ </dependency>
+ </dependencies>
+
+ <scm>
diff --git a/plexus-i18n.spec b/plexus-i18n.spec
index e5fa38e..9763f51 100644
--- a/plexus-i18n.spec
+++ b/plexus-i18n.spec
@@ -33,7 +33,7 @@
Name: plexus-i18n
Version: 1.0
-Release: 0.b10.2%{?dist}.3
+Release: 0.b10.2%{?dist}.4
Summary: Plexus I18N Component
License: ASL 2.0
Group: Development/Java
@@ -43,6 +43,7 @@ Source0: plexus-i18n-1.0-beta-10-src.tar.bz2
# tar cjf plexus-i18n-1.0-beta-10-src.tar.bz2 plexus-i18n-1.0-beta-10/
Patch0: %{name}-migration-to-component-metadata.patch
+Patch1: %{name}-plexus-container-default-missing.patch
BuildArch: noarch
BuildRequires: jpackage-utils >= 0:1.7.2
@@ -85,6 +86,7 @@ Javadoc for %{name}.
%prep
%setup -q -n plexus-i18n-1.0-beta-10
%patch0 -p1
+%patch1 -p1
%build
mvn-rpmbuild -e install javadoc:aggregate
@@ -116,6 +118,9 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
%doc %{_javadocdir}/%{name}
%changelog
+* Tue Mar 06 2012 Jaromir Capik <jcapik(a)redhat.com> - 1.0-0.b10.2.4
+- Missing plexus-container-default dependency added in the pom.xml
+
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 1.0-0.b10.2.3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
12 years, 1 month
[javapackages] Generate maven provides from fragments instead of poms
by Stanislav Ochotnicky
commit c6fe42f05478dafee2de51cbfb9e002a81479f03
Author: Stanislav Ochotnicky <sochotnicky(a)redhat.com>
Date: Tue Mar 6 14:26:32 2012 +0100
Generate maven provides from fragments instead of poms
This means we will finally have complete information in provides.
Before this change a use of
add_maven_depmap ... -a "x:y"
Would not generate "mvn(x:y)" rpm provides. Now it does
depgenerators/fileattrs/maven.attr | 2 +-
depgenerators/maven.prov | 37 ++++++++++++++++++-----------------
2 files changed, 20 insertions(+), 19 deletions(-)
---
diff --git a/depgenerators/fileattrs/maven.attr b/depgenerators/fileattrs/maven.attr
index b8753a0..526fd45 100644
--- a/depgenerators/fileattrs/maven.attr
+++ b/depgenerators/fileattrs/maven.attr
@@ -1,4 +1,4 @@
%__maven_provides %{_rpmconfigdir}/maven.prov
#%__maven_requires %{_rpmconfigdir}/maven.req
-%__maven_path ^%{_datadir}/maven-poms/.*\.pom
+%__maven_path ^%{_datadir}/maven-fragments/.*
diff --git a/depgenerators/maven.prov b/depgenerators/maven.prov
index d9ea469..5c53e7b 100644
--- a/depgenerators/maven.prov
+++ b/depgenerators/maven.prov
@@ -28,36 +28,37 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Authors: Alexander Kurtakov <akurtako(a)redhat.com>
+# Stanislav Ochotnicky <sochotnicky(a)redhat.com>
import sys
-import xml.etree.ElementTree as ET
+from xml.etree.ElementTree import fromstring
+from StringIO import StringIO
class TagBuilder:
mavenns = "{http://maven.apache.org/POM/4.0.0}"
-
+
def __init__ (self, filelist=None):
if filelist == None:
filelist = sys.stdin
paths = map (lambda x: x.rstrip (), filelist.readlines ())
for path in paths:
self.get_mvn_provide (path)
-
+
def get_mvn_provide (self, path):
- doc = ET.parse(path)
- artifactId = doc.getroot().findtext("%sartifactId"%(self.mavenns))
- if artifactId is None:
- artifactId = doc.getroot().findtext("artifactId")
- if artifactId is None:
- return
- groupId = doc.getroot().findtext("%sgroupId"%(self.mavenns))
- if groupId is None:
- groupId = doc.getroot().findtext("groupId")
- if groupId is None:
- groupId = doc.getroot().findtext("%sparent/%sgroupId"%(self.mavenns, self.mavenns))
- if groupId is None:
- groupId = doc.getroot().findtext("parent/groupId")
- if groupId is not None:
- print "mvn(%s:%s)" %(groupId, artifactId)
+ buf = StringIO()
+ buf.write('<fragments>\n')
+ with open(path) as f:
+ buf.write(f.read())
+ buf.write('</fragments>')
+ fragments = buf.getvalue()
+ doc = fromstring(fragments)
+
+ for depmap in doc.getchildren():
+ for dep_part in depmap.getchildren():
+ if dep_part.tag == 'maven':
+ groupId = dep_part.findtext("groupId")
+ artifactId = dep_part.findtext("artifactId")
+ print "mvn(%s:%s)" %(groupId, artifactId)
if __name__ == "__main__":
builder = TagBuilder ()
12 years, 1 month
[Bug 735460] New: java.lang.ClassNotFoundException: com.mchange.v2.log.MLog
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: java.lang.ClassNotFoundException: com.mchange.v2.log.MLog
https://bugzilla.redhat.com/show_bug.cgi?id=735460
Summary: java.lang.ClassNotFoundException:
com.mchange.v2.log.MLog
Product: Fedora
Version: 15
Platform: Unspecified
OS/Version: Linux
Status: NEW
Severity: high
Priority: unspecified
Component: c3p0
AssignedTo: fedora(a)matbooth.co.uk
ReportedBy: tlestach(a)redhat.com
QAContact: extras-qa(a)fedoraproject.org
CC: fedora(a)matbooth.co.uk,
java-sig-commits(a)lists.fedoraproject.org
Classification: Fedora
Story Points: ---
Type: ---
Description of problem:
According to
http://www.mchange.com/projects/c3p0/index.html#configuring_logging :
com.mchange.v2.log.MLog
Determines which library c3p0 will output log messages to. By default, if log4j
is available, it will use that library, ...
We do not have com.mchange.v2.log.MLog set, and following package versions are
installed:
log4j-1.2.16-7.fc15.noarch
apache-commons-logging-1.1.1-15.fc15.noarch
Hibernate fails to initialize with: java.lang.ClassNotFoundException:
com.mchange.v2.log.MLog
Version-Release number of selected component (if applicable):
c3p0-0.9.2-0.5.pre1.fc15.noarch
How reproducible:
always on Fedora 15
Steps to Reproduce:
1. Install Spacewalk (https://fedorahosted.org/spacewalk/) on Fedora 15
2. Navigate to Spacewalk WebUI
Actual results:
=====================================
HTTP Status 404 -
type Status report
message
description The requested resource () is not available.
Apache Tomcat/6.0.32
=====================================
This is caused by hibernate initialization failure due to
java.lang.ClassNotFoundException: com.mchange.v2.log.MLog
(java.lang.NoClassDefFoundError: com/mchange/v2/log/MLog)
Expected results:
log4j would be used by default causing no exceptions
Additional info:
1)
Seems that replacing the /usr/share/java/c3p0.jar
with
http://mirrors.ibiblio.org/pub/mirrors/maven2/c3p0/c3p0/0.9.0.2/c3p0-0.9....
resolves the problem
2)
Until now we used
http://mirrors.dotsrc.org/jpackage/5.0/generic/free/RPMS/c3p0-0.9.1.2-2.j...
without any issues. Now the Fedora 15 c3p0 version has higher version and gets
installed instead of the jpackage version.
2)
Looking at:
# rpm -q c3p0
c3p0-0.9.2-0.5.pre1.fc15.noarch
# rpm -ql c3p0
/etc/maven/fragments/c3p0
/usr/share/doc/c3p0-0.9.2
/usr/share/doc/c3p0-0.9.2/CHANGELOG
/usr/share/doc/c3p0-0.9.2/LICENSE
/usr/share/doc/c3p0-0.9.2/RELEASE_NOTES-c3p0-0.9.2-pre1
/usr/share/doc/c3p0-0.9.2/index.html
/usr/share/java/c3p0.jar
/usr/share/maven2/poms/JPP-c3p0.pom
it seems that c3p0 isn't correctly packaged.
I would expect /usr/share/java/c3p0.jar to be a symlink to
/usr/share/java/c3p0-0.9.0.2.jar
3)
Due to this bug, Spacewalk on Fedora 15 is unusable. Please, check it.
--
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, 2 months