[
https://issues.apache.org/jira/browse/BEAM-445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15373951#comment-15373951
]
Scott Wegner commented on BEAM-445:
-----------------------------------
Looking into this..
The issue is that netty-tcnative is a transitive dependency of
io/google-cloud-platform, and requires the os-maven-plugin extension present to
resolve the artifact classifier. This works for maven builds which only use
gcp-io through its own pom, but fails on those that bring it in as a dependency
artifact, i.e. examples/java. This will also imposes a dependency on customer
projects, confirmed by adding gcp-io as a dependency on the
maven-archetype-starter project.
>From http://netty.io/wiki/forked-tomcat-native.html, there is also an "uber
>jar": "While this tends to be a fairly large jar, it greatly simplifies the
>getting started experience since an application need not be concerned with
>obtaining the correct jar for the platform."
I recommend we target this jar instead in order to simplify user consumption.
> Beam-examples-java build failed through local "mvn install"
> -----------------------------------------------------------
>
> Key: BEAM-445
> URL: https://issues.apache.org/jira/browse/BEAM-445
> Project: Beam
> Issue Type: Bug
> Environment: linux
> Reporter: Mark Liu
> Priority: Critical
>
> Build project under beam/examples/java with command "mvn clean install
> -DskipTests" failed with following error:
> [ERROR] Failed to execute goal on project beam-examples-java: Could not
> resolve dependencies for project
> org.apache.beam:beam-examples-java:jar:0.2.0-incubating-SNAPSHOT: Could not
> transfer artifact
> io.netty:netty-tcnative-boringssl-static:jar:${os.detected.classifier}:1.1.33.Fork13
> from/to central (http://repo.maven.apache.org/maven2): Illegal character in
> path at index 138:
> http://repo.maven.apache.org/maven2/io/netty/netty-tcnative-boringssl-static/1.1.33.Fork13/netty-tcnative-boringssl-static-1.1.33.Fork13-${os.detected.classifier}.jar
> Reason: can't resolve ${os.detected.classifier} in
> beam/sdks/java/io/google-cloud-platform/pom file.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)