pom.xml 5.36 KB
Newer Older
Felix Dietrich's avatar
Felix Dietrich committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<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>
  <parent>
    <groupId>org.vadere</groupId>
    <artifactId>vadere</artifactId>
    <version>0.1-SNAPSHOT</version>
    <relativePath>../pom.xml</relativePath>
  </parent>

  <artifactId>simulator</artifactId>
  <name>Vadere Simulator</name>
  <build>
    <sourceDirectory>src</sourceDirectory>
    <testSourceDirectory>tests</testSourceDirectory>
    <resources>
      <resource>
        <directory>src</directory>
        <excludes>
          <exclude>**/*.java</exclude>
        </excludes>
      </resource>
        <resource>
            <directory>resources</directory>
        </resource>
    </resources>
      <testResources>
          <testResource>
              <directory>testResources</directory>
          </testResource>
          <testResource>
              <directory>tests</directory>
              <excludes>
                  <exclude>**/*.java</exclude>
              </excludes>
          </testResource>
      </testResources>
    <plugins>
38
39
40
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
41
            <version>1.6.0</version>
42
43
44
            <executions>
                <execution>
                    <id>write_version_control_info_to_file</id>
45
                    <phase>generate-resources</phase>
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
                    <goals>
                        <goal>exec</goal>
                    </goals>
                </execution>
            </executions>
            <!-- Write a file with current version of Vadere to get reproducible simulations. -->
            <configuration>
                <executable>git</executable>
                <arguments>
                    <argument>rev-parse</argument>
                    <argument>HEAD</argument>
                </arguments>
                <outputFile>resources/current_commit_hash.txt</outputFile>
            </configuration>
        </plugin>
Felix Dietrich's avatar
Felix Dietrich committed
61
62
63
      <plugin>
		  <groupId>org.apache.maven.plugins</groupId>
		  <artifactId>maven-compiler-plugin</artifactId>
64
		  <version>${maven-compiler.version}</version>
Felix Dietrich's avatar
Felix Dietrich committed
65
		  <configuration>
66
67
              <source>${maven-compiler.source.version}</source>
              <target>${maven-compiler.target.version}</target>
68
69
70
              <annotationProcessorPaths>
              <path>
                  <groupId>org.vadere</groupId>
71
                  <artifactId>annotation</artifactId>
72
73
74
                  <version>0.1-SNAPSHOT</version>
              </path>
              </annotationProcessorPaths>
Felix Dietrich's avatar
Felix Dietrich committed
75
76
		  </configuration>
		</plugin>
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
        <plugin>
            <!-- NOTE: We don't need a groupId specification because the group is
                 org.apache.maven.plugins ...which is assumed by default.
             -->
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.4</version>
            <executions>
                <execution>
                    <id>build-vadere-console</id> <!-- this is used for inheritance merges -->
                    <phase>package</phase> <!-- bind to the packaging phase -->
                    <goals>
                        <goal>single</goal>
                    </goals>
                    <configuration>
                        <archive>
                            <manifest>
                                <mainClass>org.vadere.simulator.entrypoints.cmd.VadereConsole</mainClass>
                            </manifest>
                        </archive>
                        <descriptorRefs>
                            <descriptorRef>jar-with-dependencies</descriptorRef>
                        </descriptorRefs>
                        <finalName>vadere-console</finalName>
                        <appendAssemblyId>false</appendAssemblyId>
                    </configuration>
                </execution>
            </executions>
        </plugin>
Felix Dietrich's avatar
Felix Dietrich committed
105
106
    </plugins>
  </build>
107

108
109
110
111
112
113
114
115
116
117
118
    <repositories>
        <repository>
            <id>nativelibs4java</id>
            <name>nativelibs4java Maven2 Repository</name>
            <url>http://nativelibs4java.sourceforge.net/maven</url>
        </repository>
    </repositories>
    <properties>
        <platform.dependency>windows-x86_64</platform.dependency>
    </properties>

Felix Dietrich's avatar
Felix Dietrich committed
119
120
121
122
123
124
125
126
  <dependencies>
  	<dependency>
  		<groupId>commons-codec</groupId>
  		<artifactId>commons-codec</artifactId>
  		<version>1.8</version>
  	</dependency>

<!-- module dependencies -->
127
    <dependency>
Felix Dietrich's avatar
Felix Dietrich committed
128
129
130
      <groupId>${project.groupId}</groupId>
      <artifactId>state</artifactId>
      <version>${project.version}</version>
131
132
    </dependency>
    <dependency>
Felix Dietrich's avatar
Felix Dietrich committed
133
134
135
      <groupId>${project.groupId}</groupId>
      <artifactId>utils</artifactId>
      <version>${project.version}</version>
136
137
138
    </dependency>
      <dependency>
          <groupId>${project.groupId}</groupId>
139
          <artifactId>annotation</artifactId>
140
141
          <version>${project.version}</version>
      </dependency>
142
143
144
145
146
      <dependency>
          <groupId>${project.groupId}</groupId>
          <artifactId>meshing</artifactId>
          <version>${project.version}</version>
      </dependency>
147

Felix Dietrich's avatar
Felix Dietrich committed
148
149
150
151
152
   <dependency>
   	<groupId>net.sourceforge.argparse4j</groupId>
   	<artifactId>argparse4j</artifactId>
   	<version>0.4.3</version>
   </dependency>
153

Felix Dietrich's avatar
Felix Dietrich committed
154
  </dependencies>
155
</project>