Need help creating binding skeleton: problem with maven archetype

Hi,

I tried to create a new binding skeleton as described in the wiki.
Unfortunately step 5 doesn’t work for me:

mvn archetype:generate -B -DarchetypeGroupId=org.openhab.archetype -DarchetypeArtifactId=org.openhab.archetype.binding -DarchetypeVersion=1.8.0-SNAPSHOT -Da
uthor=Sebastian -Dversion=0.1 -DartifactId=org.openhab.binding.artnet -Dpackage=org.openhab.binding.artnet -Dbinding-name=ARTNET

[INFO] Scanning for projects...
[ERROR] Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.openhab:targetplatform:target:openhab:1.8.0-SNAPSHOT -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.openhab:targetplatform:target:openhab:1.8.0-SNAPSHOT
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:121)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.RuntimeException: Could not resolve target platform specification artifact org.openhab:targetplatform:target:openhab:1.8.0-SNAPSHOT
        at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.addTargetArtifact(DefaultTargetPlatformConfigurationReader.java:388)
        at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.setTarget(DefaultTargetPlatformConfigurationReader.java:342)
        at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.getTargetPlatformConfiguration(DefaultTargetPlatformConfigurationReader.java:75)
        at org.eclipse.tycho.core.resolver.DefaultTychoResolver.setupProject(DefaultTychoResolver.java:86)
        at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:72)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:266)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        ... 11 more
[ERROR]

What have I done wrong?

There seems to be some issue with the urtsi-binding.
The “mvn clean install” didn’t run through.
What can I do?

[ERROR] Failed to execute goal org.eclipse.xtend:xtend-maven-plugin:2.3.0:compile (default) on project org.openhab.binding.urtsi: Error compiling xtend sources in ‘C:\Eigene Daten\Git\openhab\bundles
binding\org.openhab.binding.urtsi\src\main\java’. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.xtend:xtend-maven-plugin:2.3.0:compile (default) on project org.openhab.binding.urtsi: Error compiling xtend
sources in ‘C:\Eigene Daten\Git\openhab\bundles\binding\org.openhab.binding.urtsi\src\main\java’.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
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:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error compiling xtend sources in ‘C:\Eigene Daten\Git\openhab\bundles\binding\org.openhab.binding.urtsi\src\main\java’.
at org.eclipse.xtend.maven.AbstractXtend2CompilerMojo.compile(AbstractXtend2CompilerMojo.java:105)
at org.eclipse.xtend.maven.XtendCompile.compileSources(XtendCompile.java:53)
at org.eclipse.xtend.maven.XtendCompile.internalExecute(XtendCompile.java:45)
at org.eclipse.xtend.maven.AbstractXtend2CompilerMojo.execute(AbstractXtend2CompilerMojo.java:69)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
… 20 more

Until somebody figures out what’s wrong could anybody create an empty skeleton for a binding + action for me?

creating a new binding using the archetype works for me (tested a minute ago with 1.8.0-SNAPSHOT). From the given error i would assume something went wrong with step 1 "issue a complete maven build mvn clean install

That’s what I was writing in the reply to myself.
The mvn clean install doesn’t run through, but I don’t know why.
Do you have any idea?

some users complained about problems when using spaces in the path-name. Could that be the problem here as well?

Additionally there seems to be a problem when the folders and file names are longer then 256 characters. I changed the path to c:\oh\ and everything works fine.

Same here like in the first 2 posts. Don’t have spaces or long folder names
E:\openhab

Try E:\oh\

In my case i forgot that oh does not work well when using maven proxies, builds fine without proxies set in the maven settings.xml