Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle artifactId? #8

Closed
keilw opened this issue Jul 20, 2015 · 2 comments
Closed

How to handle artifactId? #8

keilw opened this issue Jul 20, 2015 · 2 comments
Assignees
Labels

Comments

@keilw
Copy link
Member

keilw commented Jul 20, 2015

To allow easier switch between different implementations (at the moment, some dependency seems hard to avoid) it looks like a good move to use the same package names under "si.uom" for both.
How would you tell them apart?

  • Different artifactId (something like "si-impl-se")
  • Maven Qualifier, (see json-lib-2.4-jdk15 vs. json-lib-jdk13)
@keilw
Copy link
Member Author

keilw commented Jul 21, 2015

This could be of interest: http://stackoverflow.com/questions/12320322/build-multiple-artifacts-with-different-classifiers-at-once
One important aspect is, that while https://github.com/unitsofmeasurement/si-units/tree/master/quantity (the "API" defining reusable quantity types) is implementation-neutral and exists only once for all environments, some modules like https://github.com/unitsofmeasurement/si-units/tree/master/impl need to distinguish the underlying implementations in cases where this won't be possible via e.g. ServiceLoader.

While above StackOverflow tip aims at multiple resources, with more than one profile and one or more classifiers the "java" folders may be tweaked, while e.g. resources can be shared between those classes.

@keilw keilw added the ready label Jul 26, 2015
@keilw keilw self-assigned this Jul 26, 2015
@keilw keilw added in progress and removed ready labels Jul 26, 2015
@keilw
Copy link
Member Author

keilw commented Aug 4, 2015

While classifier works reasonably well, some Maven plugins won't support it, so manual interaction is necessary. We may consider using a similar structure as e.g. Apache Tamaya https://repository.apache.org/content/groups/snapshots/org/apache/tamaya/tamaya-java8/

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

No branches or pull requests

1 participant