Menu

About Extending Nessi2

Help
cici
2012-03-22
2013-02-07
  • cici

    cici - 2012-03-22

    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;

     
  • Karsten Bsufka

    Karsten Bsufka - 2012-03-22

    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.

     
  • cici

    cici - 2012-03-22

    Thanks for your quick
    I have tried  to instead the dependency .Although error become less,it still reports errors.

     
  • cici

    cici - 2012-03-23

    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?

     
  • cici

    cici - 2012-03-26

    Thank you very much! Problems have been sovled after adding the repository.

     
  • cici

    cici - 2012-03-26

    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.

     
  • cici

    cici - 2012-04-06

    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;

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.