Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [triquetrum-dev] vert.x OSGi plugin

Vert.x core seems to be packaged as a bundle on Maven Central. So we could go for a plain Maven dependency. Tycho can do builds with mixed dependencies, p2 and maven, afaik.

The other thing is how to get this working in a development workspace. Until now the ptolemy bundle projects in osgi-2-0 only needed standard dependencies, that could be used from the eclipse installation itself. I think we'd better start using a target now.

There's a way to assemble a workspace target from maven dependencies that might work here as well (but it needs a mvn run to collect all the deps in there).

I'll try to set this up tomorrow.

erwin

Op 11/13/2016 om 8:48 PM schreef Christopher Brooks:
I'm working in the ptII svn repo, osgi-2-0 branch on using Tycho to create an OSGi plugin for Cape Code in the Ptolemy II sources.  Cape Code requires io.vertx.core.AbstractVerticle from the vert.x core.

I'm not sure how to specify the source of the Vert.x. jar files.The osgi-2-0 pom.xml file does not specify a target.

I'm also not finding vert.x jar file in a p2 repo anywhere.

I can see that there are vert.x jars in the the maven repository

I could keep poking around, hoping to figure out a way to find and use a vert.x OSGi jar file or I could create one of my own in osgi-2-0.

To replicate:


2. Edit osgi-2-0/pom.xml and add this to the modules section

   <module>org.terraswarm.accessor</module>

3. cd to osgi-2-0 and run
   mvn verify

The second error is

[ERROR] /private/tmp/osgi-2-0/org.terraswarm.accessor/original-src/ptolemy/actor/lib/jjs/VertxHelperBase.java:[30]
[ERROR] import io.vertx.core.AbstractVerticle;
[ERROR] ^^
[ERROR] The import io cannot be resolved

For reference osgi-2-0/pom.xml is attached

Before I spend too much time on this, does anyone have a quick suggestion?


_Christopher



--
Christopher Brooks, PMP
Academic Program Manager
CHESS/Ptolemy/TerraSwarm
707.332.0670, cxh@xxxxxxxxxxxxxxxxx, https://ptolemy.eecs.berkeley.edu/~cxh



_______________________________________________
triquetrum-dev mailing list
triquetrum-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/triquetrum-dev


Back to the top