Commit 87b1ecb3 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

Remove maven helpers

We will use a pomless build in future that does not require the
instantiation of per-module pom files by scripts any more.

Issue-Ref: 3620
Issue-Url: https://af3-developer.fortiss.org/issues/3620

Signed-off-by: Alexander Diewald's avatarAlexander Diewald <diewald@fortiss.org>
parent 5a84947d
#!/bin/bash -e
if [ -f META-INF/MANIFEST.MF ]; then
ScriptLocation=`dirname "$0"`
PluginName=`grep -F "Bundle-SymbolicName: " META-INF/MANIFEST.MF | awk '{ print $2 }'`
PluginName=${PluginName%;*}
PluginVersion=`grep -F "Bundle-Version: " META-INF/MANIFEST.MF | awk '{ print $2 }'`
PluginVersion=${PluginVersion%.qualifier*}
echo 'Found Plugin Name: "'$PluginName'"'
echo 'Found Plugin Version: "'$PluginVersion'"'
echo "Fetching Template from $ScriptLocation"
sed -e "s/%PluginName%/$PluginName/g" \
-e "s/%PluginVersion%/$PluginVersion/g" \
$ScriptLocation/template-pom.xml > ./pom.xml
echo 'Generated pom.xml.'
else
echo 'Directory contains no META-INF/MANIFEST.MF'
exit 1;
fi
\ No newline at end of file
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.fortiss.std.pom</groupId>
<artifactId>std-parent-pom-master</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<name>fortiss Master POM</name>
<properties>
<tycho-version>0.23.0</tycho-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<!-- enable tycho build extension -->
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<useUIHarness>true</useUIHarness>
<useUIThread>false</useUIThread>
<argLine>-Xms256m -Xmx512m</argLine>
<includes>
<include>**/AllTests.java</include>
</includes>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>0.23.0</version>
</plugin>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.eclipse.tycho</groupId>
<artifactId>
tycho-packaging-plugin
</artifactId>
<versionRange>
[0.23.0,)
</versionRange>
<goals>
<goal>build-qualifier</goal>
<goal>validate-id</goal>
<goal>validate-version</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.eclipse.tycho</groupId>
<artifactId>
tycho-compiler-plugin
</artifactId>
<versionRange>
[0.23.0,)
</versionRange>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?><target name="Maven Build Target Platform" sequenceNumber="8">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="http://download.eclipse.org/technology/swtbot/releases/latest/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="http://download.eclipse.org/technology/nebula/snapshot"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="http://download.eclipse.org/eclipse/updates/3.7"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="http://download.eclipse.org/releases/indigo/"/>
</location>
<location path="${eclipse_home}" type="Profile"/>
</locations>
<environment>
<arch>x86_64</arch>
<nl>de_DE</nl>
</environment>
</target>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.fortiss.std.pom</groupId>
<artifactId>std-parent-pom</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<name>fortiss Standard Parent POM (Indigo based)</name>
<repositories>
<!-- configure p2 repository to resolve against -->
<repository>
<id>kepler-release</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/kepler</url>
</repository>
<repository>
<!-- Juno site is needed to provide Junit4 -->
<id>juno-release</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/juno</url>
</repository>
<repository>
<id>kepler-SR2</id>
<layout>p2</layout>
<url>http://download.eclipse.org/eclipse/updates/4.3</url>
</repository>
<repository>
<id>nebula</id>
<layout>p2</layout>
<url>http://download.eclipse.org/technology/nebula/snapshot</url>
</repository>
<repository>
<id>swtbot</id>
<layout>p2</layout>
<url>http://download.eclipse.org/technology/swtbot/releases/latest/</url>
</repository>
<repository>
<id>orbit</id>
<layout>p2</layout>
<url>http://download.eclipse.org/tools/orbit/downloads/drops/R20140114142710/repository/</url>
</repository>
</repositories>
<parent>
<groupId>org.fortiss.std.pom</groupId>
<artifactId>std-parent-pom-master</artifactId>
<version>1.0</version>
<relativePath>master-pom.xml</relativePath>
</parent>
</project>
\ No newline at end of file
#!/bin/bash
for gm in `find . -wholename '*/model/*.genmodel'`; do
echo Processing $gm ...
sed -i -e 's/body=".*"\/>/\/>/g' $gm
sed -i -e 's/body=".*">/>/g' $gm
echo Safety grep ...
cat $gm | grep body
echo End of Safety
done
#!/bin/bash -e
ScriptLocation=`dirname "$0"`
for plugin in `find . -name 'META-INF' -printf '%h '`; do
echo 'Entering '$plugin' ...'
cd $plugin
../$ScriptLocation/create-pom-xml.sh
echo 'Exiting '$plugin' ...'
cd ..
echo
done
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- (c) 2018 fortiss GmbH -->
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.fortiss.af3</groupId>
<artifactId>%PluginName%</artifactId>
<packaging>eclipse-plugin</packaging>
<parent>
<groupId>org.fortiss.std.pom</groupId>
<artifactId>std-parent-pom</artifactId>
<version>1.0</version>
<relativePath>../../parent-pom.xml</relativePath>
</parent>
<version>%PluginVersion%-SNAPSHOT</version>
</project>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment