diff --git a/de.inovat.pat.datkat2html.maven/config/checkstyle.xml b/de.inovat.pat.datkat2html.maven/config/checkstyle.xml new file mode 100644 index 0000000000000000000000000000000000000000..6423f3c32ae1691390ccab30c8f44f5d27b5e2f9 --- /dev/null +++ b/de.inovat.pat.datkat2html.maven/config/checkstyle.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> + +<!-- + This configuration file was written by the eclipse-cs plugin configuration editor +--> +<!-- + Checkstyle-Configuration: Local CS + Description: none +--> +<module name="Checker"> + <property name="severity" value="warning"/> + <module name="TreeWalker"> + <module name="MissingDeprecated"/> + <module name="MissingOverride"/> + <module name="PackageAnnotation"/> + <module name="InterfaceIsType"/> + <module name="OneTopLevelClass"/> + <module name="CovariantEquals"/> + <module name="DefaultComesLast"/> + <module name="EqualsHashCode"/> + <module name="StringLiteralEquality"/> + <module name="SuperClone"/> + <module name="SuperFinalize"/> + <module name="IllegalImport"/> + <module name="BooleanExpressionComplexity"/> + <module name="ClassDataAbstractionCoupling"/> + <module name="ClassFanOutComplexity"/> + <module name="CyclomaticComplexity"/> + <module name="JavaNCSS"/> + <module name="NPathComplexity"/> + <module name="OuterTypeFilename"/> + <module name="UpperEll"/> + <module name="ModifierOrder"/> + <module name="RedundantModifier"/> + <module name="AbbreviationAsWordInName"/> + <module name="ClassTypeParameterName"/> + <module name="ConstantName"/> + <module name="InterfaceTypeParameterName"/> + <module name="LocalFinalVariableName"/> + <module name="LocalVariableName"> + <property name="allowOneCharVarInForLoop" value="true"/> + </module> + <module name="MemberName"/> + <module name="MethodName"/> + <module name="MethodTypeParameterName"/> + <module name="PackageName"/> + <module name="ParameterName"/> + <module name="StaticVariableName"/> + <module name="TypeName"/> + <module name="AnonInnerLength"/> + <module name="ExecutableStatementCount"/> + <module name="LineLength"> + <property name="severity" value="ignore"/> + <property name="max" value="120"/> + <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> + </module> + <module name="MethodCount"/> + <module name="MethodLength"/> + <module name="OuterTypeNumber"/> + <module name="ParameterNumber"/> + </module> + <module name="FileLength"/> + <module name="UniqueProperties"/> +</module> diff --git a/de.inovat.pat.datkat2html.maven/config/findbugs-exclude.xml b/de.inovat.pat.datkat2html.maven/config/findbugs-exclude.xml new file mode 100644 index 0000000000000000000000000000000000000000..1a86d03a87c574aab4d9b5816c479280c6f4c467 --- /dev/null +++ b/de.inovat.pat.datkat2html.maven/config/findbugs-exclude.xml @@ -0,0 +1,7 @@ +<FindBugsFilter> +<!-- + <Match> + <Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD" /> + </Match> +--> +</FindBugsFilter> diff --git a/de.inovat.pat.datkat2html.maven/config/pom.xml b/de.inovat.pat.datkat2html.maven/config/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..2d95256f401157dc5e9f10b5045e4396123746b5 --- /dev/null +++ b/de.inovat.pat.datkat2html.maven/config/pom.xml @@ -0,0 +1,307 @@ +<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>de.inovat.buv</groupId> + <artifactId>de.inovat.pat.datkat2html.maven.conf</artifactId> + <version>1.0.0</version> + <packaging>pom</packaging> + + <properties> + <!--Java-Version--> + <java.version>1.8</java.version> + <!--Properties für compiler-plugins--> + <!-- + Property <java.version> wird verwendet, falls im tycho-compiler-plugin + <useProjectSettings>false</useProjectSettings> + --> + <maven.compiler.source>${java.version}</maven.compiler.source> + <maven.compiler.target>${java.version}</maven.compiler.target> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + + <!--Plugins-Versionen--> + <tycho-version>1.2.0</tycho-version> + <tycho-extras-version>1.2.0</tycho-extras-version> + <findbugs-version>3.0.5</findbugs-version> + <checkstyle-version>3.0.0</checkstyle-version> + </properties> + + <build> + <sourceDirectory>src</sourceDirectory> + + <plugins> + + <!--tycho-maven-plugin--> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-maven-plugin</artifactId> + <version>${tycho-version}</version> + <extensions>true</extensions> + </plugin> + + <!--version update for child projects, poms ...--> + <!--http://www.eclipse.org/tycho/sitedocs/tycho-release/tycho-versions-plugin/plugin-info.html--> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-versions-plugin</artifactId> + <version>${tycho-version}</version> + </plugin> + + <!--target-platform-configuration--> + <!--https://wiki.eclipse.org/Tycho/Target_Platform--> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>target-platform-configuration</artifactId> + <version>${tycho-version}</version> + <configuration> + <!--add OSGi bundles from Maven repositories--> + <!--https://wiki.eclipse.org/Tycho/Target_Platform#.22POM_dependencies_consider.22--> + <!--https://wiki.eclipse.org/Tycho/How_Tos/Dependency_on_pom-first_artifacts--> + <pomDependencies>consider</pomDependencies> + <resolver>p2</resolver> + <environments> + <environment> + <os>linux</os> + <ws>gtk</ws> + <arch>x86_64</arch> + </environment> + <environment> + <os>win32</os> + <ws>win32</ws> + <arch>x86</arch> + </environment> + <environment> + <os>win32</os> + <ws>win32</ws> + <arch>x86_64</arch> + </environment> + <environment> + <os>macosx</os> + <ws>cocoa</ws> + <arch>x86_64</arch> + </environment> + </environments> + </configuration> + </plugin> + + <!--OSGI compiler--> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-compiler-plugin</artifactId> + <version>${tycho-version}</version> + <configuration> + <!-- + Falls = true (DefaultWert), wird settings-File für Compiler verwendet: + ${project.basedir}/.settings/org.eclipse.jdt.core.prefs) + Falls = fasle, werden Properties verwendet: + maven.compiler.source, maven.compiler.target + --> + <!--<useProjectSettings>false</useProjectSettings>--> + </configuration> + </plugin> + + <!--non-OSGi compiler--> + <!-- + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.3</version> + <configuration> + <compilerArgument>-Xlint:all</compilerArgument> + <showWarnings>true</showWarnings> + <showDeprecation>true</showDeprecation> + </configuration> + </plugin> + --> + + <!--source-plugin generation--> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-source-plugin</artifactId> + <version>${tycho-version}</version> + <configuration> + <strictSrcIncludes>false</strictSrcIncludes> + </configuration> + <executions> + <execution> + <id>plugin-source</id> + <goals> + <goal>plugin-source</goal> + </goals> + </execution> + </executions> + </plugin> + + <!--source-feature generation--> + <plugin> + <groupId>org.eclipse.tycho.extras</groupId> + <artifactId>tycho-source-feature-plugin</artifactId> + <version>${tycho-extras-version}</version> + <executions> + <execution> + <id>source-feature</id> + <phase>package</phase> + <goals> + <goal>source-feature</goal> + </goals> + </execution> + </executions> + </plugin> + + <!--source-feature generation--> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-p2-plugin</artifactId> + <version>${tycho-version}</version> + <executions> + <execution> + <id>attach-p2-metadata</id> + <phase>package</phase> + <goals> + <goal>p2-metadata</goal> + </goals> + </execution> + </executions> + </plugin> + + <!--Checkstyle--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <version>${checkstyle-version}</version> + <configuration> + <configLocation>config/checkstyle.xml</configLocation> + <consoleOutput>true</consoleOutput> + <failOnViolation>false</failOnViolation> + </configuration> + <executions> + <execution> + <phase>verify</phase> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + + </plugin> + + <!--Findbugs:check wird während verify phase ausgeführt und xml-Report wird erstellt--> + <!--https://www.petrikainulainen.net/programming/maven/findbugs-maven-plugin-tutorial/--> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>findbugs-maven-plugin</artifactId> + <version>${findbugs-version}</version> + <configuration> + <excludeFilterFile>config/findbugs-exclude.xml</excludeFilterFile> + <!--_Fehler werden ignoriert:--> + <failOnError>false</failOnError> + <effort>max</effort> + <!--Falls mehrere Plugins im Projekt sind, besser für jedes Plugin eigene Datei anlegen:--> + <findbugsXmlOutputDirectory>${project.build.directory}/findbugs</findbugsXmlOutputDirectory> + <xmlOutputDirectory>${project.build.directory}/findbugs</xmlOutputDirectory> + </configuration> + <executions> + <execution> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + </plugin> + + <!--Transformiert XML in HTML--> + <!--Findbugs-Report wird in html umwandelt--> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>xml-maven-plugin</artifactId> + <version>1.0</version> + <configuration> + <transformationSets> + <transformationSet> + <dir>${project.build.directory}/findbugs</dir> + <outputDir>${project.build.directory}/findbugs</outputDir> + <stylesheet>default.xsl</stylesheet> + <fileMappers> + <fileMapper + implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper"> + <targetExtension>.html</targetExtension> + </fileMapper> + </fileMappers> + </transformationSet> + </transformationSets> + </configuration> + <executions> + <execution> + <phase>verify</phase> + <goals> + <goal>transform</goal> + </goals> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>com.google.code.findbugs</groupId> + <artifactId>findbugs</artifactId> + <version>3.0.1</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <!--Einbinden Findbugs in html-Report--> + <!--Report braucht classes ==> nach compiler starten: mvn clean compile site--> + <!--!? Aufrufen nur für Plugins, sonst _fehler in feature-dependency--> + <reporting> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>findbugs-maven-plugin</artifactId> + <version>${findbugs-version}</version> + <configuration> + <!--<excludeFilterFile>config/findbugs-exclude.xml</excludeFilterFile>--> + <failOnError>false</failOnError> + <xmlOutput>true</xmlOutput> + <effort>max</effort> + </configuration> + </plugin> + </plugins> + </reporting> + + <!--TODO--> + <repositories> + <!--Eclipse--> + <repository> + <id>neon</id> + <layout>p2</layout> + <url>http://download.eclipse.org/releases/neon</url> + </repository> + + <!--Nebula--> + <repository> + <id>nebula</id> + <layout>p2</layout> + <url>http://download.eclipse.org/nebula/releases/latest</url> + </repository> + + <!--Rahmenwerk--> + <repository> + <id>Rahmenwerk</id> + <layout>p2</layout> + <!--<url>http://www.bitctrl.de/projekte/rw3.0/updatesite/</url>--> + <url>jar:file:/D:/KM/RW/nerz-rw3/UpdateSeite_BuV-PlugIn-NERZ-Gesamt_FREI_V3.0.1_D2017-09-29_[RW-3].zip!/</url> + </repository> + + <!--inovatBasislib--> + <repository> + <id>inovatTools-lokal</id> + <layout>p2</layout> + <url>file:/D:/KM/RW/rw3-de.inovat.buv.basislib.updatesite/</url> + </repository> + </repositories> + + <organization> + <name>inovat</name> + <url>http://www.inovat.de</url> + </organization> +</project> + diff --git a/de.inovat.pat.datkat2html.maven/pom.xml b/de.inovat.pat.datkat2html.maven/pom.xml index db9b43d78dcbdd6f887cf85b9fe90ba18656fad7..3b69e0512fd83f1308ac084bf119743690a354d7 100644 --- a/de.inovat.pat.datkat2html.maven/pom.xml +++ b/de.inovat.pat.datkat2html.maven/pom.xml @@ -2,253 +2,23 @@ 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>de.inovat.pat</groupId> - <artifactId>de.inovat.pat.datkat2html.maven</artifactId> - <version>2.0.2</version> - <packaging>pom</packaging> + <parent> + <groupId>de.inovat.buv</groupId> + <artifactId>de.inovat.pat.datkat2html.maven.conf</artifactId> + <version>1.0.0</version> + <relativePath>config</relativePath> + </parent> - <name>DatKat2HTML-ParentPom</name> + <groupId>de.inovat.pat</groupId> + <artifactId>de.inovat.pat.datkat2html.maven</artifactId> + <version>2.0.2</version> + <packaging>pom</packaging> - <properties> - <sweStatus>BETA</sweStatus> - <sweDatum>${maven.build.timestamp}</sweDatum> - <maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format> - <tycho-version>1.1.0</tycho-version> - <tycho-extras-version>1.1.0</tycho-extras-version> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <maven-checkstyle-plugin-version>3.0.0</maven-checkstyle-plugin-version> - <java.version>1.8</java.version> - <maven.compiler.source>${java.version}</maven.compiler.source> - <maven.compiler.target>${java.version}</maven.compiler.target> - </properties> + <name>DatKat2HTML-ParentPom</name> <modules> <module>../de.inovat.pat.datkat2html.updatesite</module> <module>../de.inovat.pat.datkat2html.feature</module> <module>../de.inovat.pat.datkat2html</module> </modules> - - <build> - <finalName>UpdateSeite_${project.artifactId}_${sweStatus}_V${project.version}_D${sweDatum}</finalName> - <sourceDirectory>src</sourceDirectory> - - <extensions> - <extension> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-webdav</artifactId> - <version>1.0-beta-2</version> - </extension> - </extensions> - - <plugins> - - <plugin> - <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-versions-plugin</artifactId> - <version>${tycho-version}</version> - </plugin> - - <plugin> - <groupId>org.eclipse.tycho</groupId> - <artifactId>tycho-p2-director-plugin</artifactId> - </plugin> - - <plugin> - <groupId>org.eclipse.tycho</groupId> - <artifactId>target-platform-configuration</artifactId> - <version>${tycho-version}</version> - <configuration> - <echo>*** JAVA_HOME=${java.home}</echo> - <pomDependencies>consider</pomDependencies> - <!-- <resolver>p2</resolver> --> - <environments> - <environment> - <os>linux</os> - <ws>gtk</ws> - <arch>x86_64</arch> - </environment> - <environment> - <os>win32</os> - <ws>win32</ws> - <arch>x86</arch> - </environment> - <environment> - <os>macosx</os> - <ws>cocoa</ws> - <arch>x86_64</arch> - </environment> - </environments> - </configuration> - </plugin> - - <plugin> - <groupId>org.eclipse.tycho</groupId> - <artifactId>tycho-compiler-plugin</artifactId> - <version>${tycho-version}</version> - <configuration> - <compilerArguments> - <properties>${project.basedir}/.settings/org.eclipse.jdt.core.prefs</properties> - </compilerArguments> - </configuration> - </plugin> - - <plugin> - <artifactId>maven-compiler-plugin</artifactId> - <version>3.3</version> - <configuration> - <compilerArgument>-Xlint:all</compilerArgument> - <showWarnings>true</showWarnings> - <showDeprecation>true</showDeprecation> - </configuration> - </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> - </configuration> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-checkstyle-plugin</artifactId> - <version>${maven-checkstyle-plugin-version}</version> - <configuration> - <configLocation>config/checkstyle.xml</configLocation> - </configuration> - </plugin> - - <plugin> - <groupId>org.eclipse.tycho</groupId> - <artifactId>tycho-source-plugin</artifactId> - <version>${tycho-version}</version> - <configuration> - <strictSrcIncludes>false</strictSrcIncludes> - </configuration> - <executions> - <execution> - <id>plugin-source</id> - <goals> - <goal>plugin-source</goal> - </goals> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.eclipse.tycho.extras</groupId> - <artifactId>tycho-source-feature-plugin</artifactId> - <version>${tycho-extras-version}</version> - <executions> - <execution> - <id>source-feature</id> - <phase>package</phase> - <goals> - <goal>source-feature</goal> - </goals> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.eclipse.tycho</groupId> - <artifactId>tycho-p2-plugin</artifactId> - <version>${tycho-version}</version> - <executions> - <execution> - <id>attach-p2-metadata</id> - <phase>package</phase> - <goals> - <goal>p2-metadata</goal> - </goals> - </execution> - </executions> - </plugin> - - </plugins> - - <pluginManagement> - <plugins> - <plugin> - <groupId>org.eclipse.tycho</groupId> - <artifactId>tycho-p2-director-plugin</artifactId> - <version>${tycho-version}</version> - </plugin> - <plugin> - <groupId>org.eclipse.tycho</groupId> - <artifactId>tycho-p2-repository-plugin</artifactId> - <version>${tycho-version}</version> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-deploy-plugin</artifactId> - <version>2.8.2</version> - <configuration> - <skip>true</skip> - </configuration> - </plugin> - </plugins> - </pluginManagement> - </build> - - <repositories> - - <!--Eclipse--> - <repository> - <id>neon</id> - <layout>p2</layout> - <url>http://download.eclipse.org/releases/neon</url> - </repository> - - <!--Nebula--> - <repository> - <id>nebula</id> - <layout>p2</layout> - <url>http://download.eclipse.org/nebula/releases/latest</url> - </repository> - - <!--Rahmenwerk--> - <repository> - <id>Rahmenwerk</id> - <layout>p2</layout> - <!--<url>http://www.bitctrl.de/projekte/rw3.0/updatesite/</url>--> - <url>jar:file:/D:/KM/RW/nerz-rw3/UpdateSeite_BuV-PlugIn-NERZ-Gesamt_FREI_V3.0.1_D2017-09-29_[RW-3].zip!/</url> - </repository> - - <!--DaV-Kernsoftware--> - <repository> - <id>dav-kernsoftware</id> - <layout>p2</layout> - <url>http://www.bitctrl.de/projekte/kernsoftware/</url> - </repository> - - </repositories> - - <distributionManagement> - <repository> - <id>nerz.nexus.releases</id> - <url>http://h2727649.stratoserver.net:8081/repository/nerz-maven-releases/</url> - </repository> - <snapshotRepository> - <id>nerz.nexus.snapshots</id> - <url>http://h2727649.stratoserver.net:8081/repository/nerz-maven-snapshots/</url> - </snapshotRepository> - </distributionManagement> - - <organization> - <name>inovat</name> - <url>http://www.inovat.de</url> - </organization> - </project> diff --git a/de.inovat.pat.datkat2html.updatesite/pom.xml b/de.inovat.pat.datkat2html.updatesite/pom.xml index 519a7bd82fc399c303e1c46903683681939dd530..bdbae62ff958ddbd0f7ee760ed380efd3af5dd65 100644 --- a/de.inovat.pat.datkat2html.updatesite/pom.xml +++ b/de.inovat.pat.datkat2html.updatesite/pom.xml @@ -14,4 +14,14 @@ <name>DatKat2HTML</name> + <properties> + <!--UpdateSeite--> + <sweStatus>BETA</sweStatus> + <sweDatum>${maven.build.timestamp}</sweDatum> + <maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format> + </properties> + + <build> + <finalName>UpdateSeite_${project.artifactId}_${sweStatus}_V${project.version}_D${sweDatum}</finalName> + </build> </project> \ No newline at end of file