I am quite experienced with java but i'm using maven for the first time. i have installed Eclipse Kepler (Eclipse for RCP and RAP Developers), I have installed Tychus as well with the "add new software" button.
There is an Internet of things project that I cloned and built called OM2M. I followed the install wiki step by step and everything work until then. cloning wiki here
I want to develop my own OSGI module so I went to the 'developer' section of the wiki and once again and created a new plugin project. When i try to convert this plugin project into a maven project ( link to the step i'm talking about ) I don't have to "eclipse-plugin" packaging type for my pom wiki screenshot here.
I looked it up on the web and apparently it has something to do with Tychus that needs configuration, I tried typing it in the box but obviously I have problems when i try to build, I tried editing the main pom.xml with stuff I found but none of them work and I really don't know what to do to make it work.
Do you guys have an idea ? Thanks
Edit : i forgot to mention that i read this thread but I don't understand the the answers, I don't know where to put the code the top answer is talking about nor do i know where to but the OSGI manifest.
Edit 2 : pom.xml i get when i enter eclipse-plugin by hands : If i write eclipse-plugin by hand here is my pom.xml :
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.eclipse.om2m</groupId>
<artifactId>org.eclipse.om2m.sample.ipu</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
</project>
Edit 3 : I managed to remove the error by setting the main pom.xml as a parent but now when i try to build i have the following error :
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.20.0:validate-version (default-validate-version) on project org.eclipse.om2m.sample.ipu: Unqualified OSGi version 1.0.0.qualifier must match unqualified Maven version 0.0.1-SNAPSHOT for SNAPSHOT builds ->
I've searched for the goals but I don't know where to set or edit them.
Edit 4 : Thanks to @Wim Anckaert i've dropped the .qualifier and the .snapshot from the pom.xml and the manifest and now it seems to be working ! Thanks a lot guys.