Hi,
I am trying to extend Nessi2.1.1, for which as a sample case I am trying to launch Echo Server application using maven and eclipse. Despite trying all I can , I am unable to figure out why on running "mvn clean install" the jar file is not creating.
Please can someone have a look at it and help me.
You can find the project here : https://drive.google.com/open?id=0B6AvQxTGw6_NcTdrNmhyZDNBN1k
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
there are a few issues in your sample project:
1) Since there was an API change in Maven the old tycho version 0.17.0 is incompatible with current version of maven, you can savely change this to 1.0.0 in the properties-section of the pom.xml
2) You should re-add the nessi-unzip-repository in the pom:
<repository>
<id>dai-open-p2</id>
<url>http://repositories.dai-labor.de/extern/content/unzip/p2-releases/de/dailab/nessi/nessi.repository/2.1.1/nessi.repository-2.1.1.zip-unzip</url>
<layout>p2</layout>
</repository>
make sure there is no line break in the url, otherwise maven will instantly fail
3) Make sure that plugin-id ("Bundle-SymbolicName" in the manifest) exactly matches the artifactId in the pom.xml. The bundle-version must correspond to the version in the pom. When using -SNAPHOT builds, match it up with a .qualifier (e.g. "1.0.0-SNAPSHOT" corresponds to "1.0.0.qualifier")
4) Delete the generated Activator class, which has UI-dependencies. It will fail to run on the backend and is not needed. Also make sure that the "Bundle-Activator" entry in the manifest is removed accordingly
Best regards,
Jakob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am trying to extend Nessi2.1.1, for which as a sample case I am trying to launch Echo Server application using maven and eclipse. Despite trying all I can , I am unable to figure out why on running "mvn clean install" the jar file is not creating.
Please can someone have a look at it and help me.
You can find the project here : https://drive.google.com/open?id=0B6AvQxTGw6_NcTdrNmhyZDNBN1k
Hi Amit,
there are a few issues in your sample project:
1) Since there was an API change in Maven the old tycho version 0.17.0 is incompatible with current version of maven, you can savely change this to 1.0.0 in the properties-section of the pom.xml
2) You should re-add the nessi-unzip-repository in the pom:
<repository>
<id>dai-open-p2</id>
<url>http://repositories.dai-labor.de/extern/content/unzip/p2-releases/de/dailab/nessi/nessi.repository/2.1.1/nessi.repository-2.1.1.zip-unzip</url>
<layout>p2</layout>
</repository>
make sure there is no line break in the url, otherwise maven will instantly fail
3) Make sure that plugin-id ("Bundle-SymbolicName" in the manifest) exactly matches the artifactId in the pom.xml. The bundle-version must correspond to the version in the pom. When using -SNAPHOT builds, match it up with a .qualifier (e.g. "1.0.0-SNAPSHOT" corresponds to "1.0.0.qualifier")
4) Delete the generated Activator class, which has UI-dependencies. It will fail to run on the backend and is not needed. Also make sure that the "Bundle-Activator" entry in the manifest is removed accordingly
Best regards,
Jakob