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/10 23:44:12 UTC

svn commit: r485313 [12/15] - in /incubator/nmaven/trunk: components/ components/dotnet-artifact/ components/dotnet-artifact/src/ components/dotnet-artifact/src/main/ components/dotnet-artifact/src/main/java/ components/dotnet-artifact/src/main/java/or...

Added: incubator/nmaven/trunk/plugins/maven-install-plugin/src/main/java/org/apache/maven/dotnet/plugin/install/TargetModuleInstallerMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-install-plugin/src/main/java/org/apache/maven/dotnet/plugin/install/TargetModuleInstallerMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-install-plugin/src/main/java/org/apache/maven/dotnet/plugin/install/TargetModuleInstallerMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-install-plugin/src/main/java/org/apache/maven/dotnet/plugin/install/TargetModuleInstallerMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,79 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.maven.dotnet.plugin.install;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.artifact.installer.ArtifactInstallationException;
+import org.apache.maven.dotnet.artifact.ArtifactContext;
+
+import java.io.File;
+import java.io.IOException;
+
+/**
+ * Installs .NET modules into the project's target directory.
+ *
+ * @author Shane Isbell
+ * @goal target-install
+ * @phase process-classes
+ */
+
+public class TargetModuleInstallerMojo extends AbstractMojo {
+
+    /**
+     * @component
+     */
+    private ArtifactContext artifactContext;
+
+    /**
+     * @parameter expression="${settings.localRepository}"
+     * @required
+     */
+    private File localRepository;
+
+    /**
+     * The maven project.
+     *
+     * @parameter expression="${project}"
+     * @required
+     * @readonly
+     */
+    private MavenProject project;
+
+    /**
+     * @component
+     */
+    private org.apache.maven.dotnet.NMavenRepositoryRegistry nmavenRegistry;
+
+    public void execute() throws MojoExecutionException {
+        try {
+            nmavenRegistry.createRepositoryRegistry();
+        } catch (IOException e) {
+            throw new MojoExecutionException("NMAVEN-1002-001: Failed to create the repository registry for this plugin", e);
+        }
+
+        artifactContext.init(project, localRepository);
+        try {
+            artifactContext.getArtifactInstaller().installNetModulesToTargetDirectory(project.getArtifact());
+        } catch (ArtifactInstallationException e) {
+            throw new MojoExecutionException("NMAVEN-1002-000: Failed to install artifacts into target directory", e);
+        }
+    }
+}

Propchange: incubator/nmaven/trunk/plugins/maven-install-plugin/src/main/java/org/apache/maven/dotnet/plugin/install/TargetModuleInstallerMojo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-resgen-plugin/LICENSE.txt
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-resgen-plugin/LICENSE.txt?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-resgen-plugin/LICENSE.txt (added)
+++ incubator/nmaven/trunk/plugins/maven-resgen-plugin/LICENSE.txt Sun Dec 10 15:43:51 2006
@@ -0,0 +1,176 @@
+                               Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS

Propchange: incubator/nmaven/trunk/plugins/maven-resgen-plugin/LICENSE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-resgen-plugin/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-resgen-plugin/pom.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-resgen-plugin/pom.xml (added)
+++ incubator/nmaven/trunk/plugins/maven-resgen-plugin/pom.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,34 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <parent>
+        <groupId>org.apache.maven.dotnet.plugins</groupId>
+        <version>0.14-SNAPSHOT</version>
+        <artifactId>maven-dotnet-plugins</artifactId>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.maven.dotnet.plugins</groupId>
+    <artifactId>maven-resgen-plugin</artifactId>
+    <packaging>maven-plugin</packaging>
+    <version>0.14-SNAPSHOT</version>
+    <name>maven-resgen-plugin</name>
+    <description>
+        Maven Plugin for .NET
+    </description>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.dotnet.plugins</groupId>
+                <artifactId>maven-resolver-plugin</artifactId>
+                <configuration>
+                    <netDependencies>
+                        <netDependencies>
+                            <groupId>org.apache.maven.bogus</groupId>
+                            <artifactId>test</artifactId>
+                            <version>1.0.0</version>
+                            <type>exe</type>
+                        </netDependencies>
+                    </netDependencies>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>
\ No newline at end of file

Propchange: incubator/nmaven/trunk/plugins/maven-resgen-plugin/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-resgen-plugin/src/main/java/org/apache/maven/dotnet/plugin/resgen/ResourceCopierMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-resgen-plugin/src/main/java/org/apache/maven/dotnet/plugin/resgen/ResourceCopierMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-resgen-plugin/src/main/java/org/apache/maven/dotnet/plugin/resgen/ResourceCopierMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-resgen-plugin/src/main/java/org/apache/maven/dotnet/plugin/resgen/ResourceCopierMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,108 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.maven.dotnet.plugin.resgen;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.model.Resource;
+import org.codehaus.plexus.util.DirectoryScanner;
+import org.codehaus.plexus.util.FileUtils;
+
+import java.util.List;
+
+import java.util.Iterator;
+import java.io.File;
+import java.io.IOException;
+
+
+/**
+ * Copies resources to target directory
+ *
+ * @author Shane Isbell
+ * @goal copy-resources
+ * @phase process-resources
+ */
+public class ResourceCopierMojo extends AbstractMojo {
+
+    /**
+     * The maven project.
+     *
+     * @parameter expression="${project}"
+     * @required
+     */
+    private MavenProject project;
+
+    public void execute() throws MojoExecutionException {
+        String targetDirectory = project.getBuild().getDirectory();
+        List<Resource> resources = project.getResources();
+        if(resources.isEmpty()) {
+            getLog().info("NMAVEN-1500-000: No resources found");
+            return;
+        }
+        for(Resource resource: resources) {
+            if(!new File(resource.getDirectory()).exists()) continue;
+            copyResourceDirectory(resource.getDirectory(), targetDirectory, resource.getIncludes(),
+                    resource.getExcludes());
+        }
+        try {
+            FileUtils.copyDirectory(new File(project.getBasedir() + File.separator + "src/main/config"),
+                    new File(project.getBuild().getDirectory()), "*.exe.config", null);
+        } catch (IOException e) {
+           throw new MojoExecutionException("NMAVEN-1500-004: Failed to copy config file.", e);
+        }
+    }
+
+    private void copyResourceDirectory(String sourceDirectory, String outputDirectory, List includes,
+                                       List excludes) throws MojoExecutionException {
+        DirectoryScanner directoryScanner = new DirectoryScanner();
+        directoryScanner.setBasedir(sourceDirectory);
+        if(!includes.isEmpty()) directoryScanner.setIncludes(listAsStringArray(includes));
+        if(!excludes.isEmpty()) directoryScanner.setExcludes(listAsStringArray(excludes));
+        directoryScanner.addDefaultExcludes();
+        directoryScanner.scan();
+        String[] files = directoryScanner.getIncludedFiles();
+        for (String file : files) {
+            File sourceFile = new File(sourceDirectory + File.separator + file);
+            File destinationFile =
+                    new File(outputDirectory + File.separator + "assembly-resources" + File.separator +  file);
+            try {
+                FileUtils.copyFile(sourceFile, destinationFile);
+                getLog().debug("NMAVEN-1500-001: Copied Resource File: Source File = " + sourceFile.getAbsolutePath() +
+                        ", Destination File = " + destinationFile.getAbsolutePath());
+            } catch (IOException e) {
+                throw new MojoExecutionException("NMAVEN-1500-002: Unable to copy resource file: Source File = " +
+                        sourceFile.getAbsolutePath(), e);
+            }
+        }
+        getLog().info("NMAVEN-1500-003: Copied resource directory: Number of Resources = " + files.length
+            + ", Resource Directory = " + sourceDirectory
+            + ", Destination Directory = " + outputDirectory + File.separator + "assembly-resources");
+    }
+
+    private String[] listAsStringArray(List list) {
+        if(list == null) return new String[0];
+        String[] target = new String[list.size()];
+        int j = 0;
+        for(Iterator i = list.iterator(); i.hasNext(); j++) {
+            target[j] = (String) i.next();
+        }
+        return target;
+    }
+}

Propchange: incubator/nmaven/trunk/plugins/maven-resgen-plugin/src/main/java/org/apache/maven/dotnet/plugin/resgen/ResourceCopierMojo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-resgen-plugin/src/main/java/org/apache/maven/dotnet/plugin/resgen/ResourceGeneratorMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-resgen-plugin/src/main/java/org/apache/maven/dotnet/plugin/resgen/ResourceGeneratorMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-resgen-plugin/src/main/java/org/apache/maven/dotnet/plugin/resgen/ResourceGeneratorMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-resgen-plugin/src/main/java/org/apache/maven/dotnet/plugin/resgen/ResourceGeneratorMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,156 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.maven.dotnet.plugin.resgen;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.project.MavenProject;
+import org.codehaus.plexus.util.FileUtils;
+import org.apache.maven.dotnet.executable.ExecutionException;
+import org.apache.maven.dotnet.PlatformUnsupportedException;
+import org.apache.maven.dotnet.vendor.VendorInfo;
+import org.apache.maven.dotnet.vendor.VendorFactory;
+import org.apache.maven.dotnet.artifact.ArtifactContext;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.io.File;
+import java.io.IOException;
+
+/**
+ * Generates resources
+ *
+ * @author Shane Isbell
+ * @goal generate
+ * @phase process-resources
+ */
+public class ResourceGeneratorMojo extends AbstractMojo {
+
+    /**
+     * @parameter expression="${settings.localRepository}"
+     * @required
+     */
+    private String localRepository;
+
+    /**
+     * The maven project.
+     *
+     * @parameter expression="${project}"
+     * @required
+     */
+    private MavenProject project;
+
+    /**
+     * The home directory of your .NET SDK.
+     *
+     * @parameter expression="${netHome}"
+     */
+    private File netHome;
+
+    /**
+     * The Vendor for the executable. Supports MONO and MICROSOFT: the default value is <code>MICROSOFT</code>. Not
+     * case or white-space sensitive.
+     *
+     * @parameter expression="${vendor}"
+     */
+    private String vendor;
+
+    /**
+     * @parameter expression = "${frameworkVersion}" 
+     */
+    private String frameworkVersion;
+
+    /**
+     * @parameter expression = "${vendorVersion}"
+     */
+    private String vendorVersion;
+
+    /**
+     * @component
+     */
+    private ArtifactContext artifactContext;
+
+    /**
+     * @component
+     */
+    private org.apache.maven.dotnet.executable.NetExecutableFactory netExecutableFactory;
+
+    /**
+     * @component
+     */
+    private org.apache.maven.dotnet.NMavenRepositoryRegistry nmavenRegistry;
+
+    public void execute() throws MojoExecutionException {
+
+        if (System.getProperty("bootstrap") != null)
+            return;
+
+        File sourceDirectory = new File(project.getBuild().getDirectory() + File.separator + "assembly-resources"
+                + File.separator + "resgen");
+        if (!sourceDirectory.exists())
+            return;
+
+        try {
+            nmavenRegistry.createRepositoryRegistry();
+        } catch (IOException e) {
+            throw new MojoExecutionException("NMAVEN-1501-004: Failed to create the repository registry for this plugin", e);
+        }
+
+        //resx.exe
+        List<String> commands = new ArrayList<String>();
+        commands.add(sourceDirectory.getAbsolutePath());
+        commands.add(project.getBuild().getDirectory() + File.separator + "assembly-resources"
+                + File.separator + project.getArtifactId() + ".resx");
+        try {
+            VendorInfo vendorInfo = VendorInfo.Factory.createDefaultVendorInfo();
+            if(vendor != null) vendorInfo.setVendor(VendorFactory.createVendorFromName(vendor));
+            vendorInfo.setFrameworkVersion(frameworkVersion);
+            vendorInfo.setVendorVersion(vendorVersion);
+            netExecutableFactory.getNetExecutableFromRepository("NMaven.Utility.ResX", "resx",
+                    vendorInfo, project, localRepository, commands).execute();
+        } catch (PlatformUnsupportedException e) {
+            throw new MojoExecutionException("", e);
+        } catch(ExecutionException e) {
+            throw new MojoExecutionException("", e);
+        }
+
+        //resgen.exe
+        FileUtils.mkdir(project.getBuild().getDirectory() + File.separator + "assembly-resources" + File.separator
+                + "resource");
+
+        try {
+            netExecutableFactory.getNetExecutableFor(vendor, frameworkVersion, "RESGEN",
+                    project, getCommands(), netHome).execute();
+        } catch (ExecutionException e) {
+            throw new MojoExecutionException("NMAVEN-1501-002: Unable to execute resgen: Vendor = " + vendor
+                    + ", frameworkVersion = " + frameworkVersion, e);
+        } catch (PlatformUnsupportedException e) {
+            throw new MojoExecutionException("NMAVEN-1501-003: Platform Unsupported", e);
+        }
+    }
+
+    public List<String> getCommands() throws MojoExecutionException {
+        List<String> commands = new ArrayList<String>();
+        commands.add(project.getBuild().getDirectory() + File.separator + "assembly-resources"
+                + File.separator + project.getArtifactId() + ".resx");
+        commands.add(project.getBuild().getDirectory() + File.separator + "assembly-resources" + File.separator
+                + "resource" + File.separator + project.getArtifactId() + ".resources");
+        return commands;
+    }
+}

Propchange: incubator/nmaven/trunk/plugins/maven-resgen-plugin/src/main/java/org/apache/maven/dotnet/plugin/resgen/ResourceGeneratorMojo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-resolver-plugin/LICENSE.txt
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-resolver-plugin/LICENSE.txt?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-resolver-plugin/LICENSE.txt (added)
+++ incubator/nmaven/trunk/plugins/maven-resolver-plugin/LICENSE.txt Sun Dec 10 15:43:51 2006
@@ -0,0 +1,176 @@
+                               Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS

Propchange: incubator/nmaven/trunk/plugins/maven-resolver-plugin/LICENSE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-resolver-plugin/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-resolver-plugin/pom.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-resolver-plugin/pom.xml (added)
+++ incubator/nmaven/trunk/plugins/maven-resolver-plugin/pom.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,16 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <parent>
+        <groupId>org.apache.maven.dotnet.plugins</groupId>
+        <version>0.14-SNAPSHOT</version>
+        <artifactId>maven-dotnet-plugins</artifactId>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.maven.dotnet.plugins</groupId>
+    <artifactId>maven-resolver-plugin</artifactId>
+    <packaging>maven-plugin</packaging>
+    <version>0.14-SNAPSHOT</version>
+    <name>maven-resolver-plugin</name>
+    <description>
+        Maven Plugin for .NET
+    </description>
+</project>
\ No newline at end of file

Propchange: incubator/nmaven/trunk/plugins/maven-resolver-plugin/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-resolver-plugin/src/main/java/org/apache/maven/dotnet/plugin/resolver/NetDependency.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-resolver-plugin/src/main/java/org/apache/maven/dotnet/plugin/resolver/NetDependency.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-resolver-plugin/src/main/java/org/apache/maven/dotnet/plugin/resolver/NetDependency.java (added)
+++ incubator/nmaven/trunk/plugins/maven-resolver-plugin/src/main/java/org/apache/maven/dotnet/plugin/resolver/NetDependency.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,85 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.maven.dotnet.plugin.resolver;
+
+public class NetDependency {
+
+    private String version;
+
+    private String artifactId;
+
+    private String groupId;
+
+    private String type;
+
+    public String getVersion() {
+        return version;
+    }
+
+    public void setVersion(String version) {
+        this.version = version;
+    }
+
+    public String getArtifactId() {
+        return artifactId;
+    }
+
+    public void setArtifactId(String artifactId) {
+        this.artifactId = artifactId;
+    }
+
+    public String getGroupId() {
+        return groupId;
+    }
+
+    public void setGroupId(String groupId) {
+        this.groupId = groupId;
+    }
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (o == null || getClass() != o.getClass()) return false;
+
+        final NetDependency that = (NetDependency) o;
+
+        if (!artifactId.equals(that.artifactId)) return false;
+        if (!groupId.equals(that.groupId)) return false;
+        if (type != null ? !type.equals(that.type) : that.type != null) return false;
+        if (!version.equals(that.version)) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        int result;
+        result = version.hashCode();
+        result = 29 * result + artifactId.hashCode();
+        result = 29 * result + groupId.hashCode();
+        result = 29 * result + (type != null ? type.hashCode() : 0);
+        return result;
+    }
+}

Propchange: incubator/nmaven/trunk/plugins/maven-resolver-plugin/src/main/java/org/apache/maven/dotnet/plugin/resolver/NetDependency.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-resolver-plugin/src/main/java/org/apache/maven/dotnet/plugin/resolver/NetDependencyResolverMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-resolver-plugin/src/main/java/org/apache/maven/dotnet/plugin/resolver/NetDependencyResolverMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-resolver-plugin/src/main/java/org/apache/maven/dotnet/plugin/resolver/NetDependencyResolverMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-resolver-plugin/src/main/java/org/apache/maven/dotnet/plugin/resolver/NetDependencyResolverMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,123 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.maven.dotnet.plugin.resolver;
+
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.model.Dependency;
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.artifact.resolver.ArtifactResolutionException;
+import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
+import org.apache.maven.artifact.factory.ArtifactFactory;
+import org.apache.maven.dotnet.registry.RepositoryRegistry;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.List;
+import java.util.ArrayList;
+
+import org.apache.maven.dotnet.artifact.AssemblyResolver;
+import org.apache.maven.dotnet.artifact.impl.NetDependenciesRepository;
+
+/**
+ * @author Shane Isbell
+ * @goal resolve
+ * @phase process-resources
+ */
+public class NetDependencyResolverMojo extends AbstractMojo {
+    /**
+     * The maven project.
+     *
+     * @parameter expression="${project}"
+     * @required
+     */
+    private MavenProject project;
+
+    /**
+     * @parameter expression="${settings.localRepository}"
+     * @required
+     * @readonly
+     */
+    private String localRepository;
+
+    /**
+     * @parameter expression="${project.file}"
+     * @required
+     * @readonly
+     */
+    private File pomFile;
+
+    /**
+     * @parameter
+     */
+    private NetDependency[] netDependencies;
+
+    /**
+     * @component
+     */
+    private AssemblyResolver assemblyResolver;
+
+    /**
+     * @component
+     */
+    private ArtifactFactory artifactFactory;
+
+    /**
+     * @component
+     */
+    private org.apache.maven.dotnet.NMavenRepositoryRegistry nmavenRegistry;
+
+    public void execute() throws MojoExecutionException {
+        if(System.getProperty("bootstrap") != null)  return;
+
+        RepositoryRegistry repositoryRegistry;
+        try {
+            repositoryRegistry = nmavenRegistry.createRepositoryRegistry();
+        } catch (IOException e) {
+            throw new MojoExecutionException("NMAVEN-1600-000: Failed to create the repository registry for this plugin", e);
+        }
+
+        if (netDependencies == null) netDependencies = new NetDependency[0];
+        List<Dependency> dependencies = new ArrayList<Dependency>();
+        for (NetDependency netDependency : netDependencies) {
+            Dependency dependency = new Dependency();
+            dependency.setGroupId(netDependency.getGroupId());
+            dependency.setArtifactId(netDependency.getArtifactId());
+            dependency.setVersion(netDependency.getVersion());
+            dependency.setScope(Artifact.SCOPE_RUNTIME);
+            dependency.setType(netDependency.getType());
+            dependencies.add(dependency);
+        }
+
+        NetDependenciesRepository repository = (NetDependenciesRepository) repositoryRegistry.find("net-dependencies");
+        dependencies.addAll(repository.getDependencies());
+        getLog().info("NMAVEN-1600-001: Found net dependencies: Number = " + dependencies.size());
+
+        try {
+            assemblyResolver.resolveTransitivelyFor(project, project.getArtifact(), dependencies,
+                    pomFile, localRepository, false);
+        } catch (ArtifactResolutionException e) {
+            throw new MojoExecutionException("NMAVEN-1600-002: Unable to resolve assemblies", e);
+        } catch (ArtifactNotFoundException e) {
+            throw new MojoExecutionException("NMAVEN-1600-003: Unable to resolve assemblies", e);
+        }
+
+    }
+}

Propchange: incubator/nmaven/trunk/plugins/maven-resolver-plugin/src/main/java/org/apache/maven/dotnet/plugin/resolver/NetDependencyResolverMojo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-settings-plugin/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-settings-plugin/pom.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-settings-plugin/pom.xml (added)
+++ incubator/nmaven/trunk/plugins/maven-settings-plugin/pom.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,16 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <parent>
+        <groupId>org.apache.maven.dotnet.plugins</groupId>
+        <version>0.14-SNAPSHOT</version>
+        <artifactId>maven-dotnet-plugins</artifactId>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.maven.dotnet.plugins</groupId>
+    <artifactId>maven-settings-plugin</artifactId>
+    <packaging>maven-plugin</packaging>
+    <version>0.14-SNAPSHOT</version>
+    <name>maven-settings-plugin</name>
+    <description>
+        Maven Plugin for .NET
+    </description>
+</project>
\ No newline at end of file

Propchange: incubator/nmaven/trunk/plugins/maven-settings-plugin/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-settings-plugin/src/main/java/org/apache/maven/dotnet/plugin/settings/SettingsGeneratorMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-settings-plugin/src/main/java/org/apache/maven/dotnet/plugin/settings/SettingsGeneratorMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-settings-plugin/src/main/java/org/apache/maven/dotnet/plugin/settings/SettingsGeneratorMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-settings-plugin/src/main/java/org/apache/maven/dotnet/plugin/settings/SettingsGeneratorMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,119 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.maven.dotnet.plugin.settings;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.project.MavenProject;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.List;
+import java.util.ArrayList;
+
+import org.apache.maven.dotnet.PlatformUnsupportedException;
+import org.apache.maven.dotnet.executable.ExecutionException;
+import org.apache.maven.dotnet.vendor.VendorFactory;
+import org.apache.maven.dotnet.vendor.VendorInfo;
+
+/**
+ *
+ * @author Shane Isbell
+ * @goal generate-settings
+ * @phase validate
+ */
+public class SettingsGeneratorMojo extends AbstractMojo {
+
+    /**
+     * @parameter expression="${settings.localRepository}"
+     * @required
+     */
+    private String localRepository;
+
+    /**
+     * The maven project.
+     *
+     * @parameter expression="${project}"
+     * @required
+     */
+    private MavenProject project;
+
+   /**
+     * The Vendor for the executable. Supports MONO and MICROSOFT: the default value is <code>MICROSOFT</code>. Not
+     * case or white-space sensitive.
+     *
+     * @parameter expression="${vendor}"
+     */
+    private String vendor;
+
+    /**
+     * @parameter expression = "${vendorVersion}"
+     */
+    private String vendorVersion;
+
+    /**
+     * @parameter expression = "${frameworkVersion}"
+     */
+    private String frameworkVersion;
+
+    /**
+     * @component
+     */
+    private org.apache.maven.dotnet.executable.NetExecutableFactory netExecutableFactory;
+
+    /**
+     * @component
+     */
+    private org.apache.maven.dotnet.NMavenRepositoryRegistry nmavenRegistry;
+
+    public void execute() throws MojoExecutionException {
+
+        if(!System.getProperty("os.name").contains("Windows")) return;
+
+        if (System.getProperty("bootstrap") != null)
+            return;
+
+        String nmavenSettings = System.getProperty("user.home") + File.separator + ".m2" + File.separator
+                + "nmaven-settings.xml";
+
+        if (new File(nmavenSettings).exists())
+            return;
+
+        try {
+            nmavenRegistry.createRepositoryRegistry();
+        } catch (IOException e) {
+            throw new MojoExecutionException("NMAVEN-aaa-003: Failed to create the repository registry for this plugin", e);
+        }
+
+        List<String> commands = new ArrayList<String>();
+        commands.add(new File(nmavenSettings).getAbsolutePath());
+        try {
+            VendorInfo vendorInfo = VendorInfo.Factory.createDefaultVendorInfo();
+            if(vendor != null) vendorInfo.setVendor(VendorFactory.createVendorFromName(vendor));
+            vendorInfo.setFrameworkVersion(frameworkVersion);
+            vendorInfo.setVendorVersion(vendorVersion);
+            netExecutableFactory.getNetExecutableFromRepository("NMaven.Utility.Settings", "SettingsGenerator",
+                    vendorInfo, project, localRepository, commands).execute();
+        } catch (PlatformUnsupportedException e) {
+            throw new MojoExecutionException("", e);
+        } catch(ExecutionException e) {
+            throw new MojoExecutionException("", e);
+        }
+    }
+}

Propchange: incubator/nmaven/trunk/plugins/maven-settings-plugin/src/main/java/org/apache/maven/dotnet/plugin/settings/SettingsGeneratorMojo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-test-plugin/LICENSE.txt
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-test-plugin/LICENSE.txt?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-test-plugin/LICENSE.txt (added)
+++ incubator/nmaven/trunk/plugins/maven-test-plugin/LICENSE.txt Sun Dec 10 15:43:51 2006
@@ -0,0 +1,176 @@
+                               Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS

Propchange: incubator/nmaven/trunk/plugins/maven-test-plugin/LICENSE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-test-plugin/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-test-plugin/pom.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-test-plugin/pom.xml (added)
+++ incubator/nmaven/trunk/plugins/maven-test-plugin/pom.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,16 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <parent>
+        <groupId>org.apache.maven.dotnet.plugins</groupId>
+        <version>0.14-SNAPSHOT</version>
+        <artifactId>maven-dotnet-plugins</artifactId>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.maven.dotnet.plugins</groupId>
+    <artifactId>maven-test-plugin</artifactId>
+    <packaging>maven-plugin</packaging>
+    <version>0.14-SNAPSHOT</version>
+    <name>maven-test-plugin</name>
+    <description>
+        Maven Plugin for .NET
+    </description>
+</project>
\ No newline at end of file

Propchange: incubator/nmaven/trunk/plugins/maven-test-plugin/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,183 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.maven.dotnet.plugin.test;
+
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.artifact.Artifact;
+import org.codehaus.plexus.util.FileUtils;
+
+import java.util.ArrayList;
+import java.util.Set;
+import java.util.List;
+import java.io.IOException;
+import java.io.File;
+
+import org.apache.maven.dotnet.executable.ExecutionException;
+import org.apache.maven.dotnet.vendor.Vendor;
+import org.apache.maven.dotnet.executable.CommandExecutor;
+
+
+/**
+ * Runs NUnit tests
+ *
+ * @author Shane Isbell
+ * @goal test
+ * @phase test
+ */
+public class TesterMojo extends AbstractMojo {
+
+    /**
+     * The maven project.
+     *
+     * @parameter expression="${project}"
+     * @required
+     * @readonly
+     */
+    private MavenProject project;
+
+    /**
+     * The home of nunit. Use this if you 1) have not added nunit to your path and you only have MS installed;
+     * or 2) have mono installed and want to use another version of nunit.
+     *
+     * @parameter
+     */
+    private String nunitHome;
+
+    /**
+     * Display XML to the console
+     *
+     * @parameter expression = "${xmlConsole}" default-value = "false"
+     */
+    private boolean xmlConsole;
+
+    /**
+     * Skips unit test
+     *
+     * @parameter expression = "${skipTests}" default-value = "false"
+     */
+    private boolean skipTest;
+
+    /**
+     * Directory where reports are written.
+     *
+     * @parameter expression = "${reportsDirectory}" default-value = "${project.build.directory}${file.separator}nunit-reports"
+     */
+    private String reportsDirectory;
+
+    /**
+     * Test Assembly Location
+     *
+     * @parameter expression = "${testAssemblyPath}" default-value = "${project.build.directory}${file.separator}test-assemblies"
+     */
+    private String testAssemblyPath;
+
+
+    public String getExecutableFor(Vendor vendor, String home) {
+        return !(nunitHome == null || nunitHome.equals("")) ? nunitHome + File.separator + "bin"
+                + File.separator + "nunit-console" : "nunit-console";
+    }
+
+    public List<String> getCommandsFor(Vendor vendor) throws MojoExecutionException {
+        String finalName = project.getBuild().getFinalName();
+        List<String> commands = new ArrayList<String>();
+        commands.add(testAssemblyPath + File.separator + project.getArtifactId() + "-test.dll");
+        commands.add("/xml:" + reportsDirectory + File.separator + "TEST-" + finalName + ".xml");
+
+        commands.add("/output:" + reportsDirectory + File.separator + "TEST-" + finalName + "-RESULTS.txt");
+        commands.add("/err:" + reportsDirectory + File.separator + "TEST-" + finalName + "-ERROR.txt");
+        commands.add("/labels");
+
+        if (xmlConsole) commands.add("/xmlConsole");
+        return commands;
+    }
+
+    public void execute() throws MojoExecutionException {
+        String skipTests = System.getProperty("maven.test.skip");
+        if ((skipTests != null && skipTests.equalsIgnoreCase("true")) || skipTest) {
+            getLog().warn("NMAVEN-1100-000: Unit tests have been disabled.");
+            return;
+        }
+        String testFileName = project.getBuild().getDirectory() + File.separator
+                + project.getArtifactId() + "-test.dll";
+
+        if (!(new File(testFileName).exists())) {
+            getLog().info("NMAVEN-1100-001: No Unit Tests");
+            return;
+        }
+
+        List<Artifact> nunitLibs = new ArrayList<Artifact>();
+        Set<Artifact> artifacts = project.getDependencyArtifacts();
+        for (Artifact artifact : artifacts) {
+            if (artifact.getGroupId().equals("org.nunit")) {
+                nunitLibs.add(artifact);
+            } else {
+                try {
+                    FileUtils.copyFileToDirectory(artifact.getFile(), new File(testAssemblyPath));
+                } catch (IOException e) {
+                    throw new MojoExecutionException("NMAVEN-1100-002", e);
+                }
+            }
+        }
+
+        if (nunitLibs.size() == 0)
+            throw new MojoExecutionException("NMAVEN-1100-003: Could not find any nunit libraries.");
+
+        //Copy Main Artifact
+        try {
+            if (project.getArtifact() != null && project.getArtifact().getFile() != null
+                    && project.getArtifact().getFile().exists()) {
+                FileUtils.copyFileToDirectory(project.getArtifact().getFile(), new File(testAssemblyPath));
+            }
+        } catch (IOException e) {
+            throw new MojoExecutionException("NMAVEN-1100-004: Unable to copy library to target directory: ", e);
+        }
+
+        //Copy Test Artifact
+        try {
+            FileUtils.copyFileToDirectory(new File(testFileName), new File(testAssemblyPath));
+        } catch (IOException e) {
+            throw new MojoExecutionException("NMAVEN-1100-005: Unable to copy library to target directory: ", e);
+        }
+
+        //Copy  NUnit Dependencies
+        for (Artifact artifact : nunitLibs) {
+            File file = new File(testAssemblyPath + File.separator + artifact.getArtifactId() + ".dll");
+            try {
+                FileUtils.copyFile(artifact.getFile(), file);
+            } catch (IOException e) {
+                throw new MojoExecutionException("NMAVEN-1100-006: Unable to copy nunit library to target directory: File = " +
+                        file.getAbsolutePath(), e);
+            }
+        }
+
+        FileUtils.mkdir(reportsDirectory);
+
+        List<String> commands = getCommandsFor(null);
+        getLog().debug("NMAVEN-1100-008: " + commands.toString());
+        CommandExecutor commandExecutor = CommandExecutor.Factory.createDefaultCommmandExecutor();
+        //commandExecutor.setLog(getLog());
+        try {
+            commandExecutor.executeCommand(getExecutableFor(null, null), commands);
+        } catch (ExecutionException e) {
+            throw new MojoExecutionException("NMAVEN-1100-007", e);
+        }
+    }
+}

Propchange: incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/resources/META-INF/plexus/components.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/resources/META-INF/plexus/components.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/resources/META-INF/plexus/components.xml (added)
+++ incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/resources/META-INF/plexus/components.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,26 @@
+<component-set>
+    <components>
+        <component>
+            <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
+            <role-hint>library</role-hint>
+            <implementation>
+                org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
+            </implementation>
+            <configuration>
+                <phases>
+                    <test>org.apache.maven.dotnet.plugins:nmaven-test-plugin:test</test>
+                </phases>
+            </configuration>
+        </component>
+
+        <component>
+            <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
+            <role-hint>library</role-hint>
+            <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
+            <configuration>
+                <extension>dll</extension>
+                <type>library</type>
+            </configuration>
+        </component>
+    </components>
+</component-set>

Propchange: incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/resources/META-INF/plexus/components.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-test-plugin/src/site/site.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-test-plugin/src/site/site.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-test-plugin/src/site/site.xml (added)
+++ incubator/nmaven/trunk/plugins/maven-test-plugin/src/site/site.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,19 @@
+<project name="NMaven">
+    <bannerRight>
+        <src>http://sflogo.sourceforge.net/sflogo.php?group_id=176362&amp;type=4</src>
+    </bannerRight>
+
+    <body>
+        <links>
+            <item name="Project Site" href="http://sourceforge.net/projects/nmaven/"/>
+            <item name="NMaven" href="http://nmaven.sourceforge.net/"/>
+            <item name="NMaven SVN" href="http://svn.sourceforge.net/viewvc/nmaven/"/>
+            <item name="Maven" href="http://maven.apache.org/"/>
+            <item name="Mono Project" href="http://www.mono-project.com/"/>
+        </links>
+        <menu name="General Info">
+            <item name="About" href="index.html"/>            
+        </menu>
+        ${reports}
+    </body>
+</project>
\ No newline at end of file

Propchange: incubator/nmaven/trunk/plugins/maven-test-plugin/src/site/site.xml
------------------------------------------------------------------------------
    svn:eol-style = native