when develop a server application
in maven+eclipse:
add NeSSi2Maven repository into a profile and activate it in maven2 settings.xml.Then start Eclipse and import the POM as a Maven project which showed in the Nessi2Manual,but it reported some errors as the following picture.
And I can not find packages which are needed in the class:
import de.dailab.nessi.api.AbstractIPApplication;
import de.dailab.nessi.api.annotations.Description;
import de.dailab.nessi.api.annotations.classes.Application;
import de.dailab.nessi.api.annotations.fields.IntegerOption;
import de.dailab.nessi.api.events.Event;
import de.dailab.nessi.ipmodel.nonemf.interfaces.IPacket;
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hopefully the easiest solution is to update your NeSSi2 dependencies in your pom.xml. Please make sure you have the following dependency:
<dependency>
<groupId>de.dailab.nessi2.ip</groupId>
<artifactId>nessi2-ip-networks</artifactId>
<version>2.0.0-beta.5.1</version>
</dependency>
The description on nessi2.de used an outdated version. Which has been fixed now.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Then I delete all the repository,and update again.It reports no error in the Problems,but some errors in the Console:
Missing:
1) org.eclipse.emf:ecore-xmi:jar:2.5.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.eclipse.emf -DartifactId=ecore-xmi -Dversion=2.5.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.eclipse.emf -DartifactId=ecore-xmi -Dversion=2.5.0 -Dpackaging=jar -Dfile=/path/to/file -Durl= -DrepositoryId=
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.eclipse.emf -DartifactId=ecore -Dversion=2.6.1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.eclipse.emf -DartifactId=ecore -Dversion=2.6.1 -Dpackaging=jar -Dfile=/path/to/file -Durl= -DrepositoryId=
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.eclipse.emf -DartifactId=common -Dversion=2.6.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.eclipse.emf -DartifactId=common -Dversion=2.6.0 -Dpackaging=jar -Dfile=/path/to/file -Durl= -DrepositoryId=
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
nexus (http://localhost:8081/nexus/content/groups/public/),
daiopen (http://repositories.dai-labor.de/extern/content/repositories/dai-open),
jboss (http://repository.jboss.com/maven2/)
Could anyone tell me where the three packages are?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Now I have worked out the example in the extending Nessi2.
The problems above have sloved as follow :
import de.dailab.nessi.api.applications.annotations.Description;
import de.dailab.nessi.api.applications.annotations.Application;
import de.dailab.nessi.api.applications.annotations.IntegerOption;
import de.dailab.nessi.ipmodel.api.IPacket;
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
when develop a server application
in maven+eclipse:
add NeSSi2Maven repository into a profile and activate it in maven2 settings.xml.Then start Eclipse and import the POM as a Maven project which showed in the Nessi2Manual,but it reported some errors as the following picture.
And I can not find packages which are needed in the class:
import de.dailab.nessi.api.AbstractIPApplication;
import de.dailab.nessi.api.annotations.Description;
import de.dailab.nessi.api.annotations.classes.Application;
import de.dailab.nessi.api.annotations.fields.IntegerOption;
import de.dailab.nessi.api.events.Event;
import de.dailab.nessi.ipmodel.nonemf.interfaces.IPacket;
Hopefully the easiest solution is to update your NeSSi2 dependencies in your pom.xml. Please make sure you have the following dependency:
<dependency>
<groupId>de.dailab.nessi2.ip</groupId>
<artifactId>nessi2-ip-networks</artifactId>
<version>2.0.0-beta.5.1</version>
</dependency>
The description on nessi2.de used an outdated version. Which has been fixed now.
Thanks for your quick
I have tried to instead the dependency .Although error become less,it still reports errors.
Then I delete all the repository,and update again.It reports no error in the Problems,but some errors in the Console:
Missing:
1) org.eclipse.emf:ecore-xmi:jar:2.5.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.eclipse.emf -DartifactId=ecore-xmi -Dversion=2.5.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.eclipse.emf -DartifactId=ecore-xmi -Dversion=2.5.0 -Dpackaging=jar -Dfile=/path/to/file -Durl= -DrepositoryId=
Path to dependency:
1) com.example:plugin:jar:1.0.0
2) de.dailab.nessi2.ip:nessi2-ip-networks:jar:2.0.0-beta.5.1
3) de.dailab.nessi2.ip:nessi2-ipmodel:jar:2.0.0-beta.5.1
4) de.dailab.nessi2.core:nessi2-model:jar:2.0.0-beta.5.1
5) org.eclipse.emf:ecore-xmi:jar:2.5.0
2) org.eclipse.emf:ecore:jar:2.6.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.eclipse.emf -DartifactId=ecore -Dversion=2.6.1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.eclipse.emf -DartifactId=ecore -Dversion=2.6.1 -Dpackaging=jar -Dfile=/path/to/file -Durl= -DrepositoryId=
Path to dependency:
1) com.example:plugin:jar:1.0.0
2) de.dailab.nessi2.ip:nessi2-ip-networks:jar:2.0.0-beta.5.1
3) de.dailab.nessi2.ip:nessi2-ipmodel:jar:2.0.0-beta.5.1
4) de.dailab.nessi2.core:nessi2-model:jar:2.0.0-beta.5.1
5) org.eclipse.emf:ecore:jar:2.6.1
3) org.eclipse.emf:common:jar:2.6.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.eclipse.emf -DartifactId=common -Dversion=2.6.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.eclipse.emf -DartifactId=common -Dversion=2.6.0 -Dpackaging=jar -Dfile=/path/to/file -Durl= -DrepositoryId=
Path to dependency:
1) com.example:plugin:jar:1.0.0
2) de.dailab.nessi2.ip:nessi2-ip-networks:jar:2.0.0-beta.5.1
3) de.dailab.nessi2.ip:nessi2-ipmodel:jar:2.0.0-beta.5.1
4) de.dailab.nessi2.core:nessi2-model:jar:2.0.0-beta.5.1
5) org.eclipse.emf:common:jar:2.6.0
3 required artifacts are missing.
for artifact:
com.example:plugin:jar:1.0.0
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
nexus (http://localhost:8081/nexus/content/groups/public/),
daiopen (http://repositories.dai-labor.de/extern/content/repositories/dai-open),
jboss (http://repository.jboss.com/maven2/)
Could anyone tell me where the three packages are?
Hello,
please add the following repositories to your pom.xml:
<repositories>
<repository>
<id>dai-open</id>
<url>http://repositories.dai-labor.de/extern/content/repositories/dai-open</url>
</repository>
<repository>
<id>thirdparty-public</id>
<url>http://repositories.dai-labor.de/extern/content/repositories/open-thirdparty/</url>
</repository>
</repositories>
Missing dependencies are located in the thirdparty-repo.
Thank you very much! Problems have been sovled after adding the repository.
Uh..after pom.xm,I still have problems in writing java .
import de.dailab.nessi.api.annotations.Description;
import de.dailab.nessi.api.annotations.classes.Application;
import de.dailab.nessi.api.annotations.fields.IntegerOption;
import de.dailab.nessi.ipmodel.nonemf.interfaces.IPacket;
I can't find these classes in these packages-de.dailab.nessi.api and de.dailab.nessi.ipmodel.
Now I have worked out the example in the extending Nessi2.
The problems above have sloved as follow :
import de.dailab.nessi.api.applications.annotations.Description;
import de.dailab.nessi.api.applications.annotations.Application;
import de.dailab.nessi.api.applications.annotations.IntegerOption;
import de.dailab.nessi.ipmodel.api.IPacket;