Author: tchemit Date: 2010-11-18 22:08:02 +0100 (Thu, 18 Nov 2010) New Revision: 1886 Url: http://nuiton.org/repositories/revision/maven-license-plugin/1886 Log: improve final doc + Anomalie #1077: When a dependency is unnamed in maven 2.x it is called unnamed and in maven 3.0, it use the artifact Id Modified: trunk/src/main/java/org/nuiton/license/plugin/ArtifactHelper.java trunk/src/site/apt/index.apt trunk/src/site/fr/apt/index.apt Modified: trunk/src/main/java/org/nuiton/license/plugin/ArtifactHelper.java =================================================================== --- trunk/src/main/java/org/nuiton/license/plugin/ArtifactHelper.java 2010-11-18 20:55:41 UTC (rev 1885) +++ trunk/src/main/java/org/nuiton/license/plugin/ArtifactHelper.java 2010-11-18 21:08:02 UTC (rev 1886) @@ -61,7 +61,13 @@ public static String getArtifactName(MavenProject project) { StringBuilder sb = new StringBuilder(); - sb.append(project.getName()); + if (project.getName().startsWith("Unnamed -")) { + + // as in Maven 3, let's use the artifact id + sb.append(project.getArtifactId()); + }else { + sb.append(project.getName()); + } sb.append(" ("); sb.append(project.getGroupId()); sb.append(":"); Modified: trunk/src/site/apt/index.apt =================================================================== --- trunk/src/site/apt/index.apt 2010-11-18 20:55:41 UTC (rev 1885) +++ trunk/src/site/apt/index.apt 2010-11-18 21:08:02 UTC (rev 1886) @@ -38,6 +38,12 @@ As planned, license descriptor was removed from project. + The consolidation file (called missing file) of the third-party has been improved : + + - take account of special dependencies (with zip type for example) + - regenerate this file if needed (without using the <force> flag) + - delete from this file all obsolete dependencies no more used in project + <<Projet will migrate to Codehaus>> under the name of <<license-maven-plugin>>. This is then the last version under this name. hope you will continue to use Modified: trunk/src/site/fr/apt/index.apt =================================================================== --- trunk/src/site/fr/apt/index.apt 2010-11-18 20:55:41 UTC (rev 1885) +++ trunk/src/site/fr/apt/index.apt 2010-11-18 21:08:02 UTC (rev 1886) @@ -39,7 +39,13 @@ Quoi de neuf dans la version 3.0 On a supprimé les fichiers de descriptions dépréciés en 2.4. + + Le fichier de consolidation des third-party manquants a été amélioré : + - prise en compte de dépendences exotiques avec des types spéciaux (zip et autres) + - regénération du fichier si nécessaire + - suppression des dépendences qui ne sont plus utilisés dans le projet + <<Le projet migre sur Codehaus>> sous le nom de <<license-maven-plugin>>. On espère que vous continurez à l'utiliser sous la forge de <<codehaus>>.