You are viewing a plain text version of this content. The canonical link for it is here.
Posted to nmaven-commits@incubator.apache.org by si...@apache.org on 2006/12/14 18:57:56 UTC

svn commit: r487302 - /incubator/nmaven/branches/SI_SIGNING/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/ComponentInitializerMojo.java

Author: sisbell
Date: Thu Dec 14 10:57:55 2006
New Revision: 487302

URL: http://svn.apache.org/viewvc?view=rev&rev=487302
Log:
Fixed compile error, where plugin was using a defunct component init method.

Modified:
    incubator/nmaven/branches/SI_SIGNING/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/ComponentInitializerMojo.java

Modified: incubator/nmaven/branches/SI_SIGNING/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/ComponentInitializerMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_SIGNING/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/ComponentInitializerMojo.java?view=diff&rev=487302&r1=487301&r2=487302
==============================================================================
--- incubator/nmaven/branches/SI_SIGNING/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/ComponentInitializerMojo.java (original)
+++ incubator/nmaven/branches/SI_SIGNING/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/ComponentInitializerMojo.java Thu Dec 14 10:57:55 2006
@@ -36,7 +36,9 @@
  * @goal initialize
  * @phase compile
  */
-public class ComponentInitializerMojo extends AbstractMojo {
+public class ComponentInitializerMojo
+    extends AbstractMojo
+{
 
     /**
      * The maven project.
@@ -75,19 +77,21 @@
      */
     private org.apache.maven.dotnet.NMavenRepositoryRegistry nmavenRegistry;
 
-    public void execute() throws MojoExecutionException {
-        try {
-            assemblyResolver.resolveTransitivelyFor(project, project.getArtifact(), project.getDependencies(), pomFile,
-                    localRepository, true);
-        } catch (ArtifactResolutionException e) {
-            throw new MojoExecutionException("NMAVEN-901-000: Unable to resolve assemblies", e);
-        } catch (ArtifactNotFoundException e) {
-            throw new MojoExecutionException("NMAVEN-901-001: Unable to resolve assemblies", e);
+    public void execute()
+        throws MojoExecutionException
+    {
+        try
+        {
+            assemblyResolver.resolveTransitivelyFor( project, project.getArtifact(), project.getDependencies(), pomFile,
+                                                     localRepository, true );
         }
-        try {
-            capabilityMatcher.init(project);
-        } catch (InitializationException e) {
-            throw new MojoExecutionException("NMAVEN-901-002: Unable to load the Executable Factory:", e);
+        catch ( ArtifactResolutionException e )
+        {
+            throw new MojoExecutionException( "NMAVEN-901-000: Unable to resolve assemblies", e );
+        }
+        catch ( ArtifactNotFoundException e )
+        {
+            throw new MojoExecutionException( "NMAVEN-901-001: Unable to resolve assemblies", e );
         }
     }
 }