Skip to content

Commit 1e44fa9

Browse files
committed
Initial
1 parent 1256559 commit 1e44fa9

File tree

3 files changed

+98
-1
lines changed

3 files changed

+98
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,11 @@ This shows a LOCAL_AS and a NO_PATH event:
8585
64-2:0:9,,2024-09-13T15:46:05.979346700Z,LOCAL_AS,0,[]
8686
71-2:0:4a,,2024-09-13T15:46:16.554705200Z,NO_PATH,0,[]
8787
```
88+
89+
# Trouble shooting
90+
91+
## No DNS search domain found. Please check your /etc/resolv.conf or similar.
92+
This happens, for example, on Windows when using a VPN. One solution is to execute the jar with the following property (the example works only for `ethz.ch`):
93+
```
94+
java -DSCION_DNS_SEARCH_DOMAINS=ethz.ch. -jar target/scion-multiping-0.0.1-ALPHA-SNAPSHOT-shaded.jar
95+
```

pom.xml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
<scion.junit.version>5.10.1</scion.junit.version>
1515
<scion.slf4j.version>2.0.9</scion.slf4j.version>
1616

17+
<scion.io-grpc.version>1.63.0</scion.io-grpc.version>
18+
1719
<scion.bnd-maven-plugin.version>6.4.0</scion.bnd-maven-plugin.version>
1820
<scion.build-helper-maven-plugin.version>3.3.0</scion.build-helper-maven-plugin.version>
1921
<scion.fmt-maven.version>2.20</scion.fmt-maven.version>
@@ -287,5 +289,92 @@
287289
</plugins>
288290
</build>
289291
</profile>
292+
<profile>
293+
<id>build-echo-repeat</id>
294+
<build>
295+
<!-- <resources>-->
296+
<!-- <resource>-->
297+
<!-- <directory>${litewebPath}/resources</directory>-->
298+
<!-- <filtering>true</filtering>-->
299+
<!-- </resource>-->
300+
<!-- </resources>-->
301+
<finalName>EchoRepeat-${project.version}</finalName>
302+
<plugins>
303+
<plugin>
304+
<artifactId>maven-assembly-plugin</artifactId>
305+
<version>3.4.2</version>
306+
<!-- <configuration>-->
307+
<!-- <descriptors>-->
308+
<!-- <descriptor>liteassembly.xml</descriptor>-->
309+
<!-- </descriptors>-->
310+
<!-- </configuration>-->
311+
<executions>
312+
<execution>
313+
<phase>package</phase>
314+
<goals>
315+
<goal>single</goal>
316+
</goals>
317+
<configuration>
318+
<archive>
319+
<manifest>
320+
<mainClass>org.scion.multiping.EchoRepeat</mainClass>
321+
</manifest>
322+
</archive>
323+
<descriptorRefs>
324+
<descriptorRef>jar-with-dependencies</descriptorRef>
325+
</descriptorRefs>
326+
</configuration>
327+
</execution>
328+
</executions>
329+
</plugin>
330+
</plugins>
331+
</build>
332+
</profile>
333+
<profile>
334+
<id>shaded-echo-repeat</id>
335+
<build>
336+
<plugins>
337+
<plugin>
338+
<groupId>org.apache.maven.plugins</groupId>
339+
<artifactId>maven-shade-plugin</artifactId>
340+
<version>2.4.3</version>
341+
<dependencies>
342+
<dependency>
343+
<groupId>io.grpc</groupId>
344+
<artifactId>grpc-netty-shaded</artifactId>
345+
<version>${scion.io-grpc.version}</version>
346+
</dependency>
347+
</dependencies>
348+
<executions>
349+
<execution>
350+
<phase>package</phase>
351+
<goals>
352+
<goal>shade</goal>
353+
</goals>
354+
<configuration>
355+
<shadedArtifactAttached>true</shadedArtifactAttached>
356+
<transformers>
357+
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
358+
<transformer implementation=
359+
"org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
360+
<mainClass>org.scion.multiping.EchoRepeat</mainClass>
361+
</transformer>
362+
</transformers>
363+
<filters>
364+
<filter>
365+
<artifact>*:*</artifact>
366+
<excludes>
367+
<exclude>**/module-info.class</exclude>
368+
<exclude>META-INF/versions/**</exclude>
369+
</excludes>
370+
</filter>
371+
</filters>
372+
</configuration>
373+
</execution>
374+
</executions>
375+
</plugin>
376+
</plugins>
377+
</build>
378+
</profile>
290379
</profiles>
291380
</project>

src/main/java/org/scion/multiping/EchoRepeat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public EchoRepeat(int localPort) {
6363
}
6464

6565
public static void main(String[] args) throws IOException {
66-
System.setProperty(Constants.PROPERTY_DNS_SEARCH_DOMAINS, "ethz.ch.");
66+
// System.setProperty(Constants.PROPERTY_DNS_SEARCH_DOMAINS, "ethz.ch.");
6767

6868
config = Config.read(FILE_CONFIG);
6969
PRINT = config.consoleOutput;

0 commit comments

Comments
 (0)