Skip to content

Commit

Permalink
#117 exec-java
Browse files Browse the repository at this point in the history
  • Loading branch information
eichelbe committed Oct 13, 2023
1 parent 3ced1a2 commit 2d10913
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 96 deletions.
33 changes: 0 additions & 33 deletions platform/tools/Install/container/DevContainer/impl.model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,39 +77,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>generateAppsNoDeps</id>
<configuration>
<mainClass>de.iip_ecosphere.platform.configuration.PlatformInstantiator</mainClass>
<cleanupDaemonThreads>false</cleanupDaemonThreads>
<arguments>
<argument>${ivml.file}</argument>
<argument>src/test/easy</argument>
<argument>gen/test</argument>
<argument>generateAppsNoDeps</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>generateApps</id>
<configuration>
<mainClass>de.iip_ecosphere.platform.configuration.PlatformInstantiator</mainClass>
<cleanupDaemonThreads>false</cleanupDaemonThreads>
<arguments>
<argument>${ivml.file}</argument>
<argument>src/test/easy</argument>
<argument>gen/test</argument>
<argument>generateApps</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
20 changes: 0 additions & 20 deletions platform/tools/Install/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,26 +114,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.4.0</version>
<configuration>
<mainClass>de.iip_ecosphere.platform.configuration.PlatformInstantiator</mainClass>
<cleanupDaemonThreads>false</cleanupDaemonThreads>
<arguments>
<argument>${iip.model}</argument>
<argument>src/main/easy</argument>
<argument>gen</argument>
</arguments>
<systemProperties>
<systemProperty>
<key>iip.resources</key>
<value>${project.basedir}/${iip.resources}</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>de.iip-ecosphere.platform</groupId>
<artifactId>configuration-plugin</artifactId>
Expand Down
15 changes: 8 additions & 7 deletions platform/tools/impl.model/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

Project for the application model. There is a second project in the same folder called `impl.impl` that is also required.

Typical steps:
* `mvn -U generate-sources` to obtain the meta model
##Typical steps
* `mvn -U -P EasyGen generate-sources` to obtain the meta model
* Add a basic model to `src/test/easy`, e.g., from examples or from the tests of the configuration component. Let's call the file and the IVML project "Test". If you try multiple "platforms", please also adjust `sharedArtifact`.
* In case your basic model name is not "Test", then change the "Test" name in "< argument>Test</ argument>" in pom.xml file to your basic model name - two places (generateAppsNoDeps, generateApps).
* Instantiate the application without integration `mvn exec:java@generateAppsNoDeps` (replace "Test" by the name of your model)
* Go in in the associated project `impl.impl`.
* Continue here... add the Maven artifact name of `impl.impl` as artifact for your services in your IVML file.
* `mvn exec:java@generateApps`
* Execute the result in the platform
* Instantiate the application without integration `mvn -P EasyGen configuration:generateAppsNoDeps`, in particular to obtain the generate interfaces and the implementation template (then as ZIP in `gen/impl/templates).
* Import the implementation project into Eclipse.
* Continue there.

##Optional steps
* If needed, use `mvn -U -P EasyGen generate-sources -Dunpack.force=true` to update the meta model
39 changes: 3 additions & 36 deletions platform/tools/impl.model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@
<goal>generateBroker</goal>
</goals>
</execution>
<execution>
<execution>
<id>generateAppsNoDeps</id>
<goals>
<goal>generateAppsNoDeps</goal>
</goals>
</execution>
<execution>
<execution>
<id>generateApps</id>
<goals>
<goal>generateApps</goal>
Expand All @@ -105,42 +105,9 @@
</executions>
<configuration>
<model>${iip.model}</model>
<outputDirectory>gen/py</outputDirectory>
<outputDirectory>gen/impl</outputDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>generateAppsNoDeps</id>
<configuration>
<mainClass>de.iip_ecosphere.platform.configuration.PlatformInstantiator</mainClass>
<cleanupDaemonThreads>false</cleanupDaemonThreads>
<arguments>
<argument>${iip.model}</argument>
<argument>src/test/easy</argument>
<argument>gen/test</argument>
<argument>generateAppsNoDeps</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>generateApps</id>
<configuration>
<mainClass>de.iip_ecosphere.platform.configuration.PlatformInstantiator</mainClass>
<cleanupDaemonThreads>false</cleanupDaemonThreads>
<arguments>
<argument>${iip.model}</argument>
<argument>src/test/easy</argument>
<argument>gen/test</argument>
<argument>generateApps</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 2d10913

Please sign in to comment.