. |-- accdata | |-- i386 | | |-- pom.xml | | `-- target | |-- pom.xml | |-- ppc | | |-- pom.xml | | `-- target | `-- src | |-- SConscript | `-- svn -> ../../../accdata/ |-- accdevice | |-- i386 | | |-- pom.xml | | `-- target | |-- pom.xml | |-- ppc | | |-- pom.xml | | `-- target | `-- src | |-- SConscript | `-- svn -> ../../../accdevice/ |-- alarm | |-- i386 | | |-- pom.xml | | `-- target | |-- pom.xml | |-- ppc | | |-- pom.xml | | `-- target | `-- src | |-- SConscript | `-- svn -> ../../../alarm/ |-- corbaifc | |-- i386 | | |-- pom.xml | | `-- target | |-- pom.xml | |-- ppc | | |-- pom.xml | | `-- target | `-- src | |-- SConscript | `-- svn -> ../../../corbaifc/ |-- cpu87 | |-- kernel | | |-- pom.xml | | |-- src | | `-- target | |-- pom.xml | |-- ppc | | |-- pom.xml | | `-- target | `-- src | |-- SConscript | `-- svn -> ../../../cpu87/ |-- dbs | |-- i386 | | |-- pom.xml | | `-- target | |-- pom.xml | |-- ppc | | |-- pom.xml | | `-- target | `-- src | |-- SConscript | `-- svn -> ../../../dbs |-- device | |-- i386 | | |-- pom.xml | | `-- target | |-- pom.xml | |-- ppc | | |-- pom.xml | | `-- target | `-- src | |-- SConscript | `-- svn -> ../../../device |-- devman | |-- i386 | | |-- pom.xml | | `-- target | |-- pom.xml | |-- ppc | | |-- pom.xml | | `-- target | `-- src | |-- SConscript | `-- svn -> ../../../devman |-- eq-models | |-- i386 | | |-- cia | | |-- dskm | | |-- dsm | | |-- dsme | | |-- eqps.txt | | |-- lsa | | |-- lsad | | |-- mkeqp.sh | | |-- pom.xml | | |-- skeleton | | `-- slits | |-- pom.xml | `-- ppc | |-- bc | |-- bcu | |-- cehv | |-- cm | |-- cs | |-- dc | |-- dci | |-- dgx | |-- di | |-- dpx | |-- ds | |-- dtc | |-- dti | |-- dttc | |-- dtx | |-- dx | |-- ec | |-- eqps.txt | |-- esau | |-- fbsd | |-- hfs | |-- hfu | |-- hfum | |-- hvdm | |-- ips | |-- iqx | |-- it | |-- mb | |-- md | |-- me | |-- mk | |-- mkeqp.sh | |-- ms | |-- mx | |-- pla | |-- pom.xml | |-- ppos | |-- pzui | |-- rpg | |-- skeleton | |-- sthv | |-- swpz | |-- tfs | |-- tg | |-- tgx | |-- ug | `-- vvc |-- equinf | |-- pom.xml | |-- ppc | | |-- pom.xml | | `-- target | `-- src | |-- SConscript | `-- svn -> ../../../equinf/ |-- header | |-- accmsg | | |-- i386 | | |-- noarch | | |-- pom.xml | | `-- src | |-- dependency | | `-- pom.xml | |-- incasl | | |-- pom.xml | | |-- src | | `-- target | |-- incvme | | |-- pom.xml | | |-- src | | `-- target | `-- pom.xml |-- message | |-- pom.xml | |-- src | | |-- SConscript | | `-- svn -> ../../../message/ | `-- target | |-- SConstruct | |-- build | |-- install | |-- maven_scons.ini | |-- message-1.0.3-SNAPSHOT.zip | `-- site_scons |-- nameservice | |-- client | | |-- i386 | | |-- pom.xml | | |-- ppc | | `-- src | |-- devicefactory | | |-- i386 | | |-- pom.xml | | |-- ppc | | `-- src | |-- pom.xml | |-- server | | |-- i386 | | |-- pom.xml | | `-- src | `-- tcpip | |-- i386 | |-- pom.xml | |-- ppc | `-- src |-- nativedevice | |-- i386 | | |-- pom.xml | | `-- target | |-- pom.xml | |-- ppc | | |-- pom.xml | | `-- target | `-- src | |-- SConscript | `-- svn -> ../../../nativedevice/ |-- os | |-- i386 | | |-- pom.xml | | `-- target | |-- pom.xml | |-- ppc | | |-- pom.xml | | `-- target | `-- src | |-- SConscript | `-- svn -> ../../../os/ |-- pom.xml |-- subscriptionservice | |-- i386 | | |-- pom.xml | | `-- target | |-- pom.xml | `-- src | |-- SConscript | `-- svn -> ../../../subscriptionservice |-- usrs | |-- i386 | | |-- pom.xml | | `-- target | |-- pom.xml | |-- ppc | | |-- pom.xml | | `-- target | `-- src | |-- SConscript | `-- svn -> ../../../usrs/ `-- vmedevice |-- pom.xml |-- ppc | |-- pom.xml | `-- target `-- src |-- SConscript `-- svn -> ../../../vmedevice/
Build parts of a reactor: mvn compile -am -pl :eqmodel_dsm oder mvn compile -am -pl dsm
Name | Value |
---|---|
ACC_NAMESERVER_HOST | localhost |
ACC_NAMESERVER_PORT | 64291 |
LD_LIBRARY_PATH | full path to library folder |
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.3</version> <configuration> <descriptors> <!-- XML file that contains the files/contents of the target package --> <descriptor>myAssembly.xml</descriptor> </descriptors> </configuration> </plugin> </plugins> </build>Command:
mvn assembly:single (after mvn package)
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.3</version> <configuration> <descriptors> <!-- XML file that contains the files/contents of the target package --> <descriptor>localDevmanAssembly.xml</descriptor> </descriptors> <attach>false</attach> <appendAssemblyId>false</appendAssemblyId> <finalName>foo</finalName> </configuration> <executions> <execution> <id>make-assembly</id> <!-- this is used for inheritance merges --> <phase>package</phase> <!-- bind to the packaging phase --> <goals> <goal>single</goal> <!-- goal to execute during packaging phase --> </goals> </execution> </executions> </plugin> </plugins>
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> <id>localDevmanAssembly</id> <!-- output format, e.g. zip, dir, ... --> <formats> <format>dir</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <!-- files / directories to be copied into the assembly --> <fileSets> <fileSet> <directory>${basedir}/src</directory> <outputDirectory>/</outputDirectory> <includes> <include>solveigh.dbs</include> <!-- device configuration --> <include>devman.sh</include> <!-- start script --> </includes> </fileSet> </fileSets> <dependencySets> <dependencySet> <outputDirectory>/</outputDirectory> <useProjectArtifact>false</useProjectArtifact> <unpack>true</unpack> <includes> <include>*:*:zip:*</include> </includes> <excludes> <exclude>*:*:zip:meta</exclude> <exclude>*scons*:*:zip</exclude> </excludes> <!-- not really sure, see http://jira.codehaus.org/browse/MASSEMBLY-614 , but this works --> <useTransitiveFiltering>false</useTransitiveFiltering> <unpackOptions> <excludes> <exclude>meta.ini</exclude> <exclude>include</exclude> <exclude>include/**</exclude> <exclude>usr/include</exclude> <exclude>usr/include/**</exclude> </excludes> </unpackOptions> </dependencySet> </dependencySets> </assembly>
cd to .../nameservice/server/i386_test bzw. .../devman/i386_test mvn -TC1 compile package assembly:single cd to .../nameservice/server/i386_test/target/foo start ./nameserver.sh cd to .../devman/i386_test/target/foo start ./devman.sh
cd maven/code-generation/fe-usrgen mvn deployThe XML files for therapy-usrs are located in the usrs project and will also be uploaded to the webdav server during the deploy phase:
cd maven/usrs mvn deployThe nameserver's right XSD schema is uploaded in a similar way.