Author: tchemit Date: 2009-10-13 14:39:14 +0200 (Tue, 13 Oct 2009) New Revision: 24 Removed: trunk/maven-jredmine-plugin/src/main/resources/META-INF/ Modified: trunk/jredmine-client/pom.xml trunk/maven-jredmine-plugin/pom.xml trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/AbstractRedmineMojo.java trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/announcement/AbstractAnnouncementMojo.java trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/report/AbstractIssuesReport.java trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/report/AbstractRedmineReport.java trunk/maven-jredmine-plugin/src/test/java/org/nuiton/jredmine/plugin/AbstractRedmineMojoTest.java trunk/pom.xml Log: Evolution #90: ajout d'un mode safe (et none-safe) + improve dependencies (all exclusions in super-pom) Modified: trunk/jredmine-client/pom.xml =================================================================== --- trunk/jredmine-client/pom.xml 2009-10-11 21:06:16 UTC (rev 23) +++ trunk/jredmine-client/pom.xml 2009-10-13 12:39:14 UTC (rev 24) @@ -22,78 +22,6 @@ <groupId>org.nuiton</groupId> <artifactId>maven-helper-plugin</artifactId> <scope>compile</scope> - <exclusions> - <exclusion> - <groupId>org.apache.maven</groupId> - <artifactId>maven-artifact</artifactId> - </exclusion> - - <exclusion> - <groupId>org.apache.maven</groupId> - <artifactId>maven-artifact-manager</artifactId> - </exclusion> - - <exclusion> - <groupId>org.apache.maven.shared</groupId> - <artifactId>maven-dependency-tree</artifactId> - </exclusion> - - <exclusion> - <groupId>org.apache.maven</groupId> - <artifactId>maven-model</artifactId> - </exclusion> - - <exclusion> - <groupId>org.apache.maven</groupId> - <artifactId>maven-profile</artifactId> - </exclusion> - - <exclusion> - <groupId>org.apache.maven</groupId> - <artifactId>maven-settings</artifactId> - </exclusion> - - <exclusion> - <groupId>plexus</groupId> - <artifactId>plexus-mail-sender-simple</artifactId> - </exclusion> - - <exclusion> - <groupId>plexus</groupId> - <artifactId>plexus-mail-sender-api</artifactId> - </exclusion> - - <exclusion> - <groupId>plexus</groupId> - <artifactId>plexus-mail-sender-javamail</artifactId> - </exclusion> - - <exclusion> - <groupId>org.codehaus.plexus</groupId> - <artifactId>plexus-container-default</artifactId> - </exclusion> - - <exclusion> - <groupId>org.apache.velocity</groupId> - <artifactId>velocity</artifactId> - </exclusion> - - <exclusion> - <groupId>javax.mail</groupId> - <artifactId>mail</artifactId> - </exclusion> - - <exclusion> - <groupId>org.sonatype.plexus</groupId> - <artifactId>plexus-cipher</artifactId> - </exclusion> - - <exclusion> - <groupId>org.sonatype.plexus</groupId> - <artifactId>plexus-sec-dispatcher</artifactId> - </exclusion> - - </exclusions> </dependency> <dependency> Modified: trunk/maven-jredmine-plugin/pom.xml =================================================================== --- trunk/maven-jredmine-plugin/pom.xml 2009-10-11 21:06:16 UTC (rev 23) +++ trunk/maven-jredmine-plugin/pom.xml 2009-10-13 12:39:14 UTC (rev 24) @@ -33,7 +33,7 @@ <dependency> <groupId>org.nuiton</groupId> - <artifactId>maven-helper-plugin</artifactId> + <artifactId>maven-helper-plugin</artifactId> </dependency> <!-- FIXME si on ne le rajoute pas, on se retrouve avec la version 1.1 qui ne convient pas --> @@ -60,63 +60,9 @@ <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-core</artifactId> - <exclusions> - <exclusion> - <groupId>commons-cli</groupId> - <artifactId>commons-cli</artifactId> - </exclusion> - <exclusion> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-provider-api</artifactId> - </exclusion> - <exclusion> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-http</artifactId> - </exclusion> - <exclusion> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-http-lightweight</artifactId> - </exclusion> - <exclusion> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-ssh</artifactId> - </exclusion> - <exclusion> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-file</artifactId> - </exclusion> - <exclusion> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-ssh-external</artifactId> - </exclusion> - <exclusion> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-webdav-jackrabbit</artifactId> - </exclusion> - - <exclusion> - <groupId>org.apache.maven</groupId> - <artifactId>maven-error-diagnostics</artifactId> - </exclusion> - - <exclusion> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-jdk14</artifactId> - </exclusion> - <exclusion> - <groupId>org.slf4j</groupId> - <artifactId>jcl-over-slf4j</artifactId> - </exclusion> - - </exclusions> </dependency> <dependency> - <groupId>org.sonatype.plexus</groupId> - <artifactId>plexus-sec-dispatcher</artifactId> - </dependency> - - <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-changes-plugin</artifactId> </dependency> @@ -139,35 +85,6 @@ <dependency> <groupId>org.apache.maven.plugin-testing</groupId> <artifactId>maven-plugin-testing-harness</artifactId> - <exclusions> - - <exclusion> - <groupId>org.codehaus.plexus</groupId> - <artifactId>plexus-archiver</artifactId> - </exclusion> - - <exclusion> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-http-lightweight</artifactId> - </exclusion> - - <exclusion> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-file</artifactId> - </exclusion> - - <exclusion> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-ssh</artifactId> - </exclusion> - - <exclusion> - <groupId>org.apache.maven.reporting</groupId> - <artifactId>maven-reporting-api</artifactId> - </exclusion> - - - </exclusions> </dependency> <dependency> Modified: trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/AbstractRedmineMojo.java =================================================================== --- trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/AbstractRedmineMojo.java 2009-10-11 21:06:16 UTC (rev 23) +++ trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/AbstractRedmineMojo.java 2009-10-13 12:39:14 UTC (rev 24) @@ -29,8 +29,6 @@ import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.project.MavenProject; -import org.apache.maven.settings.Server; -import org.apache.maven.settings.Settings; import org.nuiton.io.rest.RestClientConfiguration; import org.nuiton.plugin.AbstractPlugin; import org.nuiton.jredmine.model.ModelHelper; @@ -40,7 +38,6 @@ import org.nuiton.jredmine.RedmineService; import org.nuiton.jredmine.RedmineServiceException; import org.nuiton.jredmine.RedmineServiceImplementor; -import org.sonatype.plexus.components.sec.dispatcher.SecDispatcher; /** * Abstract redmine mojo. @@ -63,46 +60,30 @@ */ protected MavenProject project; /** - * Dependance du settings. - * - * @parameter default-value="${settings}" - * @required - * @readonly - * @since 1.0.0 - */ - protected Settings settings; - /** - * Server id to use for authentication (must be defined in your setting - * and use the maven >= 2.1.0 password encryption mecanism). - * <p/> - * - * @parameter expression="${redmine.serverId}" - * @since 1.0.0 - */ - protected String serverId; - /** * The real basedir redmine url. * - * If no url is given, will use the one filled in issue management. + * If no url is given, will use the issue management url. * * @parameter expression="${redmine.url}" * @since 1.0.0 */ - protected URL redmineUrl; + protected URL url; /** * The redmine's server login. * * @parameter expression="${redmine.username}" + * @required * @since 1.0.0 */ - protected String redmineUsername; + protected String username; /** * The redmine's server password. * * @parameter expression="${redmine.password}" + * @required * @since 1.0.0 */ - protected String redminePassword; + protected String password; /** * The encoding used to read and write files. * @@ -133,18 +114,18 @@ */ protected boolean verbose; /** + * Un flag pour faire échouer le build si la configuration n'est pas ok. + * + * @parameter expression="${redmine.safe}" default-value="true" + * @since 1.0.0 + */ + protected boolean safe; + /** * @parameter expression="${session}" * @readonly */ protected MavenSession session; /** - * password decypher - * - * @component roleHint="maven-helper-plugin" - * @since 1.0.0 - */ - protected SecDispatcher sec; - /** * Redmine service. * * @component @@ -198,7 +179,6 @@ /////////////////////////////////////////////////////////////////////////// /// AbstractPlugin /////////////////////////////////////////////////////////////////////////// - @Override protected boolean init() throws Exception { @@ -219,52 +199,10 @@ return false; } - - // check server (if used) - - Server server = null; - - if (serverId != null && !serverId.trim().isEmpty()) { - - server = settings.getServer(serverId); - - if (server == null) { - getLog().error("Could not find server with id '" + serverId + "', check your settings.xml file."); - return false; - } - } - // prepare Redmine service configuration URL url = getRestUrl(); - String username = getRestUsername(); - String password = getRestPassword(); - // check authentication configuration is stable - - boolean noUsername = username == null || username.trim().isEmpty(); - boolean noPassword = password == null || password.trim().isEmpty(); - - if (server != null && !noUsername) { - getLog().error("Authentication configuration is wrong :\ncan not use both 'serverId' and 'redmineUsername' parameters, check your plugin configuration."); - return false; - } - - if (server != null && !noPassword) { - getLog().error("Authentication configuration is wrong :\ncan not use both 'serverId' and 'redminePassword' parameters, check your plugin configuration."); - return false; - } - - if (server == null && noUsername && noPassword) { - getLog().error("Authentication configuration is wrong :\nno configuration is given, please fill parameter 'serverId' or 'redmineUsername' and 'redminePassword'."); - return false; - } - - if (server == null && (noUsername || noPassword)) { - getLog().error("Authentication configuration is wrong :\nconfiguration is not complete, please fill parameter 'serverId' or 'redmineUsername' and 'redminePassword'."); - return false; - } - if (url == null || url.toString().isEmpty()) { // no redmine url specified, guess it from issueManagement @@ -276,18 +214,9 @@ } } - if (server != null) { - // obtain username and password from server - - username = server.getUsername(); - password = sec.decrypt(server.getPassword()); - } - // apply configuration setRestUrl(url); - setRestUsername(username); - setRestPassword(password); if (verbose) { getLog().info("Redmine configuration :\n>> host : " + @@ -302,9 +231,8 @@ ((RedmineServiceImplementor) service).init(this); } catch (Exception e) { - getLog().error("could not init Redmine service [" + getRestUrl() + "] with user '" + getRestUsername() + "'"); if (verbose) { - getLog().error(e); + getLog().error("could not init Redmine service [" + getRestUrl() + "] with user '" + getRestUsername() + "'", e); } return false; } @@ -314,29 +242,27 @@ if (requireProject) { boolean r = initReleaseProject(); if (!r) { - getLog().error("the project '" + projectId + "' could not be retreave from redmine server, goal is skip"); + getLog().error("the project '" + projectId + "' could not be retrieve from redmine server, goal is skip"); return false; } } - // check user exists if (requireUser) { boolean r = initReleaseUser(); if (!r) { - getLog().error("the user '" + redmineUsername + "' could not be retreave from redmine server, goal is skip"); + getLog().error("the user '" + this.username + "' could not be retrieve from redmine server, goal is skip"); return false; } } - // check version exists if (requireVersion) { boolean r = initReleaseVersion(); if (!r) { - getLog().error("the version '" + versionId + "' could not be retreave from redmine server, goal is skip"); + getLog().error("the version '" + versionId + "' could not be retrieve from redmine server, goal is skip"); return false; } } @@ -359,20 +285,47 @@ return; } + Exception error = null; try { try { canContinue = init(); - } catch (MojoExecutionException e) { - throw e; } catch (Exception e) { - throw new MojoExecutionException("could not init goal " + getClass().getSimpleName() + " for reason : " + e.getMessage(), e); + error = e; + + // none safe execution, just warn and not failed the build + canContinue = false; } if (!canContinue) { + + if (isSafe()) { + String message = null; + if (error != null) { + message = "safe mode is on and could not init goal [" + getClass().getSimpleName() + "] for reason " + error.getMessage(); + } else { + message = "safe mode is on and could not init goal [" + getClass().getSimpleName() + "]"; + } + if (isVerbose()) { + if (error != null) { + getLog().error(message, error); + } else { + getLog().error(message); + } + } + + if (error != null) { + if (error instanceof MojoExecutionException) { + throw (MojoExecutionException) error; + } + throw new MojoExecutionException(message, error); + } + throw new MojoExecutionException(message); + } + getLog().warn(skipAfterInitMessage); return; } @@ -436,32 +389,32 @@ /////////////////////////////////////////////////////////////////////////// @Override public String getRestPassword() { - return redminePassword; + return password; } @Override public URL getRestUrl() { - return redmineUrl; + return url; } @Override public String getRestUsername() { - return redmineUsername; + return username; } @Override public void setRestPassword(String restPassword) { - this.redminePassword = restPassword; + this.password = restPassword; } @Override public void setRestUrl(URL restUrl) { - this.redmineUrl = restUrl; + this.url = restUrl; } @Override public void setRestUsername(String restUsername) { - this.redmineUsername = restUsername; + this.username = restUsername; } @Override @@ -474,10 +427,6 @@ this.encoding = encoding; } - protected boolean isRunOnceDone() { - return runOnceDone; - } - /////////////////////////////////////////////////////////////////////////// /// Others /////////////////////////////////////////////////////////////////////////// @@ -532,7 +481,7 @@ try { users = service.getUsers(projectId); - User user = ModelHelper.byLogin(redmineUsername, users); + User user = ModelHelper.byLogin(username, users); if (user == null) { @@ -540,7 +489,7 @@ } this.releaseUser = user; } catch (RedmineServiceException e) { - getLog().warn("could not retreave user '" + redmineUsername + "', goal is skip"); + getLog().warn("could not retreave user '" + username + "', goal is skip"); if (verbose) { getLog().error(e); } @@ -567,4 +516,16 @@ } } } + + public boolean isRunOnceDone() { + return runOnceDone; + } + + public boolean isSafe() { + return safe; + } + + public void setSafe(boolean safe) { + this.safe = safe; + } } Modified: trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/announcement/AbstractAnnouncementMojo.java =================================================================== --- trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/announcement/AbstractAnnouncementMojo.java 2009-10-11 21:06:16 UTC (rev 23) +++ trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/announcement/AbstractAnnouncementMojo.java 2009-10-13 12:39:14 UTC (rev 24) @@ -113,11 +113,11 @@ /** * Distribution url of the artifact. * - * @parameter expression="${project.url}" + * @parameter expression="${redmine.projectUrl}" default-value="${project.url}" * @required * @since 1.0.0 */ - private String url; + private String projectUrl; /** * Packaging structure for the artifact. * @@ -175,7 +175,7 @@ /** * Velocity Component. * - * @component roleHint="maven-jredmine-plugin" + * @component roleHint="maven-helper-plugin" */ private VelocityComponent velocity; @@ -270,7 +270,7 @@ engine.setApplicationAttribute("baseDirectory", basedir); - AnnouncementGenerator generator = new AnnouncementGenerator(getLog(), url, ""); + AnnouncementGenerator generator = new AnnouncementGenerator(getLog(), projectUrl, ""); // AnnouncementGenerator generator = new AnnouncementGenerator(getLog(), url, attachmentLinkTemplate); Context context = createVelocityContext(generator, releases); @@ -293,7 +293,7 @@ context.put("version", versionId); // context.put("version", releaseVersion.getName()); context.put("packaging", packaging); - context.put("url", url); + context.put("url", projectUrl); Release release = generator.getLatestRelease(releases, versionId); // Release release = generator.getLatestRelease(releases, releaseVersion.getName()); Modified: trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/report/AbstractIssuesReport.java =================================================================== --- trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/report/AbstractIssuesReport.java 2009-10-11 21:06:16 UTC (rev 23) +++ trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/report/AbstractIssuesReport.java 2009-10-13 12:39:14 UTC (rev 24) @@ -92,14 +92,16 @@ @Override public boolean init() throws Exception { + setVersionId(PluginHelper.removeSnapshotSuffix(getVersionId())); + boolean result = super.init(); - if (result) { +// if (result) { +// +// setVersionId(PluginHelper.removeSnapshotSuffix(getVersionId())); +// +// } - setVersionId(PluginHelper.removeSnapshotSuffix(getVersionId())); - - } - - return true; + return result; } /////////////////////////////////////////////////////////////////////////// @@ -144,7 +146,7 @@ report.setIssueLinkTemplate(getIssueLinkTemplate()); report.setVersionLinkTemplate(getVersionLinkTemplate()); - report.setUrl(redmineUrl.toString()); + report.setUrl(url.toString()); report.setIssues(issues); report.setUsers(service.getUsers(id)); Modified: trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/report/AbstractRedmineReport.java =================================================================== --- trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/report/AbstractRedmineReport.java 2009-10-11 21:06:16 UTC (rev 23) +++ trunk/maven-jredmine-plugin/src/main/java/org/nuiton/jredmine/plugin/report/AbstractRedmineReport.java 2009-10-13 12:39:14 UTC (rev 24) @@ -184,16 +184,29 @@ @Override public boolean canGenerateReport() { boolean init = false; - - if (settings.isOffline()) { + if (getLog().isDebugEnabled()) { + getLog().debug("check can use report"); + } + if (session.getSettings().isOffline()) { // skip when offline - getLog().info("Skip \"" + getName(Locale.ENGLISH) + "\" report (offline)."); - return init; + getLog().info("Skipped \"" + getName(Locale.ENGLISH) + "\" report in offline mode."); + } else { + try { + init = init(); + } catch (Exception ex) { + if (isVerbose()) { + getLog().error("could not init report goal for reason " + ex.getMessage(), ex); + } else { + getLog().error("could not init report goal for reason " + ex.getMessage()); + } + init = false; + } + if (!init) { + getLog().info("Skipped \"" + getName(Locale.ENGLISH) + "\" report, goal could be initialized."); + } } - try { - init = init(); - } catch (Exception ex) { - init = false; + if (getLog().isDebugEnabled()) { + getLog().debug("check can use report : " + init); } return init; } Modified: trunk/maven-jredmine-plugin/src/test/java/org/nuiton/jredmine/plugin/AbstractRedmineMojoTest.java =================================================================== --- trunk/maven-jredmine-plugin/src/test/java/org/nuiton/jredmine/plugin/AbstractRedmineMojoTest.java 2009-10-11 21:06:16 UTC (rev 23) +++ trunk/maven-jredmine-plugin/src/test/java/org/nuiton/jredmine/plugin/AbstractRedmineMojoTest.java 2009-10-13 12:39:14 UTC (rev 24) @@ -49,7 +49,7 @@ protected void beforeMojoInit(P mojo, File pomFile) throws Exception { // add a issue management IssueManagement i = new IssueManagement(); - i.setSystem("redmine"); + i.setSystem(AbstractRedmineMojo.REDMINE_SYSTEM); i.setUrl(mojo.getRestUrl() + "/projects/one/issues"); mojo.getProject().setIssueManagement(i); Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2009-10-11 21:06:16 UTC (rev 23) +++ trunk/pom.xml 2009-10-13 12:39:14 UTC (rev 24) @@ -26,10 +26,88 @@ <scope>compile</scope> <exclusions> <exclusion> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-provider-api</artifactId> - </exclusion> + <groupId>org.apache.maven</groupId> + <artifactId>maven-artifact</artifactId> + </exclusion> + + <exclusion> + <groupId>org.apache.maven</groupId> + <artifactId>maven-artifact-manager</artifactId> + </exclusion> + + <exclusion> + <groupId>org.apache.maven.shared</groupId> + <artifactId>maven-dependency-tree</artifactId> + </exclusion> + + <exclusion> + <groupId>org.apache.maven</groupId> + <artifactId>maven-model</artifactId> + </exclusion> + + <exclusion> + <groupId>org.apache.maven</groupId> + <artifactId>maven-profile</artifactId> + </exclusion> + + <exclusion> + <groupId>org.apache.maven</groupId> + <artifactId>maven-settings</artifactId> + </exclusion> + + <exclusion> + <groupId>plexus</groupId> + <artifactId>plexus-mail-sender-simple</artifactId> + </exclusion> + + <exclusion> + <groupId>plexus</groupId> + <artifactId>plexus-mail-sender-api</artifactId> + </exclusion> + + <exclusion> + <groupId>plexus</groupId> + <artifactId>plexus-mail-sender-javamail</artifactId> + </exclusion> + + <exclusion> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + </exclusion> + + <exclusion> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-container-default</artifactId> + </exclusion> + + <exclusion> + <groupId>org.apache.velocity</groupId> + <artifactId>velocity</artifactId> + </exclusion> + + <exclusion> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + </exclusion> + + <exclusion> + <groupId>org.sonatype.plexus</groupId> + <artifactId>plexus-cipher</artifactId> + </exclusion> + + <exclusion> + <groupId>org.sonatype.plexus</groupId> + <artifactId>plexus-sec-dispatcher</artifactId> + </exclusion> + </exclusions> + + <!--<exclusions> + <exclusion> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-provider-api</artifactId> + </exclusion> + </exclusions>--> </dependency> <!-- fix dependency pb in velocity (need at least version > 2.2) --> @@ -73,13 +151,71 @@ <artifactId>maven-core</artifactId> <version>${maven.version}</version> <scope>provided</scope> + <exclusions> + <exclusion> + <groupId>commons-cli</groupId> + <artifactId>commons-cli</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-provider-api</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-http</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-http-lightweight</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-ssh</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-file</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-ssh-external</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-webdav-jackrabbit</artifactId> + </exclusion> + + <exclusion> + <groupId>org.apache.maven</groupId> + <artifactId>maven-error-diagnostics</artifactId> + </exclusion> + + <exclusion> + <groupId>org.sonatype.plexus</groupId> + <artifactId>plexus-cipher</artifactId> + </exclusion> + <exclusion> + <groupId>org.sonatype.plexus</groupId> + <artifactId>plexus-sec-dispatcher</artifactId> + </exclusion> + + <exclusion> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-jdk14</artifactId> + </exclusion> + <exclusion> + <groupId>org.slf4j</groupId> + <artifactId>jcl-over-slf4j</artifactId> + </exclusion> + + </exclusions> </dependency> - <dependency> + <!--dependency> <groupId>org.sonatype.plexus</groupId> <artifactId>plexus-sec-dispatcher</artifactId> <version>1.3.1</version> - </dependency> + </dependency--> <dependency> <groupId>org.apache.maven.plugins</groupId> @@ -94,11 +230,14 @@ <groupId>plexus</groupId> <artifactId>plexus-mail-sender-api</artifactId> </exclusion> - <exclusion> <groupId>plexus</groupId> <artifactId>plexus-mail-sender-javamail</artifactId> </exclusion> + <exclusion> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + </exclusion> </exclusions> </dependency> <!-- @@ -117,7 +256,7 @@ <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> - <version>1.2.9</version> + <version>1.2.14</version> <scope>runtime</scope> </dependency> @@ -129,6 +268,37 @@ <version>${helper.version}</version> <scope>test</scope> <classifier>tests</classifier> + <exclusions> + <exclusion> + <groupId>plexus</groupId> + <artifactId>plexus-mail-sender-simple</artifactId> + </exclusion> + <exclusion> + <groupId>plexus</groupId> + <artifactId>plexus-mail-sender-api</artifactId> + </exclusion> + <exclusion> + <groupId>plexus</groupId> + <artifactId>plexus-mail-sender-javamail</artifactId> + </exclusion> + <exclusion> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + </exclusion> + <exclusion> + <groupId>org.sonatype.plexus</groupId> + <artifactId>plexus-cipher</artifactId> + </exclusion> + <exclusion> + <groupId>org.sonatype.plexus</groupId> + <artifactId>plexus-sec-dispatcher</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.maven.shared</groupId> + <artifactId>maven-dependency-tree</artifactId> + </exclusion> + + </exclusions> </dependency> <dependency> @@ -136,6 +306,35 @@ <artifactId>maven-plugin-testing-harness</artifactId> <version>1.2</version> <scope>test</scope> + <exclusions> + + <exclusion> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-archiver</artifactId> + </exclusion> + + <exclusion> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-http-lightweight</artifactId> + </exclusion> + + <exclusion> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-file</artifactId> + </exclusion> + + <exclusion> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-ssh</artifactId> + </exclusion> + + <exclusion> + <groupId>org.apache.maven.reporting</groupId> + <artifactId>maven-reporting-api</artifactId> + </exclusion> + + + </exclusions> </dependency> <dependency>