You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by diku gabriell <di...@yahoo.com.INVALID> on 2019/11/27 16:38:15 UTC

Suggestions for improvements of current maven version

Hello,

My name is Gabriel Dicu.I am currently working with apache maven and I’d like to make a suggestion about improving maven dependency structure.In my opinion, dependencies should be organized better, because is difficult to spot dependencies for different scopes.I think it is a good approach to group dependencies by their scopes, thus having parent tags for each scope like:
<dependencies>
    <scope value=”runtime”>
   <dependency>
<groupId>…</groupId>
<artifactId>…</artifactId>
<version>…</version>
   </dependency>
    </scope>
<!—this is the default scope-->
    <scope>
<dependency>
<groupId>…</groupId>
<artifactId>…</artifactId>
<version>…</version>
   </dependency>
    </scope>
<scope value=”test”>
<dependency>
<groupId>…</groupId>
<artifactId>…</artifactId>
<version>…</version>
   </dependency>
 <scope>
</dependencies>

In this way you can organize better the dependencies and spot easily the different scopes.It also can help identify the runtime/compile/etc..  production dependencies and separate them from testing ones, which can be less important in many cases.

Thanks for taking the time for reading this, and if this approach can be feasible,
I can be reached at the following email address dikugabriell@yahoo.com for more details.

Sent from Mail for Windows 10