NPanday Installer Issues

Mar 28, 2009 at 8:09 PM
I am currently running into an issue keeping me from being able to install npanday 0.9.5.

When i run the visual studio addin installer I receive the following message:
Could not locate path 'C:\Documents and Settings\regnierj\My Documents\Visual Studio 2005\Addins\NPanday.VisualStudio.AddIn'.
I have created this path manually thinking that the installer can not create the folder for whatever reason.

After creating the folder I receive the following message:
Access denied to path 'C:\Documents and Settings\regnierj\My Documents\Visual Studio 2005\Addins\NPanday.VisualStudio.AddIn'.

I have permitted everyone access to C:\Documents and Settings\ and inherit these settings throughout all sub directories to ensure full access is permitted.

The issue still remains.

Any help getting this up and running would be GREATLY appreciated.
Unfortunately there currently is insufficient documentation for manual installation from source as I am running into numerous issues and atm do not have the time to invest in researching all of the necessary configurations.

With the release of 1.0 will this be cleaning up the installation issues?
Coordinator
Mar 30, 2009 at 5:16 AM
Hi,

Have you installed the maven and java components and have added them into your path environment variable?

If so can you maybe add in the list as to what you've installed so far and the environment variables that you've added.

Thanks,
Apr 2, 2009 at 3:16 PM
Hey,

I have installed maven and java components. I have been running maven for some time now without any issues.

I have the following installed:
Maven 2.0.9
Java jdk 1.5.0_14
Java jdk 1.6.0_07

On my path I have the following (relevant items):
%M2%;
%JAVA_HOME%\bin;
C:\Windows\Microsoft.NET\Frameworks\v3.5\

Where
M2 = M2_HOME\bin
M2_HOME = C:\Program Files\Apache Software Foundation\Maven 2.0.9
JAVA_HOME = C:\Program Files\Java\jdk1.5.0_14
Apr 2, 2009 at 3:17 PM
Also,

I have just tried re-installing with the new 1.0 release.
The same issue still applies.

Thanks again for all the help.
Coordinator
Apr 3, 2009 at 7:08 AM
Hi,

You need to install NUnit and also add that to the path

here are more explanations if you may want to try to build from the source file. Building NPanday
Apr 3, 2009 at 2:37 PM
I have installed NUnit 2.4.8.

I have added the following to my path
%NUNIT_HOME%\bin;
C:\Program Files\Microsoft Visual Studio 9.0\SDK\v3.5\Bin;
%MICROSOFT_NET_FRAMEWORKS%\v3.5;

I have now run the installer. The installer still provided the same issue.
Access denied to path 'C:\Documents and Settings\regnierj\My Documents\Visual Studio 2005\Addins\NPanday.VisualStudio.AddIn'.

Running the bootstrap-build.bat instead, is now completing successfully.
However I still do not have the addin at all?

Is there any step still being missed?
Apr 3, 2009 at 3:02 PM
I have searched through a few other posts and found that I needed to run the following command:

mvn npanday.plugin:maven-vsinstaller-plugin:install

After running this command I get the addin definition file in my Visual Studio 2005/2008 AddIn folders.
Apr 24, 2009 at 11:07 PM
I was able to get Npanday on the Tools menu in Visual Studio 8 by making a directory "C:\Documents and Settings\<user>\My Documents\Visual Studio 2005\Addins" and running the 1.0 installer.  I then copied the Npanday.VisualStudio.AddIn file into C:\Documents and Settings\REBV30\My Documents\Visual Studio 2008\Addins and changed the Version tag inside that file to <Version>9.0</Version>.

So, now the NPanday addin appears on the Tools menu in Visual Studio and, when run, puts items on the right-click menu per the wiki description. Unfortunately, none of those menu items seems to work. For any of Current NPanday Project --> Build, Install, Test, Clean, they return an immediate error "NPanday Execution Error: The system cannot find the file specified".

Current NPandayProject --> Generate Solution's POM Information gets you:
The imported project "C:\Microsoft.VisualBasic.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk, C:\dev\vb_sandbox\tt-simpleform\tt-simpleform\tt-simpleform.vbproj"

In the .vbproj file the Import declaration is
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

So, I set an environment variable to: set MSBuildToolsPath=C:\WINDOWS\Microsoft.NET\Framework\v3.5
(it's also on my path) restart Visual Studio just for good luck, and get the exact same error message.

Yes, I do have maven and java installed.  They're on the path.  After a good bit of digging around in the wiki I came across a reference to npanday-settings.xml, supposed to be in your ...\.m2 directory.  So I copied the file contents, fixed a couple of things to match my system, and still nothing works.

Anybody know if I'm misssing something obvious or ????

Thanks for your suggestions.
-- Wally --
Apr 24, 2009 at 11:13 PM
Hey Wally,

I know this is not as clean of a solution as I had hoped to find but ...
The only way i was able to avoid this error was to view the project file in notepad ... and remove the <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" /> element.

Removing this Import doesn't have any affect on the npanday build system that I have found so far.
The only draw back is you lose support for Microsoft build tools.

Please post if you find a better alternative.
Coordinator
Apr 28, 2009 at 6:06 AM
Hi Wally,

Did you generate the pom.xml for the sample project that you were trying to use.

If so can you post what the generated pom.xml files or you could attach the sample project that you were trying to use npanday with.

Thanks.




Coordinator
Apr 28, 2009 at 9:52 AM
Hi Joe,

Replied to your post in http://npanday.codeplex.com/WorkItem/View.aspx?WorkItemId=9860

I hope that helped with your problem.

Thanks,
Apr 28, 2009 at 4:08 PM
Hi,

Thanks for the reply -- no, I have not been able to generate a pom.xml, that's the frustrating thing.  I did try Joe's suggestion and removed the <Import... tag from the VS project file, then when I try to build the POM the error message goes back to the same thing I see from every NPanday menu selection: "The system cannot find the file specified". This is, by the way, a VS 2008 system and I see the exact same thing with the 1.0 installer on another machine, also VS 2008.  I don't have access to a system with VS 2005.

The project is simply hello world.  From Visual Studio, create a VB windows application. Put a button on the form, add a line of code in the button click method that calls MessageBox.Show to print "hello world".  Here's the contents of the Solution file and Project file:

--------
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "tt-simpleform", "tt-simpleform\tt-simpleform.vbproj", "{E32AE608-61D6-4762-B136-F15A99736B21}"
EndProject
Global
 GlobalSection(SolutionConfigurationPlatforms) = preSolution
  Debug|Any CPU = Debug|Any CPU
  Release|Any CPU = Release|Any CPU
 EndGlobalSection
 GlobalSection(ProjectConfigurationPlatforms) = postSolution
  {E32AE608-61D6-4762-B136-F15A99736B21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
  {E32AE608-61D6-4762-B136-F15A99736B21}.Debug|Any CPU.Build.0 = Debug|Any CPU
  {E32AE608-61D6-4762-B136-F15A99736B21}.Release|Any CPU.ActiveCfg = Release|Any CPU
  {E32AE608-61D6-4762-B136-F15A99736B21}.Release|Any CPU.Build.0 = Release|Any CPU
 EndGlobalSection
 GlobalSection(SolutionProperties) = preSolution
  HideSolutionNode = FALSE
 EndGlobalSection
EndGlobal
--------
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.21022</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{E32AE608-61D6-4762-B136-F15A99736B21}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <StartupObject>tt_simpleform.My.MyApplication</StartupObject>
    <RootNamespace>tt_simpleform</RootNamespace>
    <AssemblyName>tt-simpleform</AssemblyName>
    <FileAlignment>512</FileAlignment>
    <MyType>WindowsForms</MyType>
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    <OptionExplicit>On</OptionExplicit>
    <OptionCompare>Binary</OptionCompare>
    <OptionStrict>Off</OptionStrict>
    <OptionInfer>On</OptionInfer>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <DefineDebug>true</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <OutputPath>bin\Debug\</OutputPath>
    <DocumentationFile>tt-simpleform.xml</DocumentationFile>
    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <DefineDebug>false</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DocumentationFile>tt-simpleform.xml</DocumentationFile>
    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Deployment" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
    <Reference Include="System.Core">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Xml.Linq">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data.DataSetExtensions">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
  </ItemGroup>
  <ItemGroup>
    <Import Include="Microsoft.VisualBasic" />
    <Import Include="System" />
    <Import Include="System.Collections" />
    <Import Include="System.Collections.Generic" />
    <Import Include="System.Data" />
    <Import Include="System.Drawing" />
    <Import Include="System.Diagnostics" />
    <Import Include="System.Windows.Forms" />
    <Import Include="System.Linq" />
    <Import Include="System.Xml.Linq" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="frmTtSimple.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="frmTtSimple.Designer.vb">
      <DependentUpon>frmTtSimple.vb</DependentUpon>
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="My Project\AssemblyInfo.vb" />
    <Compile Include="My Project\Application.Designer.vb">
      <AutoGen>True</AutoGen>
      <DependentUpon>Application.myapp</DependentUpon>
    </Compile>
    <Compile Include="My Project\Resources.Designer.vb">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <Compile Include="My Project\Settings.Designer.vb">
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="frmTtSimple.resx">
      <DependentUpon>frmTtSimple.vb</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="My Project\Resources.resx">
      <Generator>VbMyResourcesResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.vb</LastGenOutput>
      <CustomToolNamespace>My.Resources</CustomToolNamespace>
      <SubType>Designer</SubType>
    </EmbeddedResource>
  </ItemGroup>
  <ItemGroup>
    <None Include="My Project\Application.myapp">
      <Generator>MyApplicationCodeGenerator</Generator>
      <LastGenOutput>Application.Designer.vb</LastGenOutput>
    </None>
    <None Include="My Project\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <CustomToolNamespace>My</CustomToolNamespace>
      <LastGenOutput>Settings.Designer.vb</LastGenOutput>
    </None>
  </ItemGroup>
  <ItemGroup>
    <WebReferences Include="Web References\" />
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>
---------------

Thanks again for your help,
Wally
Coordinator
Apr 29, 2009 at 8:15 AM
Hi Wally,

What is the version of your VS 2008, Does it have the service pack installed? Because NPanday cannot run without the service pack installed.

I think there maybe a problem with your environment variables.

Your path variable should contain the m2_home,java,nunit,sdk,framework,

Check out this wiki page for more details http://npanday.codeplex.com/Wiki/View.aspx?title=Building%20NPanday

You will get an error when executing the maven phases;

Install, Clean, etc.. because your pom.xml is missing.

If you could maybe send Us your complete path environment variable so We could help you better.

Thanks,
Apr 29, 2009 at 10:52 PM
Wally,

As long as I remove the import path I am able to generate the pom without any issues.
However I experience the same issues you do as soon as I leave the import in the project.

I am taking an exhausting look through this again as my last issue recently solved would have been as simple as a 2 second compile, identify issue, fixed and done.

Unfortunately I had to lean on jocaba to read over my code and point out the obvious issue.

I will post back with my findings.

Joe
Apr 29, 2009 at 11:02 PM
Again, this is another dirty fix but I just attempted to replace the variable ${MSBuildToolsPath} with C:\Windows\Microsoft.NET\Framework\v3.5.
This gets rid of the pom generation error, allows you to us MSBuild and your project performs as normal.

However I am unaware of any issues this may cause. I have modified my target framework reloaded and everything still seems to run fine.

Apr 30, 2009 at 5:11 PM
Ok, making some progress now, thanks to jocaba's suggestions.  I did not have SP1 for VS 2008 installed -- did that but it was only part of the picture (npanday still wouldn't build a POM).  I downloaded the .NET framework 2.0 SDK from Microsoft and installed that, then modified my path to point to that SDK and to the 2.0 framework.  So now my path includes these:
     C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
     C:\Program Files\NUnit 2.4.8\bin;
     C:\Program Files\Microsoft.NET\SDK\v2.0\Bin;
     C:\Documents and Settings\REBV30\.m2;
     C:\Program Files\Java\jdk1.6.0_01\bin;

Now, NPanday will build a pom.xml!  Well, almost -- it complained about wanting a directory ...\.m2\uac\gac_misl, after I added that directory it builds pom.xml without a whimper, and without hacking on the VS project file.

Of course I'm not quite out of the woods yet.  If I run "mvn install" from the command line it spits back " The plugin 'npanday.plugin:maven-compile-plugin' does not exist or no valid version could be found".  I know I've seen references to that in some discussion, so I'm off looking for it now.  When running any of the NPanday menu items (build, install, test, clean) from the VS IDE, it simply does nothing.  No error, no nada.

Another obvious question is, will it work with the .NET Framework 3 SDK?  I will download that and give it a try.
Coordinator
Apr 30, 2009 at 5:29 PM
Hi Wally,

What method did you use to install NPanday?

I would recommend you use the installer + repository installer

or to check out the source code and execute

1. bootstrap-build.bat -DrdfProfile.none -DVisualStudio2005
2. mvn npanday.plugin:maven-vsinstaller-plugin:install

These two methods populates your C:\Documents and Settings\<current user>\.m2 directory which is where the plugins should be located.


Apr 30, 2009 at 8:09 PM
Hi,

Installed with the 1.0 installer.  It did put stuff under ...\.m2\repository\npanday, but it doesn't look like it's really installed.  For instance, under ...\.m2/repository\npanday\plugin\maven-compile-plugin there is only maven-metadata-central.xml.  Is that it or should I be expecting something more?    Under ...\.m2\repository\npanday\npanday-project\1.0.0 there is npanday-project-1.0.0-src.zip -- when I extract that it looks like the source, the whole source and nothing but the source.  Do I have to build that, or run install on it, to get the actual plugin and other tools in a local repository?

Thanks again for your help.  I think we're getting close.

-- Wally --
Apr 30, 2009 at 11:21 PM
So, I un-installed NPanday and tried to build it.  Running the initial build command "bootstrap-build.bat -DVisualStudio2005" get me:


    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-deploy-plugin:2.4
   
    check that the following section of the pom.xml is present and correct:
   
    <distributionManagement>
      <!-- use the following if you're not using a snapshot version. -->
      <repository>
        <id>repo</id>
        <name>Repository Name</name>
        <url>scp://host/path/to/repo</url>
      </repository>
      <!-- use the following if you ARE using a snapshot version. -->
      <snapshotRepository>
        <id>repo</id>
        <name>Repository Name</name>
        <url>scp://host/path/to/repo</url>
      </snapshotRepository>
    </distributionManagement>
   
    Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated


Looking in the source directory npanday_1_0_0\plugins\maven-deploy-plugin, that section of pom.xml is:


<distributionManagement>
    <site>
      <id>npanday-apache-site</id> 
      <name>NPanday Site</name> 
      <url>file://${basedir}/../../../www/plugins/maven-deploy-plugin</url>
    </site>
  </distributionManagement>

No <repository> tag at all.  Is that a problem or am I even fishin' in the right pond?

Thanks,
Wally

Coordinator
May 12, 2009 at 3:21 AM

Hi Wally,

 

Sorry for the delayed response, how about the installer+repository. What were the results on that?

Also do you have a settings.xml in your m2 folder?

 

 

May 12, 2009 at 3:31 PM

Hello jocaba,

No worries, I was off for a week of vacation and just now got back to work.

Yes, I am installing with npanday-1.0.0-installer+repo.zip.   NPanday will build me a pom.xml, but if I run "mvn install" from the command line in the solution directory it spits out the build error " The plugin 'npanday.plugin:maven-compile-plugin' does not exist or no valid version could be found".  Trying the same from the menus inside Visual Studio seems to do nothing at all, not even show the error.

I do have settings.xml in my .m2 folder, the only contents are a <proxy> tag to get me through our corporate firewall for downloading dependencies.  That works when running regular maven java examples.

Also tried the build from source you suggested "bootstrap-build.bat -DrdfProfile.none -DVisualStudio2005".  That chews through a bit of the build and then throws this error:

[INFO] Building dotnet-registry
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources to /
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] \\META-INF\plexus\components.xml (The network path was not found)

Can you give me some clue about what it's looking for?

Thanks very much for your help and patience,

Wally

May 15, 2009 at 10:57 PM

So, the install+repo package is putting the repository under ~\\.m2\\repository\\releases.  Just on a whim I copied everything up to ~\\.m2\\repository, so now it's in both places.

Trying to build a hello-world project, from either the command line or VS2008, I get an "unable to find resource" error.  Maven is checking in http://repo1/maven/org/maven2 where the plugin of course does not exist, then it checks in the local drive in ~\\.m2\\uac\\gac_misl which does not exist (full error trace below).  So I've combed through the wiki, googled the error message, tried old commands from some message trace on NMaven, all to no avail.  Anyone know the secret incantation to get NPanday to find it's repository on the local machine??  Yes, I do have a settings.xml file, a little advice on what to put in it would be welcome.

---------------- Actual error trace ---------------------------      
May 15, 2009 9:53:05 AM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies
INFO: NPANDAY-180-018: Retrieving artifact: Artifact ID  = NPanday.Plugin
Downloading: http://repo1.maven.org/maven2/NPanday/Plugin/NPanday.Plugin/1.0.0/NPanday.Plugin-1.0.0-4b435f4d76e2f0e6.dll
[INFO] Unable to find resource 'NPanday.Plugin:NPanday.Plugin:library:4b435f4d76e2f0e6:1.0.0'
        in repository central (http://repo1.maven.org/maven2)

java.io.IOException: NPANDAY-180-020: Problem in resolving artifact:
    Assembly Artifact Id = NPanday.Plugin, Type = library, Local Path Check =
    C:\Documents and Settings\REBV30\.m2\uac\gac_msil\NPanday.Plugin\1.0.0__NPanday.Plugin\NPanday.Plugin.dll,
    Message = Unable to download the artifact from any repository

Coordinator
May 18, 2009 at 2:24 AM

Hi Wally,

 

NPanday places plugins in another subfolder in the m2 which is the m2/uac/gac_msil here the plugins should be released. I will create a zip file and you can try to copy the contents into the uac/gac_msil

Coordinator
May 18, 2009 at 2:32 AM

Hi Wally,

The zip file is in http://npanday.codeplex.com/WorkItem/View.aspx?WorkItemId=9998

 

Hope this helps resolve your problem

May 18, 2009 at 8:25 PM

Hello jocaba,

Thanks for the zip file -- installing that and looking at how things are set up is most instructional.  One small problem, you posted version 1.1-SNAPSHOT for all the NPanday stuff, and my system is looking for 1.0.0, per the "release" installer.  Can you post a zip file with the 1.0.0 version libraries, or even better, what is the command to get stuff installed from ~/.m2/repository/... into ~/.m2/uac/gac_msil?  Seems like it will be important to understand that, I can't be the only person with this same problem.  Is it possible to put a <plugin> tag in a project's pom.xml to point it at the right version?  My guess is that answer is "no", so I didn't try it.

Thanks again for your help,

-- Wally --

Coordinator
May 19, 2009 at 2:29 AM

Sorry, my bad. I had it reconfigured from the trunk. Ok I will attach a new zip file from the tagged 1.0.0 version

Coordinator
May 20, 2009 at 8:52 AM

Hi Wally,

Its attached to the same issue, I also included the zip files for the ones that will be located in the repository.

May 20, 2009 at 5:54 PM

Thank you Joe.  With version 1.0.0 stuff installed under ...\uac\gac_msil, at least now maven will find and run the NPanday plugin.  Sadly, the plugin gags up an unhandled System.TypeLoadException.   Here's the error printout that I see (same for command line or VS2008):

...
[INFO] [NPanday.Plugin.Settings.JavaBinding:generate-settings]
NPanday: Start Process = 5/20/2009 8:20:46 AM
"parameterFile=C:\DOCUME~1\REBV30\LOCALS~1\Temp\Plugin41755.xml"
"assemblyFile=C:\Documents and Settings\REBV30\.m2\pab\gac_msil\NPanday.Plugin.Settings\1.0.0__npanday.plugin\NPanday.Plugin.Settings.dll"
"mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo"
"startProcessAssembly=C:\Documents and Settings\REBV30\.m2\pab\gac_msil\NPanday.Plugin.Loader\1.0.0__NPanday.Plugin\NPanday.Plugin.Loader.exe"
[ERROR]
[ERROR] Unhandled Exception: System.TypeLoadException: The domain manager specified by the host could not be instantiated.
...

Now that temporary parameter file it's using (Plugin41755.xml) is empty except for a header line:

<?xml version="1.0" encoding="UTF-8" standalone="no"?><configuration/>

And if I invoke the debugger on the plugin process when it gags and inspect that exception, it says the declaring type = null and TypeName="".  Which leads me to believe whatever is creating that paramete file ought to be putting something in there; the plugin is basically fishing in an empty pond. Can you give me some clue about who's building that file, what it's looking for, how to affect the outcome?

Thanks very much for your help,

Wally

Coordinator
May 21, 2009 at 9:55 AM

Its trying to generate the npanday-settings.xml, it should look something like this

<?xml version="1.0" encoding="utf-8"?>
<npandaySettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <operatingSystem>Microsoft Windows NT 5.1.2600 Service Pack 3</operatingSystem>
  <defaultSetup>
    <vendorName>MICROSOFT</vendorName>
    <vendorVersion>2.0.50727</vendorVersion>
    <frameworkVersion>2.0.50727</frameworkVersion>
  </defaultSetup>
  <vendors>
    <vendor>
      <vendorName>MICROSOFT</vendorName>
      <vendorVersion>1.1.4322</vendorVersion>
      <frameworks>
        <framework>
          <frameworkVersion>1.1.4322</frameworkVersion>
          <installRoot>c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322</installRoot>
        </framework>
      </frameworks>
    </vendor>
    <vendor>
      <vendorName>MICROSOFT</vendorName>
      <vendorVersion>2.0.50727</vendorVersion>
      <frameworks>
        <framework>
          <frameworkVersion>2.0.50727</frameworkVersion>
          <installRoot>c:\WINDOWS\Microsoft.NET\Framework\v\3.5</installRoot>
          <sdkInstallRoot>C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\</sdkInstallRoot>
        </framework>
      </frameworks>
    </vendor>
    <vendor>
      <vendorName>MICROSOFT</vendorName>
      <vendorVersion>3.0</vendorVersion>
      <frameworks>
        <framework>
          <frameworkVersion>3.0</frameworkVersion>
          <installRoot>c:\WINDOWS\Microsoft.NET\Framework\v3.5</installRoot>
          <sdkInstallRoot>C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\</sdkInstallRoot>
        </framework>
      </frameworks>
    </vendor>
    <vendor>
      <vendorName>MICROSOFT</vendorName>
      <vendorVersion>3.5</vendorVersion>
      <frameworks>
        <framework>
          <frameworkVersion>3.5</frameworkVersion>
          <installRoot>c:\WINDOWS\Microsoft.NET\Framework\v3.5</installRoot>
          <sdkInstallRoot>C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\</sdkInstallRoot>
        </framework>
      </frameworks>
    </vendor>
  </vendors>
</npandaySettings>

Do you have this kind of file in your m2 folder?

May 21, 2009 at 10:55 PM

Thank you very much!  That did the trick (npandy-settings.xml) now I can actually build a project from mvn on the command line or from NPanday menus in VS 2008. 

Just in case there is anyone else in the same boat, trying to get this thing running on a fresh system, here is the "installation experience" as I know it.  This is how to get a working system set up on a Win XP machine with Visual Studio 2008:

1)  Install Maven
Make sure the Maven executable and your local Maven repository directory are on your Path:
    C:\Program Files\apache-maven-2.1.0\bin;
    C:\Documents and Settings\<user>\.m2;

2)  Assuming Visual Studio 2008 is already installed, pick up Visual Studio 2008 SP1 if you don't already have it.  Download the installer from http://msdn.microsoft.com/en-us/vstudio/default.aspx, the link is under "Essential Downloads". 

3) Install the .NET SDK.  Version 2 works, not sure yet whether NPanday will also work with ver. 3.5.  Make sure the sdk location is on your path:
    C:\Program Files\Microsoft.NET\SDK\v2.0\Bin;
Also make sure the matching .NET Framework location is on your path:
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
   
3)  Install NUnit and make sure it is on your path:
    C:\Program Files\NUnit 2.2.8.0\bin;

4)  Create the directory "C:\Documents and Settings\<user>\My Documents\Visual Studio 2005\Addins".
    You will already have the directory  "C:\Documents and Settings\<user>\My Documents\Visual Studio 2008" from the Visual Studio installation, may not have ...\Addins.  The   ...\Visual Studio 2005\Addins directory is just to fake out NPanday installer
so it builds an .addin file there.

5) Download "NPanday 1.0.0 Addin Installer + Repository" from the NPanday Downloads page.  Unzip it and run the installer.

6)  In the ...2005\Addins directory it should have built NPanday.VisualStudio.AddIn, an XML file describing the addin.  Copy that file to
    C:\Documents and Settings\<user>\My Documents\Visual Studio 2008\Addins.  Edit the file, change the Visual Studio version to 9.0 in the version tag:
    <Version>8.0</Version>

You are now at the point where the NPanday Build System appears on the Tools menu in Visual Studio 2008, but you do not yet have a working system.

7)  Get the zip file containing the gac_msil repository from
http://npanday.codeplex.com/WorkItem/View.aspx?WorkItemId=9998, pick up gac_msil.zip to match NPanday version 1.0.0 from the installer.  Extract the contents to  C:\Documents and Settings\<user>\.m2\uac\gac_msil.

8)  Install an npanday-settings.xml file in ~\.m2.  See the previous message in this thread for an example or look in the wiki article at:
http://npanday.codeplex.com/Wiki/View.aspx?title=Executing%20Maven%20Goals
Settings will probably have to be tuned a little for your system.

Now, you should be at a point where NPanday will generate a POM and build an application.  Obviously the last couple of steps, installing stuff to gac_msil and making the npanday-settings.xml file ought to be done by the installer, or there ought to be a maven command for it or something.  But the steps above are what I had to do to get it running.

Again, thanks for the help,

Wally

Jul 9, 2009 at 8:26 PM

Hi guys,

I've just followed all steps described by Wally in the previous post but I simply can't get NPanday to work (and that's kind of driving me crazy)..

After following the steps my Path variable is looking like this:

C:\Arquivos de programas\apache-maven-2.0.10\bin
C:\Documents and Settings\jfneis\.m2
C:\Arquivos de programas\Microsoft.NET\SDK\v2.0\Bin
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
C:\Arquivos de programas\NUnit 2.4.8\bin
%JAVA_HOME%\bin

As you can see, I have Maven, .NET SDK and NUnit installed and properly set in the variable.

For some reason, anyway, NPanday is still complaining that it can't find C:\Microsoft.CSharp.targets when I try to generate the solution's POM file. The point is: who is overriding my MSBuildToolsPath variable? I verified my registry and it's pointing to the .NET Framework folder, as it must. Who is telling NPanday to search at C:\?

Well, just to give a try, I replaced the MSBuildToolsPath variable and hardcoded my .NET Framework folder. All right, no more Csharp.targets error, but this time I get an awful access violation (Object reference blablabla). Any ideas? Is there any log where I can inspect the exception stack trace?

Thank you in advance.

José Filipe

Coordinator
Jul 10, 2009 at 7:43 AM

Hi Jose Filipe,

You can try changing the path in the npanday-settings.xml in your local repository and have it point to your specifications.

Hope that helps,

Jul 10, 2009 at 12:35 PM

Hi jocaba, thank you for the fast answer.

I took a look in my npanday-settings.xml but the folders are correctly specified:

<?xml version="1.0" encoding="utf-8"?>
<npandaySettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<operatingSystem>Microsoft Windows NT 5.1.2600 Service Pack 3</operatingSystem>
<defaultSetup>
<vendorName>MICROSOFT</vendorName>
<vendorVersion>2.0.50727</vendorVersion>
<frameworkVersion>2.0.50727</frameworkVersion>
</defaultSetup>
<vendors>
<vendor>
<vendorName>MICROSOFT</vendorName>
<vendorVersion>1.1.4322</vendorVersion>
<frameworks>
<framework>
<frameworkVersion>1.1.4322</frameworkVersion>
<installRoot>c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322</installRoot>
</framework>
</frameworks>
</vendor>
<vendor>
<vendorName>MICROSOFT</vendorName>
<vendorVersion>2.0.50727</vendorVersion>
<frameworks>
<framework>
<frameworkVersion>2.0.50727</frameworkVersion>
<installRoot>c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727</installRoot>
<sdkInstallRoot>C:\Arquivos de programas\Microsoft.NET\SDK\v2.0\</sdkInstallRoot>
</framework>
</frameworks>
</vendor>
<vendor>
<vendorName>MICROSOFT</vendorName>
<vendorVersion>3.0</vendorVersion>
<frameworks>
<framework>
<frameworkVersion>3.0</frameworkVersion>
<installRoot>c:\WINDOWS\Microsoft.NET\Framework\v3.0</installRoot>
<sdkInstallRoot>C:\Arquivos de programas\Microsoft.NET\SDK\v2.0\</sdkInstallRoot>
</framework>
</frameworks>
</vendor>
<vendor>
<vendorName>MICROSOFT</vendorName>
<vendorVersion>3.5</vendorVersion>
<frameworks>
<framework>
<frameworkVersion>3.5</frameworkVersion>
<installRoot>c:\WINDOWS\Microsoft.NET\Framework\v3.5</installRoot>
<sdkInstallRoot>C:\Arquivos de programas\Microsoft.NET\SDK\v2.0\v2.0\</sdkInstallRoot>
</framework>
</frameworks>
</vendor>
</vendors>
</npandaySettings>

Anyway, do you think that the settings file has anything to do with the Access Violation? Is there an easy way to debug the code so I can try to fix it? I'll take a look on it, but the learning curve probably will take me some time.

Thank you again.

José Filipe