pom.xml 4.9 KB
Newer Older
Dr. Martin Goik's avatar
Dr. Martin Goik committed
1 2 3 4 5 6 7 8 9 10 11
<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.hdm_stuttgart.mi.sda1</groupId>
  <artifactId>solve</artifactId>
  <version>0.9</version>
  <packaging>jar</packaging>

  <name>Solve</name>

12
  <url>https://freedocs.mi.hdm-stuttgart.de/sd1_sect_mavenCli.html</url>
Dr. Martin Goik's avatar
Dr. Martin Goik committed
13 14 15

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16
    <oxygenxml.version>21.1.0.0</oxygenxml.version>
Dr. Martin Goik's avatar
Dr. Martin Goik committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
  </properties>

  <repositories>

    <repository>
      <id>hdm-mi-internal-maven-repo</id>
      <url>https://maven.mi.hdm-stuttgart.de/nexus/repository/mi-maven</url>
    </repository>
    <repository>
      <id>oxygenxml-repo</id>
      <url>https://maven.mi.hdm-stuttgart.de/nexus/repository/oxygen</url>
    </repository>
  </repositories>

  <dependencies>

    <dependency>
      <groupId>com.oxygenxml</groupId>
35
      <artifactId>oxygen-patched-xerces</artifactId>
Dr. Martin Goik's avatar
Dr. Martin Goik committed
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
      <version>${oxygenxml.version}</version>
    </dependency>

    <dependency>
      <groupId>com.oxygenxml</groupId>
      <artifactId>oxygen</artifactId>
      <version>${oxygenxml.version}</version>
    </dependency>

    <!-- Still needed to keep oxygenxml happy using legacy logging -->
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.17</version>
    </dependency>

    <dependency>
      <groupId>com.rackspace.eclipse.webtools.sourceediting</groupId>
      <artifactId>org.eclipse.wst.xml.xpath2.processor</artifactId>
      <version>2.1.100</version>
    </dependency>

    <dependency>
59 60 61
      <groupId>postgresql</groupId>
      <artifactId>postgresql</artifactId>
      <version>9.1-901-1.jdbc4</version>
Dr. Martin Goik's avatar
Dr. Martin Goik committed
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-core</artifactId>
      <version>2.10.0</version>
    </dependency>

    <dependency>
      <groupId>javax.xml.bind</groupId>
      <artifactId>jaxb-api</artifactId>
      <version>2.3.0</version>
    </dependency>

    <!-- Required for executable jar generation to avoid ClassNotFoundException:
        com.fasterxml.jackson.core.type.TypeReference and similar dependency problems. -->
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      <version>2.9.3</version>
    </dependency>

    <dependency>
      <groupId>org.jdom</groupId>
      <artifactId>jdom2</artifactId>
      <version>2.0.6</version>
    </dependency>

    <dependency>
      <groupId>jaxen</groupId>
      <artifactId>jaxen</artifactId>
      <version>1.1.6</version>
    </dependency>

    <dependency>
      <groupId>de.hdm_stuttgart.mi.exam</groupId>
      <artifactId>unitmarking</artifactId>
106
      <version>1.0</version>
Dr. Martin Goik's avatar
Dr. Martin Goik committed
107 108 109 110 111 112 113 114 115 116
    </dependency>

  </dependencies>

  <build>
    <plugins>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
117
        <version>3.8.1</version>
Dr. Martin Goik's avatar
Dr. Martin Goik committed
118
        <configuration>
119 120
          <source>11</source>
          <target>11</target>
Dr. Martin Goik's avatar
Dr. Martin Goik committed
121 122 123 124 125 126 127
          <compilerArgument>-proc:none</compilerArgument>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
128
        <version>3.1.0</version>
Dr. Martin Goik's avatar
Dr. Martin Goik committed
129
        <configuration>
130 131 132 133 134 135 136 137 138
          <javaApiLinks>
            <property>
              <name>api_11</name>
              <value>https://klausur.mi.hdm-stuttgart.de/doc/openjdk-11-doc/api/</value>
            </property>
          </javaApiLinks>

          <stylesheetfile>localstyles.css</stylesheetfile>

Dr. Martin Goik's avatar
Dr. Martin Goik committed
139 140 141
          <additionalJOptions>
            <additionalJOption>-html5</additionalJOption>
          </additionalJOptions>
142
          <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
Dr. Martin Goik's avatar
Dr. Martin Goik committed
143 144 145 146 147
        </configuration>
      </plugin>

      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
148 149
        <version>3.1.1</version>

Dr. Martin Goik's avatar
Dr. Martin Goik committed
150
        <configuration>
151 152 153
          <descriptors>
            <descriptor>src/main/assembly/assembly.xml</descriptor>
          </descriptors>
Dr. Martin Goik's avatar
Dr. Martin Goik committed
154 155 156 157 158 159 160 161 162 163 164
        </configuration>
        <executions>
          <execution>
            <id>make-assembly</id>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
            <configuration>
              <archive>
                <manifest>
165
                  <mainClass>de.hdm_stuttgart.mi.sda1.test.ex1.ShowReachedPoints</mainClass>
Dr. Martin Goik's avatar
Dr. Martin Goik committed
166 167 168 169 170 171 172 173
                </manifest>
              </archive>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
174
</project>