Bug#726611: /usr/bin/mh_make: NPE while resolving dependencies

Alexander Holupirek ah at basex.org
Thu Oct 17 08:06:44 UTC 2013


Package: maven-debian-helper
Version: 1.6.5
Severity: important
File: /usr/bin/mh_make

Oct 17, 2013 9:38:48 AM
org.debian.maven.packager.DependenciesSolver$ToResolve resolve
SEVERE: Cannot resolve dependencies in ./basex-api/pom.xml: Not a valid
package name: null
java.lang.IllegalArgumentException: Not a valid package name: null
 at org.debian.maven.packager.DebianDependency.checkPackageName(DebianDependency.java:44)
 at org.debian.maven.packager.DebianDependency.<init>(DebianDependency.java:15)
 at org.debian.maven.packager.DebianDependency.<init>(DebianDependency.java:20)
 at org.debian.maven.packager.util.PackageScanner.searchPkg(PackageScanner.java:124)
 at org.debian.maven.packager.util.PackageScanner.searchPkgContainingJar(PackageScanner.java:87)
 at org.debian.maven.packager.DependenciesSolver.resolveDependency(DependenciesSolver.java:657)
 at org.debian.maven.packager.DependenciesSolver.access$100(DependenciesSolver.java:56)
 at org.debian.maven.packager.DependenciesSolver$ToResolve.resolve(DependenciesSolver.java:176)
 at org.debian.maven.packager.DependenciesSolver.solveDependencies(DependenciesSolver.java:268)
 at org.debian.maven.packager.DependenciesSolver.main(DependenciesSolver.java:900)

$ cat ./basex-api/pom.xml

<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd">
 <modelVersion>4.0.0</modelVersion>

 <artifactId>basex-api</artifactId>

 <parent>
   <groupId>org.basex</groupId>
   <artifactId>basex-parent</artifactId>
   <version>7.7.2</version>
   <relativePath>..</relativePath>
 </parent>

 <name>BaseX API</name>

 <dependencies>
   <dependency>
     <groupId>org.basex</groupId>
     <artifactId>basex</artifactId>
     <version>${project.version}</version>
   </dependency>
   <dependency>
     <groupId>net.xqj</groupId>
     <artifactId>basex-xqj</artifactId>
   </dependency>
   <dependency>
     <groupId>org.xmldb</groupId>
     <artifactId>xmldb-api</artifactId>
   </dependency>
   <dependency>
     <groupId>org.eclipse.jetty</groupId>
     <artifactId>jetty-server</artifactId>
   </dependency>
   <dependency>
     <groupId>org.eclipse.jetty</groupId>
     <artifactId>jetty-servlet</artifactId>
   </dependency>
   <dependency>
     <groupId>org.eclipse.jetty</groupId>
     <artifactId>jetty-webapp</artifactId>
   </dependency>
   <dependency>
     <groupId>com.ettrema</groupId>
     <artifactId>milton-api</artifactId>
   </dependency>
   <dependency>
     <groupId>commons-fileupload</groupId>
     <artifactId>commons-fileupload</artifactId>
   </dependency>
   <dependency>
     <groupId>org.slf4j</groupId>
     <artifactId>slf4j-nop</artifactId>
   </dependency>
   <dependency>
     <groupId>junit</groupId>
     <artifactId>junit</artifactId>
   </dependency>
   <dependency>
   	<groupId>com.vividsolutions</groupId>
   	<artifactId>jts</artifactId>
   </dependency>
 </dependencies>

 <build>
   <finalName>${project.artifactId}-${project.version}</finalName>
   <plugins>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-compiler-plugin</artifactId>
       <configuration>
         <useIncrementalCompilation>false</useIncrementalCompilation>
       </configuration>
     </plugin>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-jar-plugin</artifactId>
     </plugin>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-surefire-plugin</artifactId>
     </plugin>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-source-plugin</artifactId>
     </plugin>
     <plugin>
       <groupId>org.mortbay.jetty</groupId>
       <artifactId>jetty-maven-plugin</artifactId>
       <configuration>
         <jettyXml>${basedir}/src/main/webapp/WEB-INF/jetty.xml</jettyXml>
         <!-- Key and port for stopping Jetty
         <stopKey>keyToStopJetty</stopKey> 
         <stopPort>8985</stopPort> -->
       </configuration>
     </plugin>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-deploy-plugin</artifactId>
     </plugin>
     <!--<plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-javadoc-plugin</artifactId>
     </plugin>-->
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-dependency-plugin</artifactId>
       <configuration>
         <includeScope>compile</includeScope>
         <excludeArtifactIds>xstream</excludeArtifactIds>
       </configuration>
     </plugin>
     <!-- Temporarily removed (takes some time)
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-checkstyle-plugin</artifactId>
     </plugin>-->
   </plugins>
 </build>
</project>

-- System Information:
Debian Release: jessie/sid
 APT prefers unstable
 APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages maven-debian-helper depends on:
ii  default-jdk                     1:1.7-49
ii  libmaven-clean-plugin-java      2.5-1
ii  libmaven-compiler-plugin-java   2.0.2-6
ii  libmaven-jar-plugin-java        2.2-6
ii  libmaven-resources-plugin-java  2.3-7
ii  libmaven-site-plugin-java       2.1-2
ii  libplexus-velocity-java         1.1.8-1
ii  libsurefire-java                2.10-4
ii  maven-repo-helper               1.8.4
ii  maven2                          2.2.1-14
ii  velocity                        1.7-4

maven-debian-helper recommends no packages.

Versions of packages maven-debian-helper suggests:
ii  apt-file                      2.5.2
ii  devscripts                    2.13.4
ii  libmaven-javadoc-plugin-java  2.6.1-2
ii  subversion                    1.7.9-1+nmu6

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/bin/mh_make (from maven-debian-helper package)


More information about the pkg-java-maintainers mailing list