Author: tchemit Date: 2010-06-19 03:02:04 +0200 (Sat, 19 Jun 2010) New Revision: 1772 Url: http://nuiton.org/repositories/revision/maven-license-plugin/1772 Log: use mavenpom 2.2 and central-safe profile + remove deprecated api Removed: trunk/src/main/java/org/nuiton/license/plugin/AddThirdPartyFileMojo.java Modified: trunk/pom.xml trunk/src/main/java/org/nuiton/license/plugin/AddThirdPartyMojo.java Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2010-06-02 10:28:27 UTC (rev 1771) +++ trunk/pom.xml 2010-06-19 01:02:04 UTC (rev 1772) @@ -34,7 +34,7 @@ <parent> <groupId>org.nuiton</groupId> <artifactId>mavenpom4redmine</artifactId> - <version>2.1.5</version> + <version>2.2-SNAPSHOT</version> </parent> <artifactId>maven-license-plugin</artifactId> @@ -495,6 +495,49 @@ </reporting> </profile> + + <profile> + <id>central-safe</id> + <activation> + <property> + <name>performRelease</name> + <value>true</value> + </property> + </activation> + + <properties> + + <!-- deploy releases on nuiton-central-releases repository --> + <release.repository>${nuiton.central.release.repository}</release.repository> + + </properties> + + <build> + <plugins> + <plugin> + <groupId>org.nuiton</groupId> + <artifactId>maven-helper-plugin</artifactId> + <executions> + <execution> + <id>check-central-safe</id> + <inherited>true</inherited> + <goals> + <goal>check-central-safe</goal> + </goals> + <configuration> + <extraRepositories> + <nuiton-central-releases> + http://nexus.nuiton.org/nexus/content/repositories/nuiton-central-releases + </nuiton-central-releases> + </extraRepositories> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> Deleted: trunk/src/main/java/org/nuiton/license/plugin/AddThirdPartyFileMojo.java =================================================================== --- trunk/src/main/java/org/nuiton/license/plugin/AddThirdPartyFileMojo.java 2010-06-02 10:28:27 UTC (rev 1771) +++ trunk/src/main/java/org/nuiton/license/plugin/AddThirdPartyFileMojo.java 2010-06-19 01:02:04 UTC (rev 1772) @@ -1,35 +0,0 @@ -/* - * #%L - * Maven License Plugin - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. - * #L% - */ - -package org.nuiton.license.plugin; - -/** - * @author tchemit <chemit@codelutin.com> - * @deprecated since 2.2, use instead the {@link AddThirdPartyMojo} class. - */ -@Deprecated -public class AddThirdPartyFileMojo extends AddThirdPartyMojo { - -} Modified: trunk/src/main/java/org/nuiton/license/plugin/AddThirdPartyMojo.java =================================================================== --- trunk/src/main/java/org/nuiton/license/plugin/AddThirdPartyMojo.java 2010-06-02 10:28:27 UTC (rev 1771) +++ trunk/src/main/java/org/nuiton/license/plugin/AddThirdPartyMojo.java 2010-06-19 01:02:04 UTC (rev 1772) @@ -116,17 +116,6 @@ protected boolean keepBackup; /** - * Un flag pour faire une copie nommé dans META-INF (prefixe avec le nom de - * l'artifact). - * - * @parameter expression="${license.generateBundle}" default-value="false" - * @since 1.0.0 - * @deprecated since 2.2 (use instead {@code generateBundle}). - */ - @Deprecated - protected boolean copyToMETA_INF; - - /** * Local Repository. * * @parameter expression="${localRepository}" @@ -206,12 +195,6 @@ setVerbose(true); } - if (copyToMETA_INF) { - getLog().warn("\\n copyToMETA_INF is deprecated, prefer" + - " use the generateBundle parameter\n\n"); - setGenerateBundle(true); - } - File file = new File(getOutputDirectory(), getThirdPartyFilename()); setThirdPartyFile(file);
participants (1)
-
tchemit@users.nuiton.org