You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi folks,
Thank you so much for offering this repo and all the cooperation by now. I am wondering if there is an initiative or a project out there that is using this repo. Do you know any?
I am also wondering what is the right way to get this repo running? Do you know how?
I am facing some obstacles when I copy the Server Example,
make it a deployable class like this,
packagede.swingbe.oba_siri;
importcom.google.inject.Guice;
importcom.google.inject.Injector;
importorg.onebusaway.guice.jsr250.LifecycleService;
importorg.onebusaway.siri.core.SiriCoreModule;
importorg.onebusaway.siri.core.SiriServer;
importorg.onebusaway.siri.jetty.SiriJettyModule;
importuk.org.siri.siri.ServiceDelivery;
importjava.util.ArrayList;
importjava.util.List;
publicclassMain {
publicstaticvoidmain(String[] args) {
System.out.println("Hello world!");
// Configure the Guice containerList<Module> modules = newArrayList<Module>();
modules.addAll(SiriCoreModule.getModules());
modules.add(newSiriJettyModule());
Injectorinjector = Guice.createInjector(modules);
SiriServerserver = injector.getInstance(SiriServer.class);
// Set our SIRI identityserver.setIdentify("me");
// Change the port and url we listen to for incoming client requestsserver.setUrl("http://*:8080/server.xml");
// Start the clientLifecycleServicelifecycleService = injector.getInstance(LifecycleService.class);
lifecycleService.start();
// Publish a ServiceDeliveryServiceDeliverydelivery = newServiceDelivery() server.puslish(delivery);
System.out.println("Bye!");
return;
}
}
see these IDE complains,
and use this pom.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
...
<dependencies>
<dependency>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-siri-core</artifactId>
<version>1.0.7-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-siri-jetty</artifactId>
<version>1.0.7-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<!-- Target Java versions -->
<release>11</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<!-- exclude signatures from merged JAR to avoid invalid signature messages -->
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<!-- The shaded JAR will not be the main artifact for the project, it will be attached
for deployment in the way source and docs are. -->
<shadedArtifactAttached>true
</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>de.swingbe.oba_siri.Main
</Main-Class>
</manifestEntries>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
I am appreciating every hint that makes this library hit the road.
Cheers!
The text was updated successfully, but these errors were encountered:
BTW, I would like to switch to a public mvn module repo instead of using locally installed modules. However, I am confused about different mvn module repos for OneBusWay out there? I am appreciating every hint making this situation clear to me.
Hi folks,
Thank you so much for offering this repo and all the cooperation by now. I am wondering if there is an initiative or a project out there that is using this repo. Do you know any?
I am also wondering what is the right way to get this repo running? Do you know how?
I am facing some obstacles when I copy the Server Example,
make it a deployable class like this,
see these IDE complains,
and use this pom.xml file.
I am appreciating every hint that makes this library hit the road.
Cheers!
The text was updated successfully, but these errors were encountered: