ITP: google-http-client-java -- Google HTTP Client Library for Java
Control: retitle -1 ITP: google-http-client-java -- Google HTTP Client Library for Java
Control: owner -1 Andreas Tille <tille@debian.org>
Control: tags -1 help
Hi,
in the COVID-19 sprint of Debian Med we spotted the bazel packaging
system as important target to finally get tensorflow packaged for
Debian. The package google-http-client-java is a precondition for
Bazel and I intend to help Olek Wojnar to package this. Thus I took
over the RFP and started the packaging[1].
I admit I was not very successful so far and need help. Here are
the errors I've got from mh_make:
> apt-file search /usr/share/java/fmt-maven-plugin.jar
apt-file failed to execute successfully
[error] Cannot resolve Maven dependency com.coveo:fmt-maven-plugin:maven-plugin:2.9. If you know a package that contains a compatible dependency,
try to enter a substitution rule of the form s/groupId/newGroupId/ s/artifactId/newArtifactId/ jar s/version/newVersion/ here:
>
Try again to resolve the dependency?
[Y/n] > n
Juni 01, 2020 8:34:32 VORM. org.debian.maven.packager.DependenciesSolver$ToResolve resolve
SCHWERWIEGEND: Cannot resolve dependencies in ./pom.xml: Dependency not found com.coveo:fmt-maven-plugin:maven-plugin:2.9
In google-http-client/pom.xml: This dependency cannot be found in the Debian Maven repository. Ignore this dependency? com.google.j2objc:j2objc-annotations:jar:1.3
[y/N] >
> dpkg --search /usr/share/maven-repo/com/google/j2objc/j2objc-annotations/*/*
dpkg failed to execute successfully
> apt-file search /usr/share/maven-repo/com/google/j2objc/j2objc-annotations
apt-file failed to execute successfully
> dpkg --search /usr/share/java/j2objc-annotations.jar
dpkg failed to execute successfully
> apt-file search /usr/share/java/j2objc-annotations.jar
apt-file failed to execute successfully
[error] Cannot resolve Maven dependency com.google.j2objc:j2objc-annotations:jar:1.3. If you know a package that contains a compatible dependency,
try to enter a substitution rule of the form s/groupId/newGroupId/ s/artifactId/newArtifactId/ jar s/version/newVersion/ here:
>
Try again to resolve the dependency?
[Y/n] > n
Juni 01, 2020 8:36:15 VORM. org.debian.maven.packager.DependenciesSolver$ToResolve resolve
SCHWERWIEGEND: Cannot resolve dependencies in ./google-http-client/pom.xml: Dependency not found com.google.j2objc:j2objc-annotations:jar:1.3
In google-http-client/pom.xml: This plugin is not useful for the build or its use is against Debian policies. Ignore this plugin? org.apache.maven.plugins:maven-source-plugin:maven-plugin:3.2.1
[Y/n] > n
> dpkg --search /usr/share/maven-repo/org/apache/maven/plugins/maven-source-plugin/*/*
dpkg failed to execute successfully
> apt-file search /usr/share/maven-repo/org/apache/maven/plugins/maven-source-plugin
Found /usr/share/maven-repo/org/apache/maven/plugins/maven-source-plugin/3.0.1/maven-source-plugin-3.0.1.pom in libmaven-source-plugin-java
> dpkg --search /usr/share/java/maven-source-plugin.jar
dpkg failed to execute successfully
> apt-file search /usr/share/java/maven-source-plugin.jar
Found libmaven-source-plugin-java
[error] Package libmaven-source-plugin-java does not contain Maven dependency org.apache.maven.plugins:maven-source-plugin:maven-plugin:3.2.1 but there seem to be a match
If the package contains already Maven artifacts but the names don't match, try to enter a substitution rule
of the form s/groupId/newGroupId/ s/artifactId/newArtifactId/ jar s/version/newVersion/ here:
>
Try again to resolve the dependency?
[Y/n] > n
Juni 01, 2020 8:38:05 VORM. org.debian.maven.packager.DependenciesSolver$ToResolve resolve
SCHWERWIEGEND: Cannot resolve dependencies in ./google-http-client/pom.xml: Dependency not found org.apache.maven.plugins:maven-source-plugin:maven-plugin:3.2.1
In google-http-client-assembly/pom.xml: This plugin may be ignored in some cases. Ignore this plugin? org.apache.maven.plugins:maven-assembly-plugin:maven-plugin:3.1.0
[Y/n] >
In google-http-client-appengine/pom.xml: This dependency cannot be found in the Debian Maven repository. Ignore this dependency? com.google.appengine:appengine-api-1.0-sdk:jar:1.9.71
[y/N] >
> dpkg --search /usr/share/maven-repo/com/google/appengine/appengine-api-1.0-sdk/*/*
dpkg failed to execute successfully
> apt-file search /usr/share/maven-repo/com/google/appengine/appengine-api-1.0-sdk
apt-file failed to execute successfully
> dpkg --search /usr/share/java/appengine-api-1.0-sdk.jar
dpkg failed to execute successfully
> apt-file search /usr/share/java/appengine-api-1.0-sdk.jar
apt-file failed to execute successfully
[error] Cannot resolve Maven dependency com.google.appengine:appengine-api-1.0-sdk:jar:1.9.71. If you know a package that contains a compatible dependency,
try to enter a substitution rule of the form s/groupId/newGroupId/ s/artifactId/newArtifactId/ jar s/version/newVersion/ here:
>
Try again to resolve the dependency?
[Y/n] > n
Juni 01, 2020 8:39:36 VORM. org.debian.maven.packager.DependenciesSolver$ToResolve resolve
SCHWERWIEGEND: Cannot resolve dependencies in ./google-http-client-appengine/pom.xml: Dependency not found com.google.appengine:appengine-api-1.0-sdk:jar:1.9.71
> dpkg --status libmaven-source-plugin-java
dpkg failed to execute successfully
[warning] Please install the missing dependency. Run the following command in another terminal:
sudo apt-get install libmaven-source-plugin-java
Try again to resolve the dependency?
[Y/n] >
Rescanning /usr/share/maven-repo...
In google-http-client-android/pom.xml: This dependency cannot be found in the Debian Maven repository. Ignore this dependency? com.google.android:android:jar:4.1.1.4
[y/N] > y
In google-http-client-apache-v2/pom.xml: This dependency cannot be found in the Debian Maven repository. Ignore this dependency? org.mockito:mockito-all:jar:1.10.19
[y/N] > y
In google-http-client-apache-v2/pom.xml: This plugin cannot be found in the Debian Maven repository. Ignore this plugin? org.codehaus.mojo:build-helper-maven-plugin:maven-plugin:3.1.0
[y/N] > y
In google-http-client-apache-v2/pom.xml: This plugin cannot be found in the Debian Maven repository. Ignore this plugin? org.apache.felix:maven-bundle-plugin:maven-plugin:2.5.4
[y/N] > y
In google-http-client-protobuf/pom.xml: This plugin cannot be found in the Debian Maven repository. Ignore this plugin? com.google.protobuf.tools:maven-protoc-plugin:maven-plugin:0.4.2
[y/N] > y
In google-http-client-protobuf/pom.xml: This dependency cannot be found in the Debian Maven repository. Ignore this dependency? kr.motd.maven:os-maven-plugin:jar:1.6.2
[y/N] > y
In google-http-client-findbugs/pom.xml: This dependency cannot be found in the Debian Maven repository. Ignore this dependency? com.google.code.findbugs:bcel-findbugs:jar:6.0
[y/N] > y
In samples/dailymotion-simple-cmdline-sample/pom.xml: This plugin cannot be found in the Debian Maven repository. Ignore this plugin? org.codehaus.mojo:exec-maven-plugin:maven-plugin:1.6.0
[y/N] > y
In samples/dailymotion-simple-cmdline-sample/pom.xml: This plugin is not useful for the build or its use is against Debian policies. Ignore this plugin? org.apache.maven.plugins:maven-deploy-plugin:maven-plugin:2.8.2
[Y/n] >
ERROR:
pom.xml: plugin is not packaged in the Maven repository for Debian: com.coveo:fmt-maven-plugin:2.9
google-http-client/pom.xml: dependency is not packaged in the Maven repository for Debian: com.google.j2objc:j2objc-annotations:1.3
google-http-client/pom.xml: plugin is not packaged in the Maven repository for Debian: org.apache.maven.plugins:maven-source-plugin:3.2.1
google-http-client-appengine/pom.xml: dependency is not packaged in the Maven repository for Debian: com.google.appengine:appengine-api-1.0-sdk:1.9.71
google-http-client-appengine/pom.xml: plugin is not packaged in the Maven repository for Debian: org.apache.maven.plugins:maven-source-plugin:3.2.1
--------
Checking dependencies for documentation packages...
> dpkg --search /usr/share/doc/junit4/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/junit4/api/index.html
Found junit4-doc
> dpkg --search /usr/share/doc/libfindbugs-java/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libfindbugs-java/api/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libfindbugs-java-doc/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libfindbugs-java-doc/api/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libfindbugs-java/apidocs/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libfindbugs-java/apidocs/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libfindbugs-java-doc/apidocs/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libfindbugs-java-doc/apidocs/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libgoogle-gson-java/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libgoogle-gson-java/api/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libgoogle-gson-java-doc/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libgoogle-gson-java-doc/api/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libgoogle-gson-java/apidocs/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libgoogle-gson-java/apidocs/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libgoogle-gson-java-doc/apidocs/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libgoogle-gson-java-doc/apidocs/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libguava-java/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libguava-java/api/index.html
Found libguava-java-doc
> dpkg --search /usr/share/doc/libhttpclient-java/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libhttpclient-java/api/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libhttpclient-java-doc/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libhttpclient-java-doc/api/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libhttpclient-java/apidocs/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libhttpclient-java/apidocs/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libhttpclient-java-doc/apidocs/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libhttpclient-java-doc/apidocs/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libhttpcore-java/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libhttpcore-java/api/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libhttpcore-java-doc/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libhttpcore-java-doc/api/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libhttpcore-java/apidocs/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libhttpcore-java/apidocs/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libhttpcore-java-doc/apidocs/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libhttpcore-java-doc/apidocs/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libjackson2-core-java/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libjackson2-core-java/api/index.html
Found libjackson2-core-java-doc
> dpkg --search /usr/share/doc/libjsr305-java/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libjsr305-java/api/index.html
Found libjsr305-java-doc
> dpkg --search /usr/share/doc/libprotobuf-java/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libprotobuf-java/api/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libprotobuf-java-doc/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libprotobuf-java-doc/api/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libprotobuf-java/apidocs/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libprotobuf-java/apidocs/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libprotobuf-java-doc/apidocs/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libprotobuf-java-doc/apidocs/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libxpp3-java/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libxpp3-java/api/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libxpp3-java-doc/api/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libxpp3-java-doc/api/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libxpp3-java/apidocs/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libxpp3-java/apidocs/index.html
apt-file failed to execute successfully
> dpkg --search /usr/share/doc/libxpp3-java-doc/apidocs/index.html
dpkg failed to execute successfully
> apt-file search /usr/share/doc/libxpp3-java-doc/apidocs/index.html
apt-file failed to execute successfully
Some problems were found in this project, exiting...
Exit code: 1
I admit I have no idea what message is really relevant but the package
does not build and the build log says:
...
dh_auto_build
/usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/build/google-http-java-client-1.35.0 -Dclassworlds.conf=/etc/maven/m2-debian.conf org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/build/google-http-java-client-1.35.0/debian -Dmaven.repo.local=/build/google-http-java-client-1.35.0/debian/maven-repo package -DskipTests -Dnotimestamp=true -Dlocale=en_US
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[WARNING] The POM for org.sonatype.plugins:nexus-staging-maven-plugin:jar:1.6.8 is missing, no dependency information available
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.sonatype.plugins:nexus-staging-maven-plugin:jar:1.6.8 has not been downloaded from it before. @
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.google.http-client:google-http-client-parent:1.35.0 (/build/google-http-java-client-1.35.0/pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.sonatype.plugins:nexus-staging-maven-plugin:jar:1.6.8 has not been downloaded from it before. -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
dh_auto_build: error: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/build/google-http-java-client-1.35.0 -Dclassworlds.conf=/etc/maven/m2-debian.conf org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/build/google-http-java-client-1.35.0/debian -Dmaven.repo.local=/build/google-http-java-client-1.35.0/debian/maven-repo package -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
...
Any help would be welcome.
Kind regards
Andreas.
[1] https://salsa.debian.org/java-team/google-http-java-client
--
http://fam-tille.de
Reply to: