question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ArtifactId should match module / repo name

See original GitHub issue

Right now there’s microprofile-config but the artifactId for the parent POM is defined as microprofile.config.parent. While dots as separators are quite common especially under Eclipse, see https://github.com/eclipse/rt.equinox.framework, the artifactId should match the module or repository name wherever possible. So either microprofile.config.parent in a repo microprofile.config or an artifactId microprofile-config in the existing name pattern.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:28 (27 by maintainers)

github_iconTop GitHub Comments

3reactions
gunnarmorlingcommented, Feb 23, 2017

Why using underscores as separator? Hardly ever seeing that out there.

I’d use microprofile-config-1.0.0.Final.jar:

  • three digits so we can do bugfix releases like 1.0.1
  • an “Alpha”, “Beta”, “CR”, “Final” suffix to have preview releases which can be nicely sorted. That’s the convention we have in Hibernate (and other JBoss) projects and it’s working very well.
1reaction
Emily-Jiangcommented, Feb 27, 2017

With my OSGi cap on, as for the bundle version, it has four parts major.minor.micro.qualifier. Since version can be compared, the major, minor and micro follow number comparison while qualifier can be strings, which will follow string comparison (alpha<beta<Final). When we say the number scheme of major.minor.micro.qualifier (microprofile-config-1.0.0.Final.jar), this is the final release. For an alpha release, we have microprofile-config-1.0.0.alpha.jar, which is smaller than microprofile-config-1.0.0.Final. At least, we can differentiate the different stages of the releases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven Tip: Project Directories Should Match the Artifact ID
Here's the rule: Name your project's directory after the artifactId of your project. It is much easier for everyone to quickly recognize and ......
Read more >
Guide to Naming Conventions - Apache Maven
artifactId is the name of the jar without version. If you created it, then you can choose whatever name you want with lowercase...
Read more >
Maven naming conventions for hierarchical multiple module ...
As you said: artifacId and module name should be the same. I would also recommend using the artifactId as name in the pom....
Read more >
On JitPack's use of git repository name as Maven artifactId
Switching to a different artifactId on Maven Central to match the repository name would cause confusion, since older versions would have one  ......
Read more >
Naming rules for Maven modules and packages - jQAssistant
Each Java type must be located in a package that has a name starting with a prefix consisting of the groupId and artifactId...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found