Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
37020b44
Commit
37020b44
authored
Dec 13, 2021
by
Julian Zobel
🦄
Browse files
Maven adaptations due to missing staxutils for XMLStreamWriter. Changed to txw2
parent
d0bac56c
Changes
2
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
37020b44
...
...
@@ -59,32 +59,7 @@
<updatePolicy>
always
</updatePolicy>
</releases>
</repository>
<!-- local kom repository -->
<!--
<repository>
<id>maven.kom</id>
<url>http://www.kom.tu-darmstadt.de/~stingl/PeerfactSim.KOM-Libraries/maven2/</url>
</repository> -->
<!-- -->
<!-- jgrapht can be found there -->
<!--
<repository>
<id>conjars.org</id>
<url>http://conjars.org/repo</url>
</repository>
-->
<!-- uk maven central, since the local central server is slow as hell -->
<!--
<repository>
<id>uk.maven.org</id>
<url>http://uk.maven.org/maven2</url>
</repository>
-->
<repository>
<id>
Google Maven Central
</id>
<url>
https://maven-central.storage.googleapis.com/repos/central/data/
</url>
...
...
@@ -109,6 +84,11 @@
<version>
1.0
</version>
</dependency>
<dependency>
<groupId>
org.glassfish.jaxb
</groupId>
<artifactId>
txw2
</artifactId>
<version>
3.0.2
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/stax/stax -->
<dependency>
...
...
@@ -116,17 +96,7 @@
<artifactId>
stax
</artifactId>
<version>
1.2.0
</version>
</dependency>
<dependency>
<groupId>
stax
</groupId>
<artifactId>
utils
</artifactId>
<version>
1.0.0
</version>
</dependency>
<dependency>
<groupId>
xerces
</groupId>
<artifactId>
xercesImpl
</artifactId>
...
...
@@ -139,9 +109,7 @@
<artifactId>
batik-1.5-fop
</artifactId>
<version>
0.20-5
</version>
</dependency>
<!-- unused? <dependency> <groupId>batik</groupId> <artifactId>batik-parser</artifactId>
<version>1.5</version> </dependency> <dependency> <groupId>batik</groupId>
<artifactId>batik-awt-util</artifactId> <version>1.5</version> </dependency> -->
<!-- Testing -->
<dependency>
...
...
@@ -169,9 +137,7 @@
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
log4j-api
</artifactId>
<version>
2.15.0
</version>
</dependency>
</dependency>
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
<dependency>
...
...
@@ -181,13 +147,6 @@
</dependency>
<!-- Parsing, Bytecode, ... -->
<!-- Unused <dependency> <groupId>antlr</groupId> <artifactId>antlr</artifactId>
<version>2.7.6</version> </dependency> <dependency> <groupId>org.antlr</groupId>
<artifactId>antlr-runtime</artifactId> <version>3.2</version> </dependency>
<dependency> <groupId>javassist</groupId> <artifactId>javassist</artifactId>
<version>3.12.0.GA</version> </dependency> -->
<!-- Geometric calculations -->
<dependency>
<groupId>
com.vividsolutions
</groupId>
...
...
@@ -196,22 +155,14 @@
</dependency>
<!-- Graphs -->
<!--
<dependency>
<groupId>thirdparty</groupId>
<artifactId>jgrapht-jdk1.6</artifactId>
<version>0.8.2</version>
</dependency>
-->
<dependency>
<groupId>
org.jgrapht
</groupId>
<artifactId>
jgrapht-core
</artifactId>
<version>
1.5.0
</version>
</dependency>
<!-- Chart creation -->
<!-- unused? <dependency> <groupId>jfree</groupId> <artifactId>jcommon</artifactId>
<version>1.0.16</version> </dependency> -->
<!-- Chart creation -->
<dependency>
<groupId>
org.jfree
</groupId>
<artifactId>
jfreechart
</artifactId>
...
...
@@ -260,13 +211,7 @@
<artifactId>
commons-math3
</artifactId>
<version>
3.6.1
</version>
</dependency>
<!-- OLD Math for some outdated classes -->
<!-- <dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math</artifactId>
<version>2.2</version>
</dependency>-->
<dependency>
<groupId>
commons-net
</groupId>
...
...
@@ -280,24 +225,7 @@
</dependency>
<!-- SimCfg, Xtext, EMF dependencies -->
<!-- unused <dependency> <groupId>org.eclipse</groupId> <artifactId>xtext</artifactId>
<version>2.3.0</version> </dependency> <dependency> <groupId>org.eclipse</groupId>
<artifactId>xtext.util</artifactId> <version>2.3.0</version> </dependency>
<dependency> <groupId>org.eclipse.emf</groupId> <artifactId>ecore</artifactId>
<version>2.8.1</version> </dependency> <dependency> <groupId>org.eclipse.emf</groupId>
<artifactId>ecore.xmi</artifactId> <version>2.8.0</version> </dependency>
<dependency> <groupId>org.eclipse.emf</groupId> <artifactId>ecore.xmi</artifactId>
<version>2.8.0</version> </dependency> <dependency> <groupId>org.eclipse.emf</groupId>
<artifactId>common</artifactId> <version>2.8.0</version> </dependency> <dependency>
<groupId>org.eclipse</groupId> <artifactId>xtext.common.types</artifactId>
<version>2.3.0</version> </dependency> <dependency> <groupId>org.eclipse</groupId>
<artifactId>xtext.util</artifactId> <version>2.3.0</version> </dependency>
<dependency> <groupId>org.eclipse.emf</groupId> <artifactId>mwe2.runtime</artifactId>
<version>2.3.0</version> </dependency> <dependency> <groupId>org.eclipse.emf</groupId>
<artifactId>mwe.core</artifactId> <version>1.2.1</version> </dependency>
<dependency> <groupId>org.eclipse.emf</groupId> <artifactId>mwe.utils</artifactId>
<version>1.2.1</version> </dependency> -->
<!-- Math -->
<!-- https://mvnrepository.com/artifact/ca.umontreal.iro.simul/ssj -->
<dependency>
...
...
@@ -305,14 +233,7 @@
<artifactId>
ssj
</artifactId>
<version>
3.3.1
</version>
</dependency>
<!--
<dependency>
<groupId>umontreal.iro.lecuyer</groupId>
<artifactId>ssj</artifactId>
<version>1.1.9</version>
</dependency>
-->
<!-- Date & Time calculations -->
<dependency>
<groupId>
joda-time
</groupId>
...
...
@@ -326,12 +247,7 @@
<artifactId>
javax.inject
</artifactId>
<version>
1
</version>
</dependency>
<!-- unused <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId>
<version>1.0.4</version> </dependency> <dependency> <groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId> <version>1.2</version> </dependency>
<dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-utils</artifactId>
<version>2.1</version> </dependency> -->
<dependency>
<groupId>
commons-lang
</groupId>
<artifactId>
commons-lang
</artifactId>
...
...
@@ -343,17 +259,6 @@
<version>
1.4.1
</version>
</dependency>
<!-- <dependency> <groupId>com.baulsupp.kolja</groupId> <artifactId>jcurses</artifactId>
<version>0.9.5.3</version> </dependency> -->
<!-- Geodemlia -->
<!-- unused <dependency> <groupId>org.swinglabs</groupId> <artifactId>jxmapviewer</artifactId>
<version>1.0</version> </dependency> <dependency> <groupId>org.swinglabs</groupId>
<artifactId>swingx</artifactId> <version>1.6.1</version> </dependency> -->
<!-- JUNG Graph Library -->
<!-- unused<dependency> <groupId>net.sf.jung</groupId> <artifactId>jung2</artifactId>
<version>2.0.1</version> <type>pom</type> </dependency> -->
<dependency>
<groupId>
net.sf.jung
</groupId>
<artifactId>
jung-api
</artifactId>
...
...
@@ -374,24 +279,8 @@
<artifactId>
jung-io
</artifactId>
<version>
2.0.1
</version>
</dependency>
<!-- unused <dependency> <groupId>net.sf.jung</groupId> <artifactId>jung-visualization</artifactId>
<version>2.0.1</version> </dependency> <dependency> <groupId>net.sf.jung</groupId>
<artifactId>jung-samples</artifactId> <version>2.0.1</version> </dependency> -->
<!-- OSM-Data for movement models -->
<!--
<dependency>
<groupId>com.graphhopper</groupId>
<artifactId>graphhopper</artifactId>
<version>0.8.0</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
-->
<!-- OSM-Data for movement models -->
<dependency>
<groupId>
com.graphhopper
</groupId>
<artifactId>
graphhopper-core
</artifactId>
...
...
@@ -411,7 +300,6 @@
<version>
20140107
</version>
</dependency>
<!-- Simonstrator-Platform -->
<dependency>
<groupId>
maki
</groupId>
...
...
@@ -425,5 +313,6 @@
<artifactId>
simonstrator-traci
</artifactId>
<version>
0.2-SNAPSHOT
</version>
</dependency>
</dependencies>
</project>
src/de/tud/kom/p2psim/impl/util/db/relational/RelationalDB.java
View file @
37020b44
...
...
@@ -52,7 +52,8 @@ import org.xml.sax.helpers.DefaultHandler;
import
de.tud.kom.p2psim.impl.util.toolkits.SAXToolkit
;
import
de.tudarmstadt.maki.simonstrator.api.Monitor
;
import
de.tudarmstadt.maki.simonstrator.api.Monitor.Level
;
import
javanet.staxutils.IndentingXMLStreamWriter
;
import
com.sun.xml.txw2.output.IndentingXMLStreamWriter
;
/**
* <p>
...
...
@@ -435,7 +436,7 @@ public abstract class RelationalDB implements XMLSerializable {
IndentingXMLStreamWriter
indwr
=
new
IndentingXMLStreamWriter
(
writer
);
//Ensures indentation of the XML document
indwr
.
setIndent
(
" "
);
indwr
.
setIndent
Step
(
" "
);
writer
=
indwr
;
writer
.
writeStartDocument
(
"1.0"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment