incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r485313 [11/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...
Date Sun, 10 Dec 2006 23:44:12 GMT
Added: incubator/nmaven/trunk/plugins/imports/nunit-2.0/license.html
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/imports/nunit-2.0/license.html?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/imports/nunit-2.0/license.html (added)
+++ incubator/nmaven/trunk/plugins/imports/nunit-2.0/license.html Sun Dec 10 15:43:51 2006
@@ -0,0 +1,85 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+<!-- Standard Head Part -->
+<head>
+<title>NUnit - License</title>
+<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
+<meta http-equiv="Content-Language" content="en-US">
+<link rel="stylesheet" type="text/css" href="nunit.css">
+<link rel="shortcut icon" href="favicon.ico">
+</head>
+<!-- End Standard Head Part -->
+
+<body>
+
+<!-- Standard Header for NUnit.org -->
+<div id="header">
+  <a id="logo" href="http://www.nunit.org"><img src="img/logo.gif" alt="NUnit.org" title="NUnit.org"></a>
+  <div id="nav">
+    <a href="http://www.nunit.org">NUnit</a>
+    <a class="active" href="index.html">Documentation</a>
+  </div>
+</div>
+<!-- End of Header -->
+
+<div id="content">
+
+<h2>License</h2>
+
+<p>Copyright &copy; 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. 
+Vorontsov, Charlie Poole<br>
+Copyright &copy; 2000-2004 Philip A. Craig</p>
+<p>	This software is provided 'as-is', without any express or implied warranty. In 
+	no event will the authors be held liable for any damages arising from the use 
+	of this software.</p>
+<p>Permission is granted to anyone to use this software for any purpose, including 
+	commercial applications, and to alter it and redistribute it freely, subject to 
+	the following restrictions:</p>
+<p>1. The origin of this software must not be misrepresented; you must not claim 
+	that you wrote the original software. If you use this software in a product, an 
+	acknowledgment (see the following) in the product documentation is required.</p>
+<p>Portions Copyright &copy; 2002 James W. Newkirk, Michael C. Two, Alexei A. 
+	Vorontsov or Copyright&nbsp;&copy; 2000-2002 Philip A. Craig</p>
+<p>2. Altered source versions must be plainly marked as such, and must not be 
+	misrepresented as being the original software.</p>
+<p>3. This notice may not be removed or altered from any source distribution.</p>
+
+<h4>License Note</h4>
+<p>This license is based on <A href="http://www.opensource.org/licenses/zlib-license.html">
+the open source zlib/libpng license</A>. The idea was to keep the license 
+as simple as possible to encourage use of NUnit in free and commercial 
+applications and libraries, but to keep the source code together and to give 
+credit to the NUnit contributors for their efforts. While this license allows 
+shipping NUnit in source and binary form, if shipping a NUnit variant is the 
+sole purpose of your product, please <a href="mailto:cpoole@pooleconsulting.com">let 
+us know</a>.</p>
+
+</div>
+
+<!-- Submenu -->
+<div id="subnav">
+<ul>
+<li><a href="index.html">NUnit 2.2.8</a></li>
+<ul>
+<li><a href="getStarted.html">Getting&nbsp;Started</a></li>
+<li><a href="installation.html">Installation</a></li>
+<li><a href="features.html">Features</a></li>
+<li><a href="nunit-console.html">NUnit-Console</a></li>
+<li><a href="nunit-gui.html">NUnit-Gui</a></li>
+<li><a href="releaseNotes.html">Release&nbsp;Notes</a></li>
+<li><a href="samples.html">Samples</a></li>
+<li id="current"><a href="license.html">License</a></li>
+</ul>
+</ul>
+</div>
+<!-- End of Submenu -->
+
+
+<!-- Standard Footer for NUnit.org -->
+<div id="footer">
+  Copyright &copy; 2002-2005. All Rights Reserved.
+</div>
+<!-- End of Footer -->
+
+</body>
+</html>

Added: incubator/nmaven/trunk/plugins/imports/nunit-2.0/nunit.framework.dll
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/imports/nunit-2.0/nunit.framework.dll?view=auto&rev=485313
==============================================================================
Binary file - no diff available.

Propchange: incubator/nmaven/trunk/plugins/imports/nunit-2.0/nunit.framework.dll
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/nmaven/trunk/plugins/maven-compile-plugin/LICENSE.txt
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-compile-plugin/LICENSE.txt?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-compile-plugin/LICENSE.txt (added)
+++ incubator/nmaven/trunk/plugins/maven-compile-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-compile-plugin/LICENSE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-compile-plugin/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-compile-plugin/pom.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-compile-plugin/pom.xml (added)
+++ incubator/nmaven/trunk/plugins/maven-compile-plugin/pom.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,24 @@
+<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-compile-plugin</artifactId>
+    <packaging>maven-plugin</packaging>
+    <version>0.14-SNAPSHOT</version>
+    <name>maven-compile-plugin</name>
+    <description>
+        Maven Plugin for .NET
+    </description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.maven</groupId>
+            <artifactId>maven-artifact</artifactId>
+            <version>2.0.4</version>
+        </dependency>
+    </dependencies>
+</project>
\ No newline at end of file

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

Added: incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/AssemblyInfoGeneratorMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/AssemblyInfoGeneratorMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/AssemblyInfoGeneratorMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/AssemblyInfoGeneratorMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,113 @@
+/*
+ * 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.compile;
+
+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 java.io.IOException;
+import java.io.File;
+import java.util.List;
+
+import org.apache.maven.dotnet.InitializationException;
+import org.apache.maven.dotnet.assembler.AssemblerContext;
+import org.apache.maven.dotnet.assembler.AssemblyInfoMarshaller;
+import org.apache.maven.dotnet.assembler.AssemblyInfoException;
+
+/**
+ * Generates an AssemblyInfo.* class based on information within the pom file.
+ *
+ * @author Shane Isbell
+ * @goal generate-assembly-info
+ * @phase generate-sources
+ */
+public class AssemblyInfoGeneratorMojo extends AbstractMojo {
+
+    /**
+     * The maven project.
+     *
+     * @parameter expression="${project}"
+     * @required
+     * @readonly
+     */
+    private MavenProject project;
+
+    /**
+     * .NET Language. The default value is <code>C_SHARP</code>. Not case or white-space sensitive.
+     *
+     * @parameter expression="${language}" default-value = "C_SHARP"
+     * @required
+     */
+    private String language;
+
+    /**
+     * @component
+     */
+    private AssemblerContext assemblerContext;
+
+    /**
+     * Source directory
+     *
+     * @parameter expression = "${sourceDirectory}" default-value="${project.build.sourceDirectory}"
+     * @required
+     */
+    private String sourceDirectory;
+
+    /**
+     * If an AssemblyInfo file exists in the source directory, then this method will not generate an AssemblyInfo.
+     *
+     * @throws MojoExecutionException
+     */
+    public void execute() throws MojoExecutionException {
+        if (project.getArtifact().getType().equals("module")) {
+            return;
+        }
+
+        File srcFile = new File(sourceDirectory);
+        if (srcFile.exists()) {
+            try {
+                List files = FileUtils.getFiles(srcFile, "**/AssemblyInfo.*", null);
+                if (files.size() != 0) {
+                    getLog().info("NMAVEN-902-001: Found AssemblyInfo file(s), so will not generate one");
+                    return;
+                }
+            } catch (IOException e) {
+                throw new MojoExecutionException("NMAVEN-902-004: Could not determine whether an AssemblyInfo file exists",
+                        e);
+            }
+        }
+        getLog().info("NMAVEN-902-000: Generating Assembly Info: Language = " + language.trim());
+        try {
+            try {
+                assemblerContext.init(project);
+            } catch (InitializationException e) {
+                throw new MojoExecutionException("NMAVEN-902-006: Failed to initialize the assembler context");
+            }
+            AssemblyInfoMarshaller marshaller = assemblerContext.getAssemblyInfoMarshallerFor(language.trim());
+            marshaller.marshal(assemblerContext.getAssemblyInfo(), project, null);
+        } catch (IOException e) {
+            throw new MojoExecutionException("NMAVEN-902-002: Problem generating assembly info class", e);
+        } catch (AssemblyInfoException e) {
+            throw new MojoExecutionException("NMAVEN-902-005: Problem generating assembly info class", e);
+        }
+
+    }
+}

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

Added: incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/CompilerMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/CompilerMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/CompilerMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/CompilerMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,205 @@
+/*
+ * 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.compile;
+
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.AbstractMojo;
+
+import org.apache.maven.project.MavenProject;
+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.executable.compiler.*;
+
+import java.util.ArrayList;
+import java.io.File;
+
+/**
+ * Maven Mojo for compiling Class files to the .NET Intermediate Language.
+ * To use a specific vendor (MICROSOFT/MONO) or language, the compiler/language must be previously installed AND
+ * configured through the plugin-compiler.xml file: otherwise the Mojo either will throw a MojoExecutionException
+ * telling you that the platform is not supported (occurs if entry is not in plugin-compilers.xml, regardless of
+ * whether the compiler/language is installed) or will attempt to execute the compiler and fail (occurs if entry is in
+ * plugin-compilers.xml and the compiler/language is not installed).
+ *
+ * @author Shane Isbell
+ * @goal compile
+ * @phase compile
+ * @description Maven Mojo for compiling Class files to the .NET Intermediate Language
+ */
+public final class CompilerMojo extends AbstractMojo {
+
+    /**
+     * @parameter expression="${settings.localRepository}"
+     * @required
+     */
+    private File localRepository;
+
+    /**
+     * The maven project.
+     *
+     * @parameter expression="${project}"
+     * @required
+     */
+    private MavenProject project;
+
+    /**
+     * Additional compiler commands
+     *
+     * @parameter expression = "${parameters}"
+     */
+    private ArrayList<String> parameters;
+
+    /**
+     * Delay-sign the assembly using only the public portion of the strong name key. (not currently supported)
+     */
+    private boolean delaysign;
+
+    /**
+     * Specify a strong name key file. (not currently supported)
+     */
+    private File keyfile;
+
+    /**
+     * Specifies a strong name key container. (not currently supported)
+     */
+    private String keycontainer;
+
+    /**
+     * Limit the platforms this code can run on. (not currently supported)
+     *
+     * @parameter expression = "${platform} default-value = "anycpu"
+     */
+    private String platform;
+
+    /**
+     * @parameter expression = "${frameworkVersion}" 
+     */
+    private String frameworkVersion;
+
+    /**
+     * The profile that the compiler should use to compile classes: FULL, COMPACT, (or a custom one specified in a
+     * compiler-plugins.xml).
+     *
+     * @parameter expression = "${profile}" default-value = "FULL"
+     */
+    private String profile;
+
+    /**
+     * .NET Language. The default value is <code>C_SHARP</code>. Not case or white-space sensitive.
+     *
+     * @parameter expression="${language}" default-value = "C_SHARP"
+     * @required
+     */
+    private String language;
+
+    /**
+     * The Vendor for the Compiler. Supports MONO and MICROSOFT: the default value is <code>MICROSOFT</code>. Not
+     * case or white-space sensitive.
+     *
+     * @parameter expression="${vendor}"
+     */
+    private String vendor;
+
+    /**
+     * This over-rides the defaultAssemblyPath for the compiler plugin.
+     *
+     * @parameter expression = "${profileAssemblyPath}
+     */
+    private File profileAssemblyPath;
+
+    /**
+     * @parameter expression = "${vendorVersion}"
+     */
+    private String vendorVersion;
+
+    /**
+     * @component
+     */
+    private org.apache.maven.dotnet.executable.NetExecutableFactory netExecutableFactory;
+
+    /**
+     * Compiles the class files.
+     *
+     * @throws MojoExecutionException thrown if MOJO is unable to compile the class files or if the environment is not
+     *                                properly set.
+     */
+    public void execute() throws MojoExecutionException {
+        if (profileAssemblyPath != null && !profileAssemblyPath.exists())
+            throw new MojoExecutionException("NMAVEN-900-007: Profile Assembly Path does not exist: Path = " +
+                    profileAssemblyPath.getAbsolutePath());
+
+        //Requirement
+        CompilerRequirement compilerRequirement = CompilerRequirement.Factory.createDefaultCompilerRequirement();
+        compilerRequirement.setLanguage(language);
+        compilerRequirement.setFrameworkVersion(frameworkVersion);
+        compilerRequirement.setProfile(profile);
+        compilerRequirement.setVendorVersion(vendorVersion);
+        try {
+            if(vendor != null) compilerRequirement.setVendor(VendorFactory.createVendorFromName(vendor));
+        } catch (PlatformUnsupportedException e) {
+            throw new MojoExecutionException("NMAVEN-900-000: Unknown Vendor: Vendor = " + vendor, e);
+        }
+
+        //Config
+        CompilerConfig compilerConfig = (CompilerConfig) CompilerConfig.Factory.createDefaultExecutableConfig();
+        compilerConfig.setLocalRepository(localRepository);
+        if (parameters != null) compilerConfig.setCommands(parameters);
+        String artifactTypeName = project.getArtifact().getType();
+
+        if (artifactTypeName.equals(ArtifactType.MODULE.getArtifactTypeName())) {
+            compilerConfig.setArtifactType(ArtifactType.MODULE);
+        } else if (artifactTypeName.equals(ArtifactType.LIBRARY.getArtifactTypeName())) {
+            compilerConfig.setArtifactType(ArtifactType.LIBRARY);
+        } else if (artifactTypeName.equals(ArtifactType.EXE.getArtifactTypeName())) {
+            compilerConfig.setArtifactType(ArtifactType.EXE);
+        } else if (artifactTypeName.equals(ArtifactType.WINEXE.getArtifactTypeName())) {
+            compilerConfig.setArtifactType(ArtifactType.WINEXE);
+        } else if (artifactTypeName.equals(ArtifactType.NAR.getArtifactTypeName())) {
+            compilerConfig.setArtifactType(ArtifactType.LIBRARY);
+        } else {
+            throw new MojoExecutionException("NMAVEN-900-001: Unrecognized artifact type: Language = " + language
+                    + ", Vendor = " + vendor + ", ArtifactType = " + artifactTypeName);
+        }
+
+        try {
+            CompilerExecutable compilerExecutable = netExecutableFactory.getCompilerExecutableFor(compilerRequirement,
+                    compilerConfig, project, profileAssemblyPath);
+            compilerExecutable.execute();
+            project.getArtifact().setFile(compilerExecutable.getCompiledArtifact());
+        } catch (PlatformUnsupportedException e) {
+            throw new MojoExecutionException("NMAVEN-900-003: Unsupported Platform: Language = " + language
+                    + ", Vendor = " + vendor + ", ArtifactType = " + artifactTypeName, e);
+        } catch (ExecutionException e) {
+            throw new MojoExecutionException("NMAVEN-900-004: Unable to Compile: Language = " + language
+                    + ", Vendor = " + vendor + ", ArtifactType = " + artifactTypeName + ", Source Directory = "
+                    + project.getBuild().getSourceDirectory(), e);
+        }
+    }
+}
+
+/*
+        if (compilerVendor.equals(Vendor.MICROSOFT)) {
+            File frameworkPath = new File("C:\\WINDOWS\\Microsoft.NET\\Framework\\v" + frameworkVersion);
+            if (!frameworkPath.exists())
+                throw new MojoExecutionException("NMAVEN-900-006: Could not find .NET framework: "
+                        + ", Path = " + frameworkPath.getAbsolutePath());
+            compilerConfig.setExecutionPath(frameworkPath.getAbsolutePath() + File.separator);
+        }
+*/
\ No newline at end of file

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

Added: incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/ComponentInitializerMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/ComponentInitializerMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/ComponentInitializerMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/ComponentInitializerMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,93 @@
+/*
+ * 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.compile;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.artifact.resolver.ArtifactResolutionException;
+import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
+
+import org.apache.maven.dotnet.InitializationException;
+import org.apache.maven.dotnet.artifact.AssemblyResolver;
+
+import java.io.File;
+
+/**
+ * This class initializes and validates the setup.
+ *
+ * @author Shane Isbell
+ * @goal initialize
+ * @phase compile
+ */
+public class ComponentInitializerMojo 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;
+
+    /**
+     * @component
+     */
+    private AssemblyResolver assemblyResolver;
+
+    /**
+     * @component
+     */
+    private org.apache.maven.dotnet.executable.CapabilityMatcher capabilityMatcher;
+
+    /**
+     * @component
+     */
+    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);
+        }
+        try {
+            capabilityMatcher.init(project);
+        } catch (InitializationException e) {
+            throw new MojoExecutionException("NMAVEN-901-002: Unable to load the Executable Factory:", e);
+        }
+    }
+}

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

Added: incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/SourceProcessorMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/SourceProcessorMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/SourceProcessorMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/SourceProcessorMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,88 @@
+/*
+ * 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.compile;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.codehaus.plexus.util.FileUtils;
+import org.codehaus.plexus.util.DirectoryScanner;
+
+import java.io.File;
+import java.io.IOException;
+
+/**
+ * Copies source files to target directory.
+ *
+ * @author Shane Isbell
+ * @goal process-sources
+ * @phase process-sources
+ */
+
+public class SourceProcessorMojo extends AbstractMojo {
+
+    /**
+     * Source directory
+     *
+     * @parameter expression = "${sourceDirectory}" default-value="${project.build.sourceDirectory}"
+     * @required
+     */
+    private String sourceDirectory;
+
+    /**
+     * Output directory
+     *
+     * @parameter expression = "${outputDirectory}" default-value="${project.build.directory}${file.separator}build-sources"
+     * @required
+     */
+    private String outputDirectory;
+
+    /**
+     * @parameter expression = "${includes}"
+     */
+    private String[] includes;
+
+    /**
+     * @parameter expression = "${excludes}"
+     */
+    private String[] excludes;
+
+    public void execute() throws MojoExecutionException {
+        if (!new File(sourceDirectory).exists()) {
+            getLog().info("NMAVEN-904-001: No source files to copy");
+            return;
+        }
+        DirectoryScanner directoryScanner = new DirectoryScanner();
+        directoryScanner.setBasedir(sourceDirectory);
+
+        if(includes != null && includes.length > 0 ) directoryScanner.setIncludes(includes);
+        if(excludes != null && excludes.length > 0) directoryScanner.setExcludes(excludes);
+        directoryScanner.addDefaultExcludes();
+        directoryScanner.scan();
+        String[] files = directoryScanner.getIncludedFiles();
+        getLog().info("NMAVEN-904-002: Copying source files: From = " + sourceDirectory + ",  To = " + outputDirectory);
+        for (String file : files) {
+            try {
+                FileUtils.copyFile(new File(sourceDirectory + File.separator + file),
+                        new File(outputDirectory + File.separator + file));
+            } catch (IOException e) {
+                throw new MojoExecutionException("NMAVEN-904-000: Unable to process sources", e);
+            }
+        }
+    }
+}

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

Added: incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/TestCompilerMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/TestCompilerMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/TestCompilerMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/TestCompilerMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,166 @@
+/*
+ * 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.compile;
+
+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.PlatformUnsupportedException;
+import org.apache.maven.dotnet.executable.ExecutionException;
+import org.apache.maven.dotnet.vendor.VendorFactory;
+import org.apache.maven.dotnet.executable.compiler.*;
+
+import java.util.ArrayList;
+import java.io.File;
+
+/**
+ * Compiles test classes.
+ *
+ * @author Shane Isbell
+ * @goal testCompile
+ * @phase test-compile
+ * @description Maven Mojo for compiling Test Class files to the .NET Intermediate Language
+ */
+public final class TestCompilerMojo extends AbstractMojo {
+
+    /**
+     * @parameter expression="${settings.localRepository}"
+     * @required
+     */
+    private File localRepository;
+
+    /**
+     * The maven project.
+     *
+     * @parameter expression="${project}"
+     * @required
+     */
+    private MavenProject project;
+
+    /**
+     * Additional compiler commands for test classes
+     *
+     * @parameter expression = "${testParameters}"
+     */
+    private ArrayList<String> testParameters;
+
+    /**
+     * Skips compiling of unit tests
+     *
+     * @parameter expression = "${skipTestCompile}" default-value = "false"
+     */
+    private boolean skipTestCompile;
+
+    /**
+     * @parameter expression = "${testFrameworkVersion}" 
+     */
+    private String testFrameworkVersion;
+
+    /**
+     * The Vendor for the Compiler. Supports MONO and MICROSOFT: the default value is <code>MICROSOFT</code>. Not
+     * case or white-space sensitive.
+     *
+     * @parameter expression="${testVendor}"
+     */
+    private String testVendor;
+
+    /**
+     * .NET Language. The default value is <code>C_SHARP</code>. Not case or white-space sensitive.
+     *
+     * @parameter expression="${language}"
+     */
+    private String testLanguage;
+
+    /**
+     * .NET Language. The default value is <code>C_SHARP</code>. Not case or white-space sensitive.
+     *
+     * @parameter expression="${language}" default-value = "C_SHARP"
+     * @required
+     */
+    private String language;
+
+    /**
+     * The Vendor for the Compiler. 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 = "${testVendorVersion}"
+     */
+    private String testVendorVersion;
+
+    /**
+     * @component
+     */
+    private org.apache.maven.dotnet.executable.NetExecutableFactory netExecutableFactory;
+
+    /**
+     * Compiles the class files.
+     *
+     * @throws MojoExecutionException thrown if MOJO is unable to compile the class files or if the environment is not
+     *                                properly set.
+     */
+    public void execute() throws MojoExecutionException {
+        String skipTests = System.getProperty("maven.test.skip");
+        if ((skipTests != null && skipTests.equalsIgnoreCase("true")) || skipTestCompile) {
+            getLog().warn("NMAVEN-903-004: Disabled unit tests: -Dmaven.test.skip=true");
+            return;
+        }
+        FileUtils.mkdir("target");
+
+        if (testLanguage == null) testLanguage = language;
+        if (testVendor == null) testVendor = vendor;
+
+        //Requirement
+        CompilerRequirement compilerRequirement = CompilerRequirement.Factory.createDefaultCompilerRequirement();
+        compilerRequirement.setLanguage(language);
+        compilerRequirement.setFrameworkVersion(testFrameworkVersion);
+        compilerRequirement.setProfile("FULL");
+        compilerRequirement.setVendorVersion(testVendorVersion);
+        try {
+            if(vendor != null) compilerRequirement.setVendor(VendorFactory.createVendorFromName(vendor));
+        } catch (PlatformUnsupportedException e) {
+            throw new MojoExecutionException("NMAVEN-900-000: Unknown Vendor: Vendor = " + vendor, e);
+        }
+
+
+        //Config
+        CompilerConfig compilerConfig = (CompilerConfig) CompilerConfig.Factory.createDefaultExecutableConfig();
+        if (testParameters != null) compilerConfig.setCommands(testParameters);
+        compilerConfig.setArtifactType(ArtifactType.LIBRARY);
+        compilerConfig.setTestCompile(true);
+        compilerConfig.setLocalRepository(localRepository);
+
+        try {
+            CompilerExecutable compilerExecutable = netExecutableFactory.getCompilerExecutableFor(compilerRequirement,
+                    compilerConfig, project, null);
+            compilerExecutable.execute();
+        } catch (PlatformUnsupportedException e) {
+            throw new MojoExecutionException("NMAVEN-903-003: Unsupported Platform: Language = " + language
+                    + ", Vendor = " + vendor, e);
+        } catch (ExecutionException e) {
+            throw new MojoExecutionException("NMAVEN-903-002: Unable to Compile: Language = " + language
+                    + ", Vendor = " + vendor, e);
+        }
+    }
+}

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

Added: incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/TestSourceProcessorMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/TestSourceProcessorMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/TestSourceProcessorMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/TestSourceProcessorMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,74 @@
+/*
+ * 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.compile;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.codehaus.plexus.util.DirectoryScanner;
+import org.codehaus.plexus.util.FileUtils;
+
+import java.io.File;
+import java.io.IOException;
+
+/**
+ * Copies source files to target directory.
+ *
+ * @author Shane Isbell
+ * @goal process-test-sources
+ * @phase process-sources
+ */
+public class TestSourceProcessorMojo extends AbstractMojo {
+
+    /**
+     * Source directory
+     *
+     * @parameter expression = "${sourceDirectory}" default-value="${project.build.testSourceDirectory}"
+     * @required
+     */
+    private String sourceDirectory;
+
+    /**
+     * Output directory
+     *
+     * @parameter expression = "${outputDirectory}" default-value="${project.build.directory}${file.separator}build-test-sources"
+     * @required
+     */
+    private String outputDirectory;
+
+    public void execute() throws MojoExecutionException {
+        if (!new File(sourceDirectory).exists()) {
+            getLog().info("NMAVEN-905-001: No test source files to copy");
+            return;
+        }
+        DirectoryScanner directoryScanner = new DirectoryScanner();
+        directoryScanner.setBasedir(sourceDirectory);
+        directoryScanner.addDefaultExcludes();
+        directoryScanner.scan();
+        String[] files = directoryScanner.getIncludedFiles();
+        getLog().info("NMAVEN-905-002: Copying test source files: From = " + sourceDirectory + ",  To = " + outputDirectory);
+        for (String file : files) {
+            try {
+                FileUtils.copyFile(new File(sourceDirectory + File.separator + file),
+                        new File(outputDirectory + File.separator + file));
+            } catch (IOException e) {
+                throw new MojoExecutionException("NMAVEN-905-000: Unable to process test sources", e);
+            }
+        }
+    }
+}

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

Added: incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/resources/META-INF/plexus/components.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/resources/META-INF/plexus/components.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/resources/META-INF/plexus/components.xml (added)
+++ incubator/nmaven/trunk/plugins/maven-compile-plugin/src/main/resources/META-INF/plexus/components.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,215 @@
+<component-set>
+    <components>
+        <component>
+            <role>org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout</role>
+            <implementation>org.apache.maven.dotnet.artifact.AssemblyRepositoryLayout</implementation>
+        </component>
+        <component>
+            <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
+            <role-hint>nar</role-hint>
+            <implementation>
+                org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
+            </implementation>
+            <configuration>
+                <phases>
+                    <validate>
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:initialize,
+                        org.apache.maven.dotnet.plugins:maven-resolver-plugin:resolve,
+                        org.apache.maven.dotnet.plugins:maven-settings-plugin:generate-settings
+                    </validate>
+                    <generate-sources>
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:generate-assembly-info
+                    </generate-sources>
+                    <process-sources>
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:process-sources,
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:process-test-sources
+                    </process-sources>
+                    <process-resources>
+                        org.apache.maven.dotnet.plugins:maven-resgen-plugin:copy-resources,
+                        org.apache.maven.dotnet.plugins:maven-resgen-plugin:generate
+                    </process-resources>
+                    <compile>
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:compile,
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:testCompile
+                    </compile>
+                    <process-classes>
+                        org.apache.maven.dotnet.plugins:maven-install-plugin:target-install
+                    </process-classes>
+                    <test>org.apache.maven.dotnet.plugins:maven-test-plugin:test</test>
+                    <install>
+                        org.apache.maven.dotnet.plugins:maven-install-plugin:install,
+                    </install>
+                    <package>org.apache.maven.dotnet.plugins:maven-webapp-plugin:package</package>
+                    <deploy>org.apache.maven.dotnet.plugins:maven-webapp-plugin:deploy</deploy>
+                </phases>
+            </configuration>
+        </component>
+        <component>
+            <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
+            <role-hint>module</role-hint>
+
+            <implementation>
+                org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
+            </implementation>
+            <configuration>
+                <phases>
+                    <validate>
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:initialize,
+                        org.apache.maven.dotnet.plugins:maven-resolver-plugin:resolve,
+                        org.apache.maven.dotnet.plugins:maven-settings-plugin:generate-settings
+                    </validate>
+                    <process-sources>
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:process-sources,
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:process-test-sources
+                    </process-sources>
+                    <process-resources>
+                        org.apache.maven.dotnet.plugins:maven-resgen-plugin:copy-resources,
+                        org.apache.maven.dotnet.plugins:maven-resgen-plugin:generate
+                    </process-resources>
+                    <compile>
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:compile,
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:testCompile
+                    </compile>
+                    <process-classes>
+                        org.apache.maven.dotnet.plugins:maven-install-plugin:target-install
+                    </process-classes>
+                    <test>org.apache.maven.dotnet.plugins:maven-test-plugin:test</test>
+                    <install>
+                        org.apache.maven.dotnet.plugins:maven-install-plugin:install,
+                    </install>
+                </phases>
+            </configuration>
+        </component>
+        <component>
+            <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
+            <role-hint>library</role-hint>
+
+            <implementation>
+                org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
+            </implementation>
+            <configuration>
+                <phases>
+                    <validate>
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:initialize,
+                        org.apache.maven.dotnet.plugins:maven-resolver-plugin:resolve ,
+                        org.apache.maven.dotnet.plugins:maven-settings-plugin:generate-settings
+                    </validate>
+                    <generate-sources>
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:generate-assembly-info
+                    </generate-sources>
+                    <process-sources>
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:process-sources,
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:process-test-sources
+                    </process-sources>
+                    <process-resources>
+                        org.apache.maven.dotnet.plugins:maven-resgen-plugin:copy-resources,
+                        org.apache.maven.dotnet.plugins:maven-resgen-plugin:generate,
+                    </process-resources>
+                    <compile>
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:compile,
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:testCompile
+                    </compile>
+                    <process-classes>
+                        org.apache.maven.dotnet.plugins:maven-install-plugin:target-install
+                    </process-classes>
+                    <test>org.apache.maven.dotnet.plugins:maven-test-plugin:test</test>
+                    <install>
+                        org.apache.maven.dotnet.plugins:maven-install-plugin:install,
+                    </install>
+                </phases>
+            </configuration>
+        </component>
+        <component>
+            <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
+            <role-hint>exe</role-hint>
+
+            <implementation>
+                org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
+            </implementation>
+            <configuration>
+                <phases>
+                    <validate>
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:initialize,
+                        org.apache.maven.dotnet.plugins:maven-resolver-plugin:resolve,
+                        org.apache.maven.dotnet.plugins:maven-settings-plugin:generate-settings
+                    </validate>
+                    <generate-sources>
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:generate-assembly-info
+                    </generate-sources>
+                    <process-sources>
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:process-sources,
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:process-test-sources
+                    </process-sources>
+                    <process-resources>
+                        org.apache.maven.dotnet.plugins:maven-resgen-plugin:copy-resources,
+                        org.apache.maven.dotnet.plugins:maven-resgen-plugin:generate,
+                    </process-resources>
+                    <compile>
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:compile,
+                        org.apache.maven.dotnet.plugins:maven-compile-plugin:testCompile
+                    </compile>
+                    <process-classes>
+                        org.apache.maven.dotnet.plugins:maven-install-plugin:target-install
+                    </process-classes>
+                    <test>org.apache.maven.dotnet.plugins:maven-test-plugin:test</test>
+                    <install>
+                        org.apache.maven.dotnet.plugins:maven-install-plugin:install,
+                    </install>
+                </phases>
+            </configuration>
+        </component>
+        <component>
+            <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
+            <role-hint>module</role-hint>
+            <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
+            <configuration>
+                <extension>netmodule</extension>
+                <type>module</type>
+            </configuration>
+        </component>
+        <component>
+            <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
+            <role-hint>exe.config</role-hint>
+            <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
+            <configuration>
+                <extension>exe.config</extension>
+                <type>exe.config</type>
+            </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>
+        <component>
+            <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
+            <role-hint>winexe</role-hint>
+            <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
+            <configuration>
+                <extension>exe</extension>
+                <type>winexe</type>
+            </configuration>
+        </component>
+        <component>
+            <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
+            <role-hint>nar</role-hint>
+            <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
+            <configuration>
+                <type>nar</type>
+            </configuration>
+        </component>
+        <component>
+            <role>org.apache.maven.dotnet.executable.CapabilityMatcher</role>
+            <implementation>org.apache.maven.dotnet.executable.impl.CapabilityMatcherImpl</implementation>
+            <requirements>
+                <requirement>
+                    <role>org.apache.maven.dotnet.registry.RepositoryRegistry</role>
+                </requirement>
+            </requirements>
+        </component>
+    </components>
+</component-set>
\ No newline at end of file

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

Added: incubator/nmaven/trunk/plugins/maven-compile-plugin/src/site/apt/how-to-use.apt
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-compile-plugin/src/site/apt/how-to-use.apt?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-compile-plugin/src/site/apt/how-to-use.apt (added)
+++ incubator/nmaven/trunk/plugins/maven-compile-plugin/src/site/apt/how-to-use.apt Sun Dec 10 15:43:51 2006
@@ -0,0 +1,82 @@
+How to Use
+
+ Also make sure that you read {{{http://nmaven.sourceforge.net/environment-configuration.html} Configuration}}
+
+
+* Pass-Through Compiler Commands
+
+ There may be cases that the specific compiler option that you want to use may not be directly supported by the
+ nmaven-compile-plugin. In this case, you can use the parameter(s) tag to pass through the command to the compiler.
+ Be aware that the command filter specified within the compiler-plugins.xml may choose not to pass this parameter
+ to the compiler. Typically, this will only be done for unsupported commands: (you will see a warn message in the output
+ if this occurs).
+
++----+
+<plugins>
+    <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compile-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+            <parameters>
+                <parameter>/optimize+</parameter>
+            </parameters>
+        </configuration>
+    </plugin>
+</plugins>
++----+
+
+* Setting Framework Version
+
+ By default, the framework version for the main compile and the test compile are both 2.0.50727. To change this to
+ version 1.1, set the \<frameworkVersion/> & \<testFramework/> tags. Note that setting the \<frameworkVersion/> to 1.1.4322, will
+ not set the \<testFrameworkVersion/>: you will need to set both if your project also includes NUnit tests.
+
++----+
+<plugins>
+    <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compile-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+            <parameters>
+                <frameworkVersion>1.1.4322</frameworkVersion>
+                <testFrameworkVersion>1.1.4322</testFrameworkVersion>
+            </parameters>
+        </configuration>
+    </plugin>
+</plugins>
++----+
+
+ The frameworkVersion is not supported for DotGNU: it depends on the target profile that the compiler was built under.
+
+* Compiling for Multiple Platforms
+
+ It is important to understand what setting the \<vendor/> tag means for multi-platform builds.
+
+ * In the case of not
+ setting the \<vendor/> tag, NMaven will use the Microsoft compiler for the windows platform and MONO for all other
+ platforms. By not specifying the vendor, you are indicating that the application should build with with both Microsoft
+ and Mono compilers. For most development environments, Microsoft is installed on Windows, and Mono comes by default
+  on many Linux distributions: so this option is usually a safe bet for multi-platform builds.
+
+ * In the case of setting the \<vendor/> tag to MICROSOFT, the application will only build under that compiler on Windows.
+ If you are using any Microsoft specific APIs (or any of the missing APIs in MONO), then you should set the vendor tag to
+ MICROSOFT.
+
+ * In the case of setting the \<vendor/> tag to MONO, the platform obviously must have Mono installed to be buildable. This
+ option should be used if you are using any of the Mono specific APIs that you are not including within the dependency
+ path of Maven.
+
+ * In the case of setting the \<vendor/> tag to DotGNU, the platform obviously must have DotGnu installed to be buildable.
+ The DotGNU compiler is not included
+ as a default for any of the platforms: so to target this environment, you must set the \<vendor/> tag. Also you may run
+ into some problems since there is currently no way to set the frameworkVersion/profile. I am giving some thought to this
+ problem, so keep an eye on the documentation.
+
+
+
+
+
+
+

Added: incubator/nmaven/trunk/plugins/maven-compile-plugin/src/site/site.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-compile-plugin/src/site/site.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-compile-plugin/src/site/site.xml (added)
+++ incubator/nmaven/trunk/plugins/maven-compile-plugin/src/site/site.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,20 @@
+<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"/>
+            <item name="How to Use" href="how-to-use.html"/>
+        </menu>
+        ${reports}
+    </body>
+</project>
\ No newline at end of file

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

Added: incubator/nmaven/trunk/plugins/maven-install-plugin/LICENSE.txt
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-install-plugin/LICENSE.txt?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-install-plugin/LICENSE.txt (added)
+++ incubator/nmaven/trunk/plugins/maven-install-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-install-plugin/LICENSE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/plugins/maven-install-plugin/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-install-plugin/pom.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-install-plugin/pom.xml (added)
+++ incubator/nmaven/trunk/plugins/maven-install-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-install-plugin</artifactId>
+    <packaging>maven-plugin</packaging>
+    <version>0.14-SNAPSHOT</version>
+    <name>maven-install-plugin</name>
+    <description>
+        Maven Plugin for .NET
+    </description>
+</project>
\ No newline at end of file

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

Added: incubator/nmaven/trunk/plugins/maven-install-plugin/src/main/java/org/apache/maven/dotnet/plugin/install/FileInstallerMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-install-plugin/src/main/java/org/apache/maven/dotnet/plugin/install/FileInstallerMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-install-plugin/src/main/java/org/apache/maven/dotnet/plugin/install/FileInstallerMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-install-plugin/src/main/java/org/apache/maven/dotnet/plugin/install/FileInstallerMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,106 @@
+/*
+ * 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 java.io.File;
+import java.io.IOException;
+
+import org.apache.maven.dotnet.artifact.ArtifactContext;
+
+/**
+ * @goal install-file
+ * @phase install
+ * @requiresProject false
+ */
+
+public class FileInstallerMojo extends AbstractMojo {
+
+    /**
+     * The maven project.
+     *
+     * @parameter expression="${project}"
+     * @required
+     */
+    private MavenProject project;
+
+    /**
+     * @parameter expression="${settings.localRepository}"
+     * @required
+     */
+    private File localRepository;
+
+    /**
+     * @parameter expression = "${file}
+     * @required
+     */
+    private File pomFile;
+
+    /**
+     * @parameter expression = "${groupId}
+     * @required
+     */
+    private String groupId;
+
+    /**
+     * @parameter expression = "${artifactId}
+     * @required
+     */
+    private String artifactId;
+
+    /**
+     * @parameter expression = "${version}
+     * @required
+     */
+    private String version;
+
+    /**
+     * @parameter expression = "${packaging}
+     * @required
+     */
+    private String packaging;
+
+    /**
+     * @component
+     */
+    private ArtifactContext artifactContext;
+
+    /**
+     * @component
+     */
+    private org.apache.maven.dotnet.NMavenRepositoryRegistry nmavenRegistry;
+
+    public void execute() throws MojoExecutionException {
+        try {
+            nmavenRegistry.createRepositoryRegistry();
+        } catch (IOException e) {
+            throw new MojoExecutionException("NMAVEN-1000-001: Failed to create the repository registry for this plugin", e);
+        }
+
+        artifactContext.init(project, localRepository);
+        try {
+            artifactContext.getArtifactInstaller().installFile(groupId, artifactId, version, packaging, pomFile);
+        } catch (org.apache.maven.artifact.installer.ArtifactInstallationException e) {
+            throw new MojoExecutionException("NMAVEN-1000-000: Failed to install artifact file", e);
+        }
+    }
+}

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

Added: incubator/nmaven/trunk/plugins/maven-install-plugin/src/main/java/org/apache/maven/dotnet/plugin/install/InstallerMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-install-plugin/src/main/java/org/apache/maven/dotnet/plugin/install/InstallerMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-install-plugin/src/main/java/org/apache/maven/dotnet/plugin/install/InstallerMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-install-plugin/src/main/java/org/apache/maven/dotnet/plugin/install/InstallerMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,73 @@
+/*
+ * 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.ArtifactInstaller;
+import org.apache.maven.artifact.installer.ArtifactInstallationException;
+import org.apache.maven.dotnet.artifact.ArtifactContext;
+import java.io.File;
+
+/**
+ * @goal install
+ * @phase install
+ */
+public class InstallerMojo extends AbstractMojo {
+
+    /**
+     * The maven project.
+     *
+     * @parameter expression="${project}"
+     * @required
+     */
+    private MavenProject project;
+
+    /**
+     * @parameter expression="${settings.localRepository}"
+     * @required
+     */
+    private File localRepository;
+
+    /**
+     * @parameter expression="${project.file}"
+     * @required
+     * @readonly
+     */
+    private File pomFile;
+
+    /**
+     * @component
+     */
+    private ArtifactInstaller artifactInstaller;
+
+    /**
+     * @component
+     */
+    private ArtifactContext artifactContext;
+
+    public void execute() throws MojoExecutionException {
+        try {
+            artifactContext.getArtifactInstaller().installArtifact(project.getArtifact(), pomFile);
+        } catch (ArtifactInstallationException e) {
+            throw new MojoExecutionException("NMAVEN-1001-000: Failed to install artifacts", e);
+        }
+    }
+}

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



Mime
View raw message