[Bug 913489] New: Missing org.apache.maven.plugin.surefire.report.plexus.util.xml.XmlStreamReader class while executing maven-failsafe-plugin
by Red Hat Bugzilla
Product: Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=913489
Bug ID: 913489
Summary: Missing
org.apache.maven.plugin.surefire.report.plexus.util.xm
l.XmlStreamReader class while executing
maven-failsafe-plugin
Product: Fedora
Version: rawhide
Component: maven-surefire
Severity: unspecified
Priority: unspecified
Reporter: mgoldman(a)redhat.com
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.979s
[INFO] Finished at: Thu Feb 21 11:04:52 CET 2013
[INFO] Final Memory: 28M/660M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-failsafe-plugin:2.12.4:verify
(javaops.TestArithmetic) on project byteman: Execution javaops.TestArithmetic
of goal org.apache.maven.plugins:maven-failsafe-plugin:2.12.4:verify failed: A
required class was missing while executing
org.apache.maven.plugins:maven-failsafe-plugin:2.12.4:verify:
org/apache/maven/plugin/surefire/report/plexus/util/xml/XmlStreamReader
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-failsafe-plugin:2.9
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] =
file:/usr/share/maven/repository/JPP/maven-failsafe-plugin.jar
[ERROR] urls[1] = file:/usr/share/maven/repository/JPP/atinject.jar
[ERROR] urls[2] =
file:/usr/share/maven/repository/JPP/sisu/sisu-inject-bean.jar
[ERROR] urls[3] = file:/usr/share/maven/repository/JPP/guice/google-guice.jar
[ERROR] urls[4] = file:/usr/share/maven/repository/JPP/guava.jar
[ERROR] urls[5] = file:/usr/share/maven/repository/JPP/xbean/xbean-reflect.jar
[ERROR] urls[6] =
file:/usr/share/maven/repository/JPP/maven-surefire/booter.jar
[ERROR] urls[7] = file:/usr/share/maven/repository/JPP/maven-surefire/api.jar
[ERROR] urls[8] =
file:/usr/share/maven/repository/JPP/maven-surefire/common.jar
[ERROR] urls[9] = file:/usr/share/maven/repository/JPP/apache-commons-lang3.jar
[ERROR] urls[10] =
file:/usr/share/maven/repository/JPP/maven-common-artifact-filters.jar
[ERROR] urls[11] = file:/usr/share/maven/repository/JPP/plexus/utils.jar
[ERROR] urls[12] =
file:/usr/share/maven/repository/JPP/backport-util-concurrent.jar
[ERROR] urls[13] =
file:/usr/share/maven/repository/JPP/plexus/interpolation.jar
[ERROR] urls[14] = file:/usr/share/maven/repository/JPP/aether/util.jar
[ERROR] urls[15] =
file:/usr/share/maven/repository/JPP/plexus/containers-component-annotations.jar
[ERROR] urls[16] =
file:/usr/share/maven/repository/JPP/plexus/plexus-sec-dispatcher.jar
[ERROR] urls[17] =
file:/usr/share/maven/repository/JPP/plexus/plexus-cipher.jar
[ERROR] urls[18] =
file:/usr/share/maven/repository/JPP/maven-plugin-tools/maven-plugin-annotations.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------:
org.apache.maven.plugin.surefire.report.plexus.util.xml.XmlStreamReader
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :byteman
error: Bad exit status from /var/tmp/rpm-tmp.FjqWHI (%build)
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=rrnozm4Sh8&a=cc_unsubscribe
11 years, 3 months
[maven-plugin-tools] Add patch for MPLUGIN-242
by Mikolaj Izdebski
commit e3eed4cfbc5fd4ece56f9214bce93a8b03267bd0
Author: Mikolaj Izdebski <mizdebsk(a)redhat.com>
Date: Mon Mar 11 12:44:28 2013 +0100
Add patch for MPLUGIN-242
- Resolves: rhbz#920042
maven-plugin-tools-rhbz-920042.patch | 33 +++++++++++++++++++++++++++++++++
maven-plugin-tools.spec | 12 +++++++++++-
2 files changed, 44 insertions(+), 1 deletions(-)
---
diff --git a/maven-plugin-tools-rhbz-920042.patch b/maven-plugin-tools-rhbz-920042.patch
new file mode 100644
index 0000000..1c316e6
--- /dev/null
+++ b/maven-plugin-tools-rhbz-920042.patch
@@ -0,0 +1,33 @@
+From 0681545ce57c55b8c35af8189a0f2bfe27256fd7 Mon Sep 17 00:00:00 2001
+From: Mikolaj Izdebski <mizdebsk(a)redhat.com>
+Date: Mon, 11 Mar 2013 12:40:04 +0100
+Subject: [PATCH] Fix MPLUGIN-242
+
+This fixes upstream bug MPLUGIN-242:
+NullPointerException in MojoClassVisitor.visit()
+See: http://jira.codehaus.org/browse/MPLUGIN-242
+---
+ .../plugin/annotations/scanner/visitors/MojoClassVisitor.java | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/annotations/scanner/visitors/MojoClassVisitor.java b/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/annotations/scanner/visitors/MojoClassVisitor.java
+index be0e70b..c381cf9 100644
+--- a/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/annotations/scanner/visitors/MojoClassVisitor.java
++++ b/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/annotations/scanner/visitors/MojoClassVisitor.java
+@@ -105,8 +105,11 @@ public class MojoClassVisitor
+ public void visit( int version, int access, String name, String signature, String superName, String[] interfaces )
+ {
+ mojoAnnotatedClass = new MojoAnnotatedClass();
+- mojoAnnotatedClass.setClassName( Type.getObjectType( name ).getClassName() ).setParentClassName(
+- Type.getObjectType( superName ).getClassName() );
++ mojoAnnotatedClass.setClassName( Type.getObjectType( name ).getClassName() );
++ if ( superName != null)
++ {
++ mojoAnnotatedClass.setParentClassName( Type.getObjectType( superName ).getClassName() );
++ }
+ logger.debug( "MojoClassVisitor#visit" );
+ }
+
+--
+1.8.1.2
+
diff --git a/maven-plugin-tools.spec b/maven-plugin-tools.spec
index 85351cd..690bca1 100644
--- a/maven-plugin-tools.spec
+++ b/maven-plugin-tools.spec
@@ -1,6 +1,6 @@
Name: maven-plugin-tools
Version: 3.1
-Release: 9%{?dist}
+Release: 10%{?dist}
Epoch: 0
Summary: Maven Plugin Tools
@@ -10,6 +10,10 @@ URL: http://maven.apache.org/plugin-tools/
Source0: http://repo2.maven.org/maven2/org/apache/maven/plugin-tools/%{name}/%{ver...
BuildArch: noarch
+# Fix NullPointerException in MojoClassVisitor.visit()
+# See: rhbz#920042, http://jira.codehaus.org/browse/MPLUGIN-242
+Patch0: %{name}-rhbz-920042.patch
+
BuildRequires: java-devel >= 1:1.6.0
BuildRequires: jpackage-utils
BuildRequires: maven-local
@@ -301,6 +305,8 @@ API documentation for %{name}.
%prep
%setup -q
+%patch0 -p1
+
# For easier installation
ln -s maven-script/maven-script-{ant,beanshell} .
@@ -423,6 +429,10 @@ cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
%changelog
+* Mon Mar 11 2013 Mikolaj Izdebski <mizdebsk(a)redhat.com> - 0:3.1-10
+- Add patch for MPLUGIN-242
+- Resolves: rhbz#920042
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 0:3.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
11 years, 3 months
[maven-deploy-plugin] Drop patch for maven-compat
by Mikolaj Izdebski
commit 2b3704757f286ca239123143f549d88ff364afd0
Author: Mikolaj Izdebski <mizdebsk(a)redhat.com>
Date: Mon Mar 11 12:35:27 2013 +0100
Drop patch for maven-compat
- Add missing requires on maven2 artifact and model
- Explictly set helpPackageName in maven-plugin-plugin configuration
- Resolves: rhbz#914167
maven-deploy-plugin-maven-compat-dep.patch | 16 ----------------
maven-deploy-plugin.spec | 22 +++++++++++++++++-----
2 files changed, 17 insertions(+), 21 deletions(-)
---
diff --git a/maven-deploy-plugin.spec b/maven-deploy-plugin.spec
index 1bd4e31..48d49eb 100644
--- a/maven-deploy-plugin.spec
+++ b/maven-deploy-plugin.spec
@@ -1,6 +1,6 @@
Name: maven-deploy-plugin
Version: 2.7
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Maven Deploy Plugin
Group: Development/Libraries
@@ -8,9 +8,6 @@ License: ASL 2.0
URL: http://maven.apache.org/plugins/maven-deploy-plugin/
Source0: http://repo1.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}...
-# Dependency on maven-compat was missing in pom.xml resulting in missing classes
-Patch0: %{name}-maven-compat-dep.patch
-
BuildArch: noarch
# Basic stuff
@@ -29,6 +26,8 @@ BuildRequires: maven-surefire-provider-junit
BuildRequires: maven-surefire-plugin
BuildRequires: maven-plugin-cobertura
BuildRequires: maven-archiver
+BuildRequires: mvn(org.apache.maven:maven-artifact:2.0.6)
+BuildRequires: mvn(org.apache.maven:maven-model:2.0.6)
# The following maven packages haven't updated yet
BuildRequires: maven-idea-plugin
BuildRequires: maven-changes-plugin
@@ -38,6 +37,8 @@ BuildRequires: maven-invoker-plugin
Requires: java
Requires: maven
Requires: jpackage-utils
+Requires: mvn(org.apache.maven:maven-artifact:2.0.6)
+Requires: mvn(org.apache.maven:maven-model:2.0.6)
Provides: maven2-plugin-deploy = 0:%{version}-%{release}
Obsoletes: maven2-plugin-deploy <= 0:2.0.8
@@ -55,7 +56,12 @@ API documentation for %{name}.
%prep
%setup -q
-%patch0 -p1
+
+%pom_xpath_inject pom:project "<build><plugins/></build>"
+%pom_add_plugin :maven-plugin-plugin . "
+ <configuration>
+ <helpPackageName>org.apache.maven.plugin.deploy</helpPackageName>
+ </configuration>"
%build
# A test class doesn't compile
@@ -88,6 +94,12 @@ cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
%{_javadocdir}/%{name}
%changelog
+* Mon Mar 11 2013 Mikolaj Izdebski <mizdebsk(a)redhat.com> - 2.7-7
+- Drop patch for maven-compat
+- Add missing requires on maven2 artifact and model
+- Explictly set helpPackageName in maven-plugin-plugin configuration
+- Resolves: rhbz#914167
+
* Tue Feb 26 2013 Weinan Li <weli(a)redhat.com> - 2.7-6
- bz915609
- Remove doxia dependencies
11 years, 3 months
[maven2] Rebuild to generate mvn(*) versioned provides
by Mikolaj Izdebski
commit efc28f65158b1ccc367ff125bb2aa9dbcdb8e9dc
Author: Mikolaj Izdebski <mizdebsk(a)redhat.com>
Date: Mon Mar 11 09:19:11 2013 +0100
Rebuild to generate mvn(*) versioned provides
maven2.spec | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/maven2.spec b/maven2.spec
index 86c1223..3c64ad8 100644
--- a/maven2.spec
+++ b/maven2.spec
@@ -5,7 +5,7 @@
Name: maven2
Version: 2.2.1
-Release: 42%{?dist}
+Release: 43%{?dist}
Summary: Java project management and project comprehension tool
Group: Development/Build Tools
@@ -382,6 +382,9 @@ cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
%changelog
+* Mon Mar 11 2013 Mikolaj Izdebski <mizdebsk(a)redhat.com> - 2.2.1-43
+- Rebuild to generate mvn(*) versioned provides
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 2.2.1-42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
11 years, 3 months
[javapackages] Fix --force of mvn-build
by Mikolaj Izdebski
commit ea0e22415b2f33554d054668881e94f20ec52fb8
Author: Mikolaj Izdebski <mizdebsk(a)redhat.com>
Date: Fri Mar 8 16:23:02 2013 +0100
Fix --force of mvn-build
scripts/mvn-build | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/scripts/mvn-build b/scripts/mvn-build
index 55e66e7..beae380 100755
--- a/scripts/mvn-build
+++ b/scripts/mvn-build
@@ -111,6 +111,7 @@ while [ $# -gt 0 ]; do
-f|--force|--skip-tests)
base_goal=package
skip_tests=-Dmaven.test.skip=true
+ _write_xmvn_config "%mvn_build macro (force option)" "buildSettings" "skipTests" "true"
;;
-g|--goal-before|--pre)
need_arg "$@"
11 years, 3 months
[javapackages] [doc] Capitalize section titles properly
by Stanislav Ochotnicky
commit 15cb0fc793ccfd297dd831fb246def52c0492c2e
Author: Stanislav Ochotnicky <sochotnicky(a)redhat.com>
Date: Fri Mar 8 12:34:42 2013 +0100
[doc] Capitalize section titles properly
doc/index.txt | 6 +++---
doc/maven.txt | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/doc/index.txt b/doc/index.txt
index 4d0ac2e..f1c8e24 100644
--- a/doc/index.txt
+++ b/doc/index.txt
@@ -18,7 +18,7 @@ software on Fedora.
include::basics.txt[]
-== Packaging principles
+== Packaging Principles
Packaging Java has certain specifics that will be covered in this section which
will cover basic packaging principles such as:
@@ -28,11 +28,11 @@ will cover basic packaging principles such as:
* Commenting workarounds
* Links to other appropriate documents
-=== Build system identification
+=== Build System Identification
How to determine preferred upstream build system
[[helper_macros]]
-=== Java helper functions
+=== Java Helper Functions
include::helper_macros.txt[]
diff --git a/doc/maven.txt b/doc/maven.txt
index b5fd43a..e339b3c 100644
--- a/doc/maven.txt
+++ b/doc/maven.txt
@@ -37,7 +37,7 @@ The macros `%mvn_build` and `%mvn_install` automatically handle building of the
JAR files and their subsequent installation to the correct directory. The
corresponding POM and <<Xdepmap,depmap>> files are also installed.
-==== Additional mappings ====
+==== Additional Mappings ====
[[pom_jar_mapping]]
The macro `%mvn_alias` can be used to add additional mappings for given POM/JAR
@@ -56,7 +56,7 @@ POM.
%mvn_alias "commons-lang:commons-lang" "org.apache.commons:commons-lang"
-------
-==== Alternative JAR file names ====
+==== Alternative JAR File Names ====
In some cases, it may be important to be able to provide symlinks to actual JAR
files. This can be achieved with `%mvn_file` macro. This macro allows packager
to specify names of the JAR files, their location in `%{_javadir}` directory and
@@ -76,7 +76,7 @@ installed in `%{_javadir}/google/guice.jar` and there also will be a symlink to
this JAR file located in `%{_javadir}/guice.jar`. Note the macro will add ".jar"
extensions automatically.
-==== Single artifact per package ====
+==== Single Artifact Per Package ====
If the project consists of multiple artifacts, it is recommended to install each
artifact to the separate subpackage. The macro `%mvn_build -s` will generate
separate `.mfiles` file for every artifact in the project. This file contains
@@ -117,7 +117,7 @@ The Plugin Plugin is used to...
...
-------
-==== Assignment of the Maven artifacts to the subpackages ====
+==== Assignment of the Maven Artifacts to the Subpackages ====
The macro `%mvn_package` allows maintainer to specify in which exact package the
selected artifact will end up. It is something between singleton packaging, when
each artifact has its own subpackage and default packaging, when all artifacts
11 years, 3 months