Skip to content

Commit

Permalink
add language server support
Browse files Browse the repository at this point in the history
  • Loading branch information
ipa-nhg committed Dec 17, 2021
1 parent 3c01e7b commit ae2a54d
Show file tree
Hide file tree
Showing 30 changed files with 917 additions and 10 deletions.
125 changes: 125 additions & 0 deletions plugins/de.fraunhofer.ipa.componentInterface.xtext.ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,131 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>generate-sources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/libs</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<excludeTransitive>true</excludeTransitive>
<stripVersion>true</stripVersion>
<excludeArtifactIds>
com.ibm.icu,
org.apache.ant,
org.apache.commons.lang,
org.apache.commons.logging,
org.eclipse.core.commands,
org.eclipse.core.contenttype,
org.eclipse.core.expressions,
org.eclipse.core.filesystem,
org.eclipse.core.jobs,
org.eclipse.core.resources,
org.eclipse.core.runtime,
org.eclipse.core.variables,
org.eclipse.debug.core,
org.eclipse.emf.codegen.ecore,
org.eclipse.emf.codegen,
org.eclipse.emf.mwe.core,
org.eclipse.emf.mwe.utils,
org.eclipse.emf.mwe2.lib,
org.eclipse.emf.mwe2.runtime,
org.eclipse.equinox.app,
org.eclipse.equinox.preferences,
org.eclipse.equinox.registry,
org.eclipse.jdt.core,
org.eclipse.jdt.debug,
org.eclipse.jdt.launching,
org.eclipse.text,
org.eclipse.xtend.typesystem.emf,
org.eclipse.xtend,
</excludeArtifactIds>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.googlecode.addjars-maven-plugin</groupId>
<artifactId>addjars-maven-plugin</artifactId>
<version>1.0.5</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>add-jars</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>${project.build.directory}/libs</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.eclipse.xtext.ide.server.ServerLauncher</mainClass>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>plugin.properties</resource>
</transformer>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/INDEX.LIST</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>.options</exclude>
<exclude>.api_description</exclude>
<exclude>*.profile</exclude>
<exclude>*.html</exclude>
<exclude>about.*</exclude>
<exclude>about_files/*</exclude>
<exclude>plugin.xml</exclude>
<exclude>modeling32.png</exclude>
<exclude>systembundle.properties</exclude>
<exclude>profile.list</exclude>
<exclude>**/*._trace</exclude>
<exclude>**/*.g</exclude>
<exclude>**/*.mwe2</exclude>
<exclude>**/*.xtext</exclude>
</excludes>
</filter>
</filters>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>ls</shadedClassifierName>
<minimizeJar>false</minimizeJar>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
14 changes: 14 additions & 0 deletions plugins/de.fraunhofer.ipa.ros.externalDependencies/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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/J2SE-1.5">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
23 changes: 23 additions & 0 deletions plugins/de.fraunhofer.ipa.ros.externalDependencies/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>de.fraunhofer.ipa.ros.externalDependencies</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
117 changes: 117 additions & 0 deletions plugins/de.fraunhofer.ipa.ros.externalDependencies/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001 XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>de.fraunhofer.ipa.ros.externalDependencies</groupId>
<artifactId>de.fraunhofer.ipa.ros.externalDependencies</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<properties>
<sprottyVersion>0.7.0-SNAPSHOT</sprottyVersion>
<elkVersion>0.5.0</elkVersion>
</properties>

<repositories>
<repository>
<id>sonatype-oss</id>
<name>sonatype-oss</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>

<build>
<plugins>
<plugin>
<groupId>org.reficio</groupId>
<artifactId>p2-maven-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<id>default-cli</id>
<configuration>
<featureDefinitions>
<feature>
<id>de.fraunhofer.ipa.ros.externalDependencies</id>
<version>${project.version}</version>
<label>ROS Model Maven dependencies</label>
<providerName>${project.groupId}</providerName>
<description>${project.description}</description>
<artifacts>
<!-- specify your dependencies here -->
<!-- groupId:artifactId:version -->
<artifact>
<id>org.ow2.asm:asm:7.0</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.ow2.asm:asm-commons:7.0</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.ow2.asm:asm-tree:7.0</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.eclipse.sprotty:org.eclipse.sprotty:${sprottyVersion}</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.eclipse.sprotty:org.eclipse.sprotty.server:${sprottyVersion}</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.eclipse.sprotty:org.eclipse.sprotty.xtext:${sprottyVersion}</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.eclipse.sprotty:org.eclipse.sprotty.layout:${sprottyVersion}</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.eclipse.elk:org.eclipse.elk.alg.layered:${elkVersion}</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.eclipse.elk:org.eclipse.elk.alg.common:${elkVersion}</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.eclipse.elk:org.eclipse.elk.core:${elkVersion}</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.eclipse.elk:org.eclipse.elk.graph:${elkVersion}</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>com.google.code.gson:gson:2.8.5</id>
<transitive>false</transitive>
</artifact>
</artifacts>
</feature>
</featureDefinitions>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.5.v20120716</version>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<webAppSourceDirectory>${project.build.directory}/repository/</webAppSourceDirectory>
<webApp>
<contextPath>/site</contextPath>
</webApp>
</configuration>
</plugin>

</plugins>
</build>

</project>
6 changes: 6 additions & 0 deletions plugins/de.fraunhofer.ipa.ros.parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<module>../de.fraunhofer.ipa.ros.plugin</module>
<module>../de.fraunhofer.ipa.ros.sirius</module>
<module>../de.fraunhofer.ipa.ros.feature</module>

</modules>

<repositories>
Expand All @@ -76,6 +77,11 @@
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>external-deps</id>
<layout>p2</layout>
<url>http://ros-model.seronet-project.de/external-dependencies/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
Expand Down
17 changes: 17 additions & 0 deletions plugins/de.fraunhofer.ipa.ros.updatesite/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>de.fraunhofer.ipa.ros.updatesite</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.UpdateSiteBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.UpdateSiteNature</nature>
</natures>
</projectDescription>
16 changes: 16 additions & 0 deletions plugins/de.fraunhofer.ipa.ros.updatesite/category.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature id="de.fraunhofer.ipa.ros.feature">
<category name="ros-model"/>
</feature>
<category-def name="ros-model" label="ROS Model">
<description>
This feature holds a family of metamodels defined as ecore models
that together with its java and Xtext and Xtend grammar implementations
facilitates the use of a set of tools and graphical plugins to
create models from ROS code, compose and validate the composition
of models, autogenerate deployment artifacts and check the use
of standard specifications.
</description>
</category-def>
</site>
26 changes: 26 additions & 0 deletions plugins/de.fraunhofer.ipa.ros.updatesite/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>de.fraunhofer.ipa.ros</groupId>
<artifactId>de.fraunhofer.ipa.ros.parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<relativePath>../de.fraunhofer.ipa.ros.parent/pom.xml</relativePath>
</parent>
<artifactId>de.fraunhofer.ipa.ros.updatesite</artifactId>
<packaging>eclipse-repository</packaging>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit ae2a54d

Please sign in to comment.