Skip to content

Possible build improvement #4

@sbernard31

Description

@sbernard31

This is just a list of possible improvement.

  1. use maven to check if code is well formatted e.g : Add formatter-maven-plugin to ensure file are well formatted.  eclipse-leshan/leshan#1281
  2. use maven to check unused import and ensure there are sorted correctly : Add impsort-maven-plugin to ensure Java imports are well sorted. eclipse-leshan/leshan#1282
  3. use maven to check pom is well sort/formatted : Add sortpom-maven-plugin to ensure pom.xml files are well formatted. eclipse-leshan/leshan#1285
  4. maven enforcer can be used to check build requirement (examples)
  5. maven compiler could be configured to raise more error/warning.
  6. Generally better to fix all version dependency and plugin dependency respectively in <dependencyManagement> and <pluginManagement>
  7. author and license can be put in pom.xml
  8. flatten-maven-plugin is cool to have complete pom.xml by jar (but maybe too soon to do that and not needed with maven 4 if I get it correctly)

Also to be use to use last version of plugin you can use

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>versions-maven-plugin</artifactId>
    <version>2.19.1</version>
</plugin>

and mvn versions:display-dependency-updates to check dependency
and mvn versions:display-plugin-updates to check plugin dependency

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions