How to install the VS Addin built from trunk?

Developer
Jan 28, 2009 at 9:14 PM
I've been able to build NPanday from trunk with "bootstrap-build.bat -DVisualStudio2005" but I'm having trouble installing the VS Addin.

I'd assume that after I build it, all the artifacts are in my local repo and this should work:

>mvn npanday.plugin:maven-vsinstaller-plugin:0.9-SNAPSHOT:install

It didn't, so I tried adding the repo contents I found under target under the modules in 'misc' as remote repositories.
- file:///f:/svn/npanday/misc/dotnet-repository-builder/target/npanday-repository
- file:///f:/svn/npanday/misc/npanday-repository-builder/target/archive-tmp/repository/releases

I still can't get it to install.  (See error below.)  What do I need to do to install the newly built snapshot of the VS Addin?

>mvn npanday.plugin:maven-vsinstaller-plugin:0.9-SNAPSHOT:install -U -e
...
[INFO] [vsinstaller:install]
Jan 28, 2009 2:49:42 PM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
Jan 28, 2009 2:49:42 PM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-004: Connection Start Up: Time = 2828
Jan 28, 2009 2:49:43 PM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.serql.SeRQLParserFactory

Jan 28, 2009 2:49:43 PM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.sparql.SPARQLParserFactory
Jan 28, 2009 2:49:53 PM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies
INFO: NPANDAY-180-012: Retrieving artifact: Artifact ID  = NPanday.Plugin.Loader

[INFO] snapshot NPanday.Plugin:NPanday.Plugin.Loader:0.9-SNAPSHOT: checking for updates from apache.snapshots
[INFO] snapshot NPanday.Plugin:NPanday.Plugin.Loader:0.9-SNAPSHOT: checking for updates from npanday1
[INFO] snapshot NPanday.Plugin:NPanday.Plugin.Loader:0.9-SNAPSHOT: checking for updates from npanday2
Jan 28, 2009 2:49:54 PM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies
INFO: NPANDAY: resolving artifact: NPanday.Plugin:NPanday.Plugin.Loader:pom:0.9-SNAPSHOT
Jan 28, 2009 2:49:54 PM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies
INFO: NPANDAY-180-018: Retrieving artifact: Artifact ID  = NPanday.Plugin.Loader

Downloading: file:///h:/releases/NPanday/Plugin/NPanday.Plugin.Loader/0.9-SNAPSHOT/NPanday.Plugin.Loader-0.9-20090128.201320-4.exe
Downloading: file:///F:\svn\npanday\misc\npanday-repository-builder\target\archive-tmp\repository\releases/NPanday/Plugin/NPanday.Plugin.Loader/0.9-SNAPSHOT/NPa
nday.Plugin.Loader-0.9-20090128.201320-4.exe
Downloading: file:///F:\svn\npanday\misc\dotnet-repository-builder\target\npanday-repository/NPanday/Plugin/NPanday.Plugin.Loader/0.9-SNAPSHOT/NPanday.Plugin.Loader-0.9-20090128.201320-4.exe
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] NPANDAY-180-020: Problem in resolving artifact: Assembly Artifact Id = NPanday.Plugin.Loader, Type = exe, Local Path Check = C:\Documents and Settings\wsmoak\.m2\uac\gac_msil\NPanday.Plugin.Loader\0.9-SNAPSHOT__NPanday.Plugin\NPanday.Plugin.Loader.exe, Message = Unable to download the artifact from any repository

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: NPANDAY-180-020: Problem in resolving artifact: Assembly Artifact Id = NPanday.Plugin.Loader, Type = exe, Local Path Check = C:\Documents and Settings\wsmoak\.m2\uac\gac_msil\NPanday.Plugin.Loader\0.9-SNAPSHOT__NPanday.Plugin\NPanday.Plugin.Loader.exe, Message = Unable to download the artifact from any repository
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
        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:585)
        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)
Caused by: org.apache.maven.plugin.MojoExecutionException: NPANDAY-180-020: Prob
lem in resolving artifact: Assembly Artifact Id = NPanday.Plugin.Loader, Type =
exe, Local Path Check = C:\Documents and Settings\wsmoak\.m2\uac\gac_msil\NPanda
y.Plugin.Loader\0.9-SNAPSHOT__NPanday.Plugin\NPanday.Plugin.Loader.exe, Message
= Unable to download the artifact from any repository
        at npanday.plugin.vsinstaller.VsInstallerMojo.execute(VsInstallerMojo.java:139)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
        ... 16 more
Caused by: java.io.IOException: NPANDAY-180-020: Problem in resolving artifact:
Assembly Artifact Id = NPanday.Plugin.Loader, Type = exe, Local Path Check = C:\
Documents and Settings\wsmoak\.m2\uac\gac_msil\NPanday.Plugin.Loader\0.9-SNAPSHO
T__NPanday.Plugin\NPanday.Plugin.Loader.exe, 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.vsinstaller.VsInstallerMojo.execute(VsInstallerMojo.java:134)
        ... 18 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 minutes 4 seconds
[INFO] Finished at: Wed Jan 28 14:49:54 MST 2009
[INFO] Final Memory: 7M/15M
[INFO] ------------------------------------------------------------------------

Thanks,
--
Wendy





Coordinator
Jan 28, 2009 at 11:42 PM
Hi Wendy,

After:
                  bootstrap-build.bat -DrdfProfile.none -DVisualStudio2005

you can run:
                  mvn npanday.plugin:maven-vsinstaller-plugin:install

Thanks,

Joe
Developer
Jan 29, 2009 at 3:54 AM
Joe wrote
> you can run:
>                  mvn npanday.plugin:maven-vsinstaller-plugin:install

That's the same command I'm using, just without the version number, and I get the same error.  It must be something else.

I do still see a case difference with NPanday/plugin vs NPanday/Plugin/, like I mentioned on the 0.9.6-RC1 thread and opened an issue for, however I'm using file:// repos all on Windows so the case shouldn't matter here.

Interesting... it's looking for NPanday.Plugin.Loader-0.9-20090128.201320-4.exe

And in my "remote" repo, I only have a pom for build number 4, there's no exe:

$ ls dotnet-repository-builder/target/npanday-repository/NPanday/plugin/NPanday.Plugin.Loader/0.9-SNAPSHOT/
NPanday.Plugin.Loader-0.9-20090122.025932-1.exe
NPanday.Plugin.Loader-0.9-20090122.025932-1.exe.md5
NPanday.Plugin.Loader-0.9-20090122.025932-1.exe.sha1
NPanday.Plugin.Loader-0.9-20090122.025932-1.pom
NPanday.Plugin.Loader-0.9-20090122.025932-1.pom.md5
NPanday.Plugin.Loader-0.9-20090122.025932-1.pom.sha1
NPanday.Plugin.Loader-0.9-20090122.025932-2.pom
NPanday.Plugin.Loader-0.9-20090122.025932-2.pom.md5
NPanday.Plugin.Loader-0.9-20090122.025932-2.pom.sha1
NPanday.Plugin.Loader-0.9-20090128.201320-3.exe
NPanday.Plugin.Loader-0.9-20090128.201320-3.exe.md5
NPanday.Plugin.Loader-0.9-20090128.201320-3.exe.sha1
NPanday.Plugin.Loader-0.9-20090128.201320-3.pom
NPanday.Plugin.Loader-0.9-20090128.201320-3.pom.md5
NPanday.Plugin.Loader-0.9-20090128.201320-3.pom.sha1
NPanday.Plugin.Loader-0.9-20090128.201320-4.pom
NPanday.Plugin.Loader-0.9-20090128.201320-4.pom.md5
NPanday.Plugin.Loader-0.9-20090128.201320-4.pom.sha1
maven-metadata.xml
maven-metadata.xml.md5
maven-metadata.xml.sha1

There must have been a problem with the build.  I'll clean everything up and will try again with the additional -DrdfProfile.none that you suggested.

Thanks,
--
Wendy
Developer
Jan 29, 2009 at 5:10 AM
After cleaning up (mvn clean from the top does not do it -- it misses assemblies, plugins, and misc) I tried again.

Now the build fails looking for an artifact that it ought to have built!

F:\svn\npanday>bootstrap-build.bat -DrdfProfile.none -DVisualStudio2005
...

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: npanday
ArtifactId: dotnet-repository-builder
Version: 0.9-SNAPSHOT

Reason: Unable to download the artifact from any repository

I can't tell because I don't have enough history in my terminal to scroll up, but I assume it's in misc/npanday-repository-builder looking for this tarball to unpack and include in the final repo.

--
Wendy

Coordinator
Jan 29, 2009 at 6:40 AM
Looks like a version mismatch - everything should be 0.9.6-SNAPSHOT now?

- Brett

On 29/01/2009, at 5:10 PM, wsmoak wrote:

From: wsmoak

After cleaning up (mvn clean from the top does not do it -- it misses assemblies, plugins, and misc) I tried again.

Now the build fails looking for an artifact that it ought to have built!

F:\svn\npanday>bootstrap-build.bat -DrdfProfile.none -DVisualStudio2005
...

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: npanday
ArtifactId: dotnet-repository-builder
Version: 0.9-SNAPSHOT

Reason: Unable to download the artifact from any repository

I can't tell because I don't have enough history in my terminal to scroll up, but I assume it's in misc/npanday-repository-builder looking for this tarball to unpack and include in the final repo.

--
Wendy


Developer
Jan 29, 2009 at 2:48 PM
Brett wrote:
> Looks like a version mismatch - everything should be 0.9.6-SNAPSHOT now?

As of r24732, the version number in poms is still 0.9-SNAPSHOT.

Something must be going wrong in the dotnet-repository-builder.  The target/npanday-repository directory there is blank and there is no .tar.gz file.

However, the build doesn't fail, (or the bootstrap build script doesn't recognize the failure and stop it?) so it goes on to try to build the final npanday repository .tar.gz.

I'll try again later and capture all the output to a file so I can see what's going on.

Thanks,
--
Wendy