Home > Mobile >  Maven parent pom - module names in camel case?
Maven parent pom - module names in camel case?

Time:11-28

Can module names in a maven aggregator (multi-module) project be in camel case?

CodePudding user response:

I think module names follow the same conventions as artifactId.

artifactId is the name of the jar without version. If you created it, then you can choose whatever name you want with lowercase letters and no strange symbols. If it's a third party jar, you have to take the name of the jar as it's distributed. eg. maven, commons-math

https://maven.apache.org/guides/mini/guide-naming-conventions.html

The value of is the relative path from the com.mycompany.app:my-app:1 to com.mycompany.app:my-module:1's POM (by practice, we use the module's artifactId as the module directory's name).

https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#the-solution-2

  • Related