Before you start this procedure, you must have all Pre-requisites in place and have successfully completed all steps in the previous section entitled Installing and Verifying NPanday .NET Build Tool.
mkdir npandaytest cd npandaytest
For C#: mvn archetype:create -DgroupId=npanday -DartifactId=NPanday.Test -DarchetypeArtifactId=maven-archetype-dotnet-simple -DarchetypeGroupId=org.apache.maven.dotnet -DarchetypeVersion=[version]
For VB: mvn archetype:create -DgroupId=npanday -DartifactId=NPanday.Test -DarchetypeArtifactId=maven-archetype-vb-simple -DarchetypeGroupId=org.apache.maven.dotnet -DarchetypeVersion=[version]
The command creates the project in the NPanday.Test directory, which will now contain the following for a C# project (and a VB project will be similar with a vb directory instead of the csharp directory shown):
. |-- src | `-- main | `-- csharp | `-- Sample | `-- MyApp.cs | `-- resources | `-- test | `-- csharp `- pom.xml
The mvn install command typically puts artifacts (installs them) into the repository here, C:\Documents and Settings\[user_home]\.m2\repository.
NPanday installs the artifacts in a .NET local repository, located in C:\Documents and Settings\[user_home]\.m2\uac.
For the NPanday.Test solution the artifact is placed here, C:\Documents and Settings\[user_home]\.m2\uac\gac_msil\NPanday.Test\1.0-SNAPSHOT__NPanday\NPanday.Test.dll
The contents in C:\Documents and Settings\[user_home]\.m2\uac\gac_msil SHOULD NOT be manually modified or the project build will fail due to artifacts that are not properly indexed and are not synchronized with the repository. In case the contents have been modified, delete the C:\Documents and Settings\[user_home]\.m2\uac directory then re-install the project.
If the build fails on nunit-console see the Pre-requisites section for information on installing NUnit 2.2+ and adding it to your PATH.