I am just starting out with Quiet, and I'm at an impasse at an early stage. Perhaps I am misunderstanding something, so just in case, this is what I expect: I determine my needs for a set in the OSGi style (i.e. In MANIFEST.MF via Import-Package ), and Tycho somehow uses instead, I need to redefine this information in Maven style instead (that is, I do not need to install dependencies in pom.xml).
So, I created a simple Maven project in Eclipse with the m2eclipse plugin, the addition of m2eclipse-tycho and the PDE plugin and added the following Tycho data to pom:
<properties> <tycho-version>0.15.0</tycho-version> </properties> <build> <plugins> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-maven-plugin</artifactId> <version>${tycho-version}</version> <extensions>true</extensions> </plugin> </plugins> </build>
Affected some terrible configuration errors and finally got a substantially empty project (i.e. no source code) that did not give any errors or warnings in Eclipse. Then I copied the source code from another project, and (as expected) got a bunch of compiler errors due to the lack of dependencies. The first was AbstractChannel from org.jboss.netty.channel. I am using version 3.5.1.Final Netty, so I edited my MANIFEST.MF file to include:
Import-Package: org.jboss.netty.channel;version="[3.5.1,4)"
Then I expected Tycho to somehow magically find out that I needed Netty, and so act as if I had entered something like the following into my Maven pom.xml:
<dependency> <groupId>org.jboss.netty</groupId> <artifactId>netty</artifactId> <version>3.5.1.Final</version> </dependency>
Instead, everything that happened, I got one additional error in Eclipse, saying:
Unsatisfied constraint: 'Import-Package: org.jboss.netty.channel;version="[3.5.1,4.0.0)"
I donβt know where to go from here. Do I have any fundamental misunderstanding of what Ticho should do? Or is there something else I need to configure so that it can perform a "magic" translation from the Import-Package entry in MANIFEST.MF to the <dependency> pom.xml entry? Or something else?
Thanks in advance.