Releasing WPF projects

Aug 26, 2010 at 8:57 AM

Hi All,

 

I have a problem when trying to release a WPF project. During prepare phase I get the following error:

 

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
......
[INFO] ------------------------------------------------------------------------
[INFO] Building PIWorks.PIEMS : PIWorks.PIEMS-parent
[INFO]    task-segment: [release:prepare, release:perform] (aggregator-style)
[INFO] ------------------------------------------------------------------------
Downloading: http://..../nexus/content/groups/public/PresentationCore/PresentationCore/3.0.0.0/PresentationCore-3.0.0.0.pom
[INFO] Unable to find resource 'PresentationCore:PresentationCore:pom:3.0.0.0' in repository npanday.repo.0 (http:/..../nexus/content/groups/public)
Downloading: http://..../nexus/content/groups/public/PresentationCore/PresentationCore/3.0.0.0/PresentationCore-3.0.0.0.pom
.....
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) WindowsBase:WindowsBase:gac_msil:31bf3856ad364e35:3.0.0.0

 ....

2) UIAutomationProvider:UIAutomationProvider:gac_msil:31BF3856AD364E35:3.0.0.0

  ......

3) PresentationCore:PresentationCore:gac_64:31bf3856ad364e35:3.0.0.0

  .......

4) PresentationFramework:PresentationFramework:gac_msil:31bf3856ad364e35:3.0.0.0

  ......

----------
4 required artifacts are missing.

for artifact:
  .....:winexe:1.1.0-SNAPSHOT

from the specified remote repositories:
  internal (http://..../nexus/content/groups/public)

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Missing:

.....

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:711)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    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)
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:

.....

at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:360)
    at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:304)
    at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1499)
    at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:442)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
    ... 17 more

 

I removed repeating parts from output.

It looks like that the problem with the .net framework dll's from GAC. NPanday tries to load them from repository. This happens only when releasing project. Standard build procedure (clean install) works well - dll's are correctly resolved. Any ideas about the problem/workaround?

Coordinator
Aug 30, 2010 at 12:32 AM

You could try to install the needed .net dlls into a "3rd party" remote repository and have your settings.xml look them up so that they could be resolved. But this should be included as one of the plans for NPanday 2.0