Bug#569189: maven-debian-helper: Dependencies with scope compile are not included in maven:Depends

Ludovic Claude ludovic.claude54 at googlemail.com
Wed Feb 10 23:10:31 UTC 2010


Hello Gabriele, it looks like you're right!

http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope

As a quick fix,do not use the Maven expension variables for your
project. I will include a fix in the next release of maven-debian-helper.

Ludovic

Gabriele Giacone a écrit :
> Package: maven-debian-helper
> Version: 0.7
> Severity: normal
> 
> pom.xml file like the following:
> 
> [...]
>     <dependencies>
>         <dependency>
>             <groupId>org.freehep</groupId>
>             <artifactId>freehep-export</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.freehep</groupId>
>             <artifactId>freehep-graphicsio</artifactId>
>             <version>2.1.1</version>
>         </dependency>
>         <dependency>
>             <groupId>junit</groupId>
>             <artifactId>junit</artifactId>
>             <scope>compile</scope>
>         </dependency>
>     <dependency>
>       <groupId>org.freehep</groupId>
>       <artifactId>jas-plotter</artifactId>
>       <version>2.2</version>
>       <scope>compile</scope>
>     </dependency>
>     </dependencies>
> [...]
> 
> produces .substvars file:
> 
> maven:CompileDepends=junit, libjas-plotter-java, libmaven-exec-plugin-java (>\= 1.1.1), libsurefire-java (>\= 2.4.3)
> maven:Depends=libfreehep-export-java, libfreehep-graphicsio-java
> maven:OptionalDepends=
> maven:TestDepends=
> 
> It should produce
> 
> maven:CompileDepends=libmaven-exec-plugin-java (>\= 1.1.1), libsurefire-java (>\= 2.4.3)
> maven:Depends=junit, libfreehep-export-java, libfreehep-graphicsio-java, libjas-plotter-java
> maven:OptionalDepends=
> maven:TestDepends=
> 
> Specifying compile scope should be equal to not specifying any scope. Shouldn't it?
> 
> 
> Thanks,
> Gabriele
> 
> 
> -- System Information:
> Debian Release: squeeze/sid
>   APT prefers testing
>   APT policy: (990, 'testing'), (500, 'unstable')
> Architecture: i386 (i686)
> 
> Kernel: Linux 2.6.32-trunk-686 (SMP w/2 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-jre [java2-runtime]  1.6-34      Standard Java or Java compatible R
> ii  libmaven-clean-plugin-java   2.3-3       Maven clean plugin
> ii  libmaven-compiler-plugin-jav 2.0.2-4     Maven compiler plugin
> ii  libmaven-jar-plugin-java     2.2-4       Maven Jar plugin
> ii  libmaven-resources-plugin-ja 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-3     Plexus component interface to velo
> ii  libsurefire-java             2.4.3-3     Surefire test framework for Java
> ii  maven-repo-helper            0.9         Helper tools for including Maven m
> ii  maven2                       2.2.1-2     Java software project management a
> ii  openjdk-6-jre [java2-runtime 6b17~pre3-1 OpenJDK Java runtime, using Hotspo
> ii  velocity                     1.6.2-3     Java-based template engine for web
> 
> Versions of packages maven-debian-helper recommends:
> ii  apt-file                      2.3.3      search for files within Debian pac
> 
> 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