Hello,
Does somebody have an idea why I get this error:
[ERROR] Failed to execute goal
org.apache.npanday.plugins:maven-resgen-plugin:1.4.0-incubating:generate-existing-resx-to-resource
(default-generate-existing-resx-to-resource) on project PowerShellV2:
NPANDAY-1501-003: Platform Unsupported: NPANDAY-065-002: Could not match
platform: OS = Windows 8, Number of Capabilities = 41, Number of Policies =
4 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal
org.apache.npanday.plugins:maven-resgen-plugin:1.4.0-incubating:generate-existing-resx-to-resource
(default-generate-existing-resx-to-resource) on project PowerShellV2:
NPANDAY-1501-003: Platform Unsupported
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Caused by: org.apache.maven.plugin.MojoExecutionException:
NPANDAY-1501-003: Platform Unsupported
at
npanday.plugin.resgen.ExistingResxGenerator.execute(ExistingResxGenerator.java:146)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 25 more
Caused by: npanday.PlatformUnsupportedException: NPANDAY-065-002: Could not
match platform: OS = Windows 8, Number of Capabilities = 41, Number of
Policies = 4
at
npanday.executable.impl.CapabilityMatcherImpl.matchFromExecutableCapabilities(CapabilityMatcherImpl.java:135)
at
npanday.executable.impl.CapabilityMatcherImpl.matchExecutableCapabilityFor(CapabilityMatcherImpl.java:118)
at
npanday.executable.impl.CapabilityMatcherImpl.matchExecutableCapabilityFor(CapabilityMatcherImpl.java:91)
at
npanday.executable.impl.ExecutableContextImpl.init(ExecutableContextImpl.java:110)
at
npanday.executable.impl.NetExecutableFactoryImpl.getNetExecutableFor(NetExecutableFactoryImpl.java:447)
at
npanday.plugin.resgen.ExistingResxGenerator.execute(ExistingResxGenerator.java:117)
... 27 more
My pom.xml contains:
<build>
<plugins>
<plugin>
<groupId>org.apache.npanday.plugins</groupId>
<artifactId>maven-compile-plugin</artifactId>
<version>1.4.0-incubating</version>
<extensions>true</extensions>
<configuration>
<frameworkVersion>4.0</frameworkVersion>
<isDebug>true</isDebug>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.npanday.plugins</groupId>
<artifactId>maven-resgen-plugin</artifactId>
<version>1.4.0-incubating</version>
<extensions>true</extensions>
<configuration>
<frameworkVersion>4.0</frameworkVersion>
<embeddedResources>
<embeddededResource>
<sourceFile>Properties\ExceptionMsgsPowerShellV2.resx</sourceFile>
<name>PowerShellV2.src.main.csharp.Properties.ExceptionMsgsPowerShellV2</name>
</embeddededResource>
</embeddedResources>
</configuration>
</plugin>
</plugins>
</build>
And npanday-settings.xml contains:
...
<operatingSystem>Microsoft Windows NT 6.2.9200.0</operatingSystem>
<defaultSetup>
<vendorName>MICROSOFT</vendorName>
<vendorVersion>4.0</vendorVersion>
<frameworkVersion>4.0</frameworkVersion>
</defaultSetup>
...
<vendor>
<vendorName>MICROSOFT</vendorName>
<vendorVersion>4.0</vendorVersion>
<frameworks>
<framework>
<frameworkVersion>4.0</frameworkVersion>
<installRoot>C:\Windows\Microsoft.NET\Framework\v4.0.30319</installRoot>
<executablePaths>
<executablePath>C:\Windows\Microsoft.NET\Framework\v4.0.30319</executablePath>
<executablePath>C:\Program Files\Microsoft
SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools</executablePath>
</executablePaths>
</framework>
</frameworks>
</vendor>
I also try with
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools
and
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
but I get the same error.
Then I try to run the resgen.exe from command prompt from all 3 locations
and it goes to success.
What I understand is that the plugin doesn't want to run resgen.exe because
of some sort of capabilities written in dotnet-core/executable-plugins.xml
Thanks,
Octavian
BTW: I have win 8.0 and .net 2.0,3.0,3.5, 4.0 and 4.5