Skip to content

Commit ac937a0

Browse files
authored
Merge pull request #774 from Systems-Modeling/ST6RI-943
ST6RI-943 Restore ability to install and run without Maven build
2 parents ed5612d + 29f7abc commit ac937a0

6 files changed

Lines changed: 36 additions & 19 deletions

File tree

README.adoc

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ image:oomph-projects.png[oomph projects]
4141
9. (Optional) For PlantUML visualization, GraphViz is needed. Visit https://www.graphviz.org/download/ and download the appropriate package for your environment.
4242
* In the menu of Window > Preferences > PlantUML in Eclipse environment, you may set up the path to GraphViz executable if Eclipse cannot automatically find it. For detail, visit https://plantuml.com/en/eclipse
4343

44+
*Note.* If you are going to be changing code, you should do a Maven build once the installation build completes, as described in item 5 below.
4445

4546
==== Manual installation
4647

@@ -62,22 +63,31 @@ image:oomph-projects.png[oomph projects]
6263
* `https://github.com/Systems-Modeling/SySML-v2-Pilot-Implementation.git`
6364

6465
3. Import projects from the repository into your Eclipse workspace. This should include at least the projects:
65-
* `org.omg.sysml`
6666
* `org.omg.kerml.expressions.xtext`
6767
* `org.omg.kerml.expressions.xtext.ide`
6868
* `org.omg.kerml.expressions.xtext.ui`
6969
* `org.omg.kerml.xtext`
7070
* `org.omg.kerml.xtext.ide`
7171
* `org.omg.kerml.xtext.ui`
72+
* `org.omg.sysml`
73+
* `org.omg.sysml.logic`
74+
* `org.omg.sysml.logic.bundle`
75+
* `org.omg.sysml.model`
76+
* `org.omg.sysml.model.bundle`
77+
* `org.omg.sysml.target`
7278
* `org.omg.sysml.xtext`
7379
* `org.omg.sysml.xtext.ide`
7480
* `org.omg.sysml.xtext.ui`
7581

76-
4. https://maven.apache.org/[Maven] is used to perform a coordinated build of all projects (including packaging the SysML Interactive JAR file that is used by `org.omg.sysml.jupyter`).
77-
* To build the repository, invoke `mvn clean package` from the base `SysML-v2-Pilot-Implementation` directory.
78-
* If you have https://www.eclipse.org/m2e/[M2Eclipse] installed (with the Tycho Project Configurators connector), it can also launch a Maven build in Eclipse using the launch configuration in `SysML-v2-Pilot-Implementation/launch`.
82+
4. In the project `org.omg.sysml.target`, open `org.omg.sysml.target.target`.
83+
* Click the Refresh button on the right. When the refresh is complete, it should show "nnn plug-ins available" next to each URL.
84+
* Click "Reload Target Platform" on the upper right.
85+
86+
5. https://maven.apache.org/[Maven] is used to perform a coordinated build of all projects.
87+
* To build the repository, invoke `mvn clean install` from the base `SysML-v2-Pilot-Implementation` directory.
88+
* If you have https://www.eclipse.org/m2e/[M2Eclipse] installed (with the Tycho Project Configurators connector), it can also launch a Maven build in Eclipse using the launch configuration in `SysML-v2-Pilot-Implementation/launch`.
7989

80-
=== Prototype SysML Implementation
90+
=== Runtime Editing Environment
8191

8292
==== Getting Started
8393
1. Right click on project `org.omg.sysml`, and select Run As > Eclipse Application. This should launch a new runtime Eclipse instance.
@@ -115,7 +125,7 @@ image:project-wizard.png[project wizard]
115125

116126
5. Right-click the new project and select Configure > Convert to an Xtext project. This step sets up the indexing infrastructure necessary for resolving references between different files.
117127

118-
6. Create any text files with `.kerml` or `.sysml` extensions to start working with a new file.
128+
6. Create a text file with a `.kerml` or `.sysml` extension to start working with a new file.
119129

120130
**Note:** Adding the project references to an existing project can be done in the project Properties dialog available from the popup menu on the project in the Project References page.
121131

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
target/
2-
lib/
32
model/
Binary file not shown.

org.omg.sysml.logic.bundle/pom.xml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,31 @@
3030
<plugins>
3131
<!-- Copy org.omg.sysml.logic jar in lib/ before the Tycho build -->
3232
<plugin>
33-
<artifactId>maven-antrun-plugin</artifactId>
34-
<version>${maven-antrun-plugin.version}</version>
33+
<groupId>org.apache.maven.plugins</groupId>
34+
<artifactId>maven-resources-plugin</artifactId>
35+
<version>${maven-resources-plugin.version}</version>
3536
<executions>
3637
<execution>
3738
<id>copy-jar-org.omg.sysml.logic</id>
3839
<phase>initialize</phase>
3940
<goals>
40-
<goal>run</goal>
41+
<goal>copy-resources</goal>
4142
</goals>
4243
<configuration>
43-
<target>
44-
<mkdir dir="${project.basedir}/lib"/>
45-
<copy file="${project.basedir}/../org.omg.sysml.logic/target/org.omg.sysml.logic-${project.version}.jar"
46-
tofile="${project.basedir}/lib/org.omg.sysml.logic-${project.version}.jar"
47-
overwrite="true"/>
48-
</target>
44+
<outputDirectory>${project.basedir}/lib</outputDirectory>
45+
<resources>
46+
<resource>
47+
<directory>${project.basedir}/../org.omg.sysml.logic/target</directory>
48+
<includes>
49+
<include>org.omg.sysml.logic-*.jar</include>
50+
</includes>
51+
<excludes>
52+
<exclude>*-sources.jar</exclude>
53+
<exclude>*-tests.jar</exclude>
54+
</excludes>
55+
<filtering>false</filtering>
56+
</resource>
57+
</resources>
4958
</configuration>
5059
</execution>
5160
</executions>
@@ -69,10 +78,10 @@
6978
<pluginExecution>
7079
<pluginExecutionFilter>
7180
<groupId>org.apache.maven.plugins</groupId>
72-
<artifactId>maven-antrun-plugin</artifactId>
81+
<artifactId>maven-resources-plugin</artifactId>
7382
<versionRange>[0,)</versionRange>
7483
<goals>
75-
<goal>run</goal>
84+
<goal>copy-resources</goal>
7685
</goals>
7786
</pluginExecutionFilter>
7887
<action>
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
target/
2-
lib/
32
model/
Binary file not shown.

0 commit comments

Comments
 (0)