Giter Club home page Giter Club logo

hibernate-tools-maven-plugin-sample's People

Contributors

stadler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hibernate-tools-maven-plugin-sample's Issues

Issue with my machine?

Hi, for the life of me, I can't get this project to work. Any advice would be greatly appreciated!

What I'm seeing:

» ~/dev  git clone https://github.com/stadler/hibernate-tools-maven-plugin-sample.git
Cloning into 'hibernate-tools-maven-plugin-sample'...
remote: Enumerating objects: 41, done.
remote: Total 41 (delta 0), reused 0 (delta 0), pack-reused 41
Unpacking objects: 100% (41/41), done.
» ~/dev  cd hibernate-tools-maven-plugin-sample
» ~/dev/hibernate-tools-maven-plugin-sample (master) mvn generate-resources
[INFO] Scanning for projects...
[INFO]
[INFO] -------< com.github.stadler:hibernate-tools-maven-plugin-sample >-------
[INFO] Building hibernate-tools-maven-plugin-sample 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- hibernate-tools-maven-plugin:0.1.0:help (Display Help) @ hibernate-tools-maven-plugin-sample ---
[INFO] Hibernate Tools maven plugin 0.1.0
  Maven plugin to provide hibernate-tools reverse engineering and code
  generation abilities.

This plugin has 3 goals:

hibernate-tools:hbm2ddl
  Mojo to generate DDL Scripts from an existing database.
  See https://docs.jboss.org/tools/latest/en/hibernatetools/html_single/#d0e4651

hibernate-tools:hbm2java
  Mojo to generate Java JPA Entities from an existing database.
  See:
  https://docs.jboss.org/tools/latest/en/hibernatetools/html_single/#d0e4821

hibernate-tools:help
  Display help information on hibernate-tools-maven-plugin.
  Call mvn hibernate-tools:help -Ddetail=true -Dgoal=<goal-name> to display
  parameter details.


[INFO]
[INFO] --- hibernate-tools-maven-plugin:0.1.0:hbm2java (Entity generation) @ hibernate-tools-maven-plugin-sample ---
[INFO] Starting Hbm2JavaMojo...
[INFO] Override file: /Users/acostas297/dev/hibernate-tools-maven-plugin-sample/src/main/hibernate/hibernate.reveng.xml
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.dom4j.io.SAXContentHandler (file:/Users/acostas297/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar) to method com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser$LocatorProxy.getEncoding()
WARNING: Please consider reporting this to the maintainers of org.dom4j.io.SAXContentHandler
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.983 s
[INFO] Finished at: 2018-12-04T15:19:35-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.stadler:hibernate-tools-maven-plugin:0.1.0:hbm2java (Entity generation) on project hibernate-tools-maven-plugin-sample: Execution Entity generation of goal com.github.stadler:hibernate-tools-maven-plugin:0.1.0:hbm2java failed: A required class was missing while executing com.github.stadler:hibernate-tools-maven-plugin:0.1.0:hbm2java: javax/xml/bind/JAXBException
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>com.github.stadler:hibernate-tools-maven-plugin:0.1.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/acostas297/.m2/repository/com/github/stadler/hibernate-tools-maven-plugin/0.1.0/hibernate-tools-maven-plugin-0.1.0.jar
[ERROR] urls[1] = file:/Users/acostas297/.m2/repository/com/h2database/h2/1.4.195/h2-1.4.195.jar
[ERROR] urls[2] = file:/Users/acostas297/.m2/repository/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar
[ERROR] urls[3] = file:/Users/acostas297/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
[ERROR] urls[4] = file:/Users/acostas297/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.3/org.eclipse.sisu.inject-0.3.3.jar
[ERROR] urls[5] = file:/Users/acostas297/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[6] = file:/Users/acostas297/.m2/repository/org/codehaus/plexus/plexus-utils/3.1.0/plexus-utils-3.1.0.jar
[ERROR] urls[7] = file:/Users/acostas297/.m2/repository/org/hibernate/hibernate-tools/5.2.8.Final/hibernate-tools-5.2.8.Final.jar
[ERROR] urls[8] = file:/Users/acostas297/.m2/repository/org/hibernate/hibernate-core/5.2.12.Final/hibernate-core-5.2.12.Final.jar
[ERROR] urls[9] = file:/Users/acostas297/.m2/repository/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar
[ERROR] urls[10] = file:/Users/acostas297/.m2/repository/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar
[ERROR] urls[11] = file:/Users/acostas297/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar
[ERROR] urls[12] = file:/Users/acostas297/.m2/repository/org/jboss/spec/javax/transaction/jboss-transaction-api_1.2_spec/1.0.1.Final/jboss-transaction-api_1.2_spec-1.0.1.Final.jar
[ERROR] urls[13] = file:/Users/acostas297/.m2/repository/org/jboss/jandex/2.0.3.Final/jandex-2.0.3.Final.jar
[ERROR] urls[14] = file:/Users/acostas297/.m2/repository/com/fasterxml/classmate/1.3.0/classmate-1.3.0.jar
[ERROR] urls[15] = file:/Users/acostas297/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
[ERROR] urls[16] = file:/Users/acostas297/.m2/repository/org/hibernate/common/hibernate-commons-annotations/5.0.0.Final/hibernate-commons-annotations-5.0.0.Final.jar
[ERROR] urls[17] = file:/Users/acostas297/.m2/repository/org/hibernate/javax/persistence/hibernate-jpa-2.1-api/1.0.0.Final/hibernate-jpa-2.1-api-1.0.0.Final.jar
[ERROR] urls[18] = file:/Users/acostas297/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
[ERROR] urls[19] = file:/Users/acostas297/.m2/repository/org/apache/ant/ant/1.10.1/ant-1.10.1.jar
[ERROR] urls[20] = file:/Users/acostas297/.m2/repository/org/apache/ant/ant-launcher/1.10.1/ant-launcher-1.10.1.jar
[ERROR] urls[21] = file:/Users/acostas297/.m2/repository/org/freemarker/freemarker/2.3.23/freemarker-2.3.23.jar
[ERROR] urls[22] = file:/Users/acostas297/.m2/repository/org/eclipse/jdt/org.eclipse.jdt.core/3.12.2/org.eclipse.jdt.core-3.12.2.jar
[ERROR] urls[23] = file:/Users/acostas297/.m2/repository/org/eclipse/platform/org.eclipse.core.resources/3.13.100/org.eclipse.core.resources-3.13.100.jar
[ERROR] urls[24] = file:/Users/acostas297/.m2/repository/org/eclipse/platform/org.eclipse.core.expressions/3.6.200/org.eclipse.core.expressions-3.6.200.jar
[ERROR] urls[25] = file:/Users/acostas297/.m2/repository/org/eclipse/platform/org.eclipse.core.runtime/3.15.0/org.eclipse.core.runtime-3.15.0.jar
[ERROR] urls[26] = file:/Users/acostas297/.m2/repository/org/eclipse/platform/org.eclipse.osgi/3.13.100/org.eclipse.osgi-3.13.100.jar
[ERROR] urls[27] = file:/Users/acostas297/.m2/repository/org/eclipse/platform/org.eclipse.equinox.common/3.10.100/org.eclipse.equinox.common-3.10.100.jar
[ERROR] urls[28] = file:/Users/acostas297/.m2/repository/org/eclipse/platform/org.eclipse.core.jobs/3.10.100/org.eclipse.core.jobs-3.10.100.jar
[ERROR] urls[29] = file:/Users/acostas297/.m2/repository/org/eclipse/platform/org.eclipse.equinox.registry/3.8.100/org.eclipse.equinox.registry-3.8.100.jar
[ERROR] urls[30] = file:/Users/acostas297/.m2/repository/org/eclipse/platform/org.eclipse.equinox.preferences/3.7.200/org.eclipse.equinox.preferences-3.7.200.jar
[ERROR] urls[31] = file:/Users/acostas297/.m2/repository/org/eclipse/platform/org.eclipse.core.contenttype/3.7.100/org.eclipse.core.contenttype-3.7.100.jar
[ERROR] urls[32] = file:/Users/acostas297/.m2/repository/org/eclipse/platform/org.eclipse.equinox.app/1.3.600/org.eclipse.equinox.app-1.3.600.jar
[ERROR] urls[33] = file:/Users/acostas297/.m2/repository/org/eclipse/platform/org.eclipse.core.filesystem/1.7.200/org.eclipse.core.filesystem-1.7.200.jar
[ERROR] urls[34] = file:/Users/acostas297/.m2/repository/org/eclipse/platform/org.eclipse.text/3.7.0/org.eclipse.text-3.7.0.jar
[ERROR] urls[35] = file:/Users/acostas297/.m2/repository/org/eclipse/platform/org.eclipse.core.commands/3.9.200/org.eclipse.core.commands-3.9.200.jar
[ERROR] urls[36] = file:/Users/acostas297/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : javax.xml.bind.JAXBException
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

plugin fails when revengStrategy used

Hi,

When the revengStrategy is used, the plugin fails with the following error
Failed to execute goal org.hibernate:hibernate-tools-maven-plugin:5.4.20.Final:hbm2java (default-cli) on project hibernate-tools-demo: Execution default-cli of goal org.hibernate:hibernate-tools-maven-plugin:5.4.20.Final:hbm2java failed: com.jonamlabs.hibernatetoolsdemo.CustomReverseEngineeringStrategy not instanced. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.hibernate:hibernate-tools-maven-plugin:5.4.20.Final:hbm2java (default-cli) on project hibernate-tools-demo: Execution default-cli of goal org.hibernate:hibernate-tools-maven-plugin:5.4.20.Final:hbm2java failed: com.jonamlabs.hibernatetoolsdemo.CustomReverseEngineeringStrategy not instanced.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.