Bug#542511: maven-debian-helper: mh_lspoms fails with IOException: Cannot run program

Ludovic Claude ludovic.claude at laposte.net
Thu Aug 20 09:22:58 UTC 2009


Hello Damien,

The root cause here is that org.apache.mina:build:1.1.7 is not available
in the /usr/share/maven-repo repository. So you will need first to add
the Maven packaging for this artifact.

I will add apt-file to Recommends, that sounds like something I have
forgotten.

Ludovic

Damien Raude-Morvan a écrit :
> Package: maven-debian-helper
> Version: 0.6
> Severity: normal
> 
> Hi,
> 
> When using "mh_lspoms" command from maven-debian-helper, I'm getting the 
> following error :
> 
> 
> Check the parent dependency in the sub project ./core/pom.xml     
>> dpkg --search /usr/share/maven-
> repo/org/apache/mina/build/1.1.7/build-1.1.7.pom 
> dpkg : /usr/share/maven-repo/org/apache/mina/build/1.1.7/build-1.1.7.pom 
> introuvable.
> Cannot execute dpkg                                                                  
>> dpkg --search /usr/bin/mvn                                                         
> maven2: /usr/bin/mvn                                                                 
> Found maven2                                                                         
>> apt-file search /usr/share/maven-
> repo/org/apache/mina/build/1.1.7/build-1.1.7.pom  
> java.io.IOException: Cannot run program "apt-file": java.io.IOException: 
> error=2, No such file or directory
>         at java.lang.ProcessBuilder.start(ProcessBuilder.java:474)                                         
>         at 
> org.debian.maven.packager.DependenciesSolver.executeProcess(DependenciesSolver.java:379)        
>         at 
> org.debian.maven.packager.DependenciesSolver.searchPkg(DependenciesSolver.java:365)             
>         at 
> org.debian.maven.packager.DependenciesSolver.resolveDependencies(DependenciesSolver.java:310)   
>         at 
> org.debian.maven.packager.DependenciesSolver.resolveDependencies(DependenciesSolver.java:251)   
>         at 
> org.debian.maven.packager.DependenciesSolver.resolveDependencies(DependenciesSolver.java:270)   
>         at 
> org.debian.maven.packager.DependenciesSolver.solveDependencies(DependenciesSolver.java:220)     
>         at 
> org.debian.maven.packager.DependenciesSolver.main(DependenciesSolver.java:518)                  
> Caused by: java.io.IOException: java.io.IOException: error=2, No such file or 
> directory                    
>         at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)                                              
>         at java.lang.ProcessImpl.start(ProcessImpl.java:81)                                                
>         at java.lang.ProcessBuilder.start(ProcessBuilder.java:467)                                         
>         ... 7 more
> 
> 
> Maybe a Recommends on "apt-file" should be added to package ?
> 
> 
> -- System Information:
> Debian Release: squeeze/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (200, 'experimental')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 2.6.30-1-amd64 (SMP w/4 CPU cores)
> Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages maven-debian-helper depends on:
> ii  default-jre [java2-runtime]   1.6-33     Standard Java or Java compatible 
> R
> ii  gcj-jre [java2-runtime]       4:4.3.3-9  Java runtime environment using 
> GIJ
> ii  java-gcj-compat [java2-runtim 1.0.80-5.1 Java runtime environment using 
> GIJ
> ii  libmaven-clean-plugin-java    2.3-3      Maven clean plugin
> ii  libmaven-compiler-plugin-java 2.0.2-4    Maven compiler plugin
> ii  libmaven-jar-plugin-java      2.2-4      Maven Jar plugin
> ii  libmaven-resources-plugin-jav 2.3-5      Maven resources plugin
> ii  libmaven-site-plugin-java     2.0-2      Maven Site Plugin for generating 
> a
> ii  libplexus-velocity-java       1.1.7-2    Plexus component interface to 
> velo
> ii  libsurefire-java              2.4.3-3    Surefire test framework for Java
> ii  maven-repo-helper             0.7        Helper tools for including Maven 
> m
> ii  maven2                        2.2.0-2    Java software project management 
> a
> ii  openjdk-6-jre [java2-runtime] 6b16-4     OpenJDK Java runtime, using 
> Hotspo
> ii  sun-java5-jre [java2-runtime] 1.5.0-20-1 Sun Java(TM) Runtime Environment 
> (
> ii  sun-java6-jre [java2-runtime] 6-15-1     Sun Java(TM) Runtime Environment 
> (
> ii  velocity                      1.6.2-2    Java-based template engine for 
> web
> 
> maven-debian-helper recommends no packages.
> 
> Versions of packages maven-debian-helper suggests:
> pn  libmaven-javadoc-plugin-java  <none>     (no description available)
> 
> -- no debconf information
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> pkg-java-maintainers mailing list
> pkg-java-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers





More information about the pkg-java-maintainers mailing list