NPanday on linux

Jan 10, 2009 at 9:32 PM

I uploaded the 0.9.5 repo  in my asset repository, then runned mvn install in a sample project on windows. All has worked fine.
Then I run the same command on the same sample project on linux (ubuntu intrepid with mono 1.9.1) and I get the following error:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building ClassLibrary1
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [compile:initialize]
Jan 10, 2009 10:19:57 PM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
Jan 10, 2009 10:19:57 PM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-004: Connection Start Up: Time = 50
[INFO] Mojo Execution Time = 64
[INFO] [resolver:resolve]
Jan 10, 2009 10:19:58 PM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
Jan 10, 2009 10:19:58 PM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-004: Connection Start Up: Time = 66
Jan 10, 2009 10:19:58 PM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.serql.SeRQLParserFactory
Jan 10, 2009 10:19:58 PM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.sparql.SPARQLParserFactory
Jan 10, 2009 10:19:58 PM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies
INFO: NPANDAY-180-012: Retrieving artifact: Artifact ID  = NPanday.Plugin.Devenv
Downloading: http://repo1.maven.org/maven2/npanday/plugin/NPanday.Plugin.Devenv/0.9.5/NPanday.Plugin.Devenv-0.9.5.pom
Jan 10, 2009 10:19:59 PM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies
INFO: NPANDAY-180-014: Problem in resolving artifact: Assembly Artifact Id = NPanday.Plugin.Devenv, Type = netplugin, Message = Unable to download the artifact from any repository
Jan 10, 2009 10:19:59 PM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies
INFO: NPANDAY-180-018: Retrieving artifact: Artifact ID  = NPanday.Plugin.Devenv
Downloading: http://repo1.maven.org/maven2/npanday/plugin/NPanday.Plugin.Devenv/0.9.5/NPanday.Plugin.Devenv-0.9.5.dll
java.io.IOException: NPANDAY-180-020: Problem in resolving artifact: Assembly Artifact Id = NPanday.Plugin.Devenv, Type = netplugin, Local Path Check = /home/luca/.m2/uac/gac_msil/NPanday.Plugin.Devenv/0.9.5__npanday.plugin/NPanday.Plugin.Devenv.dll, Message = Unable to download the artifact from any repository
    at npanday.dao.impl.ProjectDaoImpl.storeProjectAndResolveDependencies(ProjectDaoImpl.java:733)
    at npanday.artifact.impl.AssemblyResolverImpl.resolveTransitivelyFor(AssemblyResolverImpl.java:136)
    at npanday.artifact.impl.ArtifactInstallerImpl.resolveAndInstallNetDependenciesForProfile(ArtifactInstallerImpl.java:165)
    at npanday.plugin.resolver.NetDependencyResolverMojo.execute(NetDependencyResolverMojo.java:160)
    at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] NPANDAY-180-020: Problem in resolving artifact: Assembly Artifact Id = NPanday.Plugin.Devenv, Type = netplugin, Local Path Check = /home/luca/.m2/uac/gac_msil/NPanday.Plugin.Devenv/0.9.5__npanday.plugin/NPanday.Plugin.Devenv.dll, Message = Unable to download the artifact from any repository
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Sat Jan 10 22:19:59 CET 2009
[INFO] Final Memory: 11M/42M
[INFO] ------------------------------------------------------------------------

Then I tried to recompile the 0.9.5 from sources on linux, running the command ./bootstrap-build.sh, but after a while I get:





...
[INFO] Building NPanday.Model.Pom
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] artifact npanday.plugin:maven-resolver-plugin: checking for updates from central
[INFO] artifact npanday.plugin:NPanday.Plugin.Settings.JavaBinding: checking for updates from central
[INFO] artifact npanday.plugin:maven-resgen-plugin: checking for updates from central
[INFO] artifact npanday.plugin:maven-test-plugin: checking for updates from central
[INFO] artifact npanday.plugin:maven-repository-plugin: checking for updates from central
[INFO] artifact npanday.plugin:maven-xsd-plugin: checking for updates from central
[INFO] artifact npanday.plugin:maven-deploy-plugin: checking for updates from central
[INFO] [compile:initialize]
Jan 10, 2009 10:17:59 PM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
Jan 10, 2009 10:17:59 PM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-004: Connection Start Up: Time = 48
[INFO] Mojo Execution Time = 62
[INFO] [resolver:resolve]
[INFO] [NPanday.Plugin.Settings.JavaBinding:generate-settings]
[INFO] [compile:generate-assembly-info]
[INFO] NPANDAY-902-000: Generating Assembly Info: Language = C_SHARP
[INFO] Mojo Execution Time = 4
[INFO] [compile:process-sources]
[INFO] NPANDAY-904-001: No source files to copy
[INFO] [compile:process-test-sources]
[INFO] NPANDAY-905-001: No test source files to copy
[INFO] [xsd:xsd {execution: default}]
[INFO] NPANDAY-066-016: Did not find executable path, will try system path
Written file /home/luca/downloads/test/0_9_5/assemblies/NPanday.Model/Pom/target/build-sources/Pom.cs
[INFO] [resgen:copy-resources]
[INFO] [resgen:generate]
[INFO] [resgen:generate-existing-resx-to-resource]
[INFO] [compile:compile]
[INFO] NPANDAY-066-013: Found Vendor = Vendor = MONO, Vendor Version = null, Framework Version = 2.0.50727, Executable Paths =
[INFO] NPANDAY-900-003: Nothing to compile - all classes are up-to-date
[INFO] [compile:testCompile]
[WARNING] NPANDAY-903-004: Disabled unit tests: -Dmaven.test.skip=true
[INFO] [test:test]
[WARNING] NPANDAY-1100-000: Unit tests have been disabled.
[INFO] [repository:convert-artifact]
Jan 10, 2009 10:18:05 PM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
Jan 10, 2009 10:18:05 PM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-004: Connection Start Up: Time = 11
Jan 10, 2009 10:18:05 PM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.serql.SeRQLParserFactory
Jan 10, 2009 10:18:05 PM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.sparql.SPARQLParserFactory
Jan 10, 2009 10:18:05 PM npanday.repository.impl.RepositoryConverterImpl convertRepositoryFormatFor
INFO: NPANDAY-190-002: Converting Project: Artifact ID = NPanday.Model.Pom, Dependency Count =0
[INFO] [install:install]
Jan 10, 2009 10:18:05 PM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
Jan 10, 2009 10:18:05 PM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-004: Connection Start Up: Time = 52
[INFO] NPANDAY-066-016: Did not find executable path, will try system path
Failure adding assembly /home/luca/downloads/test/0_9_5/assemblies/NPanday.Model/Pom/target/NPanday.Model.Pom.dll to the cache: gac directories could not be created, possibly permission issues.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] NPANDAY-1400-000: Unable to execute gacutil: Vendor null, frameworkVersion = null, Profile = GACUTIL

Embedded error: NPANDAY-070-000: Execution Path = unknown, Command = [/i, /home/luca/downloads/test/0_9_5/assemblies/NPanday.Model/Pom/target/NPanday.Model.Pom.dll]
NPANDAY-040-001: Could not execute: Command = gacutil /i /home/luca/downloads/test/0_9_5/assemblies/NPanday.Model/Pom/target/NPanday.Model.Pom.dll, Result = 1
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19 seconds
[INFO] Finished at: Sat Jan 10 22:18:06 CET 2009
[INFO] Final Memory: 22M/58M
[INFO] ------------------------------------------------------------------------

which is my error? can someone help me?

I am very interested on npanday, and if possible I will try help you (with developing or testing or by writing docs).
I have some additional questions :-)
1) I am trying to integrate tfs with maven, there is a plan to do this for npanday too?
2) There is a documentation (or examples) about npanday
3) There is a way to build libraries/exe with localizations (like visual studio does?)

THANK YOU!


Coordinator
Jan 12, 2009 at 2:11 AM
Hi jedioetzi,

We are very happy to hear that you are interested with NPanday. Currently we are only supporting windows and VS 2005 the next version for support is VS 2008.
We are open to your questions and suggestions. To start off:

1. NPanday is already using maven, so if you can explain this question a bit further so that we could answer on what you mean with integrating this with maven.
2. We are still currently updating the NPanday documents after the re brand. We will upload it here and announce it once its done.
3. Currently when building/compiling projects it is for release mode  but we are also planning on putting that in the road map.

Thanks,

Joe
Jan 12, 2009 at 5:18 PM
Hi Joe,
thanks for the answer.
is not an issue if it not works on unix now, is a nice to have for assure cross platform applications.
1) as far I know maven scm has no integration for team foundation server, but only for sourcesafe. My intent is to work with maven and tfs together
2) good! will wait :-)
3) we will start the migration to npanday, but the most of our projects uses localized forms with several languages. If I can help for develop this feature, please give me an hint (which are the projects involved).
Coordinator
Mar 24, 2010 at 1:49 AM

Sorry for the really late reply, but for others hitting this - I found you need to run gacutil with 'sudo'. One way is "sudo mvn install" - though obviously that's not a preferred option :)

Nov 3, 2010 at 9:47 PM

Using mono is now possible to define an user gac, maybe could be interesting implement it in npanday

gacutil /i gac_lib.dll -gacdir ~/.mono
export MONO_GAC_PREFIX=~/.mono

http://www.mono-project.com/Assemblies_and_the_GAC