Adapt Maven config file to be able to compile the IDFM parser

This commit is contained in:
RODRIGUEZ lucas 2024-03-05 11:40:30 +01:00
parent 5406582d34
commit 5727710944
2 changed files with 20 additions and 2 deletions

19
pom.xml
View file

@ -37,6 +37,22 @@
<build> <build>
<plugins> <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/${project.build.finalName}.lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
@ -45,7 +61,8 @@
<archive> <archive>
<manifest> <manifest>
<addClasspath>true</addClasspath> <addClasspath>true</addClasspath>
<mainClass>fr.u_paris.gla.project.App</mainClass> <classpathPrefix>${project.build.finalName}.lib/</classpathPrefix>
<mainClass>fr.u_paris.gla.project.idfm.IDFMNetworkExtractor</mainClass>
</manifest> </manifest>
</archive> </archive>
</configuration> </configuration>

View file

@ -25,7 +25,8 @@ public final class TraceEntry {
// FIXME list of lists are bad practice in direct access... // FIXME list of lists are bad practice in direct access...
/** @return the list of paths */ /** @return the list of paths */
public List<List<StopEntry>> getPaths() { public List<List<StopEntry>> getPaths() {
return Collections.unmodifiableList(paths); // TODO Ne pas retourner directement la liste
return paths;
} }
public void addPath(List<StopEntry> path) { public void addPath(List<StopEntry> path) {