[Debian-med-packaging] Packaging maven-scala-plugin (Was: Help needed for gatk)

Andrew Schurman arcticwaters at gmail.com
Mon Feb 1 11:05:32 UTC 2016


On Mon, 2016-02-01 at 09:51 +0100, Andreas Tille wrote:
> Thanks for "reading aloud" for me - this might be due to my partial
> blindness for Java problems. :-)

No worries. Sometimes people overlook the simplest solutions because
they've been tackling a problem for too long. 


> 
> The next stumbling stone is
> 
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR : 
> [INFO] -------------------------------------------------------------
> [ERROR] /build/maven-scala-plugin-
> 3.2.2/src/main/java/scala_maven/ScalaRunMojo.java:[3,34] package
> org.apache.maven.toolchain does not exist
> [ERROR] /build/maven-scala-plugin-
> 3.2.2/src/main/java/scala_maven/ScalaMojoSupport.java:[24,35] package
> org.apache.maven.repository does not exist
> [ERROR] /build/maven-scala-plugin-
> 3.2.2/src/main/java/scala_maven/ScalaMojoSupport.java:[33,34] package
> org.apache.maven.toolchain does not exist
> [ERROR] /build/maven-scala-plugin-
> 3.2.2/src/main/java/scala_maven/ScalaMojoSupport.java:[87,15] cannot
> find symbol
> 
> So I think I need to go on packaging:
> 
>     https://maven.apache.org/plugins/maven-toolchains-plugin/  and
>     https://maven.apache.org/plugins/maven-repository-plugin/
> 
> I'm just asking here to make sure that there is no work in progress
> for
> this or that it somehow could be circumvented somehow ...

Now you've found a more interesting problem. The scala-plugin doesn't
have a direct dependency on these, yet expects them to be there. Seeing
how there have been a few releases with this change, it's unlikely to
be a mishap by the author. Checking `dependency:tree` doesn't list them
either, so we don't need these to be packaged. What this has to mean is
the version of one of the dependencies of the project in debian isn't
correct. A quick search for toolchain in jars of the dependencies show
it's available in maven-core:3.0.4.

It looks like you're building with maven-core 2.x instead of 3.x since
it was added in 3.x. The debian version of maven-core redirects to 2.x
by default, so you'll need to add a publishedRule to use version 3.x of
maven-core.

Hopefully that troubleshooting logic will help you.

Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20160201/5e61de73/attachment.sig>


More information about the Debian-med-packaging mailing list