Re: build-helper-maven-plugin not found by mvn-debian?
I'm no expert of debian package builds, but from a maven standpoint, it sounds like a missing plugin. Have you tried adding libbuild-helper-maven-plugin-java to build depends? If it was a maven 3 incompatibility, you'd see a much different error and probably a failed build on your local machine.
Cheers,
Andrew
On Tuesday, August 12, 2014, Daniel Pocock <daniel@pocock.pro> wrote:
>
>
> libphonenumber had a tools.jar in the source, I've ripped it out and
> tried to make it build the tools on each build. The rest of the project
> builds with ant but the tools.jar stuff is built with mvn.
>
> I've tried putting a call to mvn-debian into the debian/rules file
> https://github.com/dpocock/libphonenumber/blob/debian/debian/rules
>
> It works on my normal environment (wheezy) but fails in cowbuilder/sid,
> complaining about build-helper-maven-plugin (output below)
>
> The upstream pom.xml files had plugin versions specified, I remove those
> with a patch from debian/patches, so the problem appears to be something
> else.
> https://github.com/dpocock/libphonenumber/blob/debian/debian/patches/0002-maven-plugin-versions.patch
>
> I notice a comment on the mailing list from a while back suggesting that
> build-helper-maven-plugin requires maven 3
> https://lists.debian.org/debian-java/2013/05/msg00200.html
> but the deps it declares are maven2
> https://packages.debian.org/sid/libbuild-helper-maven-plugin-java
>
> Can anybody comment on how to get this building?
>
>
> Repository Metadata
> --------------------------
> GroupId: org.codehaus.mojo
> ArtifactId: build-helper-maven-plugin
> Metadata Type:
> org.apache.maven.artifact.repository.metadata.ArtifactRepositoryMetadata
>
>
> [DEBUG] build-helper-maven-plugin: using locally installed snapshot
> [DEBUG] Artifact not found - using stub model: Unable to determine the
> latest version
>
> org.codehaus.mojo:build-helper-maven-plugin:pom:LATEST
>
>
>
> [DEBUG] Using defaults for missing POM
> org.codehaus.mojo:build-helper-maven-plugin:pom:LATEST
> [DEBUG] build-helper-maven-plugin: using locally installed snapshot
> [DEBUG] Artifact not found - using stub model: Unable to determine the
> release version
>
> org.codehaus.mojo:build-helper-maven-plugin:pom:RELEASE
>
>
>
> [DEBUG] Using defaults for missing POM
> org.codehaus.mojo:build-helper-maven-plugin:pom:RELEASE
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.codehaus.mojo:build-helper-maven-plugin' does not
> exist or no valid version could be found
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> 'org.codehaus.mojo:build-helper-maven-plugin' does not exist or no valid
> version could be found
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1569)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1503)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:1282)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:534)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at org.debian.maven.Wrapper.main(Wrapper.java:89)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by:
> org.apache.maven.plugin.version.PluginVersionNotFoundException: The
> plugin 'org.codehaus.mojo:build-helper-maven-plugin' does not exist or
> no valid version could be found
> at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:229)
> at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:91)
> at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:179)
> at
> org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(DefaultPluginManager.java:1642)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1540)
> ... 19 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Tue Aug 12 20:35:23 UTC 2014
> [INFO] Final Memory: 10M/457M
> [INFO]
> ------------------------------------------------------------------------
>
>
> --
> To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] 53EA7D43.8010604@pocock.pro">https://lists.debian.org/[🔎] 53EA7D43.8010604@pocock.pro
>
>
Reply to: