Skip to content

Commit d89ad5d

Browse files
committed
initial commit
1 parent 1f4387d commit d89ad5d

File tree

151 files changed

+12921
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+12921
-0
lines changed

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

assembly.xml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<assembly
2+
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.0.0.1-SNAPSHOT"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.0.0.1-SNAPSHOT http://maven.apache.org/xsd/assembly-1.0.0.1-SNAPSHOT.xsd">
5+
<id>bin</id>
6+
<formats>
7+
<format>zip</format>
8+
</formats>
9+
<includeBaseDirectory>false</includeBaseDirectory>
10+
<fileSets>
11+
<!-- Copy DataSheet HTML files -->
12+
<fileSet>
13+
<directory>${project.basedir}</directory>
14+
<outputDirectory>/${project.name}</outputDirectory>
15+
<includes>
16+
<include>DataSheet*.html</include>
17+
</includes>
18+
<filtered>true</filtered>
19+
</fileSet>
20+
<!-- Copy XML resources -->
21+
<fileSet>
22+
<directory>${project.basedir}/src/main/conf</directory>
23+
<outputDirectory>/${project.name}</outputDirectory>
24+
<includes>
25+
<include>**/*.xml</include>
26+
</includes>
27+
<filtered>true</filtered>
28+
</fileSet>
29+
<!-- Copy other ressources -->
30+
<fileSet>
31+
<directory>${project.basedir}/src/main/conf</directory>
32+
<outputDirectory>/${project.name}</outputDirectory>
33+
<excludes>
34+
<exclude>**/*.xml</exclude>
35+
</excludes>
36+
<filtered>false</filtered>
37+
</fileSet>
38+
<!-- Copy module's jar file -->
39+
<fileSet>
40+
<directory>${project.build.directory}</directory>
41+
<outputDirectory>${project.name}/lib</outputDirectory>
42+
<includes>
43+
<include>${project.artifactId}-${project.version}.jar</include>
44+
</includes>
45+
</fileSet>
46+
<!-- Copy java dependencies needed by the module -->
47+
<fileSet>
48+
<directory>${project.build.directory}/lib</directory>
49+
<outputDirectory>${project.name}/lib</outputDirectory>
50+
<includes>
51+
<include>*.jar</include>
52+
</includes>
53+
</fileSet>
54+
</fileSets>
55+
</assembly>

pom.xml

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<!-- definition -->
6+
<groupId>org.modelio.module</groupId>
7+
<artifactId>variabilitydesigner</artifactId>
8+
<version>1.3.01</version>
9+
<name>VariabilityDesigner</name>
10+
<repositories>
11+
<repository>
12+
<id>modelio</id>
13+
<url>https://repository.modelio.org</url>
14+
</repository>
15+
</repositories>
16+
17+
<pluginRepositories>
18+
<pluginRepository>
19+
<id>modelio-plugins</id>
20+
<url>https://repository.modelio.org</url>
21+
</pluginRepository>
22+
</pluginRepositories>
23+
24+
<!-- properties -->
25+
<properties>
26+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
27+
</properties>
28+
29+
<dependencies>
30+
<!-- api modelio -->
31+
<dependency>
32+
<groupId>org.modelio</groupId>
33+
<artifactId>MDAKit</artifactId>
34+
<version>[4.0.0,4.0.1)</version>
35+
<type>pom</type>
36+
<scope>provided</scope>
37+
</dependency>
38+
39+
</dependencies>
40+
41+
<!-- // Build // -->
42+
<build>
43+
<sourceDirectory>src/main/java</sourceDirectory>
44+
<plugins>
45+
<!-- Use JVM 1.8 -->
46+
<plugin>
47+
<groupId>org.apache.maven.plugins</groupId>
48+
<artifactId>maven-compiler-plugin</artifactId>
49+
<version>2.3.2</version>
50+
<configuration>
51+
<source>1.8</source>
52+
<target>1.8</target>
53+
<encoding>${project.build.sourceEncoding}</encoding>
54+
</configuration>
55+
</plugin>
56+
57+
<plugin>
58+
<groupId>org.modelio</groupId>
59+
<artifactId>modelio-maven-plugin</artifactId>
60+
<version>4.0.0.00</version>
61+
<executions>
62+
<execution>
63+
<id>ModuleValidation</id>
64+
<phase>validate</phase>
65+
<goals>
66+
<goal>module-validation</goal>
67+
</goals>
68+
</execution>
69+
<execution>
70+
<id>ResourceManagement</id>
71+
<phase>generate-resources</phase>
72+
<goals>
73+
<goal>module-configuration</goal>
74+
</goals>
75+
</execution>
76+
</executions>
77+
<configuration>
78+
<moduleFile>${project.basedir}/src/main/conf/module.xml</moduleFile>
79+
<sourceBasedir>src/main/java</sourceBasedir>
80+
</configuration>
81+
</plugin>
82+
83+
<!-- Copy maven dependencies -->
84+
<plugin>
85+
<groupId>org.apache.maven.plugins</groupId>
86+
<artifactId>maven-dependency-plugin</artifactId>
87+
<version>2.4</version>
88+
<configuration>
89+
<outputDirectory>${project.basedir}/target/lib</outputDirectory>
90+
<overWriteReleases>false</overWriteReleases>
91+
<overWriteSnapshots>false</overWriteSnapshots>
92+
<overWriteIfNewer>true</overWriteIfNewer>
93+
<excludeScope>provided</excludeScope>
94+
</configuration>
95+
<executions>
96+
<execution>
97+
<id>copy-dependencies</id>
98+
<phase>package</phase>
99+
<goals>
100+
<goal>copy-dependencies</goal>
101+
</goals>
102+
</execution>
103+
</executions>
104+
</plugin>
105+
106+
<!-- Build zip -->
107+
<plugin>
108+
<groupId>org.apache.maven.plugins</groupId>
109+
<artifactId>maven-assembly-plugin</artifactId>
110+
<version>2.3</version>
111+
<configuration>
112+
<encoding>${project.build.sourceEncoding}</encoding>
113+
<descriptors>
114+
<descriptor>assembly.xml</descriptor>
115+
</descriptors>
116+
<finalName>${project.name}_${project.version}</finalName>
117+
<attach>false</attach>
118+
<appendAssemblyId>false</appendAssemblyId>
119+
</configuration>
120+
<executions>
121+
<execution>
122+
<id>make-assembly</id>
123+
<phase>package</phase>
124+
<goals>
125+
<goal>single</goal>
126+
</goals>
127+
</execution>
128+
</executions>
129+
</plugin>
130+
131+
<!-- Rename zip into jmdac -->
132+
<plugin>
133+
<groupId>org.apache.maven.plugins</groupId>
134+
<artifactId>maven-antrun-plugin</artifactId>
135+
<version>1.7</version>
136+
<executions>
137+
<execution>
138+
<id>rename</id>
139+
<phase>package</phase>
140+
<configuration>
141+
<target>
142+
<move file="${project.basedir}/target/${project.name}_${project.version}.zip" tofile="${project.basedir}/target/${project.name}_${project.version}.jmdac" />
143+
144+
</target>
145+
</configuration>
146+
<goals>
147+
<goal>run</goal>
148+
</goals>
149+
</execution>
150+
</executions>
151+
</plugin>
152+
</plugins>
153+
154+
<pluginManagement>
155+
<plugins>
156+
<!-- ignore plugin goal -> tells m2e to silently ignore the plugin execution. -->
157+
<plugin>
158+
<groupId>org.eclipse.m2e</groupId>
159+
<artifactId>lifecycle-mapping</artifactId>
160+
<version>1.0.0</version>
161+
<configuration>
162+
<lifecycleMappingMetadata>
163+
<pluginExecutions>
164+
<pluginExecution>
165+
<pluginExecutionFilter>
166+
<groupId>org.apache.maven.plugins</groupId>
167+
<artifactId>maven-dependency-plugin</artifactId>
168+
<versionRange>[1.0.0,)</versionRange>
169+
<goals>
170+
<goal>copy-dependencies</goal>
171+
</goals>
172+
</pluginExecutionFilter>
173+
<action>
174+
<ignore />
175+
</action>
176+
</pluginExecution>
177+
<pluginExecution>
178+
<pluginExecutionFilter>
179+
<groupId>org.modelio</groupId>
180+
<artifactId>
181+
modelio-maven-plugin
182+
</artifactId>
183+
<versionRange>
184+
[4.0.0.00,)
185+
</versionRange>
186+
<goals>
187+
<goal>
188+
module-validation
189+
</goal>
190+
<goal>
191+
module-configuration
192+
</goal>
193+
</goals>
194+
</pluginExecutionFilter>
195+
<action>
196+
<ignore></ignore>
197+
</action>
198+
</pluginExecution>
199+
</pluginExecutions>
200+
</lifecycleMappingMetadata>
201+
</configuration>
202+
</plugin>
203+
</plugins>
204+
</pluginManagement>
205+
</build>
206+
<description>Variability Designer is a Modelio Module that allows Modelio users to manage variability on UML/SysML models. It allows to create 150% Models and generate variant model based on VEL configuration file.</description>
207+
</project>

0 commit comments

Comments
 (0)