Skip to main content

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

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

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"; xmlns="http://maven.apache.org/POM/4.0.0";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

  <!--
      For osgi-2-0 specific instructions, see
      https://wiki.eclipse.org/Triquetrum/Ptolemy/osgi-2-0

      For general information, see
      http://www.vogella.com/tutorials/EclipseTycho/article.html

      $Id: pom.xml 75161 2016-09-13 06:32:22Z cxh $
  -->
  
  <properties>
    <target-version>0.1.0-SNAPSHOT</target-version>
    <tycho-version>0.24.0</tycho-version>
  </properties>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.ptolemy.tycho</groupId>
  <artifactId>org.ptolemy.tycho.root</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>pom</packaging>

  <modules>
    <module>features</module>
    <module>diva</module>
    <module>org.ptolemy.actor.gui.test</module>
    <module>org.ptolemy.commons</module>
    <module>org.ptolemy.core.test</module>
    <module>org.ptolemy.core.test.actor</module>
    <module>org.ptolemy.testsupport</module>
    <module>org.terraswarm.accessor</module>
    <module>ptolemy.actor.lib</module>
    <module>ptolemy.actor.lib.gui</module>
    <module>ptolemy.core</module>
    <module>ptolemy.domains.process</module>
    <module>ptolemy.domains.sdf</module>
    <module>ptolemy.gui</module>
    <module>ptolemy.moml</module>
    <module>releng</module>
  </modules>

<dependencies>
  <!-- https://mvnrepository.com/artifact/io.vertx/vertx-core -->
  <dependency>
    <groupId>io.vertx</groupId>
    <artifactId>vertx-core</artifactId>
    <version>3.3.3</version>
  </dependency>
</dependencies>
  <!-- See http://www.vogella.com/tutorials/EclipseTycho/article.html#using-p2-update-sites-for-dependencies-resolution -->
  <repositories>
    <repository>
      <id>eclipse-neon</id>
      <url>http://download.eclipse.org/releases/neon</url>
      <layout>p2</layout>
    </repository>
  </repositories>
  
  <build>
    <plugins>
      <!-- plugins are alphabetical by groupId and then artifactId -->

      <!-- This configures the target platform and the supported architectures. -->
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>target-platform-configuration</artifactId>
        <version>${tycho-version}</version>
        <configuration>
          <environments>
            <environment>
              <os>linux</os>
              <ws>gtk</ws>
              <arch>x86</arch>
            </environment>
            <environment>
              <os>linux</os>
              <ws>gtk</ws>
              <arch>x86_64</arch>
            </environment>
            <environment>
              <os>win32</os>
              <ws>win32</ws>
              <arch>x86</arch>
            </environment>
            <environment>
              <os>win32</os>
              <ws>win32</ws>
              <arch>x86_64</arch>
            </environment>
            <environment>
              <os>macosx</os>
              <ws>cocoa</ws>
              <arch>x86_64</arch>
            </environment>
          </environments>
        </configuration>
      </plugin>
      
      <!-- See http://dev.eclipse.org/mhonarc/lists/tycho-user/msg03670.html -->
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-compiler-plugin</artifactId>
        <version>${tycho-version}</version>
        <configuration>
          <compilerArgument>-warn:+discouraged,forbidden</compilerArgument>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-maven-plugin</artifactId>
        <version>${tycho-version}</version>
        <extensions>true</extensions>
      </plugin>

      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-p2-repository-plugin</artifactId>
        <version>${tycho-version}</version>
        <configuration>
          <includeAllDependencies>true</includeAllDependencies>
        </configuration>
      </plugin>

      <!-- To create source bundles, run mvn org.eclipse.tycho:tycho-source-plugin:plugin-source
	   See https://eclipse.org/tycho/sitedocs/tycho-source-plugin/plugin-info.html
	-->
<!--       <plugin> -->
<!-- 	<groupId>org.eclipse.tycho</groupId> -->
<!-- 	<artifactId>tycho-source-plugin</artifactId> -->
<!-- 	<version>${tycho-version}</version> -->
<!-- 	<executions> -->
<!-- 	  <execution> -->
<!-- 	    <id>plugin-source</id> -->
<!-- 	    <goals> -->
<!-- 	      <goal>plugin-source</goal> -->
<!-- 	    </goals> -->
<!-- 	  </execution> -->
<!-- 	</executions> -->
<!--       </plugin> -->

    </plugins>

  </build>
</project>

Back to the top