Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Download eeas jar from maven central and copy jar for usage in IDE
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Triller <stefan.triller@telekom.de>
  • Loading branch information
triller-telekom committed Nov 15, 2017
1 parent cab572f commit b25a929
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 27 deletions.
12 changes: 2 additions & 10 deletions extensions/binding/org.eclipse.smarthome.binding.sonos/.classpath
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="annotationpath" value="/targetplatform/eea/jdk.zip"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
<attributes>
<attribute name="annotationpath" value="/targetplatform/eea/jdk.zip"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="annotationpath" value="/targetplatform/eeas.jar"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
<attributes>
<attribute name="annotationpath" value="/targetplatform/eeas.jar"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
21 changes: 10 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@
<build.helper.maven.plugin.version>1.8</build.helper.maven.plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sat.version>0.3.0</sat.version>
<eea-url>http://www.TODO.tld</eea-url>
<eea-dir>path/to/file/on/server</eea-dir>
<eea-file>jdk.zip</eea-file>
<!-- TODO: insert one project that contains ALL annotations here-->
<eea-groupId>org.lastnpe.eea</eea-groupId>
<eea-artifactId>jdk-eea</eea-artifactId>
<eea-version>0.0.1</eea-version>
</properties>

<packaging>pom</packaging>
Expand Down Expand Up @@ -184,10 +185,9 @@
<version>${jdt-annotations.version}</version>
</extraClasspathElement>
<extraClasspathElement>
<!-- TODO: insert one project that contains ALL annotations here-->
<groupId>org.lastnpe.eea</groupId>
<artifactId>jdk-eea</artifactId>
<version>0.0.1</version>
<groupId>${eea-groupId}</groupId>
<artifactId>${eea-artifactId}</artifactId>
<version>${eea-version}</version>
</extraClasspathElement>
</extraClasspathElements>
<compilerArgs>
Expand Down Expand Up @@ -577,10 +577,9 @@

<dependencies>
<dependency>
<!-- TODO: insert one project that contains ALL annotations here-->
<groupId>org.lastnpe.eea</groupId>
<artifactId>jdk-eea</artifactId>
<version>0.0.1</version>
<groupId>${eea-groupId}</groupId>
<artifactId>${eea-artifactId}</artifactId>
<version>${eea-version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
1 change: 1 addition & 0 deletions targetplatform/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/eeas.jar
17 changes: 17 additions & 0 deletions targetplatform/DownloadEEAs.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
<stringAttribute key="M2_GOALS" value="process-resources"/>
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
<booleanAttribute key="M2_OFFLINE" value="false"/>
<stringAttribute key="M2_PROFILES" value=""/>
<listAttribute key="M2_PROPERTIES"/>
<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
<intAttribute key="M2_THREADS" value="1"/>
<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
<stringAttribute key="M2_USER_SETTINGS" value=""/>
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JRE for JavaSE-1.8"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/targetplatform}"/>
</launchConfiguration>
10 changes: 6 additions & 4 deletions targetplatform/EclipseSmartHome.setup
Original file line number Diff line number Diff line change
Expand Up @@ -2422,6 +2422,12 @@
rootFolder="${git.clone.eclipsesmarthome.location/products}"
locateNestedProjects="true"/>
</setupTask>
<setupTask
xsi:type="launching:LaunchTask"
id="launch.smarthome.downloadEEAs"
launcher="DownloadEEAs">
<description>Downloads Eclipse External Annotations and places them into eeas.jar in targetplatform</description>
</setupTask>
<setupTask
xsi:type="pde:TargetPlatformTask"
id="smarthome.target"
Expand All @@ -2447,10 +2453,6 @@
content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xA;&lt;lifecycleMappingMetadata>&#xA; &lt;pluginExecutions>&#xA; &lt;pluginExecution>&#xA; &lt;pluginExecutionFilter>&#xA; &lt;groupId>org.codehaus.mojo&lt;/groupId>&#xA; &lt;artifactId>build-helper-maven-plugin&lt;/artifactId>&#xA; &lt;versionRange>1.8&lt;/versionRange>&#xA; &lt;goals>&#xA; &lt;goal>add-source&lt;/goal>&#xA; &lt;goal>add-test-source&lt;/goal>&#xA; &lt;/goals>&#xA; &lt;/pluginExecutionFilter>&#xA; &lt;action>&#xA; &lt;ignore />&#xA; &lt;/action>&#xA; &lt;/pluginExecution>&#xA; &lt;/pluginExecutions>&#xA;&lt;/lifecycleMappingMetadata>&#xA;"
targetURL="${workspace.location|uri}/.metadata/.plugins/org.eclipse.m2e.core/lifecycle-mapping-metadata.xml"
encoding="UTF-8"/>
<setupTask
xsi:type="setup:ResourceCopyTask"
sourceURL="http://www.TODO.tld/path/to/file/on/server/jdk.zip"
targetURL="${git.clone.eclipsesmarthome.location|uri}/targetplatform/eea/jdk.zip"/>
<stream
name="master"/>
</project>
Expand Down
29 changes: 29 additions & 0 deletions targetplatform/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,35 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>download-copy-eeas</id>
<phase>process-resources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${eea-groupId}</groupId>
<artifactId>${eea-artifactId}</artifactId>
<version>${eea-version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${basedir}</outputDirectory>
<destFileName>eeas.jar</destFileName>
</artifactItem>
</artifactItems>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand Down

0 comments on commit b25a929

Please sign in to comment.