Anhand der Wiki-Seite zum IDE Setup habe ich versucht einen Clone zu kompilieren. Allerdings habe ich ein Problem beim Ausführen der launch-Files.
Es kommt jedesmal die Meldung:
Daraufhin habe ich mir die SLF4J bindings runtergeladen und entpackt. Die Datei slf4j-simple-1.7.5.jar habe ich ins Verzeichnis
gepackt.
Das hat allerdings nicht geholfen... Hat jemand eine Idee?
Versuche ich über die Kommandozeile den Befehl "mvn clean install" bekomme ich folgende Ausgabe:
Der Befehl
"mvn archetype:generate -B -DarchetypeGroupId=org.openhab.archetype -DarchetypeArtifactId=org.openhab.archetype.binding -DarchetypeVersion=1.2.0-SNAPSHOT -Dauthor=user -Dversion=1.2.0 -DartifactId=org.openhab.binding.http -Dpackage=org.openhab.binding.http -Dbinding-name=http"
erzeugt folgende Ausgabe:
Auch hier wäre ich dankbar für jede Hilfe.
Hier noch die Versionsinformationen:
Es kommt jedesmal die Meldung:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See SLF4J Error Codes for further details.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See SLF4J Error Codes for further details.
C:\Programme\Java\jdk1.7.0_25\jre\lib
Das hat allerdings nicht geholfen... Hat jemand eine Idee?
Versuche ich über die Kommandozeile den Befehl "mvn clean install" bekomme ich folgende Ausgabe:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building org.openhab.archetype.binding 1.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ org.openhab.archetyp
e.binding ---
[INFO] Deleting C:\openhab_repo\openhab\bundles\archetype\org.open hab.archetype.
binding\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ org.openha
b.archetype.binding ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 13 resources
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ or
g.openhab.archetype.binding ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\openhab_repo\openhab\bundles\arche
type\org.openhab.archetype.binding\src\test\resour ces
[INFO]
[INFO] --- maven-archetype-plugin:2.2:jar (default-jar) @ org.openhab.archetype.
binding ---
[INFO] Building archetype jar: C:\openhab_repo\openhab\bundles\archetype\org.ope
nhab.archetype.binding\target\org.openhab.archetyp e.binding-1.2.0-SNAPSHOT
[INFO]
[INFO] --- maven-archetype-plugin:2.2:integration-test (default-integration-test
) @ org.openhab.archetype.binding ---
[WARNING] No Archetype IT projects: root 'projects' directory not found.
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ org.openhab.arch
etype.binding ---
[INFO] Installing C:\openhab_repo\openhab\bundles\archetype\org.open hab.archetyp
e.binding\target\org.openhab.archetype.binding-1.2.0-SNAPSHOT.jar to C:\...\.m2\repository\org\openhab\archetype\org.op enhab.ar
chetype.binding\1.2.0-SNAPSHOT\org.openhab.archetype.binding-1.2.0-SNAPSHOT.jar
[INFO] Installing C:\openhab_repo\openhab\bundles\archetype\org.open hab.archetyp
e.binding\pom.xml to C:\...\.m2\repository\org\
openhab\archetype\org.openhab.archetype.binding\1. 2.0-SNAPSHOT\org.openhab.arche
type.binding-1.2.0-SNAPSHOT.pom
[INFO]
[INFO] --- maven-archetype-plugin:2.2:update-local-catalog (default-update-local
-catalog) @ org.openhab.archetype.binding ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.610s
[INFO] Finished at: Thu Jun 27 21:28:55 CEST 2013
[INFO] Final Memory: 12M/247M
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building org.openhab.archetype.binding 1.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ org.openhab.archetyp
e.binding ---
[INFO] Deleting C:\openhab_repo\openhab\bundles\archetype\org.open hab.archetype.
binding\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ org.openha
b.archetype.binding ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 13 resources
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ or
g.openhab.archetype.binding ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\openhab_repo\openhab\bundles\arche
type\org.openhab.archetype.binding\src\test\resour ces
[INFO]
[INFO] --- maven-archetype-plugin:2.2:jar (default-jar) @ org.openhab.archetype.
binding ---
[INFO] Building archetype jar: C:\openhab_repo\openhab\bundles\archetype\org.ope
nhab.archetype.binding\target\org.openhab.archetyp e.binding-1.2.0-SNAPSHOT
[INFO]
[INFO] --- maven-archetype-plugin:2.2:integration-test (default-integration-test
) @ org.openhab.archetype.binding ---
[WARNING] No Archetype IT projects: root 'projects' directory not found.
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ org.openhab.arch
etype.binding ---
[INFO] Installing C:\openhab_repo\openhab\bundles\archetype\org.open hab.archetyp
e.binding\target\org.openhab.archetype.binding-1.2.0-SNAPSHOT.jar to C:\...\.m2\repository\org\openhab\archetype\org.op enhab.ar
chetype.binding\1.2.0-SNAPSHOT\org.openhab.archetype.binding-1.2.0-SNAPSHOT.jar
[INFO] Installing C:\openhab_repo\openhab\bundles\archetype\org.open hab.archetyp
e.binding\pom.xml to C:\...\.m2\repository\org\
openhab\archetype\org.openhab.archetype.binding\1. 2.0-SNAPSHOT\org.openhab.arche
type.binding-1.2.0-SNAPSHOT.pom
[INFO]
[INFO] --- maven-archetype-plugin:2.2:update-local-catalog (default-update-local
-catalog) @ org.openhab.archetype.binding ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.610s
[INFO] Finished at: Thu Jun 27 21:28:55 CEST 2013
[INFO] Final Memory: 12M/247M
[INFO] ------------------------------------------------------------------------
"mvn archetype:generate -B -DarchetypeGroupId=org.openhab.archetype -DarchetypeArtifactId=org.openhab.archetype.binding -DarchetypeVersion=1.2.0-SNAPSHOT -Dauthor=user -Dversion=1.2.0 -DartifactId=org.openhab.binding.http -Dpackage=org.openhab.binding.http -Dbinding-name=http"
erzeugt folgende Ausgabe:
[INFO] Scanning for projects...
[ERROR] Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.openhab:targetplatform:target
penhab:1.3.0-SNAPSHOT -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.openhab:target platform:target
penhab:1.3.0-SNAPSHOT
at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:168)
at org.apache.maven.cli.MavenCli.execute(MavenCli.jav a:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java :196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:1 41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher. launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher. launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher. mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher. main(Launcher.java:
352)
Caused by: java.lang.RuntimeException: Could not resolve target platform specifi
cation artifact org.openhab:targetplatform:target
penhab:1.3.0-SNAPSHOT
at org.eclipse.tycho.core.resolver.DefaultTargetPlatf ormConfigurationRea
der.addTargetArtifact(DefaultTargetPlatformConfigu rationReader.java:334)
at org.eclipse.tycho.core.resolver.DefaultTargetPlatf ormConfigurationRea
der.setTarget(DefaultTargetPlatformConfigurationRe ader.java:288)
at org.eclipse.tycho.core.resolver.DefaultTargetPlatf ormConfigurationRea
der.getTargetPlatformConfiguration(DefaultTargetPl atformConfigurationReader.java
:71)
at org.eclipse.tycho.core.resolver.DefaultTychoDepend encyResolver.setupP
roject(DefaultTychoDependencyResolver.java:78)
at org.eclipse.tycho.core.maven.TychoMavenLifecyclePa rticipant.afterProj
ectsRead(TychoMavenLifecycleParticipant.java:77)
at org.apache.maven.DefaultMaven.doExecute(DefaultMav en.java:274)
at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:156)
... 11 more
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/d...ErrorException
[ERROR] Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.openhab:targetplatform:target

org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.openhab:target platform:target

at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:168)
at org.apache.maven.cli.MavenCli.execute(MavenCli.jav a:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java :196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:1 41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher. launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher. launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher. mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher. main(Launcher.java:
352)
Caused by: java.lang.RuntimeException: Could not resolve target platform specifi
cation artifact org.openhab:targetplatform:target

at org.eclipse.tycho.core.resolver.DefaultTargetPlatf ormConfigurationRea
der.addTargetArtifact(DefaultTargetPlatformConfigu rationReader.java:334)
at org.eclipse.tycho.core.resolver.DefaultTargetPlatf ormConfigurationRea
der.setTarget(DefaultTargetPlatformConfigurationRe ader.java:288)
at org.eclipse.tycho.core.resolver.DefaultTargetPlatf ormConfigurationRea
der.getTargetPlatformConfiguration(DefaultTargetPl atformConfigurationReader.java
:71)
at org.eclipse.tycho.core.resolver.DefaultTychoDepend encyResolver.setupP
roject(DefaultTychoDependencyResolver.java:78)
at org.eclipse.tycho.core.maven.TychoMavenLifecyclePa rticipant.afterProj
ectsRead(TychoMavenLifecycleParticipant.java:77)
at org.apache.maven.DefaultMaven.doExecute(DefaultMav en.java:274)
at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:156)
... 11 more
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/d...ErrorException
Hier noch die Versionsinformationen:
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 14:51:28+0100)
Maven home: C:\Program Files\Apache Software Foundation\apache-maven-3.0.5
Java version: 1.7.0_25, vendor: Oracle Corporation
Java home: C:\Programme\Java\jdk1.7.0_25\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
Maven home: C:\Program Files\Apache Software Foundation\apache-maven-3.0.5
Java version: 1.7.0_25, vendor: Oracle Corporation
Java home: C:\Programme\Java\jdk1.7.0_25\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
Kommentar