Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Publish a shadow jar with thrift 0.9.2 #83

Merged
merged 1 commit into from Oct 26, 2016
Merged

Publish a shadow jar with thrift 0.9.2 #83

merged 1 commit into from Oct 26, 2016

Conversation

vprithvi
Copy link
Contributor

  • publishes an additional jar that packages org.apache.thrift:libthrift:0.9.2 under the classifier thrift92
  • relocates org.apache.thrift to org.shadow.apache.thrift92 in the shaded jar

Fixes #80

<dependency>
<groupId>com.uber.jaeger</groupId>
<artifactId>jaeger-thrift</artifactId>
<classifier>thrift92</classifier>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does the classifier add over artifactId?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The classifier adds in information on whether the shaded libthrift 0.9.2 is included or not.
Omitting the classifier will result in using the default artifact that does not contain the bundled libthrift. (It simply contains the generated thrift files).

In general, people never directly add jaeger-thrift because it is a transitive dependency of jaeger-core.

See http://maven.apache.org/pom.html for more information on the classifier mechanism

The classifier allows to distinguish artifacts that were built from the same POM but differ in their content. It is some optional and arbitrary string that - if present - is appended to the artifact name just after the version number.
As a motivation for this element, consider for example a project that offers an artifact targeting JRE 1.5 but at the same time also an artifact that still supports JRE 1.4. The first artifact could be equipped with the classifier jdk15 and the second one with jdk14 such that clients can choose which one to use.

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another alternative we could investigate is not having a dependency on thrift in the first place (#84).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants