I was running the proxy example code. Since i didn't need to make changes i have been using the same jar file for 2 weeks.
Friday i needed to make some changes and i could not compile the code. It was an error about not finding the class Endpoint or CoAPEndpoint. I tried clean, install but nothing worked.
This is my my pom file ( i dont know much about maven so maybe something is wrong with it even if it did work by accident before)
<modelVersion>4.0.0</modelVersion>
<groupId>be.ugent</groupId>
<artifactId>param-proxy</artifactId>
<packaging>jar</packaging>
<version>0.0.1-SNAPSHOT</version>
<description>Proxy for string to binary translation</description>
<jdk.version>1.7</jdk.version>
<groupId>org.eclipse.californium</groupId>
<artifactId>californium-core</artifactId>
<version>1.0.0-SNAPSHOT</version>
<groupId>org.eclipse.californium</groupId>
<artifactId>californium-proxy</artifactId>
<version>1.0.0-SNAPSHOT</version>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<name>Californium Repository</name>
<finalName>paramProxy</finalName>
<!-- download source code in Eclipse, best practice -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<downloadSources>true</downloadSources>
<downloadJavadocs>false</downloadJavadocs>
<!-- Set a compiler level -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
<!-- Maven Assembly Plugin -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<!-- get all project dependencies -->
<descriptorRef>jar-with-dependencies</descriptorRef>
<!-- MainClass in mainfest make a executable jar -->
<mainClass>be.ugent.server.ReverseParamProxy</mainClass>
<!-- bind to the packaging phase -->