You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2016/02/12 22:05:10 UTC
svn commit: r1730106 -
/axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java
Author: veithen
Date: Fri Feb 12 21:05:10 2016
New Revision: 1730106
URL: http://svn.apache.org/viewvc?rev=1730106&view=rev
Log:
We don't need dependency resolution if it is only to display the dependencies in the debug logs.
Modified:
axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java
Modified: axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java?rev=1730106&r1=1730105&r2=1730106&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java (original)
+++ axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java Fri Feb 12 21:05:10 2016
@@ -24,16 +24,13 @@ import org.apache.axis2.util.CommandLine
import org.apache.axis2.util.CommandLineOptionParser;
import org.apache.axis2.wsdl.codegen.CodeGenerationEngine;
import org.apache.axis2.wsdl.codegen.CodeGenerationException;
-import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
-import org.apache.maven.plugin.logging.Log;
import org.apache.maven.project.MavenProject;
import java.io.File;
import java.util.HashMap;
-import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
@@ -43,7 +40,6 @@ import java.util.Properties;
*
* @goal wsdl2code
* @phase generate-sources
- * @requiresDependencyResolution test
*/
public class WSDL2CodeMojo extends AbstractMojo {
/**
@@ -643,7 +639,6 @@ public class WSDL2CodeMojo extends Abstr
public void execute() throws MojoFailureException, MojoExecutionException {
fixCompileSourceRoots();
- showDependencies();
Map<String,CommandLineOption> commandLineOptions = this.fillOptionMap();
CommandLineOptionParser parser =
@@ -660,27 +655,6 @@ public class WSDL2CodeMojo extends Abstr
}
}
- private void showDependencies() {
- Log log = getLog();
- if (!log.isDebugEnabled()) {
- return;
- }
- log.debug("The projects dependency artifacts are: ");
- for (Iterator<?> iter = project.getDependencyArtifacts().iterator(); iter.hasNext();) {
- Artifact artifact = (Artifact)iter.next();
- log.debug(" " + artifact.getGroupId() + ":" + artifact.getArtifactId() +
- ":" + artifact.getVersion() + ":" + artifact.getClassifier() +
- ":" + artifact.getScope() + ":" + artifact.getType());
- }
- log.debug("The projects transitive artifacts are: ");
- for (Iterator<?> iter = project.getArtifacts().iterator(); iter.hasNext();) {
- Artifact artifact = (Artifact)iter.next();
- log.debug(" " + artifact.getGroupId() + ":" + artifact.getArtifactId() +
- ":" + artifact.getVersion() + ":" + artifact.getClassifier() +
- ":" + artifact.getScope() + ":" + artifact.getType());
- }
- }
-
private void fixCompileSourceRoots() {
File srcDir = new File(outputDirectory, targetSourceFolderLocation);
project.addCompileSourceRoot(srcDir.getPath());