Skip to content

Commit

Permalink
POM angelegt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andor Ertsey committed Oct 19, 2015
1 parent 0f0c221 commit 6c626bd
Show file tree
Hide file tree
Showing 11 changed files with 290 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ dist/wollmux-*-installer.exe
dist/wollmux-*.tar.gz
oxt/WollMux.uno.jar
*~
/target
7 changes: 7 additions & 0 deletions .project
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.sonar.ide.eclipse.core.sonarNature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
2 changes: 0 additions & 2 deletions .settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#Wed Jan 21 14:47:51 CET 2009
eclipse.preferences.version=1
encoding//oxt/Addons.xcu=UTF-8
encoding//oxt/ProtocolHandler.xcu=UTF-8
encoding//oxt/WriterWindowState.xcu=UTF-8
encoding//src/data=UTF-8
encoding/<project>=UTF-8
encoding/default=UTF-8
encoding/testdata=UTF-8
12 changes: 11 additions & 1 deletion .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#Mon Mar 01 11:25:30 CET 2010
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.7
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=20
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
Expand Down
4 changes: 4 additions & 0 deletions .settings/org.eclipse.m2e.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
6 changes: 6 additions & 0 deletions .settings/org.sonar.ide.eclipse.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
eclipse.preferences.version=1
extraProperties=sonar.jdbc.password\=sonar\r\nsonar.jdbc.username\=sonar\r\nsonar.jdbc.url\=jdbc\:mysql\://192.168.0.2\:3306/sonar?useUnicode\=true&characterEncoding\=utf8&rewriteBatchedStatements\=true&useConfigs\=maxPerformance\r\nsonar.host.url\=http\://192.168.0.2\:9000
lastAnalysisDate=1437376081021
projectKey=de.muenchen\:wollmux
serverUrl=http\://192.168.0.2\:9000
version=2
1 change: 0 additions & 1 deletion bin/.gitignore

This file was deleted.

44 changes: 44 additions & 0 deletions macker/macker-rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0"?>
<macker>
<ruleset name="WollMux">
<pattern name="wollmux-classes">
<include class="de.muenchen.allg.itd51.wollmux.**" />
</pattern>
<pattern name="uno-classes">
<include class="com.sun.star.**" />
</pattern>
<pattern name="private-classes">
<include pattern="wollmux-classes" />
<exclude filter="class-access" min="protected" />
</pattern>
<pattern name="public-classes">
<include pattern="wollmux-classes" />
<exclude filter="class-access" max="private" />
</pattern>

<access-rule severity="debug">
<message>Direct access to UNO.</message>
<deny>
<to>
<include pattern="uno-classes" />
<include class="de.muenchen.allg.afid.UNO" />
</to>
</deny>
</access-rule>

<access-rule severity="debug">
<message>WollMux singleton.</message>
<deny>
<to class="de.muenchen.allg.itd51.wollmux.WollMuxSingleton" />
</deny>
</access-rule>

<access-rule severity="error">
<message>Conf parser accesses classes in WollMux.</message>
<deny>
<from class="de.muenchen.allg.itd51.parser.**" />
<to pattern="wollmux-classes" />
</deny>
</access-rule>
</ruleset>
</macker>
198 changes: 198 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
<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.muenchen</groupId>
<artifactId>wollmux</artifactId>
<version>15.4.0-SNAPSHOT</version>
<name>WollMux</name>
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
<resource>
<directory>idl</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<compilerVersion>1.7</compilerVersion>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<!-- <plugin> -->
<!-- <groupId>org.openoffice.dev</groupId> -->
<!-- <artifactId>ooo-maven-plugin</artifactId> -->
<!-- <version>1.1.2-SNAPSHOT</version> -->
<!-- <configuration> -->
<!-- <idlDir>${basedir}/idl</idlDir> -->
<!-- <ooo>${ooo}</ooo> -->
<!-- <sdk>${sdk}</sdk> -->
<!-- </configuration> -->
<!-- <executions> -->
<!-- <execution> -->
<!-- <phase>generate-sources</phase> -->
<!-- <goals> -->
<!-- <goal>build-idl</goal> -->
<!-- </goals> -->
<!-- </execution> -->
<!-- </executions> -->
<!-- </plugin> -->
<!-- <plugin> -->
<!-- <artifactId>maven-antrun-plugin</artifactId> -->
<!-- <version>1.8</version> -->
<!-- <executions> -->
<!-- <execution> -->
<!-- <id>compileidl</id> -->
<!-- <phase>generate-sources</phase> -->
<!-- <configuration> -->
<!-- <target> -->
<!-- <ant antfile="build.xml" target="compileidl" /> -->
<!-- </target> -->
<!-- </configuration> -->
<!-- <goals> -->
<!-- <goal>run</goal> -->
<!-- </goals> -->
<!-- </execution> -->
<!-- <execution> -->
<!-- <phase>prepare-package</phase> -->
<!-- <configuration> -->
<!-- <target> -->
<!-- <ant antfile="build.xml" target="WollMux.oxt" /> -->
<!-- </target> -->
<!-- </configuration> -->
<!-- <goals> -->
<!-- <goal>run</goal> -->
<!-- </goals> -->
<!-- </execution> -->
<!-- </executions> -->
<!-- <dependencies> -->
<!-- <dependency> -->
<!-- <groupId>sun.jdk</groupId> -->
<!-- <artifactId>tools</artifactId> -->
<!-- <version>1.7.0</version> -->
<!-- <scope>system</scope> -->
<!-- <systemPath>${java.home}/../lib/tools.jar</systemPath> -->
<!-- </dependency> -->
<!-- </dependencies> -->
<!-- </plugin> -->
<plugin>
<groupId>de.andrena.tools.macker</groupId>
<artifactId>macker-maven-plugin</artifactId>
<version>1.0.2</version>
<configuration>
<rule>macker/macker-rules.xml</rule>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>macker</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--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.apache.maven.plugins
</groupId>
<artifactId>
maven-antrun-plugin
</artifactId>
<versionRange>
[1.8,)
</versionRange>
<goals>
<goal>run</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
de.andrena.tools.macker
</groupId>
<artifactId>
macker-maven-plugin
</artifactId>
<versionRange>
[1.0.2,)
</versionRange>
<goals>
<goal>macker</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.openoffice.dev
</groupId>
<artifactId>
ooo-maven-plugin
</artifactId>
<versionRange>
[1.1.2-SNAPSHOT,)
</versionRange>
<goals>
<goal>build-idl</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

<dependencies>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>javax.mail-api</artifactId>
<version>1.5.4</version>
</dependency>
<dependency>
<groupId>de.muenchen</groupId>
<artifactId>unohelper</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
18 changes: 10 additions & 8 deletions runconfigs/VisibleTextFragmentList.launch
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="de.muenchen.allg.itd51.wollmux.VisibleTextFragmentList"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="testdata/TextfragmentsTest.conf"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="WollMux"/>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.STOP_IN_MAIN" value="true"/>
</launchConfiguration>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.m2e.launchconfig.classpathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="de.muenchen.allg.itd51.wollmux.VisibleTextFragmentList"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="testdata/TextfragmentsTest.conf"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="WollMux"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.m2e.launchconfig.sourcepathProvider"/>
<booleanAttribute key="org.eclipse.jdt.launching.STOP_IN_MAIN" value="true"/>
</launchConfiguration>
16 changes: 9 additions & 7 deletions runconfigs/WMCommandInterpreter.launch
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="de.muenchen.allg.itd51.wollmux.WMCommandInterpreter"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="TextfragmentsTest.conf cache.conf WMKommandoTest.odt"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="WollMux"/>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
</launchConfiguration>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.m2e.launchconfig.classpathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="de.muenchen.allg.itd51.wollmux.WMCommandInterpreter"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="TextfragmentsTest.conf cache.conf WMKommandoTest.odt"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="WollMux"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.m2e.launchconfig.sourcepathProvider"/>
</launchConfiguration>

0 comments on commit 6c626bd

Please sign in to comment.