Author: tchemit Date: 2008-10-15 12:59:09 +0000 (Wed, 15 Oct 2008) New Revision: 1222 Modified: maven-license-switcher-plugin/trunk/src/main/java/org/codelutin/license/plugin/ThirdPartyMojo.java Log: skip this goal for site and pom packaging Modified: maven-license-switcher-plugin/trunk/src/main/java/org/codelutin/license/plugin/ThirdPartyMojo.java =================================================================== --- maven-license-switcher-plugin/trunk/src/main/java/org/codelutin/license/plugin/ThirdPartyMojo.java 2008-10-13 21:00:03 UTC (rev 1221) +++ maven-license-switcher-plugin/trunk/src/main/java/org/codelutin/license/plugin/ThirdPartyMojo.java 2008-10-15 12:59:09 UTC (rev 1222) @@ -135,6 +135,13 @@ // must generate if file does not exist doGenerate = doGenerate || !thirdPartyFile.exists(); + if ("pom".equals(project.getPackaging()) || "site".equals(project.getPackaging())) { + // nothing to be done for this type of packaging + doGenerate = false; + getLog().info("skip third-party goal for packaging " + project.getPackaging()); + return; + } + if (doGenerate) { // prepare thirdPartyFileContent