Bug#577704: libsurefire-java: maven-surefire-plugin not detected by mvn-debian

Onkar Shinde onkarshinde at ubuntu.com
Wed Apr 14 15:08:59 UTC 2010

On Wed, Apr 14, 2010 at 11:44 AM, Onkar Shinde <onkarshinde at ubuntu.com> wrote:
>> Second, to build the packaging for a Maven project, use mh_make on the
>> sources, it will locate all the dependencies and create most of the
>> debian files for you.
> I will try this way and report back.

mh_make did not work for me because pom.xml file is not in root
directory of the source. Filed bug 577783 for that.
So I created minimal packaging files manually and used maven.mk in
debian/rules. Also I had to specify pom.xml file in src/core directory
as the main pom.xml file in src/ is giving me some other problem.
This does not solve my problem. I still get same error when building
package with pbuilder. Please note that libsurefire-java is installed
as build dependency.

NOTE: Maven is executing in offline mode. Any artifacts not already in
your local
repository will be inaccessible.

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Struts 2 Core
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

Project ID: org.apache.maven.plugins:maven-surefire-plugin

Reason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found
in repository: System is offline.


 for project org.apache.maven.plugins:maven-surefire-plugin

I think the problem here is that surefire plugin does not have any
'debian' version in maven repository (only 2.4.3 version).
$ find /usr/share/maven-repo/org/apache/maven/plugins/maven-surefire-plugin/
-name *.pom

Compare this will following.
$ find /usr/share/maven-repo/org/apache/maven/surefire/surefire/ -name *.pom

Passion - Some people climb mountains - others write Free software.
Don't ask why - the reason is the same.

More information about the pkg-java-maintainers mailing list