Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9639

using Tycho 0.13.0-SNAPSHOT, cannot resolve hibernate when building birt

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M4
    • 3.3.0.M4
    • birt
    • None

      $ cd ~/trunk/birt; mvn3 clean install -DtychoVersion=0.13.0-SNAPSHOT -U
      
      [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.13.0-SNAPSHOT:compile (default-compile) on project org.jboss.tools.birt.oda: Compilation failure: Compilation failure:
      [ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools_trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/AbstractOdaFactory.java (at line 10):[-1,-1]
      [ERROR] import org.hibernate.HibernateException;
      [ERROR] ^^^^^^^^^^^^^
      [ERROR] The import org.hibernate cannot be resolved
        ...
      [ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools_trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/Parameter.java (at line 32):[-1,-1]
      [ERROR] hibernateTypes.put(TimestampType, Hibernate.TIMESTAMP);
      [ERROR] ^^^^^^^^^
      [ERROR] Hibernate cannot be resolved to a variable
      [ERROR] 
      [ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools_trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/Parameter.java (at line 33):[-1,-1]
      [ERROR] hibernateTypes.put(BooleanType, Hibernate.BOOLEAN);
      [ERROR] ^^^^^^^^^^^^^^
      [ERROR] Type cannot be resolved to a type
      [ERROR] 
      [ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools_trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/Parameter.java (at line 33):[-1,-1]
      [ERROR] hibernateTypes.put(BooleanType, Hibernate.BOOLEAN);
      [ERROR] ^^^^^^^^^
      [ERROR] Hibernate cannot be resolved to a variable
      [ERROR] 
      [ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools_trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/Parameter.java (at line 90):[-1,-1]
      [ERROR] public Type getHibernateType() {
      [ERROR] ^^^^
      [ERROR] Type cannot be resolved to a type
      [ERROR] 
      [ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools_trunk/birt/plugins/org.jboss.tools.birt.oda/src/org/jboss/tools/birt/oda/impl/Parameter.java (at line 91):[-1,-1]
      [ERROR] return hibernateTypes.get(type);
      [ERROR] ^^^^^^^^^^^^^^
      [ERROR] Type cannot be resolved to a type
      

      This could be a problem w/ feature-feature or plugin-plugin dependencies not being clearly stated in the feature.xml or MANIFEST.MF files.

      Or it could be because org.hibernate.eclipse is set as optional in trunk/birt/plugins/org.jboss.tools.birt.oda/META-INF/MANIFEST.MF:

       org.hibernate.eclipse;resolution:=optional
      

            snjeza_jira Snjezana Peco (Inactive)
            nickboldt Nick Boldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: