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:
<snip>
>> 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.
</snip>

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] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[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.

  org.apache.maven.plugins:maven-surefire-plugin:pom:2.3


 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
/usr/share/maven-repo/org/apache/maven/plugins/maven-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom

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


Onkar
-- 
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