Skip to content

Commit 5602c68

Browse files
Tell Eclipse to use Maven when building org.omg.sysml.xtext so that Sysand is correctly resolved
After pulling, do the following: 1. Refresh the project with: File -> Refresh 2. Update org.omg.sysml.xtext project: Maven -> Update Project 3. Rebuild
1 parent 3009d58 commit 5602c68

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

org.omg.sysml.xtext/.project

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@
2525
<arguments>
2626
</arguments>
2727
</buildCommand>
28+
<buildCommand>
29+
<name>org.eclipse.m2e.core.maven2Builder</name>
30+
<arguments>
31+
</arguments>
32+
</buildCommand>
2833
</buildSpec>
2934
<natures>
35+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
3036
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
3137
<nature>org.eclipse.jdt.core.javanature</nature>
3238
<nature>org.eclipse.pde.PluginNature</nature>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
activeProfiles=
2+
eclipse.preferences.version=1
3+
resolveWorkspaceProjects=true
4+
version=1

pom.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,34 @@
427427
</execution>
428428
</executions>
429429
</plugin>
430+
<!-- Tell Eclipse m2e to execute maven-dependency-plugin:copy so that
431+
sysand.jar is copied to lib/ automatically during workspace builds. -->
432+
<plugin>
433+
<groupId>org.eclipse.m2e</groupId>
434+
<artifactId>lifecycle-mapping</artifactId>
435+
<version>1.0.0</version>
436+
<configuration>
437+
<lifecycleMappingMetadata>
438+
<pluginExecutions>
439+
<pluginExecution>
440+
<pluginExecutionFilter>
441+
<groupId>org.apache.maven.plugins</groupId>
442+
<artifactId>maven-dependency-plugin</artifactId>
443+
<versionRange>[1.0,)</versionRange>
444+
<goals>
445+
<goal>copy</goal>
446+
</goals>
447+
</pluginExecutionFilter>
448+
<action>
449+
<execute>
450+
<runOnIncremental>false</runOnIncremental>
451+
</execute>
452+
</action>
453+
</pluginExecution>
454+
</pluginExecutions>
455+
</lifecycleMappingMetadata>
456+
</configuration>
457+
</plugin>
430458
</plugins>
431459
</pluginManagement>
432460
</build>

0 commit comments

Comments
 (0)