Package: libprotobuf-java
Version: 2.4.1-1
Severity: normal
Tags: patch

Hi,

when I try to compile JGit library that depends on libprotobuf-java, Maven fails
with following error:

[INFO] Error building POM (may not be this project's POM).


Project ID: com.google.protobuf:protobuf-java:jar:debian

Reason: Cannot find parent: com.google:google for project: com.google.protobuf:protobuf-java:jar:debian for project com.google.protobuf:protobuf-java:jar:debian


This is because POM files installed with libprotobuf-java are referencing a 
nonexistent
parent POM. These references should be stripped, simple patch that fixes the 
problem is attached.

BR

Jakub Adam

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libprotobuf-java depends on:
ii  default-jre [java5-runtime]    1:1.6-43
ii  gcj-4.6-jre [java5-runtime]    4.6.1-9
ii  gcj-jre [java5-runtime]        4:4.6.1-3
ii  openjdk-6-jre [java5-runtime]  6b23~pre11-1
ii  openjdk-7-jre [java5-runtime]  7~b147-2.0-1

Versions of packages libprotobuf-java recommends:
pn  protobuf-compiler  <none>

libprotobuf-java suggests no packages.

-- no debconf information

From 13565709f2ab3d31036596176e3d711af0a6408f Mon, 14 Nov 2011 00:10:21 +0100
From: Jakub Adam <jakub.a...@ktknet.cz>
Date: Wed, 9 Nov 2011 20:26:09 +0100
Subject: [PATCH] Fix maven repo installed POM


diff --git a/debian/libprotobuf-java.poms b/debian/libprotobuf-java.poms
index f0b7484..8b6d241 100644
--- a/debian/libprotobuf-java.poms
+++ b/debian/libprotobuf-java.poms
@@ -1 +1 @@
-java/pom.xml --artifact=java/target/protobuf.jar --java-lib
+java/pom.xml --artifact=java/target/protobuf.jar --java-lib --no-parent

Reply via email to