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>
<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>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
@ -45,7 +61,8 @@
<archive>
<manifest>
<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>
</archive>
</configuration>

View file

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