NMaven (Retired)

Unable to generate solution file from test project

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Critical Critical
  • Resolution: Unresolved
  • Affects Version/s: 0.14 (Unreleased)
  • Fix Version/s: 0.14 (Unreleased)
  • Component/s: Solution Generator
  • Labels:
    None
  • Patch Submitted:
    Yes
  • Number of attachments :
    1

Description

To reproduce:
mvn archetype:create -DgroupId=NMaven -DartifactId=NMaven.Test -DarchetypeArtifactId=maven-archetype-dotnet-simple -DarchetypeGroupId=org.apache.maven.dotnet -DarchetypeVersion=0.14
cd NMaven.Test
mvn install
mvn clean
mvn org.apache.maven.dotnet.plugins:maven-vsinstaller-plugin:install
mvn NMaven.Plugins:NMaven.Plugin.Solution.JavaBinding:Solution

This results in some build output, then an error/debug dialog: NMaven.Plugin.Loader has encountered a problem and needs to close

Console output:

[INFO] [NMaven.Plugin.Solution.JavaBinding:Solution]
NMAVEN: Start Process = 12/10/2007 2:35:19 PM
"parameterFile=C:\DOCUME~1\wsmoak\LOCALS~1\Temp\Plugin34917.xml" "assemblyFile=C
:\Documents and Settings\wsmoak\.m2\pab\gac_msil\NMaven.Plugin.Solution\0.14-mae
stro-1.5-M3__NMaven.Plugins\NMaven.Plugin.Solution.dll" "mojoName=NMaven.Plugin.
Solution.SolutionMojo" "startProcessAssembly=C:\Documents and Settings\wsmoak\.m
2\pab\gac_msil\NMaven.Plugin.Loader\0.14__NMaven.Plugin\NMaven.Pl
ugin.Loader.exe"
NMAVEN: End Process = 12/10/2007 2:35:19 PM
Creating Plugin Domain Manager
ParamFile = C:\DOCUME~1\wsmoak\LOCALS~1\Temp\Plugin34917.xml, AssemblyFile = C:\
Documents and Settings\wsmoak\.m2\pab\gac_msil\NMaven.Plugin.Solution\0.14-maest
ro-1.5-M3__NMaven.Plugins\NMaven.Plugin.Solution.dll, MojoName = NMaven.Plugin.S
olution.SolutionMojo
Loading Plugin: C:\Documents and Settings\wsmoak\.m2\pab\gac_msil\NMaven.Plugin.
Solution\0.14__NMaven.Plugins
Creating Plugin Domain Manager
System.String:NMaven.Model.Pom.Model
System.String:System.String
NMaven.Model.Pom.Model:NMaven.Model.Pom.Model
System.String:NMaven.Model.Pom.Model
System.String:System.String
[ERROR]
[ERROR] Unhandled Exception: System.IO.FileNotFoundException: Could not load fil
e or assembly 'NMaven.Solution, Version=0.14.0.0, Culture=neutral, PublicKeyToke
n=null' or one of its dependencies. The system cannot find the file specified.
[ERROR] File name: 'NMaven.Solution, Version=0.14.0.0, Culture=neutral, PublicKe
yToken=null'
[ERROR]    at NMaven.Plugin.Solution.SolutionMojo.Execute()
[ERROR]    at NMaven.Plugin.AbstractMojo.Execute()
[ERROR]    at NMaven.Plugin.Loader.PluginLoader.Main(String[] args)
[ERROR]
[ERROR] WRN: Assembly binding logging is turned OFF.
[ERROR] To enable assembly bind failure logging, set the registry value [HKLM\So
ftware\Microsoft\Fusion!EnableLog] (DWORD) to 1.
[ERROR] Note: There is some performance penalty associated with assembly bind failure logging.
[ERROR] To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
[ERROR]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] NMAVEN-xxx-000

Embedded error: NMAVEN-063-000: Execution Path = C:\Documents and Settings\wsmoa
k\.m2\pab\gac_msil\NMaven.Plugin.Runner\0.14__NMaven.Plugin, Comm
and = [parameterFile=C:\DOCUME~1\wsmoak\LOCALS~1\Temp\Plugin34917.xml, assemblyF
ile=C:\Documents and Settings\wsmoak\.m2\pab\gac_msil\NMaven.Plugin.Solution\0.1
4__NMaven.Plugins\NMaven.Plugin.Solution.dll, mojoName=NMaven.Plu
gin.Solution.SolutionMojo, startProcessAssembly=C:\Documents and Settings\wsmoak
\.m2\pab\gac_msil\NMaven.Plugin.Loader\0.14__NMaven.Plugin\NMaven
.Plugin.Loader.exe]
NMAVEN-040-001: Could not execute: Command = NMaven.Plugin.Runner.exe parameterF
ile=C:\DOCUME~1\wsmoak\LOCALS~1\Temp\Plugin34917.xml "assemblyFile=C:\Documents
and Settings\wsmoak\.m2\pab\gac_msil\NMaven.Plugin.Solution\0.14_
_NMaven.Plugins\NMaven.Plugin.Solution.dll" mojoName=NMaven.Plugin.Solution.Solu
tionMojo "startProcessAssembly=C:\Documents and Settings\wsmoak\.m2\pab\gac_msil
\NMaven.Plugin.Loader\0.14__NMaven.Plugin\NMaven.Plugin.Loader.ex
e", Result = 0
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 24 seconds
[INFO] Finished at: Mon Dec 10 14:36:15 MST 2007
[INFO] Final Memory: 5M/12M
[INFO] ------------------------------------------------------------------------

C:\Temp\NMaven.Test>

Activity

Hide
Maria Catherine Tan added a comment -

submitted patch that fixes this issue

Show
Maria Catherine Tan added a comment - submitted patch that fixes this issue
Hide
Wendy Smoak added a comment -

As of r663452 on the NMAVEN_0.14 branch, I'm still having trouble generating VS Solution files, but the error has changed a bit. I no longer get the crash dialog box, but I see this on the console:

C:\temp\NMaven.Sample24410>mvn NMaven.Plugins:NMaven.Plugin.Solution.JavaBinding:0.14-incubating-SNAPSHOT:Solution
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - NMaven:NMaven.Sample24410:library:1.0-SNAPSHOT
[INFO]    task-segment: [NMaven.Plugins:NMaven.Plugin.Solution.JavaBinding:0.14-
incubating-SNAPSHOT:Solution]
[INFO] ------------------------------------------------------------------------
[INFO] [NMaven.Plugin.Solution.JavaBinding:Solution]
NMAVEN: Start Process = 6/8/2008 11:10:49 AM
"parameterFile=C:\DOCUME~1\wsmoak\LOCALS~1\Temp\Plugin25833.xml" "assemblyFile=C
:\Documents and Settings\wsmoak\.m2\pab\gac_msil\NMaven.Plugin.Solution\0.14-inc
ubating-SNAPSHOT__NMaven.Plugins\NMaven.Plugin.Solution.dll" "mojoName=NMaven.Pl
ugin.Solution.SolutionMojo" "startProcessAssembly=C:\Documents and Settings\wsmo
ak\.m2\pab\gac_msil\NMaven.Plugin.Loader\0.14-incubating-SNAPSHOT__NMaven.Plugin
\NMaven.Plugin.Loader.exe"
Creating Plugin Domain Manager
ParamFile = C:\DOCUME~1\wsmoak\LOCALS~1\Temp\Plugin25833.xml, AssemblyFile = C:\
Documents and Settings\wsmoak\.m2\pab\gac_msil\NMaven.Plugin.Solution\0.14-incub
ating-SNAPSHOT__NMaven.Plugins\NMaven.Plugin.Solution.dll, MojoName = NMaven.Plu
gin.Solution.SolutionMojo
Assembly File does not exist: File = C:\Documents and Settings\wsmoak\.m2\pab\ga
c_msil\NMaven.Plugin.Solution\0.14-incubating-SNAPSHOT__NMaven.Plugins\NMaven.Pl
ugin.Solution.dll
NMAVEN: End Process = 6/8/2008 11:10:49 AM; exit code = 1
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] NMAVEN-xxx-000

Embedded error: NMAVEN-063-000: Execution Path = C:\Documents and Settings\wsmoa
k\.m2\pab\gac_msil\NMaven.Plugin.Runner\0.14-incubating-SNAPSHOT__NMaven.Plugin,
 Command = [parameterFile=C:\DOCUME~1\wsmoak\LOCALS~1\Temp\Plugin25833.xml, asse
mblyFile=C:\Documents and Settings\wsmoak\.m2\pab\gac_msil\NMaven.Plugin.Solutio
n\0.14-incubating-SNAPSHOT__NMaven.Plugins\NMaven.Plugin.Solution.dll, mojoName=
NMaven.Plugin.Solution.SolutionMojo, startProcessAssembly=C:\Documents and Setti
ngs\wsmoak\.m2\pab\gac_msil\NMaven.Plugin.Loader\0.14-incubating-SNAPSHOT__NMave
n.Plugin\NMaven.Plugin.Loader.exe]
NMAVEN-040-001: Could not execute: Command = NMaven.Plugin.Runner.exe parameterF
ile=C:\DOCUME~1\wsmoak\LOCALS~1\Temp\Plugin25833.xml "assemblyFile=C:\Documents
and Settings\wsmoak\.m2\pab\gac_msil\NMaven.Plugin.Solution\0.14-incubating-SNAP
SHOT__NMaven.Plugins\NMaven.Plugin.Solution.dll" mojoName=NMaven.Plugin.Solution
.SolutionMojo "startProcessAssembly=C:\Documents and Settings\wsmoak\.m2\pab\gac
_msil\NMaven.Plugin.Loader\0.14-incubating-SNAPSHOT__NMaven.Plugin\NMaven.Plugin
.Loader.exe", Result = 1
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Sun Jun 08 11:10:49 MST 2008
[INFO] Final Memory: 8M/17M
[INFO] ------------------------------------------------------------------------
Show
Wendy Smoak added a comment - As of r663452 on the NMAVEN_0.14 branch, I'm still having trouble generating VS Solution files, but the error has changed a bit. I no longer get the crash dialog box, but I see this on the console:
C:\temp\NMaven.Sample24410>mvn NMaven.Plugins:NMaven.Plugin.Solution.JavaBinding:0.14-incubating-SNAPSHOT:Solution
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - NMaven:NMaven.Sample24410:library:1.0-SNAPSHOT
[INFO]    task-segment: [NMaven.Plugins:NMaven.Plugin.Solution.JavaBinding:0.14-
incubating-SNAPSHOT:Solution]
[INFO] ------------------------------------------------------------------------
[INFO] [NMaven.Plugin.Solution.JavaBinding:Solution]
NMAVEN: Start Process = 6/8/2008 11:10:49 AM
"parameterFile=C:\DOCUME~1\wsmoak\LOCALS~1\Temp\Plugin25833.xml" "assemblyFile=C
:\Documents and Settings\wsmoak\.m2\pab\gac_msil\NMaven.Plugin.Solution\0.14-inc
ubating-SNAPSHOT__NMaven.Plugins\NMaven.Plugin.Solution.dll" "mojoName=NMaven.Pl
ugin.Solution.SolutionMojo" "startProcessAssembly=C:\Documents and Settings\wsmo
ak\.m2\pab\gac_msil\NMaven.Plugin.Loader\0.14-incubating-SNAPSHOT__NMaven.Plugin
\NMaven.Plugin.Loader.exe"
Creating Plugin Domain Manager
ParamFile = C:\DOCUME~1\wsmoak\LOCALS~1\Temp\Plugin25833.xml, AssemblyFile = C:\
Documents and Settings\wsmoak\.m2\pab\gac_msil\NMaven.Plugin.Solution\0.14-incub
ating-SNAPSHOT__NMaven.Plugins\NMaven.Plugin.Solution.dll, MojoName = NMaven.Plu
gin.Solution.SolutionMojo
Assembly File does not exist: File = C:\Documents and Settings\wsmoak\.m2\pab\ga
c_msil\NMaven.Plugin.Solution\0.14-incubating-SNAPSHOT__NMaven.Plugins\NMaven.Pl
ugin.Solution.dll
NMAVEN: End Process = 6/8/2008 11:10:49 AM; exit code = 1
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] NMAVEN-xxx-000

Embedded error: NMAVEN-063-000: Execution Path = C:\Documents and Settings\wsmoa
k\.m2\pab\gac_msil\NMaven.Plugin.Runner\0.14-incubating-SNAPSHOT__NMaven.Plugin,
 Command = [parameterFile=C:\DOCUME~1\wsmoak\LOCALS~1\Temp\Plugin25833.xml, asse
mblyFile=C:\Documents and Settings\wsmoak\.m2\pab\gac_msil\NMaven.Plugin.Solutio
n\0.14-incubating-SNAPSHOT__NMaven.Plugins\NMaven.Plugin.Solution.dll, mojoName=
NMaven.Plugin.Solution.SolutionMojo, startProcessAssembly=C:\Documents and Setti
ngs\wsmoak\.m2\pab\gac_msil\NMaven.Plugin.Loader\0.14-incubating-SNAPSHOT__NMave
n.Plugin\NMaven.Plugin.Loader.exe]
NMAVEN-040-001: Could not execute: Command = NMaven.Plugin.Runner.exe parameterF
ile=C:\DOCUME~1\wsmoak\LOCALS~1\Temp\Plugin25833.xml "assemblyFile=C:\Documents
and Settings\wsmoak\.m2\pab\gac_msil\NMaven.Plugin.Solution\0.14-incubating-SNAP
SHOT__NMaven.Plugins\NMaven.Plugin.Solution.dll" mojoName=NMaven.Plugin.Solution
.SolutionMojo "startProcessAssembly=C:\Documents and Settings\wsmoak\.m2\pab\gac
_msil\NMaven.Plugin.Loader\0.14-incubating-SNAPSHOT__NMaven.Plugin\NMaven.Plugin
.Loader.exe", Result = 1
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Sun Jun 08 11:10:49 MST 2008
[INFO] Final Memory: 8M/17M
[INFO] ------------------------------------------------------------------------
Hide
Wendy Smoak added a comment -

I applied the patch, re-built NMaven 0.14 (which seemed to work...) and tried generating a solution again. Now I get an error about a missing dependency, so maybe it didn't build correctly.

C:\temp\NMaven.Sample24410>mvn NMaven.Plugins:NMaven.Plugin.Solution.JavaBinding
:0.14-incubating-SNAPSHOT:Solution
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - NMaven:NMaven.Sample24410:library:1.0-SNAPSHOT
[INFO]    task-segment: [NMaven.Plugins:NMaven.Plugin.Solution.JavaBinding:0.14-
incubating-SNAPSHOT:Solution]
[INFO] ------------------------------------------------------------------------
[INFO] [NMaven.Plugin.Solution.JavaBinding:Solution]
Jun 8, 2008 11:28:02 AM org.apache.maven.dotnet.registry.ConnectionsRepository l
azyLoad
INFO: NMAVEN-080-001: Adding data access object: Class Name = org.apache.maven.d
otnet.dao.impl.ProjectDaoImpl
Jun 8, 2008 11:28:02 AM org.apache.maven.dotnet.registry.ConnectionsRepository l
azyLoad
INFO: NMAVEN-080-004: Connection Start Up: Time = 78
Jun 8, 2008 11:28:02 AM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.serql.SeRQLParserFactory

Jun 8, 2008 11:28:02 AM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.sparql.SPARQLParserFacto
ry
Jun 8, 2008 11:28:02 AM org.apache.maven.dotnet.dao.impl.ProjectDaoImpl storePro
jectAndResolveDependencies
INFO: NMAVEN-180-012: Retrieving artifact: Artifact ID  = NMaven.Plugin.Solution

Downloading: http://people.apache.org/repo/m2-snapshot-repository/NMaven/Plugins
/NMaven.Plugin.Solution/0.14-incubating-SNAPSHOT/NMaven.Plugin.Solution-0.14-inc
ubating-SNAPSHOT.pom
Jun 8, 2008 11:28:02 AM org.apache.maven.dotnet.dao.impl.ProjectDaoImpl storePro
jectAndResolveDependencies
INFO: NMAVEN-180-014: Problem in resolving artifact: Assembly Artifact Id = NMav
en.Plugin.Solution, Type = netplugin, Message = Unable to download the artifact
from any repository
Jun 8, 2008 11:28:02 AM org.apache.maven.dotnet.dao.impl.ProjectDaoImpl storePro
jectAndResolveDependencies
INFO: NMAVEN-180-018: Retrieving artifact: Artifact ID  = NMaven.Plugin.Solution

Downloading: http://people.apache.org/repo/m2-snapshot-repository/NMaven/Plugins
/NMaven.Plugin.Solution/0.14-incubating-SNAPSHOT/NMaven.Plugin.Solution-0.14-inc
ubating-SNAPSHOT.dll
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] NMAVEN-180-020: Problem in resolving artifact: Assembly Artifact Id = NMa
ven.Plugin.Solution, Type = netplugin, Local Path Check = C:\Documents and Setti
ngs\wsmoak\.m2\uac\gac_msil\NMaven.Plugin.Solution\0.14-incubating-SNAPSHOT__NMa
ven.Plugins\NMaven.Plugin.Solution.dll, Message = Unable to download the artifac
t from any repository

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Sun Jun 08 11:28:02 MST 2008
[INFO] Final Memory: 8M/17M
[INFO] ------------------------------------------------------------------------
Show
Wendy Smoak added a comment - I applied the patch, re-built NMaven 0.14 (which seemed to work...) and tried generating a solution again. Now I get an error about a missing dependency, so maybe it didn't build correctly.
C:\temp\NMaven.Sample24410>mvn NMaven.Plugins:NMaven.Plugin.Solution.JavaBinding
:0.14-incubating-SNAPSHOT:Solution
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - NMaven:NMaven.Sample24410:library:1.0-SNAPSHOT
[INFO]    task-segment: [NMaven.Plugins:NMaven.Plugin.Solution.JavaBinding:0.14-
incubating-SNAPSHOT:Solution]
[INFO] ------------------------------------------------------------------------
[INFO] [NMaven.Plugin.Solution.JavaBinding:Solution]
Jun 8, 2008 11:28:02 AM org.apache.maven.dotnet.registry.ConnectionsRepository l
azyLoad
INFO: NMAVEN-080-001: Adding data access object: Class Name = org.apache.maven.d
otnet.dao.impl.ProjectDaoImpl
Jun 8, 2008 11:28:02 AM org.apache.maven.dotnet.registry.ConnectionsRepository l
azyLoad
INFO: NMAVEN-080-004: Connection Start Up: Time = 78
Jun 8, 2008 11:28:02 AM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.serql.SeRQLParserFactory

Jun 8, 2008 11:28:02 AM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.sparql.SPARQLParserFacto
ry
Jun 8, 2008 11:28:02 AM org.apache.maven.dotnet.dao.impl.ProjectDaoImpl storePro
jectAndResolveDependencies
INFO: NMAVEN-180-012: Retrieving artifact: Artifact ID  = NMaven.Plugin.Solution

Downloading: http://people.apache.org/repo/m2-snapshot-repository/NMaven/Plugins
/NMaven.Plugin.Solution/0.14-incubating-SNAPSHOT/NMaven.Plugin.Solution-0.14-inc
ubating-SNAPSHOT.pom
Jun 8, 2008 11:28:02 AM org.apache.maven.dotnet.dao.impl.ProjectDaoImpl storePro
jectAndResolveDependencies
INFO: NMAVEN-180-014: Problem in resolving artifact: Assembly Artifact Id = NMav
en.Plugin.Solution, Type = netplugin, Message = Unable to download the artifact
from any repository
Jun 8, 2008 11:28:02 AM org.apache.maven.dotnet.dao.impl.ProjectDaoImpl storePro
jectAndResolveDependencies
INFO: NMAVEN-180-018: Retrieving artifact: Artifact ID  = NMaven.Plugin.Solution

Downloading: http://people.apache.org/repo/m2-snapshot-repository/NMaven/Plugins
/NMaven.Plugin.Solution/0.14-incubating-SNAPSHOT/NMaven.Plugin.Solution-0.14-inc
ubating-SNAPSHOT.dll
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] NMAVEN-180-020: Problem in resolving artifact: Assembly Artifact Id = NMa
ven.Plugin.Solution, Type = netplugin, Local Path Check = C:\Documents and Setti
ngs\wsmoak\.m2\uac\gac_msil\NMaven.Plugin.Solution\0.14-incubating-SNAPSHOT__NMa
ven.Plugins\NMaven.Plugin.Solution.dll, Message = Unable to download the artifac
t from any repository

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Sun Jun 08 11:28:02 MST 2008
[INFO] Final Memory: 8M/17M
[INFO] ------------------------------------------------------------------------
Hide
Brett Porter added a comment -

I don't get any problems running this command if I've installed from the bootstrap.

Does this require a remote repository containing releases?

Show
Brett Porter added a comment - I don't get any problems running this command if I've installed from the bootstrap. Does this require a remote repository containing releases?

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: