简体   繁体   中英

Is a Maven project necessarily a Java package?

From the Maven projects which I have seen, a Maven project seems to always correspond to a Java package.

So is a Maven project necessarily a Java package?

Note that package is a concept in Java language, while project is a concept in Maven.

Thanks.

There are no relation between Java packages and Maven project.

Maven is building tool and java packages are pure abstraction to it. You can have this impression as most popular naming convention for naming maven project is to set group id same as root package for project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM