On 2017-11-01 15:45, Martin Gansser wrote:
Hi,

when trying to compile okhttp with the okhttp.spec file from [1] i get this 
error messages:

...
[WARNING] Some problems were encountered while building the effective model for 
com.squareup.okhttp3.sample:guide:jar:3.9.0
[WARNING] 'build.plugins.plugin.version' for 
org.codehaus.mojo:animal-sniffer-maven-plugin is missing. @ 
com.squareup.okhttp3.sample:sample-parent:[unknown-version], 
/home/martin/rpmbuild/BUILD/okhttp-parent-3.9.0/samples/pom.xml, line 24, 
column 15
[WARNING]
[WARNING] Some problems were encountered while building the effective model for 
com.squareup.okhttp3.sample:simple-client:jar:3.9.0
[WARNING] 'build.plugins.plugin.version' for 
org.codehaus.mojo:animal-sniffer-maven-plugin is missing. @ 
com.squareup.okhttp3.sample:sample-parent:[unknown-version], 
/home/martin/rpmbuild/BUILD/okhttp-parent-3.9.0/samples/pom.xml, line 24, 
column 15
[WARNING]
[WARNING] Some problems were encountered while building the effective model for 
com.squareup.okhttp3.sample:slack:jar:3.9.0
[WARNING] 'build.plugins.plugin.version' for 
org.codehaus.mojo:animal-sniffer-maven-plugin is missing. @ 
com.squareup.okhttp3.sample:sample-parent:[unknown-version], 
/home/martin/rpmbuild/BUILD/okhttp-parent-3.9.0/samples/pom.xml, line 24, 
column 15
[WARNING]
[WARNING] Some problems were encountered while building the effective model for 
com.squareup.okhttp3.sample:sample-parent:pom:3.9.0
[WARNING] 'build.plugins.plugin.version' for 
org.codehaus.mojo:animal-sniffer-maven-plugin is missing. @ 
com.squareup.okhttp3.sample:sample-parent:[unknown-version], 
/home/martin/rpmbuild/BUILD/okhttp-parent-3.9.0/samples/pom.xml, line 24, 
column 15
...
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on 
project okhttp: Execution default-compile of goal 
org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile failed: Plugin 
org.apache.maven.plugins:maven-compiler-plugin:3.6.1 or one of its dependencies 
could not be resolved: The following artifacts could not be resolved: 
org.codehaus.plexus:plexus-compiler-javac-errorprone:jar:2.8.1, 
com.google.errorprone:error_prone_core:jar:2.0.16: Cannot access central 
(https://repo.maven.apache.org/maven2) in offline mode and the artifact 
org.codehaus.plexus:plexus-compiler-javac-errorprone:jar:2.8.1 has not been 
downloaded from it before. -> [Help 1]
[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/PluginResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :okhttp

Is there any help to get okhttp compiling again


It is missing additional dependencies for the compiler plugin. You have two options: a) package them b) remove them. The dependencies are there for static analysis, which is useful for upstream, but redundant for Fedora packaging, so I'd just remove them. For that you need to remove the dependency declaration, and the part of configuration that references them. You can do that with: %pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]//pom:compilerId' %pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:dependencies'


Regards,
Michael
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to