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

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

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

Added: incubator/nmaven/trunk/plugins/maven-webapp-plugin/src/main/java/org/apache/maven/dotnet/plugin/webapp/NetAchiverMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-webapp-plugin/src/main/java/org/apache/maven/dotnet/plugin/webapp/NetAchiverMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-webapp-plugin/src/main/java/org/apache/maven/dotnet/plugin/webapp/NetAchiverMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-webapp-plugin/src/main/java/org/apache/maven/dotnet/plugin/webapp/NetAchiverMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,132 @@
+/*
+ * 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.webapp;
+
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.artifact.metadata.ArtifactMetadataSource;
+import org.codehaus.plexus.util.FileUtils;
+import org.codehaus.plexus.util.DirectoryScanner;
+import org.codehaus.plexus.archiver.ArchiverException;
+import org.codehaus.plexus.archiver.zip.ZipArchiver;
+
+import java.util.*;
+import java.io.IOException;
+import java.io.File;
+
+/**
+ * Generates a .NET Archive
+ *
+ * @author Shane Isbell
+ * @goal package
+ * @phase package
+ */
+public class NetAchiverMojo extends AbstractMojo {
+
+    /**
+     * The maven project.
+     *
+     * @parameter expression="${project}"
+     * @required
+     * @readonly
+     */
+    private MavenProject project;
+
+    /**
+     * Used to look up Artifacts in the remote repository.
+     *
+     * @parameter expression="${component.org.apache.maven.artifact.resolver.ArtifactResolver}"
+     * @required
+     * @readonly
+     */
+    protected org.apache.maven.artifact.resolver.ArtifactResolver resolver;
+
+    /**
+     * Used to look up Artifacts in the remote repository.
+     *
+     * @parameter expression="${component.org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout}"
+     * @role-hint default
+     * @required
+     * @readonly
+     */
+    protected org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout layout;
+
+    /**
+     * Used to look up Artifacts in the remote repository.
+     *
+     * @parameter expression="${component.org.apache.maven.artifact.metadata.ArtifactMetadataSource}"
+     * @required
+     * @readonly
+     */
+    protected ArtifactMetadataSource src;
+
+    private List excludes;
+
+    public void execute() throws MojoExecutionException {
+        String outputDirectory = project.getBuild().getDirectory() + File.separator + project.getArtifactId();
+        String sourceDirectory = project.getBasedir() + "/src/main/webapp";
+        DirectoryScanner directoryScanner = new DirectoryScanner();
+        directoryScanner.setBasedir(sourceDirectory);
+        directoryScanner.addDefaultExcludes();
+        directoryScanner.scan();
+        String[] files = directoryScanner.getIncludedFiles();
+        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-1200-000: Unable to process sources", e);
+            }
+        }
+
+        Set<Artifact> artifacts = project.getDependencyArtifacts();
+        Set<Artifact> dependencies = new HashSet<Artifact>();
+        dependencies.add(project.getArtifact());
+        for (Artifact artifact : artifacts) {
+            if ((artifact.getType().equals("library") || artifact.getType().equals("module")) &&
+                    artifact.getScope().equals(Artifact.SCOPE_COMPILE) || artifact.getScope().equals(Artifact.SCOPE_RUNTIME))
+            {
+                dependencies.add(artifact);
+            }
+        }
+
+        for (Artifact artifact : dependencies) {
+            try {
+                FileUtils.copyFileToDirectory(artifact.getFile(), new File(outputDirectory + "/bin"));
+            } catch (IOException e) {
+                throw new MojoExecutionException("NMAVEN-1200-001", e);
+            }
+        }
+
+        ZipArchiver zipArchiver = new ZipArchiver();
+        zipArchiver.setDestFile(new File(outputDirectory + ".nar"));
+        try {
+            zipArchiver.addDirectory(new File(outputDirectory));
+            zipArchiver.createArchive();
+            getLog().info("NMAVEN-1200-004: Created .NET Archive: File = " + outputDirectory + ".nar");
+        } catch (ArchiverException e) {
+            throw new MojoExecutionException("NMAVEN-1200-002: Unable to create .NET archive:", e);
+        } catch (IOException e) {
+            throw new MojoExecutionException("NMAVEN-1200-003: Unable to create .NET archive", e);
+        }
+    }
+}
+

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

Added: incubator/nmaven/trunk/plugins/maven-webapp-plugin/src/main/java/org/apache/maven/dotnet/plugin/webapp/NetArchiveDeployerMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-webapp-plugin/src/main/java/org/apache/maven/dotnet/plugin/webapp/NetArchiveDeployerMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-webapp-plugin/src/main/java/org/apache/maven/dotnet/plugin/webapp/NetArchiveDeployerMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-webapp-plugin/src/main/java/org/apache/maven/dotnet/plugin/webapp/NetArchiveDeployerMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,69 @@
+/*
+ * 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.webapp;
+
+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.File;
+import java.io.IOException;
+
+
+/**
+ * Deploys a .NET Web Archive
+ *
+ * @author Shane Isbell
+ * @goal deploy
+ * @phase deploy
+ */
+public class NetArchiveDeployerMojo extends AbstractMojo {
+
+    /**
+     * The maven project.
+     *
+     * @parameter expression="${project}"
+     * @required
+     * @readonly
+     */
+    private MavenProject project;
+
+    /**
+     * Path to deploy .NET Web Archive to.
+     *
+     * @parameter expression="${deployPath}"
+     * @required
+     */
+    private String deployPath;
+
+    public void execute() throws MojoExecutionException {
+        String outputDirectory = project.getBuild().getDirectory() + File.separator + project.getArtifactId();
+        String deployArtifact = deployPath + File.separator + project.getArtifactId();
+        try {
+            FileUtils.copyDirectoryStructure(new File(outputDirectory),
+                    new File(deployArtifact));
+            getLog().info("NMAVEN-1201-001: Copied .NET Web Application to deployment directory: " +
+                    "From = " + outputDirectory + ", To = " + deployArtifact);
+        } catch (IOException e) {
+            throw new MojoExecutionException("NMAVEN-1201-000: Failed to copy .NET Web Application to deployment directory: " +
+                    "From = " + outputDirectory + ", To = " + deployArtifact, e);
+        }
+    }
+}

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

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

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

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

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

Added: incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/PlatformDetector.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/PlatformDetector.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/PlatformDetector.java (added)
+++ incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/PlatformDetector.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,187 @@
+/*
+ * 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.wsdl;
+
+import org.apache.maven.dotnet.vendor.Vendor;
+import org.apache.maven.dotnet.PlatformUnsupportedException;
+import org.apache.maven.dotnet.executable.CommandExecutor;
+import org.apache.maven.dotnet.executable.ExecutionException;
+
+import java.io.File;
+import java.util.List;
+import java.util.ArrayList;
+
+/**
+ * Services for detecting the active platform for executables. With the new executable framework, this class may be
+ * deprecated).
+ *
+ * @author Shane Isbell
+ */
+public interface PlatformDetector {
+    /**
+     * Sets the results that are included in the standard output for Microsoft.
+     *
+     * @param microsoftContainsString
+     */
+    void setMicrosoftContainsString(String microsoftContainsString);
+
+    /**
+     * Sets the results that are included in the standard output for Mono.
+     *
+     * @param monoContainsString
+     */
+    void setMonoContainsString(String monoContainsString);
+
+    /**
+     * Sets the results that are included in the standard output for DotGnu.
+     *
+     * @param gnuContainsString
+     */
+    void setGnuContainsString(String gnuContainsString);
+
+    /**
+     * Returns a Vendor instance for the given command and/or netHomePath. If the command is specified, you may need to
+     * change the expected values of the set[gnu, mono, microsoft]ContainsString method(s) to match the expected output.
+     * Both command and netHomePath cannot be null.
+     *
+     * @param command
+     * @param netHomePath
+     * @return a Vendor instance for the given command and/or netHomePath
+     * @throws org.apache.maven.dotnet.PlatformUnsupportedException if the vendor cannot be matched
+     */
+    Vendor getVendorFor(String command, File netHomePath) throws PlatformUnsupportedException;
+
+    public static class Factory {
+        private Factory() {
+        }
+
+        public static PlatformDetector createDefaultPlatformDetector() {
+            return new PlatformDetector() {
+
+                /**
+                 * String to be matched to standard output for Microsoft
+                 */
+                private String microsoftContainsString = "Microsoft";
+
+                /**
+                 * String to be matched to standard output for Mono.
+                 */
+                private String monoContainsString = "Mono";
+
+                /**
+                 * String to be matched to standard output for DotGnu.
+                 */
+                private String gnuContainsString = "Southern Storm";
+
+                public void setMicrosoftContainsString(String microsoftContainsString) {
+                    this.microsoftContainsString = microsoftContainsString;
+                }
+
+                public void setMonoContainsString(String monoContainsString) {
+                    this.monoContainsString = monoContainsString;
+                }
+
+                public void setGnuContainsString(String gnuContainsString) {
+                    this.gnuContainsString = gnuContainsString;
+                }
+
+                public Vendor getVendorFor(String command, File netHomePath) throws PlatformUnsupportedException {
+                    String netHome = (netHomePath == null) ? null : netHomePath.getAbsolutePath();
+                    if (isEmpty(command) && isEmpty(netHome)) {
+                        throw new PlatformUnsupportedException("NMAVEN-042-000: Both command and netHome params cannot be null or empty");
+                    } else if (!isEmpty(command) && isEmpty(netHome)) {
+                        return getVendorForCommand(command);
+                    } else if (isEmpty(command) && !isEmpty(netHome)) {
+                        return getVendorFromPath(netHome);
+                    } else if (!isEmpty(command) && !isEmpty(netHome)) {
+                        try {
+                            return getVendorFromPath(netHome);
+                        } catch (PlatformUnsupportedException e) {
+
+                            //log.debug(e);
+                        }
+                        try {
+                            return getVendorForCommand(netHome + File.separator
+                                    + "bin" + File.separator + command);
+                        } catch (PlatformUnsupportedException e) {
+                            throw new PlatformUnsupportedException("");
+                        }
+                    }
+                    return null;
+                }
+
+                /**
+                 * Determine the vendor based on executing the command and matching the standard output.
+                 *
+                 * @param command
+                 * @return vendor instance
+                 * @throws org.apache.maven.dotnet.PlatformUnsupportedException if the platform cannot be matched.
+                 */
+                private Vendor getVendorForCommand(String command) throws PlatformUnsupportedException {
+                    CommandExecutor commandExecutor = CommandExecutor.Factory.createDefaultCommmandExecutor();
+                    //commandExecutor.setLogger(logger);
+                    try {
+                        List<String> commands = new ArrayList<String>();
+                        commandExecutor.executeCommand(command, commands);
+                    } catch (ExecutionException e) {
+                        throw new PlatformUnsupportedException("", e);
+                    }
+                    String results = commandExecutor.getStandardOut();
+                    if (results.contains(microsoftContainsString)) {
+                        return Vendor.MICROSOFT;
+                    } else if (results.contains(monoContainsString)) {
+                        return Vendor.MONO;
+                    } else if (results.contains(gnuContainsString) || results.contains("cscc"))
+                    {//cscc does not contain vendor name
+                        return Vendor.DOTGNU;
+                    } else {
+                        throw new PlatformUnsupportedException("NMAVEN-042-001: Platform not supported: Results = "
+                                + results);
+                    }
+                }
+
+                /**
+                 * Determines the vendor based on the path of the executable
+                 *
+                 * @param path
+                 * @return vendor
+                 * @throws PlatformUnsupportedException
+                 */
+                private Vendor getVendorFromPath(String path) throws PlatformUnsupportedException {
+                    if (!new File(path).exists()) {
+                        throw new PlatformUnsupportedException("NMAVEN-042-002: Unable to locate path: Path = " + path);
+                    }
+
+                    if (path.contains("Microsoft.NET")) {
+                        return Vendor.MICROSOFT;
+                    } else if (path.contains("Mono")) {
+                        return Vendor.MONO;
+                    } else if (path.contains("Portable.NET")) {
+                        return Vendor.DOTGNU;
+                    }
+                    throw new PlatformUnsupportedException("NMAVEN-042-003: Platform not supported: Path " + path);
+                }
+
+                private boolean isEmpty(String value) {
+                    return (value == null || value.trim().equals(""));
+                }
+            };
+        }
+    }
+}

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

Added: incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/Proxy.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/Proxy.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/Proxy.java (added)
+++ incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/Proxy.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,72 @@
+/*
+ * 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.wsdl;
+
+/**
+ * Holds proxy information needed to access WSDL host.
+ *
+ * @author Shane Isbell
+ */
+public class Proxy {
+
+    private String id;
+
+    private boolean hashPassword;
+
+    private String hashAlg;
+
+    public String getId() {
+        return id;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public boolean isHashPassword() {
+        return hashPassword;
+    }
+
+    public void setHashPassword(boolean hashPassword) {
+        this.hashPassword = hashPassword;
+    }
+
+    public String getHashAlg() {
+        return hashAlg;
+    }
+
+    public void setHashAlg(String hashAlg) {
+        this.hashAlg = hashAlg;
+    }
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (o == null || getClass() != o.getClass()) return false;
+
+        final Proxy proxy = (Proxy) o;
+
+        if (!id.equals(proxy.id)) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        return id.hashCode();
+    }
+}

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

Added: incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/Server.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/Server.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/Server.java (added)
+++ incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/Server.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,76 @@
+/*
+ * 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.wsdl;
+
+/**
+ * Holds server information of WSDL host.
+ *
+ * @author Shane Isbell
+ */
+public class Server {
+
+    private String id;
+
+    private boolean hashPassword;
+
+    private String hashAlg;
+
+    public String getId() {
+        return id;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public boolean isHashPassword() {
+        return hashPassword;
+    }
+
+    public void setHashPassword(boolean hashPassword) {
+        this.hashPassword = hashPassword;
+    }
+
+    public String getHashAlg() {
+        return hashAlg;
+    }
+
+    public void setHashAlg(String hashAlg) {
+        this.hashAlg = hashAlg;
+    }
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (o == null || getClass() != o.getClass()) return false;
+
+        final Server server = (Server) o;
+
+        if (!id.equals(server.id)) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        return id.hashCode();
+    }
+
+    public String toString() {
+        return "id = " + id;
+    }
+}

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

Added: incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/WsdlGeneratorMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/WsdlGeneratorMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/WsdlGeneratorMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/main/java/org/apache/maven/dotnet/plugin/wsdl/WsdlGeneratorMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,361 @@
+/*
+ * 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.wsdl;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.settings.Server;
+import org.apache.maven.settings.Proxy;
+import org.apache.maven.dotnet.vendor.Vendor;
+import org.apache.maven.dotnet.executable.CommandExecutor;
+import org.apache.maven.dotnet.executable.ExecutionException;
+import org.apache.maven.dotnet.PlatformUnsupportedException;
+
+import java.util.List;
+import java.util.ArrayList;
+import java.security.MessageDigest;
+import java.security.NoSuchAlgorithmException;
+import java.io.File;
+import java.net.URL;
+import java.net.MalformedURLException;
+
+
+/**
+ * Generates WSDL class
+ *
+ * @author Shane Isbell
+ * @goal wsdl
+ * @phase process-sources
+ */
+public class WsdlGeneratorMojo extends AbstractMojo {
+
+    /**
+     * The directory to place the generated binding classes.
+     *
+     * @parameter expression="${outputDirectory}" default-value = "${project.build.directory}${file.separator}build-sources"
+     * @required
+     */
+    private String outputDirectory;
+
+    /**
+     * Paths (or URLs) of the WSDL files.
+     *
+     * @parameter expression="${paths}"
+     * @required
+     */
+    private String[] paths;
+
+    /**
+     * Language of the WSDL binding. Default value is CS (CSHARP).
+     *
+     * @parameter expression="${language}" default-value="CS"
+     */
+    private String language;
+
+    /**
+     * Turns on type sharing feature. Not supported for MONO.
+     *
+     * @parameter expression="${sharetypes}" default-value="false"
+     */
+    private boolean sharetypes;
+
+    /**
+     * Displays extra information when the sharetypes switch is specified. Not supported for MONO.
+     *
+     * @parameter expression="${verbose}" default-value="false"
+     */
+    private boolean verbose;
+
+    /**
+     * Generates fields instead of properties.
+     *
+     * @parameter expression="${fields}" default-value="false"
+     */
+    private boolean fields;
+
+    /**
+     * Generates explicit order identifiers on all particle members. Not supported for MONO.
+     *
+     * @parameter expression = "${order}" default-value = "false"
+     */
+    private boolean order;
+
+    /**
+     * Generates the INotifyPropertyChanged interface to enable data binding. Not supported for MONO.
+     *
+     * @parameter expression="${enableDataBinding}" default-value="false"
+     */
+    private boolean enableDataBinding;
+
+    /**
+     * Namespace of the WSDL binding. Default value is ${project.groupId}
+     *
+     * @parameter expression="${namespace}" default-value="${project.groupId}"
+     */
+    private String namespace;
+
+    /**
+     * Override the default protocol.
+     *
+     * @parameter expression="${protocol}"
+     */
+    private String protocol;
+
+    /**
+     * The server to retrieve the WSDL from.
+     *
+     * @parameter
+     */
+    private org.apache.maven.dotnet.plugin.wsdl.Server server;
+
+    /**
+     * The proxy server
+     *
+     * @parameter
+     */
+    private org.apache.maven.dotnet.plugin.wsdl.Proxy proxy;
+
+    /**
+     * Server values from the settings.xml file.
+     *
+     * @parameter expression="${settings.servers}"
+     * @required
+     */
+    private List<Server> servers;
+
+    /**
+     * Server values from the settings.xml file.
+     *
+     * @parameter expression="${settings.proxies}"
+     * @required
+     */
+    private List<Proxy> proxies;
+
+    /**
+     * @parameter expression="${netHome}"
+     */
+    private String netHome;
+
+    /**
+     * Generates server implementation
+     *
+     * @parameter expression="${serverInterface}"  default-value ="false"
+     */
+    private boolean serverInterface;
+
+    /**
+     * Tells the plugin to ignore options not appropriate to the vendor.
+     *
+     * @parameter expresion ="${ignoreUnusedOptions}" default-value="false"
+     */
+    private boolean ignoreUnusedOptions;
+
+    public void execute() throws MojoExecutionException {
+        Vendor vendor = getCompilerVendor();
+        List<String> commands = getCommandsFor(vendor);
+
+        getLog().debug("NMAVEN-1300-000: Commands = " + commands.toString());
+        CommandExecutor commandExecutor = CommandExecutor.Factory.createDefaultCommmandExecutor();
+        //commandExecutor.setLog(getLog());
+        try {
+            commandExecutor.executeCommand(getExecutableFor(vendor, netHome), commands);
+            for (String path : paths) {
+                getLog().info("NMAVEN-1300-008: Generated WSDL: File = " + outputDirectory + File.separator +
+                        getFileNameFor(path));
+            }
+
+        } catch (ExecutionException e) {
+            //TODO: This is a hack to get around the fact that MONO returns a result=1 on warnings and MS returns a result=1 on errors.
+            //I don't want to fail on MONO warning here.
+            if ((vendor.equals(Vendor.MONO) && commandExecutor.getResult() > 1)
+                    || vendor.equals(Vendor.MICROSOFT))
+                throw new MojoExecutionException("NMAVEN-1300-001: Result = " + commandExecutor.getResult(), e);
+        }
+    }
+
+    public String getExecutableFor(Vendor vendor, String home) {
+        String executable = (vendor.equals(Vendor.MICROSOFT)) ? "wsdl" : "wsdl2";
+        return (!isEmpty(home)) ? home + File.separator + "bin" + File.separator + executable : executable;
+    }
+
+    public List<String> getCommandsFor(Vendor vendor) throws MojoExecutionException {
+        String commandFlag = vendor.equals(Vendor.MICROSOFT) ? "/" : "-";
+
+        List<String> commands = new ArrayList<String>();
+        populateServerCommands(commands, commandFlag);
+        populateProxyCommands(commands, commandFlag);
+        commands.add(commandFlag + "language:" + language);
+        commands.add(commandFlag + "namespace:" + namespace);
+        commands.add(commandFlag + "fields:" + fields);
+        if (!isEmpty(protocol)) commands.add(commandFlag + "protocol:" + protocol);
+
+        for (String path : paths) {
+            commands.add(commandFlag + "out:" + outputDirectory + File.separator +
+                    getFileNameFor(path));
+        }
+
+        for (String path : paths) {
+            commands.add(new File(path).getAbsolutePath());
+        }
+
+        if (vendor.equals(Vendor.MONO)) {
+            if (serverInterface) commands.add("-server");
+            if ((fields || enableDataBinding || order || sharetypes || verbose)) {
+                if (!ignoreUnusedOptions)
+                    throw new MojoExecutionException("NMAVEN-1300-005: Illegal Option(s) for Mono");
+                else
+                    getLog().warn("NMAVEN-1300-002: Your pom.xml contains an option that is not supported by MONO: Your application" +
+                            " artifact will differ dependening on compiler/platform and may have different behavior.");
+            }
+        } else {
+            if (serverInterface) commands.add("/server");
+            if (enableDataBinding) commands.add("/enableDataBinding");
+            if (sharetypes) commands.add("/sharetypes");
+            if (verbose) commands.add("/verbose");
+            if (order) commands.add("/order");
+        }
+        return commands;
+    }
+
+    private boolean isURL(String path) {
+        try {
+            new URL(path);
+        } catch (MalformedURLException e) {
+            return false;
+        }
+        return true;
+    }
+
+    private String getFileNameFor(String path) {
+        String wsdlName;
+        if (isURL(path)) {
+            wsdlName = path.substring(path.lastIndexOf("/"), path.length());
+        } else {
+            if (path.contains("/")) {
+                wsdlName = path.substring(path.lastIndexOf("/"), path.length());
+            } else if (path.contains("\\")) {
+                wsdlName = path.substring(path.lastIndexOf("\\"), path.length());
+            } else {
+                wsdlName = path;
+            }
+        }
+        return wsdlName.substring(0, wsdlName.lastIndexOf(".")) + "." + language.toLowerCase();
+    }
+
+    private void populateProxyCommands(List<String> commands, String commandFlag) throws MojoExecutionException {
+        if (proxy != null) {
+            Proxy mProxy = getProxyFor(proxy.getId());
+            if (mProxy != null) {
+                getLog().debug("NMAVEN-1300-003: Found proxy: ID = " + mProxy.getId());
+                String username = mProxy.getUsername();
+                String password = mProxy.getPassword();
+                boolean isHashed = proxy.isHashPassword();
+                if (!isEmpty(password) && isHashed) {
+                    String alg = proxy.getHashAlg();
+                    if (isEmpty(alg)) alg = "SHA1";
+                    try {
+                        password = new String(MessageDigest.getInstance(alg).digest(password.getBytes()));
+                    } catch (NoSuchAlgorithmException e) {
+                        throw new MojoExecutionException("NMAVEN-1300-004: No Such Algorithm for hashing the password: " +
+                                "Algorithm = " + alg, e);
+                    }
+                }
+                String proxyHost = mProxy.getHost();
+                int proxyPort = mProxy.getPort();
+                String proxyProtocol = mProxy.getProtocol();
+
+                StringBuffer proxyUrl = new StringBuffer();
+                if (!isEmpty(proxyProtocol)) proxyUrl.append(proxyProtocol).append("://");
+                if (!isEmpty(proxyHost)) proxyUrl.append(proxyHost);
+                if (proxyPort > 0) proxyUrl.append(":").append(proxyPort);
+                if (proxyUrl.length() != 0) commands.add(commandFlag + "proxy:" + proxyUrl.toString());
+                if (!isEmpty(username)) commands.add(commandFlag + "proxyusername:" + username);
+                if (!isEmpty(password)) commands.add(commandFlag + "proxypassword:" + password);
+            }
+        }
+    }
+
+    private void populateServerCommands(List<String> commands, String commandFlag) throws MojoExecutionException {
+        if (server != null) {
+            Server mServer = getServerFor(server.getId());
+            if (mServer != null) {
+                String username = mServer.getUsername();
+                String password = mServer.getPassword();
+                boolean isHashed = server.isHashPassword();
+                if (!isEmpty(password) && isHashed) {
+                    String alg = server.getHashAlg();
+                    if (isEmpty(alg)) alg = "SHA1";
+                    try {
+                        password = new String(MessageDigest.getInstance(alg).digest(password.getBytes()));
+                    } catch (NoSuchAlgorithmException e) {
+                        throw new MojoExecutionException("NMAVEN-1300-005: No Such Algorithm for hashing the password: " +
+                                "Algorithm = " + alg, e);
+                    }
+                }
+                if (!isEmpty(username)) commands.add(commandFlag + "username:" + username);
+                if (!isEmpty(password)) commands.add(commandFlag + "password:" + password);
+            }
+        }
+    }
+
+    private Vendor getCompilerVendor() throws MojoExecutionException {
+        Vendor vendor;
+        PlatformDetector platformDetector = PlatformDetector.Factory.createDefaultPlatformDetector();
+        if (isEmpty(netHome)) {
+            try {
+                vendor = platformDetector.getVendorFor("wsdl", null);
+            } catch (PlatformUnsupportedException e) {
+                throw new MojoExecutionException("NMAVEN-1300-009", e);
+            }
+        } else {
+            File file = new File(netHome);
+            if (!file.exists()) {
+                throw new MojoExecutionException("NMAVEN-1300-006: Unable to locate netHome - make sure that it exists:" +
+                        " Home = " + netHome);
+            }
+            try {
+                vendor = platformDetector.getVendorFor(null, new File(file.getAbsolutePath() + File.separator
+                        + "bin" + File.separator + "wsdl"));
+            } catch (PlatformUnsupportedException e) {
+                throw new MojoExecutionException("NMAVEN-1300-010", e);
+            }
+
+        }
+        getLog().info("NMAVEN-1300-007: WSDL Vendor found: " + vendor.getVendorName());
+        return vendor;
+    }
+
+    private Proxy getProxyFor(String id) {
+        for (Proxy proxy : proxies) {
+            if (proxy.getId().trim().equals(id.trim())) return proxy;
+        }
+        return null;
+    }
+
+    private Server getServerFor(String id) {
+        for (Server server : servers) {
+            if (server.getId().trim().equals(id.trim())) return server;
+        }
+        return null;
+    }
+
+    private boolean isEmpty(String value) {
+        return (value == null || value.trim().equals(""));
+    }
+}

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

Added: incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/site/apt/how-to-use.apt
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/site/apt/how-to-use.apt?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/site/apt/how-to-use.apt (added)
+++ incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/site/apt/how-to-use.apt Sun Dec 10 15:43:51 2006
@@ -0,0 +1,74 @@
+Configuration
+
+ The WSDL plugin will use the path environmental variable to choose the WSDL generator - MONO or Microsoft. Within
+ the path field, specify the location of your WSDL file. If you
+ need to specifically choose the vendor yourself, and not rely on the path, add the netHome field. The path is the only required field. You can optionally
+ add the netHome, language, namespace, server and proxy.
+
++----+
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-wsdl-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>wsdl</goal>
+                        </goals>
+                    </execution>
+                </executions>
+     	        <configuration>
+                    <netHome>${MONO_HOME}</netHome>
+                    <language>CS</language>
+                    <namespace>org.apache.maven.test</namespace>
+                    <paths>
+                        <path>HelloService.wsdl</path>
+                    </paths>
+                    <server>
+                        <id>nmaven-site</id>
+                        <hashPassword>true</hashPassword>
+                        <hashAlg>MD5</hashAlg>
+                    </server>
+                    <proxy>
+                        <id>my-proxy</id>
+                    </proxy>
+		        </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
++----+
+
+Handling Servers and Proxies
+
+ The WSDL generation utility allows you to pull the WSDL from a URL. In some case, these URLs may be located behind a proxy
+ and/or require some form of authentication. It is generally not good pratice to embed the username/passwords in the
+ configuration files that you may be distributing or putting under version control. Use the maven
+ settings.xml file to keep this information locally (typically located under ${USER_HOME}/.m2). The server.id and
+ proxy.id map the username/password to the configuration of the WSDL plugin.
+
+ There is an experimental feature to hash the password (does not work in all cases due to encoding issues).
+
++----+
+
+<settings>
+	<servers>
+		<server>
+			<id>nmaven-site</id>
+			<username>name</username>
+			<password>pass</password>
+		</server>
+	</servers>
+	<proxies>
+		<proxy>
+			<id>my-proxy</id>
+			<username>name1</username>
+			<password>password1</password>
+			<host>localhost</host>
+		</proxy>
+	</proxies>
+</settings>
+
++----+
\ No newline at end of file

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

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

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

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

Added: incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XmlToXsdGeneratorMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XmlToXsdGeneratorMojo.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XmlToXsdGeneratorMojo.java (added)
+++ incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XmlToXsdGeneratorMojo.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,132 @@
+/*
+ * 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.xsd;
+
+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.util.List;
+import java.util.ArrayList;
+import java.io.File;
+import java.io.IOException;
+
+import org.apache.maven.dotnet.executable.ExecutionException;
+import org.apache.maven.dotnet.PlatformUnsupportedException;
+
+/**
+ * Generates XSD from XML instance
+ *
+ * @author Shane Isbell
+ * @goal xml
+ * @phase process-sources
+ */
+public class XmlToXsdGeneratorMojo extends AbstractMojo {
+
+    /**
+     * The directory to place the generated binding classes.
+     *
+     * @parameter expression="${outputDirectory}" default-value = "${project.build.directory}${file.separator}generated-resources"
+     * @required
+     */
+    private String outputDirectory;
+
+    /**
+     * @parameter expression = "${xmlFiles}"
+     * @required
+     */
+    private ArrayList<String> xmlFiles;
+
+    /**
+     * 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}"  default-value = "2.0.50727"
+     */
+    private String frameworkVersion;
+
+    /**
+     * The profile that the executable should use.
+     *
+     * @parameter expression = "${profile}" default-value = "XSD:XML_INSTANCE"
+     */
+    private String profile;
+
+    /**
+     * @component
+     */
+    private org.apache.maven.dotnet.executable.NetExecutableFactory netExecutableFactory;
+
+    /**
+     * @component
+     */
+    private org.apache.maven.dotnet.NMavenRepositoryRegistry nmavenRegistry;
+
+    public void execute() throws MojoExecutionException {
+        try {
+            nmavenRegistry.createRepositoryRegistry();
+        } catch (IOException e) {
+            throw new MojoExecutionException("NMAVEN-1401-003: Failed to create the repository registry for this plugin", e);
+        }
+
+        FileUtils.mkdir(outputDirectory);
+        try {
+            netExecutableFactory.getNetExecutableFor(vendor, frameworkVersion, profile,
+                    project, getCommands(), netHome).execute();
+        } catch (ExecutionException e) {
+            throw new MojoExecutionException("NMAVEN-1401-000: Unable to execute xsd: Vendor " + vendor
+                    + ", frameworkVersion = " + frameworkVersion + ", Profile = " + profile,  e);
+        } catch (PlatformUnsupportedException e) {
+            throw new MojoExecutionException("NMAVEN-1401-001: Platform Unsupported: Vendor " + vendor
+                    + ", frameworkVersion = " + frameworkVersion + ", Profile = " + profile, e);
+        }
+    }
+
+    public List<String> getCommands() throws MojoExecutionException {
+        List<String> commands = new ArrayList<String>();
+        for (String xmlFile : xmlFiles) {
+            if (!(new File(xmlFile)).exists())
+                throw new MojoExecutionException("NMAVEN-1401-002: XML File does not exist: FileName = " + xmlFile);
+            commands.add(xmlFile);
+        }
+        commands.add("/o:" + outputDirectory);
+        return commands;
+    }
+}

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