From: Kai Moritz Date: Sun, 26 Oct 2025 11:52:36 +0000 (+0100) Subject: Moved version `2.1.0` of the `hibernate-maven-plugin` to the refined path X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=d6e5fb7e4890afa74d8ec6516c687cf4add913e8;p=website Moved version `2.1.0` of the `hibernate-maven-plugin` to the refined path - This version was never linked under the old path. - Hence, it can be moved without penalty. --- diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/allclasses-frame.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/allclasses-frame.html deleted file mode 100644 index d491a69..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/allclasses-frame.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - -All Classes (Hibernate Maven Plugin 2.1.0 API) - - - - - -

All Classes

-
- -
- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/allclasses-noframe.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/allclasses-noframe.html deleted file mode 100644 index 1de8667..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/allclasses-noframe.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - -All Classes (Hibernate Maven Plugin 2.1.0 API) - - - - - -

All Classes

-
- -
- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/constant-values.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/constant-values.html deleted file mode 100644 index 0a764d0..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/constant-values.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - -Constant Field Values (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - -
-

Constant Field Values

-

Contents

- -
-
- - -

de.juplo.*

- -
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/AbstractSchemaMojo.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/AbstractSchemaMojo.html deleted file mode 100644 index 801592c..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/AbstractSchemaMojo.html +++ /dev/null @@ -1,494 +0,0 @@ - - - - - - -AbstractSchemaMojo (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - - -
-
de.juplo.plugins.hibernate
-

Class AbstractSchemaMojo

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    -
    -
    -
    Direct Known Subclasses:
    -
    CreateMojo, DropMojo, UpdateMojo
    -
    -
    -
    -
    public abstract class AbstractSchemaMojo
    -extends org.apache.maven.plugin.AbstractMojo
    -
    Baseclass with common attributes and methods.
    -
    -
    Phase:
    -
    process-classes
    -
    Thread Safe:
    -
    Requires Dependency Resolution:
    -
    runtime
    -
    -
  • -
-
-
- -
-
- -
-
- - -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/CreateMojo.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/CreateMojo.html deleted file mode 100644 index 42a70d1..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/CreateMojo.html +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - -CreateMojo (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - - -
-
de.juplo.plugins.hibernate
-

Class CreateMojo

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    -
    -
    -
    -
    public class CreateMojo
    -extends AbstractSchemaMojo
    -
    Generate/Execute SQL to create a database-schema that represents the - configured mappings.
    -
    -
    Goal:
    -
    create
    -
    Phase:
    -
    process-classes
    -
    Thread Safe:
    -
    Requires Dependency Resolution:
    -
    runtime
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        CreateMojo

        -
        public CreateMojo()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        execute

        -
        public final void execute()
        -                   throws org.apache.maven.plugin.MojoFailureException,
        -                          org.apache.maven.plugin.MojoExecutionException
        -
        -
        Throws:
        -
        org.apache.maven.plugin.MojoFailureException
        -
        org.apache.maven.plugin.MojoExecutionException
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/DropMojo.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/DropMojo.html deleted file mode 100644 index 55c69d6..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/DropMojo.html +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - -DropMojo (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - - -
-
de.juplo.plugins.hibernate
-

Class DropMojo

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    -
    -
    -
    -
    public class DropMojo
    -extends AbstractSchemaMojo
    -
    Generate/Execute SQL to drop all tables of a database-schema that represents - the configured mappings.
    -
    -
    Goal:
    -
    drop
    -
    Phase:
    -
    process-classes
    -
    Thread Safe:
    -
    Requires Dependency Resolution:
    -
    runtime
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        DropMojo

        -
        public DropMojo()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        execute

        -
        public final void execute()
        -                   throws org.apache.maven.plugin.MojoFailureException,
        -                          org.apache.maven.plugin.MojoExecutionException
        -
        -
        Throws:
        -
        org.apache.maven.plugin.MojoFailureException
        -
        org.apache.maven.plugin.MojoExecutionException
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/HelpMojo.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/HelpMojo.html deleted file mode 100644 index 8228c74..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/HelpMojo.html +++ /dev/null @@ -1,318 +0,0 @@ - - - - - - -HelpMojo (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - - -
-
de.juplo.plugins.hibernate
-

Class HelpMojo

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    -
    -
    -
    -
    public class HelpMojo
    -extends org.apache.maven.plugin.AbstractMojo
    -
    Display help information on hibernate-maven-plugin.
    - Call mvn hibernate:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
    -
    -
    Author:
    -
    maven-plugin-tools
    -
    Goal:
    -
    help
    -
    Thread Safe:
    -
    Requires Project:
    -
    false
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        HelpMojo

        -
        public HelpMojo()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        execute

        -
        public void execute()
        -             throws org.apache.maven.plugin.MojoExecutionException
        -
        -
        Throws:
        -
        org.apache.maven.plugin.MojoExecutionException
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/ModificationTracker.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/ModificationTracker.html deleted file mode 100644 index 1960f38..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/ModificationTracker.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - -ModificationTracker (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - - -
-
de.juplo.plugins.hibernate
-

Class ModificationTracker

-
-
- -
-
    -
  • -
    -
    -
    public class ModificationTracker
    -extends Object
    -
    -
    Author:
    -
    Kai Moritz
    -
    -
  • -
-
-
- -
-
- - -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/MutableClassLoader.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/MutableClassLoader.html deleted file mode 100644 index e9a8ec5..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/MutableClassLoader.html +++ /dev/null @@ -1,435 +0,0 @@ - - - - - - -MutableClassLoader (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - - -
-
de.juplo.plugins.hibernate
-

Class MutableClassLoader

-
-
- -
-
    -
  • -
    -
    -
    public class MutableClassLoader
    -extends ClassLoader
    -
    -
    Author:
    -
    kai
    -
    -
  • -
-
-
- -
-
- -
-
- - -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/UpdateMojo.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/UpdateMojo.html deleted file mode 100644 index c636e04..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/UpdateMojo.html +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - -UpdateMojo (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - - -
-
de.juplo.plugins.hibernate
-

Class UpdateMojo

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    -
    -
    -
    -
    public class UpdateMojo
    -extends AbstractSchemaMojo
    -
    Generate/Execute SQL to update the database-schema according to the - configured mappings.
    -
    -
    Goal:
    -
    update
    -
    Phase:
    -
    process-classes
    -
    Thread Safe:
    -
    Requires Dependency Resolution:
    -
    runtime
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        UpdateMojo

        -
        public UpdateMojo()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        execute

        -
        public final void execute()
        -                   throws org.apache.maven.plugin.MojoFailureException,
        -                          org.apache.maven.plugin.MojoExecutionException
        -
        -
        Throws:
        -
        org.apache.maven.plugin.MojoFailureException
        -
        org.apache.maven.plugin.MojoExecutionException
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/AbstractSchemaMojo.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/AbstractSchemaMojo.html deleted file mode 100644 index 3f55edd..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/AbstractSchemaMojo.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - -Uses of Class de.juplo.plugins.hibernate.AbstractSchemaMojo (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - -
-

Uses of Class
de.juplo.plugins.hibernate.AbstractSchemaMojo

-
-
- -
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/CreateMojo.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/CreateMojo.html deleted file mode 100644 index 0ba9d8e..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/CreateMojo.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class de.juplo.plugins.hibernate.CreateMojo (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - -
-

Uses of Class
de.juplo.plugins.hibernate.CreateMojo

-
-
No usage of de.juplo.plugins.hibernate.CreateMojo
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/DropMojo.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/DropMojo.html deleted file mode 100644 index ee3bc6d..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/DropMojo.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class de.juplo.plugins.hibernate.DropMojo (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - -
-

Uses of Class
de.juplo.plugins.hibernate.DropMojo

-
-
No usage of de.juplo.plugins.hibernate.DropMojo
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/HelpMojo.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/HelpMojo.html deleted file mode 100644 index 51e8788..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/HelpMojo.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class de.juplo.plugins.hibernate.HelpMojo (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - -
-

Uses of Class
de.juplo.plugins.hibernate.HelpMojo

-
-
No usage of de.juplo.plugins.hibernate.HelpMojo
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/ModificationTracker.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/ModificationTracker.html deleted file mode 100644 index 06ce7e4..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/ModificationTracker.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class de.juplo.plugins.hibernate.ModificationTracker (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - -
-

Uses of Class
de.juplo.plugins.hibernate.ModificationTracker

-
-
No usage of de.juplo.plugins.hibernate.ModificationTracker
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/MutableClassLoader.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/MutableClassLoader.html deleted file mode 100644 index 531ffa6..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/MutableClassLoader.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - -Uses of Class de.juplo.plugins.hibernate.MutableClassLoader (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - -
-

Uses of Class
de.juplo.plugins.hibernate.MutableClassLoader

-
-
- -
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/UpdateMojo.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/UpdateMojo.html deleted file mode 100644 index 92afddb..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/UpdateMojo.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class de.juplo.plugins.hibernate.UpdateMojo (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - -
-

Uses of Class
de.juplo.plugins.hibernate.UpdateMojo

-
-
No usage of de.juplo.plugins.hibernate.UpdateMojo
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/package-frame.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/package-frame.html deleted file mode 100644 index a799239..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/package-frame.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - -de.juplo.plugins.hibernate (Hibernate Maven Plugin 2.1.0 API) - - - - - -

de.juplo.plugins.hibernate

-
-

Classes

- -
- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/package-summary.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/package-summary.html deleted file mode 100644 index 86f5559..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/package-summary.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - -de.juplo.plugins.hibernate (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - -
-

Package de.juplo.plugins.hibernate

-
-
- -
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/package-tree.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/package-tree.html deleted file mode 100644 index 8d1aba0..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/package-tree.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - -de.juplo.plugins.hibernate Class Hierarchy (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - -
-

Hierarchy For Package de.juplo.plugins.hibernate

-
-
-

Class Hierarchy

- -
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/package-use.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/package-use.html deleted file mode 100644 index 0591932..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/de/juplo/plugins/hibernate/package-use.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - -Uses of Package de.juplo.plugins.hibernate (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - -
-

Uses of Package
de.juplo.plugins.hibernate

-
-
- -
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/deprecated-list.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/deprecated-list.html deleted file mode 100644 index 7502994..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/deprecated-list.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Deprecated List (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - -
-

Deprecated API

-

Contents

-
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/help-doc.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/help-doc.html deleted file mode 100644 index 082133c..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/help-doc.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - -API Help (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - -
-

How This API Document Is Organized

-
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
-
-
- -This help file applies to API documentation generated using the standard doclet.
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/index-all.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/index-all.html deleted file mode 100644 index 8f14ee8..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/index-all.html +++ /dev/null @@ -1,285 +0,0 @@ - - - - - - -Index (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - -
A C D E G H L M O P S T U  - - -

A

-
-
AbstractSchemaMojo - Class in de.juplo.plugins.hibernate
-
-
Baseclass with common attributes and methods.
-
-
AbstractSchemaMojo() - Constructor for class de.juplo.plugins.hibernate.AbstractSchemaMojo
-
 
-
add(LinkedHashSet<URL>) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
-
 
-
- - - -

C

-
-
clearAssertionStatus() - Method in class de.juplo.plugins.hibernate.MutableClassLoader
-
 
-
CreateMojo - Class in de.juplo.plugins.hibernate
-
-
Generate/Execute SQL to create a database-schema that represents the - configured mappings.
-
-
CreateMojo() - Constructor for class de.juplo.plugins.hibernate.CreateMojo
-
 
-
- - - -

D

-
-
de.juplo.plugins.hibernate - package de.juplo.plugins.hibernate
-
 
-
DropMojo - Class in de.juplo.plugins.hibernate
-
-
Generate/Execute SQL to drop all tables of a database-schema that represents - the configured mappings.
-
-
DropMojo() - Constructor for class de.juplo.plugins.hibernate.DropMojo
-
 
-
- - - -

E

-
-
EXECUTE - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
-
 
-
execute(String) - Method in class de.juplo.plugins.hibernate.AbstractSchemaMojo
-
 
-
execute() - Method in class de.juplo.plugins.hibernate.CreateMojo
-
 
-
execute() - Method in class de.juplo.plugins.hibernate.DropMojo
-
 
-
execute() - Method in class de.juplo.plugins.hibernate.HelpMojo
-
execute() - Method in class de.juplo.plugins.hibernate.UpdateMojo
-
 
-
- - - -

G

-
-
getResource(String) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
-
 
-
getResourceAsStream(String) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
-
 
-
getResources(String) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
-
 
-
- - - -

H

-
-
HelpMojo - Class in de.juplo.plugins.hibernate
-
-
Display help information on hibernate-maven-plugin.
-
-
HelpMojo() - Constructor for class de.juplo.plugins.hibernate.HelpMojo
-
 
-
- - - -

L

-
-
loadClass(String) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
-
 
-
- - - -

M

-
-
ModificationTracker - Class in de.juplo.plugins.hibernate
-
 
-
MutableClassLoader - Class in de.juplo.plugins.hibernate
-
 
-
MutableClassLoader(LinkedHashSet<URL>, Log) - Constructor for class de.juplo.plugins.hibernate.MutableClassLoader
-
 
-
- - - -

O

-
-
OUTPUTDIRECTORY - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
-
 
-
- - - -

P

-
-
printStrackTrace(StringBuilder, Throwable) - Static method in class de.juplo.plugins.hibernate.AbstractSchemaMojo
-
 
-
- - - -

S

-
-
SCAN_CLASSES - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
-
 
-
SCAN_DEPENDENCIES - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
-
 
-
SCAN_TESTCLASSES - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
-
 
-
SCRIPT - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
-
 
-
setClassAssertionStatus(String, boolean) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
-
 
-
setDefaultAssertionStatus(boolean) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
-
 
-
setPackageAssertionStatus(String, boolean) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
-
 
-
SKIPPED - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
-
 
-
- - - -

T

-
-
TEST_OUTPUTDIRECTORY - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
-
 
-
- - - -

U

-
-
UpdateMojo - Class in de.juplo.plugins.hibernate
-
-
Generate/Execute SQL to update the database-schema according to the - configured mappings.
-
-
UpdateMojo() - Constructor for class de.juplo.plugins.hibernate.UpdateMojo
-
 
-
-A C D E G H L M O P S T U 
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/index.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/index.html deleted file mode 100644 index d3110ee..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/index.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - -Hibernate Maven Plugin 2.1.0 API - - - - - - -<noscript> -<div>JavaScript is disabled on your browser.</div> -</noscript> -<h2>Frame Alert</h2> -<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="de/juplo/plugins/hibernate/package-summary.html">Non-frame version</a>.</p> - - - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/overview-tree.html b/projects/hibernate-maven-plugin-2.1.0/apidocs/overview-tree.html deleted file mode 100644 index f2cc465..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/overview-tree.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - -Class Hierarchy (Hibernate Maven Plugin 2.1.0 API) - - - - - - - - -
- - - - - - - -
- - -
-

Hierarchy For All Packages

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/package-list b/projects/hibernate-maven-plugin-2.1.0/apidocs/package-list deleted file mode 100644 index 4e11658..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/package-list +++ /dev/null @@ -1 +0,0 @@ -de.juplo.plugins.hibernate diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/script.js b/projects/hibernate-maven-plugin-2.1.0/apidocs/script.js deleted file mode 100644 index b346356..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/script.js +++ /dev/null @@ -1,30 +0,0 @@ -function show(type) -{ - count = 0; - for (var key in methods) { - var row = document.getElementById(key); - if ((methods[key] & type) != 0) { - row.style.display = ''; - row.className = (count++ % 2) ? rowColor : altColor; - } - else - row.style.display = 'none'; - } - updateTabs(type); -} - -function updateTabs(type) -{ - for (var value in tabs) { - var sNode = document.getElementById(tabs[value][0]); - var spanNode = sNode.firstChild; - if (value == type) { - sNode.className = activeTableTab; - spanNode.innerHTML = tabs[value][1]; - } - else { - sNode.className = tableTab; - spanNode.innerHTML = "" + tabs[value][1] + ""; - } - } -} diff --git a/projects/hibernate-maven-plugin-2.1.0/apidocs/stylesheet.css b/projects/hibernate-maven-plugin-2.1.0/apidocs/stylesheet.css deleted file mode 100644 index 98055b2..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/apidocs/stylesheet.css +++ /dev/null @@ -1,574 +0,0 @@ -/* Javadoc style sheet */ -/* -Overall document style -*/ - -@import url('resources/fonts/dejavu.css'); - -body { - background-color:#ffffff; - color:#353833; - font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; - font-size:14px; - margin:0; -} -a:link, a:visited { - text-decoration:none; - color:#4A6782; -} -a:hover, a:focus { - text-decoration:none; - color:#bb7a2a; -} -a:active { - text-decoration:none; - color:#4A6782; -} -a[name] { - color:#353833; -} -a[name]:hover { - text-decoration:none; - color:#353833; -} -pre { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; -} -h1 { - font-size:20px; -} -h2 { - font-size:18px; -} -h3 { - font-size:16px; - font-style:italic; -} -h4 { - font-size:13px; -} -h5 { - font-size:12px; -} -h6 { - font-size:11px; -} -ul { - list-style-type:disc; -} -code, tt { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; - padding-top:4px; - margin-top:8px; - line-height:1.4em; -} -dt code { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; - padding-top:4px; -} -table tr td dt code { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; - vertical-align:top; - padding-top:4px; -} -sup { - font-size:8px; -} -/* -Document title and Copyright styles -*/ -.clear { - clear:both; - height:0px; - overflow:hidden; -} -.aboutLanguage { - float:right; - padding:0px 21px; - font-size:11px; - z-index:200; - margin-top:-9px; -} -.legalCopy { - margin-left:.5em; -} -.bar a, .bar a:link, .bar a:visited, .bar a:active { - color:#FFFFFF; - text-decoration:none; -} -.bar a:hover, .bar a:focus { - color:#bb7a2a; -} -.tab { - background-color:#0066FF; - color:#ffffff; - padding:8px; - width:5em; - font-weight:bold; -} -/* -Navigation bar styles -*/ -.bar { - background-color:#4D7A97; - color:#FFFFFF; - padding:.8em .5em .4em .8em; - height:auto;/*height:1.8em;*/ - font-size:11px; - margin:0; -} -.topNav { - background-color:#4D7A97; - color:#FFFFFF; - float:left; - padding:0; - width:100%; - clear:right; - height:2.8em; - padding-top:10px; - overflow:hidden; - font-size:12px; -} -.bottomNav { - margin-top:10px; - background-color:#4D7A97; - color:#FFFFFF; - float:left; - padding:0; - width:100%; - clear:right; - height:2.8em; - padding-top:10px; - overflow:hidden; - font-size:12px; -} -.subNav { - background-color:#dee3e9; - float:left; - width:100%; - overflow:hidden; - font-size:12px; -} -.subNav div { - clear:left; - float:left; - padding:0 0 5px 6px; - text-transform:uppercase; -} -ul.navList, ul.subNavList { - float:left; - margin:0 25px 0 0; - padding:0; -} -ul.navList li{ - list-style:none; - float:left; - padding: 5px 6px; - text-transform:uppercase; -} -ul.subNavList li{ - list-style:none; - float:left; -} -.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { - color:#FFFFFF; - text-decoration:none; - text-transform:uppercase; -} -.topNav a:hover, .bottomNav a:hover { - text-decoration:none; - color:#bb7a2a; - text-transform:uppercase; -} -.navBarCell1Rev { - background-color:#F8981D; - color:#253441; - margin: auto 5px; -} -.skipNav { - position:absolute; - top:auto; - left:-9999px; - overflow:hidden; -} -/* -Page header and footer styles -*/ -.header, .footer { - clear:both; - margin:0 20px; - padding:5px 0 0 0; -} -.indexHeader { - margin:10px; - position:relative; -} -.indexHeader span{ - margin-right:15px; -} -.indexHeader h1 { - font-size:13px; -} -.title { - color:#2c4557; - margin:10px 0; -} -.subTitle { - margin:5px 0 0 0; -} -.header ul { - margin:0 0 15px 0; - padding:0; -} -.footer ul { - margin:20px 0 5px 0; -} -.header ul li, .footer ul li { - list-style:none; - font-size:13px; -} -/* -Heading styles -*/ -div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { - background-color:#dee3e9; - border:1px solid #d0d9e0; - margin:0 0 6px -8px; - padding:7px 5px; -} -ul.blockList ul.blockList ul.blockList li.blockList h3 { - background-color:#dee3e9; - border:1px solid #d0d9e0; - margin:0 0 6px -8px; - padding:7px 5px; -} -ul.blockList ul.blockList li.blockList h3 { - padding:0; - margin:15px 0; -} -ul.blockList li.blockList h2 { - padding:0px 0 20px 0; -} -/* -Page layout container styles -*/ -.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { - clear:both; - padding:10px 20px; - position:relative; -} -.indexContainer { - margin:10px; - position:relative; - font-size:12px; -} -.indexContainer h2 { - font-size:13px; - padding:0 0 3px 0; -} -.indexContainer ul { - margin:0; - padding:0; -} -.indexContainer ul li { - list-style:none; - padding-top:2px; -} -.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { - font-size:12px; - font-weight:bold; - margin:10px 0 0 0; - color:#4E4E4E; -} -.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { - margin:5px 0 10px 0px; - font-size:14px; - font-family:'DejaVu Sans Mono',monospace; -} -.serializedFormContainer dl.nameValue dt { - margin-left:1px; - font-size:1.1em; - display:inline; - font-weight:bold; -} -.serializedFormContainer dl.nameValue dd { - margin:0 0 0 1px; - font-size:1.1em; - display:inline; -} -/* -List styles -*/ -ul.horizontal li { - display:inline; - font-size:0.9em; -} -ul.inheritance { - margin:0; - padding:0; -} -ul.inheritance li { - display:inline; - list-style:none; -} -ul.inheritance li ul.inheritance { - margin-left:15px; - padding-left:15px; - padding-top:1px; -} -ul.blockList, ul.blockListLast { - margin:10px 0 10px 0; - padding:0; -} -ul.blockList li.blockList, ul.blockListLast li.blockList { - list-style:none; - margin-bottom:15px; - line-height:1.4; -} -ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { - padding:0px 20px 5px 10px; - border:1px solid #ededed; - background-color:#f8f8f8; -} -ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { - padding:0 0 5px 8px; - background-color:#ffffff; - border:none; -} -ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { - margin-left:0; - padding-left:0; - padding-bottom:15px; - border:none; -} -ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { - list-style:none; - border-bottom:none; - padding-bottom:0; -} -table tr td dl, table tr td dl dt, table tr td dl dd { - margin-top:0; - margin-bottom:1px; -} -/* -Table styles -*/ -.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { - width:100%; - border-left:1px solid #EEE; - border-right:1px solid #EEE; - border-bottom:1px solid #EEE; -} -.overviewSummary, .memberSummary { - padding:0px; -} -.overviewSummary caption, .memberSummary caption, .typeSummary caption, -.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { - position:relative; - text-align:left; - background-repeat:no-repeat; - color:#253441; - font-weight:bold; - clear:none; - overflow:hidden; - padding:0px; - padding-top:10px; - padding-left:1px; - margin:0px; - white-space:pre; -} -.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, -.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, -.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, -.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, -.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, -.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, -.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, -.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { - color:#FFFFFF; -} -.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, -.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { - white-space:nowrap; - padding-top:5px; - padding-left:12px; - padding-right:12px; - padding-bottom:7px; - display:inline-block; - float:left; - background-color:#F8981D; - border: none; - height:16px; -} -.memberSummary caption span.activeTableTab span { - white-space:nowrap; - padding-top:5px; - padding-left:12px; - padding-right:12px; - margin-right:3px; - display:inline-block; - float:left; - background-color:#F8981D; - height:16px; -} -.memberSummary caption span.tableTab span { - white-space:nowrap; - padding-top:5px; - padding-left:12px; - padding-right:12px; - margin-right:3px; - display:inline-block; - float:left; - background-color:#4D7A97; - height:16px; -} -.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { - padding-top:0px; - padding-left:0px; - padding-right:0px; - background-image:none; - float:none; - display:inline; -} -.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, -.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { - display:none; - width:5px; - position:relative; - float:left; - background-color:#F8981D; -} -.memberSummary .activeTableTab .tabEnd { - display:none; - width:5px; - margin-right:3px; - position:relative; - float:left; - background-color:#F8981D; -} -.memberSummary .tableTab .tabEnd { - display:none; - width:5px; - margin-right:3px; - position:relative; - background-color:#4D7A97; - float:left; - -} -.overviewSummary td, .memberSummary td, .typeSummary td, -.useSummary td, .constantsSummary td, .deprecatedSummary td { - text-align:left; - padding:0px 0px 12px 10px; -} -th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, -td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ - vertical-align:top; - padding-right:0px; - padding-top:8px; - padding-bottom:3px; -} -th.colFirst, th.colLast, th.colOne, .constantsSummary th { - background:#dee3e9; - text-align:left; - padding:8px 3px 3px 7px; -} -td.colFirst, th.colFirst { - white-space:nowrap; - font-size:13px; -} -td.colLast, th.colLast { - font-size:13px; -} -td.colOne, th.colOne { - font-size:13px; -} -.overviewSummary td.colFirst, .overviewSummary th.colFirst, -.useSummary td.colFirst, .useSummary th.colFirst, -.overviewSummary td.colOne, .overviewSummary th.colOne, -.memberSummary td.colFirst, .memberSummary th.colFirst, -.memberSummary td.colOne, .memberSummary th.colOne, -.typeSummary td.colFirst{ - width:25%; - vertical-align:top; -} -td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { - font-weight:bold; -} -.tableSubHeadingColor { - background-color:#EEEEFF; -} -.altColor { - background-color:#FFFFFF; -} -.rowColor { - background-color:#EEEEEF; -} -/* -Content styles -*/ -.description pre { - margin-top:0; -} -.deprecatedContent { - margin:0; - padding:10px 0; -} -.docSummary { - padding:0; -} - -ul.blockList ul.blockList ul.blockList li.blockList h3 { - font-style:normal; -} - -div.block { - font-size:14px; - font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; -} - -td.colLast div { - padding-top:0px; -} - - -td.colLast a { - padding-bottom:3px; -} -/* -Formatting effect styles -*/ -.sourceLineNo { - color:green; - padding:0 30px 0 0; -} -h1.hidden { - visibility:hidden; - overflow:hidden; - font-size:10px; -} -.block { - display:block; - margin:3px 10px 2px 0px; - color:#474747; -} -.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, -.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, -.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { - font-weight:bold; -} -.deprecationComment, .emphasizedPhrase, .interfaceName { - font-style:italic; -} - -div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, -div.block div.block span.interfaceName { - font-style:normal; -} - -div.contentContainer ul.blockList li.blockList h2{ - padding-bottom:0px; -} diff --git a/projects/hibernate-maven-plugin-2.1.0/configuration.html b/projects/hibernate-maven-plugin-2.1.0/configuration.html deleted file mode 100644 index 2305e1f..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/configuration.html +++ /dev/null @@ -1,748 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin — Configuration Examples - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Configuration Examples
-

-
-
- - - - -

Configuration Examples

- -
-

Configuration Through A Configuration-File

- -

- The most simple way to configure the plugin is, to put all the - hibernate-configuration in a hibernate.properties- or - a hibernate.cfg.xml-file on your classpath or in the - persistence.xml-file of your JPA-configuration, just - like you would do, if you are not using the - hibernate-maven-plugin. -

- -

- Doing so, the only additionally configuration needed, to activat the plugin - is the following entry in the plugins-section of your pom.xml: -

- -
-
-<plugin>
-  <groupId>de.juplo</groupId>
-  <artifactId>hibernate-maven-plugin</artifactId>
-  <version>2.1.0</version>
-  <executions>
-    <execution>
-      <goals>
-        <goal>create</goal>
-      </goals>
-    </execution>
-  </executions>
-</plugin>
- -

- This would create the configured database. - If you want it to be droped beforehand, you have to add the goal - drop: -

- -
-
-<plugin>
-  <groupId>de.juplo</groupId>
-  <artifactId>hibernate-maven-plugin</artifactId>
-  <version>2.1.0</version>
-  <executions>
-    <execution>
-      <goals>
-        <goal>drop</goal>
-        <goal>create</goal>
-      </goals>
-    </execution>
-  </executions>
-</plugin>
- -

- A correspondin goal for the command update is missing in this - version, but we are planning to implement it in near feature. -

- -

- In order to let this configuration work, your configuration file must - contain a complete valid configuration for the database, that you want - to use. - A simple example hibernate.properties-file may look like this: -

- -
-
-hibernate.dialect=org.hibernate.dialect.H2Dialect
-hibernate.connection.url=jdbc:h2:file:./target/db
-hibernate.connection.driver_class=org.h2.Driver
-hibernate.connection.username=sa
-hibernate.connection.password=
- -

- But be aware, that using this configuration-approach the database-url, - that is build in the application is the same that is used while testing, - where the database is droped and recreated by the plugin. - Because of that, - - you should never fire up this configuration on your production - system, or your database might be erased! - -

- -

- A better approach is, to specify a different url for testing like in the - following snippet: -

- -
-
-<plugin>
-  <groupId>de.juplo</groupId>
-  <artifactId>hibernate-maven-plugin</artifactId>
-  <version>2.1.0</version>
-  <executions>
-    <execution>
-      <goals>
-        <goal>drop</goal>
-        <goal>create</goal>
-      </goals>
-    </execution>
-  </executions>
-  <configuration>
-    <url><![CDATA[jdbc:mysql://localhost/test-db]]></url>
-  </configuration>
-</plugin>
- -

- Configuration properties, that are set in the configuration-section - of the plugin-configuration cannnot be overwritten elsewere (for details - see Configuration-Method-Precedence). - You never can overwrite them by accident when specifying a property on - the commandline or in your settings.xml. -

-
-
-

Configuration through maven-properties

- -

- Alternatively, it is possible, to configure the plugin via maven-properties. - Each relevant configuration-option has a corresponding maven-property - (for a full list see the Documentation of the goal create). - These are named after the - Hibernate JDBC Properties: -

- -
    - -
  • hibernate.connection.driver_class
  • - -
  • hibernate.dialect
  • - -
  • hibernate.connection.url
  • - -
  • hibernate.connection.username
  • - -
  • hibernate.connection.password
  • -
- -

- So, instead of writing the hibernate-configuration in the properties-file, - like above, you could put it in the properties-section of your - pom.xml. -

- -

- Thogether with the plugin-definition from above, the following would - be a complete configuration (again, the database-url was overwritten in - the plugin-configuration, to be sure to have a separate database for - testing): -

- -
-
-<properties>
-  <hibernate.connection.driver_class>org.hsqldb.jdbcDriver</hibernate.connection.driver_class>
-  <hibernate.dialect>org.hibernate.dialect.HSQLDialect</hibernate.dialect>
-  <hibernate.connection.url><![CDATA[jdbc:hsqldb:res:org.my.path.production_db]]></hibernate.connection.url>
-  <hibernate.connection.username>sa</hibernate.connection.username>
-  <hibernate.connection.password></hibernate.connection.password>
-</properties>
-
-...
-
-<plugins>
-
-  ...
-
-  <plugin>
-    <groupId>de.juplo</groupId>
-    <artifactId>hibernate-maven-plugin</artifactId>
-    <version>2.1.0</version>
-    <executions>
-      <execution>
-        <goals>
-          <goal>drop</goal>
-          <goal>create</goal>
-        </goals>
-      </execution>
-    </executions>
-    <configuration>
-      <url><![CDATA[jdbc:hsqldb:target/db/testdb;shutdown=true]]></url>
-    </configuration>
-  </plugin>
-
-<plugins>
- -

- This way, you can reuse the same properties to provide a - default-configurationthe, that is build into your application, and - overwrite the database-url, that is used during testing to prevent - accidential drops of your production database. -

-
-
-

Configuration through the plugin-configuration

- -

- A third way for configuring the plugin is the plugin-configuration. - The relevant configuration-parameters are: -

- -
    - -
  • driver
  • - -
  • dialect
  • - -
  • url
  • - -
  • username
  • - -
  • password
  • -
- -

- The equivalent of the configuration from the last section would look - like this: -

- -
-
-<plugin>
-  <groupId>de.juplo</groupId>
-  <artifactId>hibernate-maven-plugin</artifactId>
-  <version>2.1.0</version>
-  <executions>
-    <execution>
-      <goals>
-        <goal>drop</goal>
-        <goal>create</goal>
-      </goals>
-    </execution>
-  </executions>
-  <configuration>
-    <driver>org.hsqldb.jdbcDriver</driver>
-    <dialect>org.hibernate.dialect.HSQLDialect</dialect>
-    <url><![CDATA[jdbc:hsqldb:target/db/fotos;shutdown=true]]></url>
-    <username>sa</username>
-    <password></password>
-  </configuration>
-</plugin>
- -

- The parameter hibernateProperties (name of the hibernate-properties-file - to use, defaults to hibernate.properties) can only be configured through - this approach. -

- -

- For more explanations, see the - Documentation of the goal create. -

-
-
-

Configuration-Method-Precedence

- -

- The configuration is gathered in a fix order: -

- -
    - -
  1. hibernate.properties
  2. - -
  3. hibernate.cfg.xml
  4. - -
  5. persistence.xml
  6. - -
  7. maven-properties
  8. - -
  9. plugin-configuration
  10. -
- -

- If you are in doubt about where a configuration-value comes from, run - maven with the debug-output enabled: mvn -X hibernate:create - and be aware, that maven-properties can be overwitten on the command-line, - in your ~/.m2/settings.xml and in a profile. -

- -

- The plugin-configuration comes last and overwrites everything else. - That way, you can be sure, that a configuration-value, that is - specified in the plugin-configuration will never be overwritten by any - other configuration-method. -

- -

- If you need to overwrite plugin-configuration-values with - maven-properties, you can use maven-properties in the plugin-configuration: -

- -
-
-<plugin>
-  <groupId>de.juplo</groupId>
-  <artifactId>hibernate-maven-plugin</artifactId>
-  <version>2.1.0</version>
-  <executions>
-    <execution>
-      <goals>
-        <goal>drop</goal>
-        <goal>create</goal>
-      </goals>
-    </execution>
-  </executions>
-  <configuration>
-    <password>${my-password-property}</password>
-  </configuration>
-</plugin>
-
- -
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/cpd.html b/projects/hibernate-maven-plugin-2.1.0/cpd.html deleted file mode 100644 index 4701165..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/cpd.html +++ /dev/null @@ -1,500 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – CPD Results - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Project Reports
  3. CPD
-

-
-
-
-

CPD Results

-

The following document contains the results of PMD's CPD 5.2.3.

-
-

Duplications

- - - - - - - - - - -
FileLine
de/juplo/plugins/hibernate/CreateMojo.java41
de/juplo/plugins/hibernate/DropMojo.java41
-
-
public class CreateMojo extends AbstractSchemaMojo
-{
-  /**
-   * Output file.
-   * <p>
-   * If the specified filename is not absolut, the file will be created
-   * relative to the project build directory
-   * (<code>project.build.directory</code>).
-   *
-   * @parameter property="hibernate.schema.create" default-value="create.sql"
-   * @since 1.0
-   */
-  private String outputFile;
-
-
-  @Override
-  public final void execute()
-    throws
-      MojoFailureException,
-      MojoExecutionException
-  {
-    super.execute(outputFile);
-  }
-
-
-  @Override
-  void build(
-      MetadataImplementor metadata,
-      ExecutionOptions options,
-      TargetDescriptor target
-      )
-      throws
-        MojoExecutionException,
-        MojoFailureException
-  {
-    ServiceRegistry service =
-        metadata.getMetadataBuildingOptions().getServiceRegistry();
-    SchemaManagementTool tool = service.getService(SchemaManagementTool.class);
-
-    Map config = options.getConfigurationValues();
-    SourceDescriptor source = new SourceDescriptor()
-    {
-	  @Override
-      public SourceType getSourceType()
-      {
-        return SourceType.METADATA;
-      }
-
-      @Override
-      public ScriptSourceInput getScriptSourceInput()
-      {
-        return null;
-      }
-    };
-
-    tool.getSchemaCreator(config).doCreation(metadata, options, source, target);
-
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/create-mojo.html b/projects/hibernate-maven-plugin-2.1.0/create-mojo.html deleted file mode 100644 index 72b3a2c..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/create-mojo.html +++ /dev/null @@ -1,1343 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – hibernate:create - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Goal: CREATE
-

-
-
- - -
-

hibernate:create

- -

Full name:

- -

de.juplo:hibernate-maven-plugin:2.1.0:create

- -

Description:

- -
Generate/Execute SQL to create a database-schema that represents -the configured mappings.
- -

Attributes:

- -
    - -
  • Requires a Maven project to be executed.
  • - -
  • Requires dependency resolution of artifacts in scope: runtime.
  • - -
  • The goal is thread-safe and supports parallel builds.
  • - -
  • Binds by default to the lifecycle phase: process-classes.
  • -
- -
-

Optional Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeSinceDescription
createNamespacesBoolean2.0Specifies whether to automatically create also the database -schema/catalog.
Default value is: false.
User property is: hibernate.hbm2dll.create_namespaces.
delimiterString1.0Delimiter in output-file. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: ;.
User property is: hibernate.hbm2ddl.delimiter.
dialectString1.0Hibernate dialect.
User property is: hibernate.dialect.
driverString1.0SQL-Driver name.
User property is: hibernate.connection.driver_class.
executeBoolean2.0Excecute the generated SQL. If set to false, only the -SQL-script is created and the database is not touched. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: true.
User property is: hibernate.schema.execute.
forceboolean1.0Force generation/execution - -

Force the generation and (if configured) the execution of the -SQL, even if no modified or newly added annotated classes where -found and the configuration was not changed.

- -

skip takes precedence over force.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: false.
User property is: hibernate.schema.force.
formatBoolean1.0Format output-file.
User property is: hibernate.format_sql.
hibernateConfigString1.1.0Path to Hibernate configuration file (.cfg.xml). If this parameter -is specified, the plugin will try to load configuration values from -a file with the given path or a ressource on the classpath with the -given name. If both fails, the execution of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.cfg.xml on the -classpath, if it is present, but will not fail if there is no such -ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.

- -

Settings in this file will overwrite settings in the properties -file.


hibernatePropertiesString1.0Path to a file or name of a ressource with hibernate properties. If -this parameter is specified, the plugin will try to load -configuration values from a file with the given path or a ressource -on the classpath with the given name. If both fails, the execution -of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.properties on -the classpath, if it is present, but will not fail if there is no -such ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.


implicitNamingStrategyString2.0Implicit naming strategy
User property is: hibernate.implicit_naming_strategy.
mappingsString1.0.2List of Hibernate-Mapping-Files (XML). Multiple files can be -separated with white-spaces and/or commas.
User property is: hibernate.mapping.
outputDirectoryString1.0Classes-Directory to scan. - -

This parameter defaults to the maven build-output-directory for -classes. Additionally, all dependencies are scanned for annotated -classes.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


User property is: project.build.outputDirectory.
outputFileString1.0Output file. - -

If the specified filename is not absolut, the file will be -created relative to the project build directory -(project.build.directory).


Default value is: create.sql.
User property is: hibernate.schema.create.
passwordString1.0Database password
User property is: hibernate.connection.password.
persistenceUnitString1.1.0Name of the persistence-unit. If this parameter is specified, the -plugin will try to load configuration values from a -persistence-unit with the specified name. If no such -persistence-unit can be found, the plugin will throw an exception. - -

If this parameter is not set and there is only one -persistence-unit available, that unit will be used automatically. -But if this parameter is not set and there are multiple -persistence-units available on, the class-path, the execution of -the plugin will fail.

- -

Settings in this file will overwrite settings in the properties -or the configuration file.


physicalNamingStrategyString2.0Physical naming strategy
User property is: hibernate.physical_naming_strategy.
scanClassesBoolean2.0Wether the project should be scanned for annotated-classes, or not - -

This parameter is intended to allow overwriting of the parameter -exclude-unlisted-classes of a -persistence-unit. If not specified, it defaults to -true


User property is: hibernate.schema.scan.classes.
scanDependenciesString1.0.3Dependency-Scopes, that should be scanned for annotated classes. - -

By default, only dependencies in the scope compile -are scanned for annotated classes. Multiple scopes can be seperated -by white space or commas.

- -

If you do not want any dependencies to be scanned for annotated -classes, set this parameter to none.

- -

The plugin does not scan for annotated classes in transitive -dependencies. If some of your annotated classes are hidden in a -transitive dependency, you can simply add that dependency -explicitly.


Default value is: compile.
User property is: hibernate.schema.scan.dependencies.
scanTestClassesBoolean1.0.1Whether to scan the test-branch of the project for annotated -classes, or not. - -

If this parameter is set to true the test-classes -of the artifact will be scanned for hibernate-annotated classes -additionally.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: false.
User property is: hibernate.schema.scan.test_classes.
showBoolean1.0Show the generated SQL in the command-line output.
User property is: hibernate.show_sql.
skipboolean1.0Skip execution - -

If set to true, the execution is skipped.

- -

A skipped execution is signaled via the maven-property -${hibernate.schema.skipped}.

- -

The execution is skipped automatically, if no modified or newly -added annotated classes are found and the dialect was not -changed.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: ${maven.test.skip}.
User property is: hibernate.schema.skip.
testOutputDirectoryString1.0.2Test-Classes-Directory to scan. - -

This parameter defaults to the maven build-output-directory for -test-classes.

- -

This parameter is only used, when scanTestClasses -is set to true!

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


User property is: project.build.testOutputDirectory.
urlString1.0Database URL.
User property is: hibernate.connection.url.
usernameString1.0Database username
User property is: hibernate.connection.username.
-
- -
-

Parameter Details

- -

createNamespaces:

- -
Specifies whether to automatically create also the database -schema/catalog.
- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.hbm2dll.create_namespaces
  • - -
  • Default: false
  • -

-

delimiter:

- -
Delimiter in output-file. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.hbm2ddl.delimiter
  • - -
  • Default: ;
  • -

-

dialect:

- -
Hibernate dialect.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.dialect
  • -

-

driver:

- -
SQL-Driver name.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.connection.driver_class
  • -

-

execute:

- -
Excecute the generated SQL. If set to false, only the -SQL-script is created and the database is not touched. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.execute
  • - -
  • Default: true
  • -

-

force:

- -
Force generation/execution - -

Force the generation and (if configured) the execution of the -SQL, even if no modified or newly added annotated classes where -found and the configuration was not changed.

- -

skip takes precedence over force.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.force
  • - -
  • Default: false
  • -

-

format:

- -
Format output-file.
- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.format_sql
  • -

-

hibernateConfig:

- -
Path to Hibernate configuration file (.cfg.xml). If this parameter -is specified, the plugin will try to load configuration values from -a file with the given path or a ressource on the classpath with the -given name. If both fails, the execution of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.cfg.xml on the -classpath, if it is present, but will not fail if there is no such -ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.

- -

Settings in this file will overwrite settings in the properties -file.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.1.0
  • - -
  • Required: No
  • -

-

hibernateProperties:

- -
Path to a file or name of a ressource with hibernate properties. If -this parameter is specified, the plugin will try to load -configuration values from a file with the given path or a ressource -on the classpath with the given name. If both fails, the execution -of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.properties on -the classpath, if it is present, but will not fail if there is no -such ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • -

-

implicitNamingStrategy:

- -
Implicit naming strategy
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.implicit_naming_strategy
  • -

-

mappings:

- -
List of Hibernate-Mapping-Files (XML). Multiple files can be -separated with white-spaces and/or commas.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0.2
  • - -
  • Required: No
  • - -
  • User Property: hibernate.mapping
  • -

-

outputDirectory:

- -
Classes-Directory to scan. - -

This parameter defaults to the maven build-output-directory for -classes. Additionally, all dependencies are scanned for annotated -classes.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: project.build.outputDirectory
  • -

-

outputFile:

- -
Output file. - -

If the specified filename is not absolut, the file will be -created relative to the project build directory -(project.build.directory).

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.create
  • - -
  • Default: create.sql
  • -

-

password:

- -
Database password
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.connection.password
  • -

-

persistenceUnit:

- -
Name of the persistence-unit. If this parameter is specified, the -plugin will try to load configuration values from a -persistence-unit with the specified name. If no such -persistence-unit can be found, the plugin will throw an exception. - -

If this parameter is not set and there is only one -persistence-unit available, that unit will be used automatically. -But if this parameter is not set and there are multiple -persistence-units available on, the class-path, the execution of -the plugin will fail.

- -

Settings in this file will overwrite settings in the properties -or the configuration file.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.1.0
  • - -
  • Required: No
  • -

-

physicalNamingStrategy:

- -
Physical naming strategy
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.physical_naming_strategy
  • -

-

scanClasses:

- -
Wether the project should be scanned for annotated-classes, or not - -

This parameter is intended to allow overwriting of the parameter -exclude-unlisted-classes of a -persistence-unit. If not specified, it defaults to -true

- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.scan.classes
  • -

-

scanDependencies:

- -
Dependency-Scopes, that should be scanned for annotated classes. - -

By default, only dependencies in the scope compile -are scanned for annotated classes. Multiple scopes can be seperated -by white space or commas.

- -

If you do not want any dependencies to be scanned for annotated -classes, set this parameter to none.

- -

The plugin does not scan for annotated classes in transitive -dependencies. If some of your annotated classes are hidden in a -transitive dependency, you can simply add that dependency -explicitly.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0.3
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.scan.dependencies
  • - -
  • Default: compile
  • -

-

scanTestClasses:

- -
Whether to scan the test-branch of the project for annotated -classes, or not. - -

If this parameter is set to true the test-classes -of the artifact will be scanned for hibernate-annotated classes -additionally.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 1.0.1
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.scan.test_classes
  • - -
  • Default: false
  • -

-

show:

- -
Show the generated SQL in the command-line output.
- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.show_sql
  • -

-

skip:

- -
Skip execution - -

If set to true, the execution is skipped.

- -

A skipped execution is signaled via the maven-property -${hibernate.schema.skipped}.

- -

The execution is skipped automatically, if no modified or newly -added annotated classes are found and the dialect was not -changed.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.skip
  • - -
  • Default: ${maven.test.skip}
  • -

-

testOutputDirectory:

- -
Test-Classes-Directory to scan. - -

This parameter defaults to the maven build-output-directory for -test-classes.

- -

This parameter is only used, when scanTestClasses -is set to true!

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0.2
  • - -
  • Required: No
  • - -
  • User Property: project.build.testOutputDirectory
  • -

-

url:

- -
Database URL.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.connection.url
  • -

-

username:

- -
Database username
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.connection.username
  • -
-
-
- - -
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/css/site.css b/projects/hibernate-maven-plugin-2.1.0/css/site.css deleted file mode 100644 index 055e7e2..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/css/site.css +++ /dev/null @@ -1 +0,0 @@ -/* You can override this file with your own styles */ \ No newline at end of file diff --git a/projects/hibernate-maven-plugin-2.1.0/debugging.html b/projects/hibernate-maven-plugin-2.1.0/debugging.html deleted file mode 100644 index 7828eea..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/debugging.html +++ /dev/null @@ -1,462 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin — Enable Debugging-Output - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Enable Debugging-Output
-

-
-
- - - - -

Enable Debugging-Output

- -

- If you are new to hibernate-maven-plugin, in many cases, the - Configuration-Method-Precedence - may be the source of configuration errors. - To solve this problem, you should run maven with the debugging output - enabled. - For example, by executing: -

- -
-
-mvn -X compile hibernate:create
- -

- (The compile might be necessary, because hibernate-maven-plugin - has to scan the compiled classes for annotations!) -

- -

- Unlike the majority of the maven-plugins, hibernate-maven-plugin was - designed to give a good many hints, when debugging is enabled. - Because, if you do not know, what went wrong, you can't fix it! -

- -

- But be warned: hibernate-maven-plugin tends to be very chatty ;) -

- - -
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/dependencies.html b/projects/hibernate-maven-plugin-2.1.0/dependencies.html deleted file mode 100644 index b390f80..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/dependencies.html +++ /dev/null @@ -1,2122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – Project Dependencies - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Project Information
  3. Dependencies
-

-
-
- -
-

Project Dependencies

-
-

compile

-

The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GroupIdArtifactIdVersionTypeLicenses
com.pyx4jmaven-plugin-log4j1.0.1jarThe Apache Software License, Version 2.0
de.juploscannotation1.0.4jar-
javax.eljavax.el-api3.0.0jarCDDL + GPLv2 with classpath exception
org.apache.mavenmaven-core3.3.3jarApache License, Version 2.0
org.apache.mavenmaven-plugin-api3.3.3jarApache License, Version 2.0
org.hibernatehibernate-core5.2.4.FinaljarGNU Lesser General Public License
org.hibernatehibernate-envers5.2.4.FinaljarGNU Lesser General Public License
org.hibernatehibernate-validator5.3.1.FinaljarApache License, Version 2.0
-
-

Project Transitive Dependencies

-

The following is a list of transitive dependencies for this project. Transitive dependencies are the dependencies of the project dependencies.

-
-

compile

-

The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GroupIdArtifactIdVersionClassifierTypeLicenses
antlrantlr2.7.7-jarBSD License
aopallianceaopalliance1.0-jarPublic Domain
com.fasterxmlclassmate1.3.0-jarThe Apache Software License, Version 2.0
com.google.guavaguava18.0-jarThe Apache Software License, Version 2.0
dom4jdom4j1.6.1-jar-
javax.annotationjsr250-api1.0-jarCOMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
javax.elel-api2.2-jar-
javax.enterprisecdi-api1.1-jarApache License, Version 2.0
javax.injectjavax.inject1-jarThe Apache Software License, Version 2.0
javax.validationvalidation-api1.1.0.Final-jarThe Apache Software License, Version 2.0
log4jlog4j1.2.14-jarThe Apache Software License, Version 2.0
org.apache.geronimo.specsgeronimo-jta_1.1_spec1.1.1-jarThe Apache Software License, Version 2.0
org.apache.mavenmaven-aether-provider3.3.3-jarApache License, Version 2.0
org.apache.mavenmaven-artifact3.3.3-jarApache License, Version 2.0
org.apache.mavenmaven-builder-support3.3.3-jarApache License, Version 2.0
org.apache.mavenmaven-model3.3.3-jarApache License, Version 2.0
org.apache.mavenmaven-model-builder3.3.3-jarApache License, Version 2.0
org.apache.mavenmaven-repository-metadata3.3.3-jarApache License, Version 2.0
org.apache.mavenmaven-settings3.3.3-jarApache License, Version 2.0
org.apache.mavenmaven-settings-builder3.3.3-jarApache License, Version 2.0
org.codehaus.plexusplexus-classworlds2.5.2-jarThe Apache Software License, Version 2.0
org.codehaus.plexusplexus-component-annotations1.5.5-jarThe Apache Software License, Version 2.0
org.codehaus.plexusplexus-interpolation1.21-jarThe Apache Software License, Version 2.0
org.eclipse.aetheraether-api1.0.2.v20150114-jarEclipse Public License, Version 1.0
org.eclipse.aetheraether-impl1.0.2.v20150114-jarEclipse Public License, Version 1.0
org.eclipse.aetheraether-spi1.0.2.v20150114-jarEclipse Public License, Version 1.0
org.eclipse.aetheraether-util1.0.2.v20150114-jarEclipse Public License, Version 1.0
org.eclipse.sisuorg.eclipse.sisu.inject0.3.0-jarEclipse Public License, Version 1.0
org.eclipse.sisuorg.eclipse.sisu.plexus0.3.0-jarEclipse Public License, Version 1.0
org.hibernate.commonhibernate-commons-annotations5.0.1.Final-jarGNU Lesser General Public License
org.hibernate.javax.persistencehibernate-jpa-2.1-api1.0.0.Final-jarEclipse Public License (EPL), Version 1.0-Eclipse Distribution License (EDL), Version 1.0
org.javassistjavassist3.20.0-GA-jarMPL 1.1-LGPL 2.1-Apache License 2.0
org.jbossjandex2.0.0.Final-jarApache License, Version 2.0
org.jboss.loggingjboss-logging3.3.0.Final-jarApache License, version 2.0
org.jboss.spec.javax.interceptorhttp://jboss-interceptors-api_1.1_spec/1.0.0.Beta1-jarlgpl
org.sonatype.plexusplexus-cipher1.4-jarApache Public License 2.0
org.sonatype.plexusplexus-sec-dispatcher1.3-jarApache Public License 2.0
org.sonatype.sisusisu-guice3.2.5no_aopjarThe Apache Software License, Version 2.0
-
-

Project Dependency Graph

- - -
-

Dependency Tree

-
-
-

Licenses

-

Apache License, version 2.0: JBoss Logging 3

-

Eclipse Public License (EPL), Version 1.0: Java Persistence API, Version 2.1

-

Apache Public License 2.0: Plexus Cipher: encryption/decryption Component, Plexus Security Dispatcher Component

-

lgpl: Interceptors 1.1 API

-

Public Domain: AOP alliance

-

GNU Lesser General Public License: Core Hibernate O/RM functionality, ENtity VERSioning support, Hibernate Commons Annotations

-

Eclipse Distribution License (EDL), Version 1.0: Java Persistence API, Version 2.1

-

Eclipse Public License, Version 1.0: Aether API, Aether Implementation, Aether SPI, Aether Utilities, org.eclipse.sisu.inject, org.eclipse.sisu.plexus

-

Unknown: Expression Language API (2.1 Maintenance Release), dom4j, scannotation

-

Apache License 2.0: Javassist

-

BSD License: AntLR Parser Generator

-

Apache License, Version 2.0: CDI APIs, Hibernate Validator Engine, Java Annotation Indexer, Maven Aether Provider, Maven Artifact, Maven Builder Support, Maven Core, Maven Model, Maven Model Builder, Maven Plugin API, Maven Repository Metadata Model, Maven Settings, Maven Settings Builder

-

COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0: JSR-250 Common Annotations for the JavaTM Platform

-

LGPL 2.1: Javassist

-

CDDL + GPLv2 with classpath exception: Expression Language 3.0 API

-

MPL 1.1: Javassist

-

The Apache Software License, Version 2.0: Bean Validation API, ClassMate, Guava: Google Core Libraries for Java, Hibernate Maven Plugin, JTA 1.1, Log4j, Plexus :: Component Annotations, Plexus Classworlds, Plexus Interpolation API, Sisu Guice - Core Library, javax.inject, maven-plugin-log4j

-
-

Dependency File Details

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FilenameSizeEntriesClassesPackagesJava VersionDebug Information
antlr-2.7.7.jar445.3 kB239224121.2Yes
aopalliance-1.0.jar4.5 kB15921.3Yes
classmate-1.3.0.jar64.1 kB523741.6Yes
guava-18.0.jar2.3 MB17191690171.6Yes
maven-plugin-log4j-1.0.1.jar3.7 kB12111.4Yes
scannotation-1.0.4.jar20.3 kB231321.6Yes
dom4j-1.6.1.jar313.9 kB208190141.3Yes
jsr250-api-1.0.jar5.8 kB161121.5Yes
el-api-2.2.jar33.9 kB382811.5Yes
javax.el-api-3.0.0.jar73.1 kB574611.7Yes
cdi-api-1.1.jar70.7 kB1189871.6Yes
javax.inject-1.jar2.5 kB8611.5No
validation-api-1.1.0.Final.jar63.8 kB12210681.6Yes
log4j-1.2.14.jar367.4 kB288256191.1Yes
geronimo-jta_1.1_spec-1.1.1.jar16 kB301821.5Yes
maven-aether-provider-3.3.3.jar66.3 kB432611.7Yes
maven-artifact-3.3.3.jar55.1 kB5732111.7Yes
maven-builder-support-3.3.3.jar15 kB241011.7Yes
maven-core-3.3.3.jar631.9 kB489390561.7Yes
maven-model-3.3.3.jar160.8 kB675031.7Yes
maven-model-builder-3.3.3.jar176.4 kB154121161.7Yes
maven-plugin-api-3.3.3.jar46.1 kB462561.7Yes
maven-repository-metadata-3.3.3.jar26 kB25721.7Yes
maven-settings-3.3.3.jar43 kB331721.7Yes
maven-settings-builder-3.3.3.jar43.2 kB533251.7Yes
plexus-classworlds-2.5.2.jar52.7 kB523751.6Yes
plexus-component-annotations-1.5.5.jar4.2 kB15311.5No
plexus-interpolation-1.21.jar62.5 kB604461.5Yes
aether-api-1.0.2.v20150114.jar136.3 kB149128111.5Yes
aether-impl-1.0.2.v20150114.jar173 kB1149641.5Yes
aether-spi-1.0.2.v20150114.jar30.7 kB543481.5Yes
aether-util-1.0.2.v20150114.jar146.9 kB126101131.5Yes
org.eclipse.sisu.inject-0.3.0.jar375.3 kB28726991.6Yes
org.eclipse.sisu.plexus-0.3.0.jar205.4 kB196164201.6Yes
hibernate-core-5.2.4.Final.jar6.4 MB464543172491.8Yes
hibernate-envers-5.2.4.Final.jar436.6 kB333278371.8Yes
hibernate-validator-5.3.1.Final.jar723.4 kB548458541.6Yes
hibernate-commons-annotations-5.0.1.Final.jar75.3 kB806771.6Yes
hibernate-jpa-2.1-api-1.0.0.Final.jar113.4 kB20720041.6Yes
javassist-3.20.0-GA.jar750.6 kB423399171.6Yes
jandex-2.0.0.Final.jar187.8 kB11210211.6Yes
jboss-logging-3.3.0.Final.jar66.8 kB604811.6Yes
jboss-interceptors-api_1.1_spec-1.0.0.Beta1.jar5.6 kB17811.5No
plexus-cipher-1.4.jar13.5 kB20611.4Yes
plexus-sec-dispatcher-1.3.jar28.6 kB311331.4Yes
sisu-guice-3.2.5-no_aop.jar399.7 kB33131681.6Yes
TotalSizeEntriesClassesPackagesJava VersionDebug Information
4615.4 MB11796105316561.843
compile: 46compile: 15.4 MBcompile: 11796compile: 10531compile: 656-compile: 43
-
-

Dependency Repository Locations

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Repo IDURLReleaseSnapshotBlacklisted
plexus.snapshotshttps://oss.sonatype.org/content/repositories/plexus-snapshotsNoYesNo
centralhttps://repo.maven.apache.org/maven2YesNoNo
codehaus-snapshotshttp://snapshots.repository.codehaus.orgNoYesYes
apache-snapshotshttp://people.apache.org/repo/m2-snapshot-repositoryNoYesYes
sonatype-nexus-snapshotshttps://oss.sonatype.org/content/repositories/snapshotsNoYesNo
jvnet-nexus-snapshotshttps://maven.java.net/content/repositories/snapshotsNoYesNo
apache-incubatorhttp://people.apache.org/repo/m2-incubating-repository/YesNoYes
jboss-public-repository-grouphttp://repository.jboss.org/nexus/content/groups/publicYesNoNo
apache.snapshotshttp://repository.apache.org/snapshotsNoYesNo
-

Repository locations for each of the Dependencies.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Artifactplexus.snapshotscentralsonatype-nexus-snapshotsjvnet-nexus-snapshotsjboss-public-repository-groupapache.snapshots
antlr:antlr:jar:2.7.7-Found at https://repo.maven.apache.org/maven2----
aopalliance:aopalliance:jar:1.0-Found at https://repo.maven.apache.org/maven2----
com.fasterxml:classmate:jar:1.3.0-Found at https://repo.maven.apache.org/maven2----
com.google.guava:guava:jar:18.0-Found at https://repo.maven.apache.org/maven2----
com.pyx4j:maven-plugin-log4j:jar:1.0.1-Found at https://repo.maven.apache.org/maven2----
de.juplo:scannotation:jar:1.0.4-Found at https://repo.maven.apache.org/maven2----
dom4j:dom4j:jar:1.6.1-Found at https://repo.maven.apache.org/maven2----
javax.annotation:jsr250-api:jar:1.0-Found at https://repo.maven.apache.org/maven2----
javax.el:el-api:jar:2.2-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
javax.el:javax.el-api:jar:3.0.0-Found at https://repo.maven.apache.org/maven2----
javax.enterprise:cdi-api:jar:1.1-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
javax.inject:javax.inject:jar:1-Found at https://repo.maven.apache.org/maven2----
javax.validation:validation-api:jar:1.1.0.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
log4j:log4j:jar:1.2.14-Found at https://repo.maven.apache.org/maven2----
org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-aether-provider:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-artifact:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-builder-support:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-core:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-model:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-model-builder:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-plugin-api:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-repository-metadata:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-settings:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-settings-builder:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.codehaus.plexus:plexus-classworlds:jar:2.5.2-Found at https://repo.maven.apache.org/maven2----
org.codehaus.plexus:plexus-component-annotations:jar:1.5.5-Found at https://repo.maven.apache.org/maven2----
org.codehaus.plexus:plexus-interpolation:jar:1.21-Found at https://repo.maven.apache.org/maven2----
org.eclipse.aether:aether-api:jar:1.0.2.v20150114-Found at https://repo.maven.apache.org/maven2----
org.eclipse.aether:aether-impl:jar:1.0.2.v20150114-Found at https://repo.maven.apache.org/maven2----
org.eclipse.aether:aether-spi:jar:1.0.2.v20150114-Found at https://repo.maven.apache.org/maven2----
org.eclipse.aether:aether-util:jar:1.0.2.v20150114-Found at https://repo.maven.apache.org/maven2----
org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.0-Found at https://repo.maven.apache.org/maven2----
org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.0-Found at https://repo.maven.apache.org/maven2----
org.hibernate:hibernate-core:jar:5.2.4.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.hibernate:hibernate-envers:jar:5.2.4.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.hibernate:hibernate-validator:jar:5.3.1.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.javassist:javassist:jar:3.20.0-GA-Found at https://repo.maven.apache.org/maven2----
org.jboss:jandex:jar:2.0.0.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.jboss.logging:jboss-logging:jar:3.3.0.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:jar:1.0.0.Beta1-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.sonatype.plexus:plexus-cipher:jar:1.4-Found at https://repo.maven.apache.org/maven2----
org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3-Found at https://repo.maven.apache.org/maven2----
org.sonatype.sisu:sisu-guice:jar:no_aop:3.2.5-Found at https://repo.maven.apache.org/maven2----
Totalplexus.snapshotscentralsonatype-nexus-snapshotsjvnet-nexus-snapshotsjboss-public-repository-groupapache.snapshots
46 (compile: 46)04600110
-
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/dependency-info.html b/projects/hibernate-maven-plugin-2.1.0/dependency-info.html deleted file mode 100644 index 1f20524..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/dependency-info.html +++ /dev/null @@ -1,466 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – Dependency Information - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Project Information
  3. Dependency Information
-

-
-
-
-

Dependency Information

-
-

Apache Maven

-
-
<dependency>
-  <groupId>de.juplo</groupId>
-  <artifactId>hibernate-maven-plugin</artifactId>
-  <version>2.1.0</version>
-  <type>maven-plugin</type>
-</dependency>
-
-

Apache Buildr

-
-
'de.juplo:hibernate-maven-plugin:maven-plugin:2.1.0'
-
-

Apache Ivy

-
-
<dependency org="de.juplo" name="hibernate-maven-plugin" rev="2.1.0">
-  <artifact name="hibernate-maven-plugin" type="maven-plugin" />
-</dependency>
-
-

Groovy Grape

-
-
@Grapes(
-@Grab(group='de.juplo', module='hibernate-maven-plugin', version='2.1.0')
-)
-
-

Gradle/Grails

-
-
compile 'de.juplo:hibernate-maven-plugin:2.1.0'
-
-

Scala SBT

-
-
libraryDependencies += "de.juplo" % "hibernate-maven-plugin" % "2.1.0"
-
-

Leiningen

-
-
[de.juplo/hibernate-maven-plugin "2.1.0"]
-
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/distribution-management.html b/projects/hibernate-maven-plugin-2.1.0/distribution-management.html deleted file mode 100644 index a7c8127..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/distribution-management.html +++ /dev/null @@ -1,437 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – Project Distribution Management - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Project Information
  3. Distribution Management
-

-
-
-
-

Overview

-

The following is the distribution management information used by this project.

- -
-

Snapshot Repository - sonatype-nexus-snapshots

https://oss.sonatype.org/content/repositories/snapshots/
-
-

Site - juplo.de

-

scp://juplo.de/var/www/juplo/hibernate-maven-plugin-2.1.0

-
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/drop-mojo.html b/projects/hibernate-maven-plugin-2.1.0/drop-mojo.html deleted file mode 100644 index 2c67b60..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/drop-mojo.html +++ /dev/null @@ -1,1341 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – hibernate:drop - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Goal: DROP
-

-
-
- - -
-

hibernate:drop

- -

Full name:

- -

de.juplo:hibernate-maven-plugin:2.1.0:drop

- -

Description:

- -
Generate/Execute SQL to drop all tables of a database-schema that -represents the configured mappings.
- -

Attributes:

- -
    - -
  • Requires a Maven project to be executed.
  • - -
  • Requires dependency resolution of artifacts in scope: runtime.
  • - -
  • The goal is thread-safe and supports parallel builds.
  • - -
  • Binds by default to the lifecycle phase: process-classes.
  • -
- -
-

Optional Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeSinceDescription
createNamespacesBoolean2.0Specifies whether to automatically create also the database -schema/catalog.
Default value is: false.
User property is: hibernate.hbm2dll.create_namespaces.
delimiterString1.0Delimiter in output-file. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: ;.
User property is: hibernate.hbm2ddl.delimiter.
dialectString1.0Hibernate dialect.
User property is: hibernate.dialect.
driverString1.0SQL-Driver name.
User property is: hibernate.connection.driver_class.
executeBoolean2.0Excecute the generated SQL. If set to false, only the -SQL-script is created and the database is not touched. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: true.
User property is: hibernate.schema.execute.
forceboolean1.0Force generation/execution - -

Force the generation and (if configured) the execution of the -SQL, even if no modified or newly added annotated classes where -found and the configuration was not changed.

- -

skip takes precedence over force.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: false.
User property is: hibernate.schema.force.
formatBoolean1.0Format output-file.
User property is: hibernate.format_sql.
hibernateConfigString1.1.0Path to Hibernate configuration file (.cfg.xml). If this parameter -is specified, the plugin will try to load configuration values from -a file with the given path or a ressource on the classpath with the -given name. If both fails, the execution of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.cfg.xml on the -classpath, if it is present, but will not fail if there is no such -ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.

- -

Settings in this file will overwrite settings in the properties -file.


hibernatePropertiesString1.0Path to a file or name of a ressource with hibernate properties. If -this parameter is specified, the plugin will try to load -configuration values from a file with the given path or a ressource -on the classpath with the given name. If both fails, the execution -of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.properties on -the classpath, if it is present, but will not fail if there is no -such ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.


implicitNamingStrategyString2.0Implicit naming strategy
User property is: hibernate.implicit_naming_strategy.
mappingsString1.0.2List of Hibernate-Mapping-Files (XML). Multiple files can be -separated with white-spaces and/or commas.
User property is: hibernate.mapping.
outputDirectoryString1.0Classes-Directory to scan. - -

This parameter defaults to the maven build-output-directory for -classes. Additionally, all dependencies are scanned for annotated -classes.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


User property is: project.build.outputDirectory.
outputFileString1.0Output file. - -

If the specified filename is not absolut, the file will be -created relative to the project build directory -(project.build.directory).


Default value is: drop.sql.
User property is: hibernate.schema.drop.
passwordString1.0Database password
User property is: hibernate.connection.password.
persistenceUnitString1.1.0Name of the persistence-unit. If this parameter is specified, the -plugin will try to load configuration values from a -persistence-unit with the specified name. If no such -persistence-unit can be found, the plugin will throw an exception. - -

If this parameter is not set and there is only one -persistence-unit available, that unit will be used automatically. -But if this parameter is not set and there are multiple -persistence-units available on, the class-path, the execution of -the plugin will fail.

- -

Settings in this file will overwrite settings in the properties -or the configuration file.


physicalNamingStrategyString2.0Physical naming strategy
User property is: hibernate.physical_naming_strategy.
scanClassesBoolean2.0Wether the project should be scanned for annotated-classes, or not - -

This parameter is intended to allow overwriting of the parameter -exclude-unlisted-classes of a -persistence-unit. If not specified, it defaults to -true


User property is: hibernate.schema.scan.classes.
scanDependenciesString1.0.3Dependency-Scopes, that should be scanned for annotated classes. - -

By default, only dependencies in the scope compile -are scanned for annotated classes. Multiple scopes can be seperated -by white space or commas.

- -

If you do not want any dependencies to be scanned for annotated -classes, set this parameter to none.

- -

The plugin does not scan for annotated classes in transitive -dependencies. If some of your annotated classes are hidden in a -transitive dependency, you can simply add that dependency -explicitly.


Default value is: compile.
User property is: hibernate.schema.scan.dependencies.
scanTestClassesBoolean1.0.1Whether to scan the test-branch of the project for annotated -classes, or not. - -

If this parameter is set to true the test-classes -of the artifact will be scanned for hibernate-annotated classes -additionally.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: false.
User property is: hibernate.schema.scan.test_classes.
showBoolean1.0Show the generated SQL in the command-line output.
User property is: hibernate.show_sql.
skipboolean1.0Skip execution - -

If set to true, the execution is skipped.

- -

A skipped execution is signaled via the maven-property -${hibernate.schema.skipped}.

- -

The execution is skipped automatically, if no modified or newly -added annotated classes are found and the dialect was not -changed.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: ${maven.test.skip}.
User property is: hibernate.schema.skip.
testOutputDirectoryString1.0.2Test-Classes-Directory to scan. - -

This parameter defaults to the maven build-output-directory for -test-classes.

- -

This parameter is only used, when scanTestClasses -is set to true!

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


User property is: project.build.testOutputDirectory.
urlString1.0Database URL.
User property is: hibernate.connection.url.
usernameString1.0Database username
User property is: hibernate.connection.username.
-
- -
-

Parameter Details

- -

createNamespaces:

- -
Specifies whether to automatically create also the database -schema/catalog.
- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.hbm2dll.create_namespaces
  • - -
  • Default: false
  • -

-

delimiter:

- -
Delimiter in output-file. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.hbm2ddl.delimiter
  • - -
  • Default: ;
  • -

-

dialect:

- -
Hibernate dialect.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.dialect
  • -

-

driver:

- -
SQL-Driver name.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.connection.driver_class
  • -

-

execute:

- -
Excecute the generated SQL. If set to false, only the -SQL-script is created and the database is not touched. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.execute
  • - -
  • Default: true
  • -

-

force:

- -
Force generation/execution - -

Force the generation and (if configured) the execution of the -SQL, even if no modified or newly added annotated classes where -found and the configuration was not changed.

- -

skip takes precedence over force.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.force
  • - -
  • Default: false
  • -

-

format:

- -
Format output-file.
- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.format_sql
  • -

-

hibernateConfig:

- -
Path to Hibernate configuration file (.cfg.xml). If this parameter -is specified, the plugin will try to load configuration values from -a file with the given path or a ressource on the classpath with the -given name. If both fails, the execution of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.cfg.xml on the -classpath, if it is present, but will not fail if there is no such -ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.

- -

Settings in this file will overwrite settings in the properties -file.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.1.0
  • - -
  • Required: No
  • -

-

hibernateProperties:

- -
Path to a file or name of a ressource with hibernate properties. If -this parameter is specified, the plugin will try to load -configuration values from a file with the given path or a ressource -on the classpath with the given name. If both fails, the execution -of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.properties on -the classpath, if it is present, but will not fail if there is no -such ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • -

-

implicitNamingStrategy:

- -
Implicit naming strategy
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.implicit_naming_strategy
  • -

-

mappings:

- -
List of Hibernate-Mapping-Files (XML). Multiple files can be -separated with white-spaces and/or commas.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0.2
  • - -
  • Required: No
  • - -
  • User Property: hibernate.mapping
  • -

-

outputDirectory:

- -
Classes-Directory to scan. - -

This parameter defaults to the maven build-output-directory for -classes. Additionally, all dependencies are scanned for annotated -classes.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: project.build.outputDirectory
  • -

-

outputFile:

- -
Output file. - -

If the specified filename is not absolut, the file will be -created relative to the project build directory -(project.build.directory).

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.drop
  • - -
  • Default: drop.sql
  • -

-

password:

- -
Database password
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.connection.password
  • -

-

persistenceUnit:

- -
Name of the persistence-unit. If this parameter is specified, the -plugin will try to load configuration values from a -persistence-unit with the specified name. If no such -persistence-unit can be found, the plugin will throw an exception. - -

If this parameter is not set and there is only one -persistence-unit available, that unit will be used automatically. -But if this parameter is not set and there are multiple -persistence-units available on, the class-path, the execution of -the plugin will fail.

- -

Settings in this file will overwrite settings in the properties -or the configuration file.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.1.0
  • - -
  • Required: No
  • -

-

physicalNamingStrategy:

- -
Physical naming strategy
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.physical_naming_strategy
  • -

-

scanClasses:

- -
Wether the project should be scanned for annotated-classes, or not - -

This parameter is intended to allow overwriting of the parameter -exclude-unlisted-classes of a -persistence-unit. If not specified, it defaults to -true

- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.scan.classes
  • -

-

scanDependencies:

- -
Dependency-Scopes, that should be scanned for annotated classes. - -

By default, only dependencies in the scope compile -are scanned for annotated classes. Multiple scopes can be seperated -by white space or commas.

- -

If you do not want any dependencies to be scanned for annotated -classes, set this parameter to none.

- -

The plugin does not scan for annotated classes in transitive -dependencies. If some of your annotated classes are hidden in a -transitive dependency, you can simply add that dependency -explicitly.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0.3
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.scan.dependencies
  • - -
  • Default: compile
  • -

-

scanTestClasses:

- -
Whether to scan the test-branch of the project for annotated -classes, or not. - -

If this parameter is set to true the test-classes -of the artifact will be scanned for hibernate-annotated classes -additionally.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 1.0.1
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.scan.test_classes
  • - -
  • Default: false
  • -

-

show:

- -
Show the generated SQL in the command-line output.
- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.show_sql
  • -

-

skip:

- -
Skip execution - -

If set to true, the execution is skipped.

- -

A skipped execution is signaled via the maven-property -${hibernate.schema.skipped}.

- -

The execution is skipped automatically, if no modified or newly -added annotated classes are found and the dialect was not -changed.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.skip
  • - -
  • Default: ${maven.test.skip}
  • -

-

testOutputDirectory:

- -
Test-Classes-Directory to scan. - -

This parameter defaults to the maven build-output-directory for -test-classes.

- -

This parameter is only used, when scanTestClasses -is set to true!

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0.2
  • - -
  • Required: No
  • - -
  • User Property: project.build.testOutputDirectory
  • -

-

url:

- -
Database URL.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.connection.url
  • -

-

username:

- -
Database username
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.connection.username
  • -
-
-
- - -
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/force.html b/projects/hibernate-maven-plugin-2.1.0/force.html deleted file mode 100644 index 6bd6863..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/force.html +++ /dev/null @@ -1,473 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin — Force Exceution - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Force Exceution
-

-
-
- - - - -

Force Execution

- -

- The hibernate-maven-plugin computes MD5-sums for all found annotated - classes and stores them together with the generated schema. - If no classes were changed or added and the dialect wasn't changed too, it - automatically skips the configured SQL-generation — and more - important in this respect — the execution of the generated SQL, - to speed up the development cycle. -

- -

- The plugin signals, that the execution was skipped by setting the maven - property ${hibernate.schema.skipped} to true. - This may be helpful, because other plugins like - dbunit-plugin - may fail, when the execution is skipped. -

- -

- If you need the hibernate-maven-plugin to never skip execution automatically, - you can force it to do so, if you set the parameter force to - true: -

- -
-
-<plugin>
-  <groupId>de.juplo</groupId>
-  <artifactId>hibernate-maven-plugin</artifactId>
-  <version>2.1.0</version>
-  <configuration>
-    <force>true</force>
-  </configuration>
-</plugin>
- -

- Or you may specify -Dhibernate.schema.force=true at the command line, - if you want to force hibernate-maven-plugin only once. -

- - -
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/help-mojo.html b/projects/hibernate-maven-plugin-2.1.0/help-mojo.html deleted file mode 100644 index e807433..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/help-mojo.html +++ /dev/null @@ -1,576 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – hibernate:help - - - - -

Path

-

-

    -
-

-
-
- - -
-

hibernate:help

- -

Full name:

- -

de.juplo:hibernate-maven-plugin:2.1.0:help

- -

Description:

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

Attributes:

- -
    - -
  • The goal is thread-safe and supports parallel builds.
  • -
- -
-

Optional Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeSinceDescription
detailboolean-If true, display all settable properties for each -goal.
Default value is: false.
User property is: detail.
goalString-The name of the goal for which to show help. If unspecified, all -goals will be displayed.
User property is: goal.
indentSizeint-The number of spaces per indentation level, should be positive.
Default value is: 2.
User property is: indentSize.
lineLengthint-The maximum length of a display line, should be positive.
Default value is: 80.
User property is: lineLength.
-
- -
-

Parameter Details

- -

detail:

- -
If true, display all settable properties for each -goal.
- -
    - -
  • Type: boolean
  • - -
  • Required: No
  • - -
  • User Property: detail
  • - -
  • Default: false
  • -

-

goal:

- -
The name of the goal for which to show help. If unspecified, all -goals will be displayed.
- -
    - -
  • Type: java.lang.String
  • - -
  • Required: No
  • - -
  • User Property: goal
  • -

-

indentSize:

- -
The number of spaces per indentation level, should be positive.
- -
    - -
  • Type: int
  • - -
  • Required: No
  • - -
  • User Property: indentSize
  • - -
  • Default: 2
  • -

-

lineLength:

- -
The maximum length of a display line, should be positive.
- -
    - -
  • Type: int
  • - -
  • Required: No
  • - -
  • User Property: lineLength
  • - -
  • Default: 80
  • -
-
-
- - -
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/images/close.gif b/projects/hibernate-maven-plugin-2.1.0/images/close.gif deleted file mode 100644 index 1c26bbc..0000000 Binary files a/projects/hibernate-maven-plugin-2.1.0/images/close.gif and /dev/null differ diff --git a/projects/hibernate-maven-plugin-2.1.0/index.html b/projects/hibernate-maven-plugin-2.1.0/index.html deleted file mode 100644 index 24e1b3f..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/index.html +++ /dev/null @@ -1,523 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin — Overview - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Overview
-

-
-
- - - - -

Hibernate Maven Plugin

- -
-

A simple plugin for generating a database-schema from Hibernate-Mappings

- -

- The hibernate-maven-plugin is a plugin for generating a database-schema - from your Hibernate-Mappings and create or update your database - accordingly. - Its main usage is to automatically create and populate a test-database - for unit-tests in cooperation with the - dbunit-maven-plugin. -

- -

- The plugin was designed with three main goals in mind: -

- -
    - -
  • It should be easy to use.
  • - -
  • It should be maximal unlikely, to erase a producation-database by accident.
  • - -
  • It should not slow down the development cycle.
  • -
- -

- To achieve the first goal, the convention-over-configuration paradigma - was applied and the plugin was stuffed with usefull logging-messages. - So, if in doubt, just turn on the debugging output with the mvn -X .... -

- -

- To achieve the second goal, the precedence in which the configuration - locations are consulted was layouted in a way that makes it possible, to - prevent overwrites of the wrong database by accident. -

- -

- Last but not least, in order to not slow down the development cycle, the - hibernate-maven-plugin only executes the generated SQL, if the mapping - or the configuration has changed (or if you force it to do so). -

- -

- For more information about the inspiration to write this tiny plugin, - read our blog-article about the hibernate-maven-plugin. -

-
-
-

Documentation

- - -
-
-

Releases

- - -
- -
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/integration.html b/projects/hibernate-maven-plugin-2.1.0/integration.html deleted file mode 100644 index 36fa91e..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/integration.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – CI Management - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Project Information
  3. CI Management
-

-
-
-
-

Overview

-

This project uses Continuum.

-
-

Access

-

The following is a link to the continuous integration system used by the project:

-
-
-

Notifiers

-

Configuration for notifying developers/users when a build is unsuccessful, including user information and notification mode.

- - - - - - - - -
TypeAddressConfiguration
mailkai@juplo.de-
-
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/issue-tracking.html b/projects/hibernate-maven-plugin-2.1.0/issue-tracking.html deleted file mode 100644 index 8e740f4..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/issue-tracking.html +++ /dev/null @@ -1,440 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin — $pages.get($alignedFileName).name - - - - -

Path

-

-

    -
-

-
-
- - - - -

Issue Tracking

- There is no bug-tracking system set up for this project! - -

- Please send your bug-reports, questions or feature-requests directly - to the developer. -

- - -
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/license.html b/projects/hibernate-maven-plugin-2.1.0/license.html deleted file mode 100644 index 78dd6c4..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/license.html +++ /dev/null @@ -1,639 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – Project Licenses - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Project Information
  3. Licenses
-

-
-
-
-

Overview

-

Typically the licenses listed for the project are that of the project itself, and not of dependencies.

-
-

Project Licenses

-
-

The Apache Software License, Version 2.0

-

A business-friendly OSS license

-
-
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-
-
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/mail-lists.html b/projects/hibernate-maven-plugin-2.1.0/mail-lists.html deleted file mode 100644 index fe71269..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/mail-lists.html +++ /dev/null @@ -1,440 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin — $pages.get($alignedFileName).name - - - - -

Path

-

-

    -
-

-
-
- - - - -

Mailing Lists

- There are no mailinglists defined for this project! - -

- Please send your bug-reports, questions or feature-requests directly - to the developer. -

- - -
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/pitfalls.html b/projects/hibernate-maven-plugin-2.1.0/pitfalls.html deleted file mode 100644 index d36498e..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/pitfalls.html +++ /dev/null @@ -1,732 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin — Known Pitfalls (FAQ) - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Known Pitfalls (FAQ)
-

-
-
- - - - -

Known Pitfalls (FAQ)

- -
-

Annotated classes in dependencies are not found.

- -

- hibernate-maven-plugin by default scans dependencies in the scope - compile. You can configure it to scan dependencies in other - scopes as well. But it scans only direct dependencies. Transitive - dependencies are not scanned for annotated classes. If some of your - annotated classes are hidden in a transitive dependency, you can simply - add that dependency explicitly. -

-
-
-

hibernate-maven-plugin always needs a database-connection

- -

- The default-configuration executes the created SQL. - Therefore, it needs a valid database-connection and fails, if none is - available. - If you do not need the generated SQL to be executed automatically, - you can set the property hibernate.schema.execute to - false. - This can be achieved with the command-line parameter - -Dhibernate.schema.execute=false or with the following - configuration: -

- -
-
-<configuration>
-  <execute>false</execute>
-</configuration>
- -

- But even when no database is to be created, hibernate always needs to know - the dialect. Hence, the plugin will still fail, if this parameter is also - missing! -

-
-
-

Dependency for driver-class XYZ is missing

- -

- One regular problem is the scope of the jdbc-driver-dependency. - It is very unlikely, that this dependency is needed at compile-time. - So a tidy maven-developer would usually scope it for runtime. -

- -

- But this will break the execution of the hibernate-maven-plugin. - Since it will not be able to see the needed dependency, it will fail with - an error-message like: -

- -
-
-[INFO] Gathered hibernate-configuration (turn on debugging for details):
-[INFO]   hibernate.connection.username = sa
-[INFO]   hibernate.connection.password = 
-[INFO]   hibernate.dialect = org.hibernate.dialect.H2Dialect
-[INFO]   hibernate.connection.url = jdbc:h2:file:./db
-[INFO]   hibernate.hbm2dll.create_namespaces = false
-[INFO]   hibernate.connection.driver_class = org.h2.Driver
-[INFO]   hibernate.format_sql = true
-[INFO] HHH000412: Hibernate Core {5.0.2.Final}
-[INFO] HHH000206: hibernate.properties not found
-[INFO] HHH000021: Bytecode provider name : javassist
-[INFO] Adding /home/kai/project/target/classes to the list of roots to scan...
-[INFO] Adding dependencies from scope compile to the list of roots to scan
-[INFO] Adding dependencies from scope org.hibernate:hibernate-core:jar:4.3.0.Final to the list of roots to scan
-[INFO] Adding annotated resource: de.juplo.tests.SimplestMavenHib4Test
-[INFO] ------------------------------------------------------------------------
-[INFO] BUILD FAILURE
-[INFO] ------------------------------------------------------------------------
-[INFO] Total time: 1.760s
-[INFO] Finished at: Mon Mar 07 19:06:54 CET 2016
-[INFO] Final Memory: 11M/215M
-[INFO] ------------------------------------------------------------------------
-[ERROR] Failed to execute goal de.juplo:hibernate-maven-plugin:2.1.0:drop (default) on project hibernate4-properties-test: Could not open the JDBC-connection: Unable to load class [org.h2.Driver]: Could not load requested class : org.h2.Driver -> [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/MojoFailureException
- -

- A quick workaround for this error would be, to delete the runtime-constraint - for the jdbc-driver-dependency. -

- -

- A much cleaner way is, to (additionally) ad the dependency, to the - plugin-definition: -

- -
-
-<plugin>
-  <groupId>de.juplo</groupId>
-  <artifactId>hibernate-maven-plugin</artifactId>
-  <version>2.1.0</version>
-  <executions>
-    <execution>
-      <goals>
-        <goal>drop</goal>
-        <goal>create</goal>
-      </goals>
-    </execution>
-  </executions>
-  <dependencies>
-  <dependency>
-    <groupId>org.hsqldb</groupId>
-    <artifactId>hsqldb</artifactId>
-    <version>2.2.8</version>
-  </dependency>
-  </dependencies>
-</plugin>
- -

- This is also the best way, if you use a different jdbc-driver for - testing, than in production. - Because otherwise, this dependency will unnecessarily bloat the - runtime-dependencies of your project. -

-
-
-

DBUnit fails after execution of hibernate was skipped because nothing has changed

- -

- If hibernate-maven-plugin skips its excecution, this may lead to errors in - other plugins. - For example, when importing sample-data in the automatically created database - with the help of the dbunit-plugin, - the CLEAN_INSERT-operation may fail because of foreign-key-constraints, - if the database was not recreated, because the hibernate-maven-plugin has - skipped its excecution. -

- -

- A quick fix to this problem is, to force - hibernate-maven-plugin to generate and execute the SQL every time it is running. - But to recreate the database on every testrun may noticeable slow down your - development cycle, if you have to wait for slow IO. -

- -

- To circumvent this problem, hibernate-maven-plugin signals a skipped - excecution by setting the maven property ${hibernate.schema.skipped} to - true. - You can configure other plugins to react on this signal. - For example, the dbunit-plugin can be configured to skip its excecution, if - hibernate-maven-plugin was skipped like this: -

- -
-
-<plugin>
-  <groupId>org.codehaus.mojo</groupId>
-  <artifactId>dbunit-maven-plugin</artifactId>
-  <configuration>
-    <skip>${hibernate.schema.skipped}</skip>
-  </configuration>
-</plugin>
-
-
-

The database will not be recreated after a manual drop/clean

- -

- If one manually drops the database or removes the hsqldb-files, it will not - be recreated by the hibernate-maven-plugin, because it cannot detect, that - the database needs to be recreated. - This happens, because the plugin will not recreate the database if neither - the configuration nor the annotated classes have changed, because an - unnecessary drop-create-cycle might take a long time. The plugin will - report that like this: -

- -
-
-[INFO] No modified annotated classes found and dialect unchanged.
-[INFO] Skipping schema generation!
- -

- If one always uses mvn clean for cleanup, this will not happen. - Otherwise the recreation must be forced: -

- -
-
-mvn hibernate:create -Dhibernate.schema.force=true
-
-
-

The hibernate:create goal is not executed, when tests are skipped

- -

- The hibernate-maven-plugin automatically skips its execution, when - maven.test.skip is set to true. If you need it to be always - executed, you can configure that explicitly like this: -

- -
-
-<plugin>
-  <groupId>de.juplo</groupId>
-  <artifactId>hibernate-maven-plugin</artifactId>
-  ...
-  <configuration>
-    <skip>false</skip>
-  </configuration>
-</plugin>
- -

- Background-information for this design-decission can be found on the extra - page To skip or not to skip: that is the question... -

-
-
-

I do not want my dependencies to be scanned for hibernate annotations

- -

- If you do not want your dependencies to be scanned for hibernate annotations, - you can pass -Dhibernate.schema.scan.dependencies=none to maven - or set scanDependencies to none in the configuration - of the plugin like this: -

- -
-
-<plugin>
-  <groupId>de.juplo</groupId>
-  <artifactId>hibernate-maven-plugin</artifactId>
-  ...
-  <configuration>
-    <scanDependencies>none</scanDependencies>
-  </configuration>
-</plugin>
-
-
-

No annotated classes found

- -

- If you are working under Windows and get the error-message - No annotated classes found in directory C:\projects\X Y Z\path-to-project\target\classes, - but you are really sure, that there are annotated classes in that - directory, you are expiriencing a bug, in the scannotation-library, that - was closed in version 1.1.0 of the hibernate-maven-plugin. -

- -

- - You should consider to upgrade to the latest version of the plugin. - -

-
-
-

If two goals are specified, the second one is always skipped

- -

- If you specify two goals, for example drop and - create, each goal has to be specified in its own - execution, so that you can specify two different - output-files for the two goals. - Otherwise, both goals will use the same output-file and the goal, that - is run second, will always skip, becaus it will find, that the output - file already exists and conclude, that its work was already done in a - prior run. -

- -

- Example configuration for two goals: -

- -
-
-<executions>
-  <execution>
-    <id>Create Drop-Schema</id>
-    <phase>test-compile</phase>
-    <goals>
-      <goal>drop</goal>
-    </goals>
-    <configuration>
-      <outputFile>db-schema/drop-schema.ddl</outputFile>
-    </configuration>
-  </execution>
-  <execution>
-    <id>Create Create-Schema</id>
-    <phase>test-compile</phase>
-    <goals>
-      <goal>create</goal>
-    </goals>
-    <configuration>
-      <outputFile>db-schema/create-schema.ddl</outputFile>
-    </configuration>
-  </execution>
-</executions>
-
- -
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/plugin-info.html b/projects/hibernate-maven-plugin-2.1.0/plugin-info.html deleted file mode 100644 index c142efc..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/plugin-info.html +++ /dev/null @@ -1,499 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – Plugin Documentation - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Project Reports
  3. Plugin Documentation
-

-
-
-
-

Plugin Documentation

-

Goals available for this plugin:

- - - - - - - - - - - - - - - -
GoalDescription
hibernate:createGenerate/Execute SQL to create a database-schema that represents -the configured mappings.
hibernate:dropGenerate/Execute SQL to drop all tables of a database-schema that -represents the configured mappings.
hibernate:helpDisplay help information on hibernate-maven-plugin.
-Call mvn hibernate:help -Ddetail=true --Dgoal=<goal-name> to display parameter details.
hibernate:updateGenerate/Execute SQL to update the database-schema according to the -configured mappings.
-
-

System Requirements

-

The following specifies the minimum requirements to run this Maven plugin:

- - - - - - - - - - - - -
Maven2.0.6
JDK1.6
MemoryNo minimum requirement.
Disk SpaceNo minimum requirement.
-
-

Usage

-

You should specify the version in your project's plugin configuration:

-
-
<project>
-  ...
-  <build>
-    <!-- To define the plugin version in your parent POM -->
-    <pluginManagement>
-      <plugins>
-        <plugin>
-          <groupId>de.juplo</groupId>
-          <artifactId>hibernate-maven-plugin</artifactId>
-          <version>2.1.0</version>
-        </plugin>
-        ...
-      </plugins>
-    </pluginManagement>
-    <!-- To use the plugin goals in your POM or parent POM -->
-    <plugins>
-      <plugin>
-        <groupId>de.juplo</groupId>
-        <artifactId>hibernate-maven-plugin</artifactId>
-        <version>2.1.0</version>
-      </plugin>
-      ...
-    </plugins>
-  </build>
-  ...
-</project>
-
-

For more information, see "Guide to Configuring Plug-ins"

-
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/plugin-management.html b/projects/hibernate-maven-plugin-2.1.0/plugin-management.html deleted file mode 100644 index 8225ea4..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/plugin-management.html +++ /dev/null @@ -1,454 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – Project Plugin Management - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Project Information
  3. Plugin Management
-

-
-
-
-

Project Plugin Management

- - - - - - - - - - - - - - - - - - - - - - - - -
GroupIdArtifactIdVersion
org.apache.maven.pluginsmaven-antrun-plugin1.7
org.apache.maven.pluginsmaven-assembly-plugin2.4.1
org.apache.maven.pluginsmaven-dependency-plugin2.8
org.apache.maven.pluginsmaven-release-plugin2.1
org.apache.maven.pluginsmaven-site-plugin3.5.1
-
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/plugins.html b/projects/hibernate-maven-plugin-2.1.0/plugins.html deleted file mode 100644 index 3b1d9f3..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/plugins.html +++ /dev/null @@ -1,521 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – Project Plugins - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Project Information
  3. Plugins
-

-
-
-
-

Project Build Plugins

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GroupIdArtifactIdVersion
org.apache.maven.pluginsmaven-clean-plugin2.5
org.apache.maven.pluginsmaven-compiler-plugin3.3
org.apache.maven.pluginsmaven-dependency-plugin2.10
org.apache.maven.pluginsmaven-deploy-plugin2.7
org.apache.maven.pluginsmaven-enforcer-plugin1.2
org.apache.maven.pluginsmaven-install-plugin2.5.2
org.apache.maven.pluginsmaven-invoker-plugin1.10
org.apache.maven.pluginsmaven-jar-plugin2.4
org.apache.maven.pluginsmaven-javadoc-plugin2.7
org.apache.maven.pluginsmaven-plugin-plugin3.4
org.apache.maven.pluginsmaven-resources-plugin2.7
org.apache.maven.pluginsmaven-scm-plugin1.9.4
org.apache.maven.pluginsmaven-site-plugin3.5.1
org.apache.maven.pluginsmaven-source-plugin2.1.2
org.apache.maven.pluginsmaven-surefire-plugin2.17
-
-

Project Report Plugins

- - - - - - - - - - - - - - - - - - - - - - - - -
GroupIdArtifactIdVersion
org.apache.maven.pluginsmaven-changes-plugin2.11
org.apache.maven.pluginsmaven-javadoc-plugin2.7
org.apache.maven.pluginsmaven-jxr-plugin2.5
org.apache.maven.pluginsmaven-plugin-plugin3.4
org.apache.maven.pluginsmaven-pmd-plugin3.4
-
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/pmd.html b/projects/hibernate-maven-plugin-2.1.0/pmd.html deleted file mode 100644 index 123fcf8..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/pmd.html +++ /dev/null @@ -1,486 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – PMD Results - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Project Reports
  3. PMD
-

-
-
-
-

PMD Results

-

The following document contains the results of PMD 5.2.3.

-
-

Files

-
-

de/juplo/plugins/hibernate/AbstractSchemaMojo.java

- - - - - - -
ViolationLine
Too many static imports may lead to messy code11420
-
-

de/juplo/plugins/hibernate/ModificationTracker.java

- - - - - - -
ViolationLine
Unnecessary use of fully qualified name 'java.security.MessageDigest.getInstance' due to existing import 'java.security.MessageDigest'60
-
-

de/juplo/plugins/hibernate/SimpleConnectionProvider.java

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ViolationLine
Too many static imports may lead to messy code1232
Avoid unused imports such as 'org.eclipse.aether.repository.AuthenticationContext.PASSWORD'13
Avoid unused imports such as 'org.eclipse.aether.repository.AuthenticationContext.USERNAME'14
Avoid unused imports such as 'org.hibernate.jpa.AvailableSettings.JDBC_DRIVER'21
Avoid unused imports such as 'org.hibernate.jpa.AvailableSettings.JDBC_PASSWORD'22
Avoid unused imports such as 'org.hibernate.jpa.AvailableSettings.JDBC_URL'23
Avoid unused imports such as 'org.hibernate.jpa.AvailableSettings.JDBC_USER'24
Unnecessary use of fully qualified name 'java.sql.Driver' due to existing import 'java.sql.Driver'151
Unnecessary use of fully qualified name 'java.sql.Connection' due to existing import 'java.sql.Connection'163
Unnecessary use of fully qualified name 'java.util.Properties' due to existing import 'java.util.Properties'165
-
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/project-info.html b/projects/hibernate-maven-plugin-2.1.0/project-info.html deleted file mode 100644 index 886ddc9..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/project-info.html +++ /dev/null @@ -1,469 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – Project Information - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Project Information
-

-
-
-
-

Project Information

-

This document provides an overview of the various documents and links that are part of this project's general information. All of this content is automatically generated by Maven on behalf of the project.

-
-

Overview

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DocumentDescription
CI ManagementThis is a link to the definitions of all continuous integration processes that builds and tests code on a frequent, regular basis.
DependenciesThis document lists the project's dependencies and provides information on each dependency.
Dependency InformationThis document describes how to to include this project as a dependency using various dependency management tools.
Distribution ManagementThis document provides informations on the distribution management of this project.
AboutA simple plugin for generating a database-schema from Hibernate-Mappings
LicensesThis document lists the project license(s).
Plugin ManagementThis document lists the plugins that are defined through pluginManagement.
PluginsThis document lists the build plugins and the report plugins used by this project.
TeamThis document provides information on the members of this project. These are the individuals who have contributed to the project in one form or another.
Source Code ManagementThis document lists ways to access the online source repository.
SummaryThis document lists other related information of this project
-
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/project-reports.html b/projects/hibernate-maven-plugin-2.1.0/project-reports.html deleted file mode 100644 index f619d50..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/project-reports.html +++ /dev/null @@ -1,457 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – Generated Reports - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Project Reports
-

-
-
-
-

Generated Reports

-

This document provides an overview of the various reports that are automatically generated by Maven . Each report is briefly described below.

-
-

Overview

- - - - - - - - - - - - - - - - - - - - - - - - -
DocumentDescription
Test JavaDocsTest JavaDoc API documentation.
JavaDocsJavaDoc API documentation.
Source XrefHTML based, cross-reference version of Java source code.
Test Source XrefHTML based, cross-reference version of Java test source code.
CPDDuplicate code detection.
PMDVerification of coding rules.
Plugin DocumentationThis report provides goals and parameters documentation of a plugin.
-
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/project-summary.html b/projects/hibernate-maven-plugin-2.1.0/project-summary.html deleted file mode 100644 index 9604150..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/project-summary.html +++ /dev/null @@ -1,468 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – Project Summary - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Project Information
  3. Summary
-

-
-
-
-

Project Summary

-
-

Project Information

- - - - - - - - - - - - -
FieldValue
NameHibernate Maven Plugin
DescriptionA simple plugin for generating a database-schema from Hibernate-Mappings
Homepagehttp://juplo.de/hibernate-maven-plugin/index.html
-
-

Project Organization

-

This project does not belong to an organization.

-
-

Build Information

- - - - - - - - - - - - - - - - - - -
FieldValue
GroupIdde.juplo
ArtifactIdhibernate-maven-plugin
Version2.1.0
Typemaven-plugin
Java Version1.6
-
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/skip.html b/projects/hibernate-maven-plugin-2.1.0/skip.html deleted file mode 100644 index e279280..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/skip.html +++ /dev/null @@ -1,494 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin — Skipping Execution - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Skipping Execution
-

-
-
- - - - -

Skipping Execution

- -

- In most use-cases, the hibernate-maven-plugin is used to create a - test-database automatically. In this use-cases, it is very likely, that it - will result in mistakes/errors, if the goal is executed, when the tests - are skipped. - For example, one might manually overwrite the database-url with the url of - the production-database, in order to run other tests, like starting a - local webserver with the - jetty-maven-plugin. - If the drop-goal would be executed in such a scenario, it might erase the - hole production-database, which is not very desireable. -

- -

- Because of this, the configuration-parameter skip defaults to the value - of the proptery maven.test.skip. This way, the execution of the - hibernate-maven-plugin is skipped automatically, when the tests are - skipped. Think of it as a build-in security-belt. -

- -

- If you do not like that, because you need the plugin to always, - even if the tests are skipped you can configure that explicitly, - by setting the configuration-parameter skip to false: -

- -
-
-<plugin>
-  <groupId>de.juplo</groupId>
-  <artifactId>hibernate-maven-plugin</artifactId>
-  ...
-  <configuration>
-    <skip>false</skip>
-  </configuration>
-</plugin>
- -

- Or, if you want the plugin to be executed by default and to be skipped - if you say so, you can bind the value of the configuration-parameter - skip to a custom property. For example: -

- -
-
-<plugin>
-  <groupId>de.juplo</groupId>
-  <artifactId>hibernate-maven-plugin</artifactId>
-  ...
-  <configuration>
-    <skip>${foo.bar}</skip>
-  </configuration>
-</plugin>
- -

- This way, the plugin would be skipped, if you set the property - foo.bar to true. For example, if you specify -Dfoo.bar=true - on the command-line. -

- - -
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/source-repository.html b/projects/hibernate-maven-plugin-2.1.0/source-repository.html deleted file mode 100644 index 9a8447e..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/source-repository.html +++ /dev/null @@ -1,448 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – Source Code Management - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Project Information
  3. Source Code Management
-

-
-
-
-

Overview

-

This project uses Git to manage its source code. Instructions on Git use can be found at http://git-scm.com/documentation.

-
-

Web Browser Access

-

The following is a link to a browsable version of the source repository:

-
-
-

Anonymous Access

-

The source can be checked out anonymously from Git with this command (See http://git-scm.com/docs/git-clone):

-
-
$ git clone http://juplo.de/git/hibernate-maven-plugin
-
-

Developer Access

-

Only project developers can access the Git tree via this method (See http://git-scm.com/docs/git-clone).

-
-
$ git clone ssh://juplo.de/var/lib/git/juplo/hibernate-maven-plugin
-
-

Access from Behind a Firewall

-

Refer to the documentation of the SCM used for more information about access behind a firewall.

-
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/team-list.html b/projects/hibernate-maven-plugin-2.1.0/team-list.html deleted file mode 100644 index 940304c..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/team-list.html +++ /dev/null @@ -1,509 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – Project Team - - - - -

Path

-

-

    -
  1. Hibernate Maven Plugin
  2. Project Information
  3. Team
-

-
-
-
-

Project Team

-

A successful project requires many people to play many roles. Some members write code or documentation, while others are valuable as testers, submitting patches and suggestions.

-

The project team is comprised of Members and Contributors. Members have direct access to the source of a project and actively evolve the code-base. Contributors improve the project through submission of patches and suggestions to the Members. The number of Contributors to the project is unbounded. Get involved today. All contributions to the project are greatly appreciated.

-
-

Members

-

The following is a list of developers with commit privileges that have directly contributed to the project in one way or another.

- - - - - - - - - - -
ImageIdNameEmail
kaiKai Moritzkai@juplo.de
-
-

Contributors

-

The following additional people have contributed to this project through the way of suggestions, patches or documentation.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ImageNameEmail
Adriano Machadoadriano.m.machado@hotmail.com
Lorenzo Nicoralorenzo.nicora@nicus.it
Eduard Szenteeduard.szente@gmail.com
Stephen Johnsonstejohns@redhat.com
Victor Tataivtatai@gmail.com
Erik-Berndt Schepererik.berndt.scheper@gmail.com
Guido WimmelWimmel.Guido@swm.de
Joel Johnsonmrjoel@lixil.net
Paul K. Moorepaulkmoore@gmail.com
Mark Robinsonmark@mrobinson.ca
Claus Grafclausgraf@gmail.com
Joachim Van der Auwerajoachim@progs.be
Andreas Kuhtzandreas.kuhtz@gmail.com
Heer Fabiofabio.heer@dvbern.ch
-
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/allclasses-frame.html b/projects/hibernate-maven-plugin-2.1.0/testapidocs/allclasses-frame.html deleted file mode 100644 index a170739..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/allclasses-frame.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - -All Classes (Hibernate Maven Plugin 2.1.0 Test API) - - - - - -

All Classes

-
- -
- - diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/allclasses-noframe.html b/projects/hibernate-maven-plugin-2.1.0/testapidocs/allclasses-noframe.html deleted file mode 100644 index d8a6ff1..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/allclasses-noframe.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - -All Classes (Hibernate Maven Plugin 2.1.0 Test API) - - - - - -

All Classes

-
- -
- - diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/constant-values.html b/projects/hibernate-maven-plugin-2.1.0/testapidocs/constant-values.html deleted file mode 100644 index 83afb64..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/constant-values.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Constant Field Values (Hibernate Maven Plugin 2.1.0 Test API) - - - - - - - - -
- - - - - - - -
- - -
-

Constant Field Values

-

Contents

-
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/FileComparator.html b/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/FileComparator.html deleted file mode 100644 index 3d214b4..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/FileComparator.html +++ /dev/null @@ -1,280 +0,0 @@ - - - - - - -FileComparator (Hibernate Maven Plugin 2.1.0 Test API) - - - - - - - - -
- - - - - - - -
- - - -
-
de.juplo.test
-

Class FileComparator

-
-
- -
-
    -
  • -
    -
    -
    public class FileComparator
    -extends Object
    -
  • -
-
-
- -
-
- -
-
- - -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/class-use/FileComparator.html b/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/class-use/FileComparator.html deleted file mode 100644 index 5ae4192..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/class-use/FileComparator.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class de.juplo.test.FileComparator (Hibernate Maven Plugin 2.1.0 Test API) - - - - - - - - -
- - - - - - - -
- - -
-

Uses of Class
de.juplo.test.FileComparator

-
-
No usage of de.juplo.test.FileComparator
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/package-frame.html b/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/package-frame.html deleted file mode 100644 index 490e27a..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -de.juplo.test (Hibernate Maven Plugin 2.1.0 Test API) - - - - - -

de.juplo.test

-
-

Classes

- -
- - diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/package-summary.html b/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/package-summary.html deleted file mode 100644 index f3c6754..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/package-summary.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - -de.juplo.test (Hibernate Maven Plugin 2.1.0 Test API) - - - - - - - - -
- - - - - - - -
- - -
-

Package de.juplo.test

-
-
- -
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/package-tree.html b/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/package-tree.html deleted file mode 100644 index 590032d..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/package-tree.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - -de.juplo.test Class Hierarchy (Hibernate Maven Plugin 2.1.0 Test API) - - - - - - - - -
- - - - - - - -
- - -
-

Hierarchy For Package de.juplo.test

-
-
-

Class Hierarchy

- -
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/package-use.html b/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/package-use.html deleted file mode 100644 index 8e1031f..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/de/juplo/test/package-use.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Package de.juplo.test (Hibernate Maven Plugin 2.1.0 Test API) - - - - - - - - -
- - - - - - - -
- - -
-

Uses of Package
de.juplo.test

-
-
No usage of de.juplo.test
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/deprecated-list.html b/projects/hibernate-maven-plugin-2.1.0/testapidocs/deprecated-list.html deleted file mode 100644 index 8bfbdb1..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/deprecated-list.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Deprecated List (Hibernate Maven Plugin 2.1.0 Test API) - - - - - - - - -
- - - - - - - -
- - -
-

Deprecated API

-

Contents

-
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/help-doc.html b/projects/hibernate-maven-plugin-2.1.0/testapidocs/help-doc.html deleted file mode 100644 index 9932ae9..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/help-doc.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - -API Help (Hibernate Maven Plugin 2.1.0 Test API) - - - - - - - - -
- - - - - - - -
- - -
-

How This API Document Is Organized

-
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
-
-
- -This help file applies to API documentation generated using the standard doclet.
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/index-all.html b/projects/hibernate-maven-plugin-2.1.0/testapidocs/index-all.html deleted file mode 100644 index 814dca7..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/index-all.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - -Index (Hibernate Maven Plugin 2.1.0 Test API) - - - - - - - - -
- - - - - - - -
- - -
D F I  - - -

D

-
-
de.juplo.test - package de.juplo.test
-
 
-
- - - -

F

-
-
FileComparator - Class in de.juplo.test
-
 
-
FileComparator(File) - Constructor for class de.juplo.test.FileComparator
-
 
-
- - - -

I

-
-
isEqual(String, String) - Method in class de.juplo.test.FileComparator
-
 
-
-D F I 
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/index.html b/projects/hibernate-maven-plugin-2.1.0/testapidocs/index.html deleted file mode 100644 index a439561..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/index.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - -Hibernate Maven Plugin 2.1.0 Test API - - - - - - -<noscript> -<div>JavaScript is disabled on your browser.</div> -</noscript> -<h2>Frame Alert</h2> -<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="de/juplo/test/package-summary.html">Non-frame version</a>.</p> - - - diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/overview-tree.html b/projects/hibernate-maven-plugin-2.1.0/testapidocs/overview-tree.html deleted file mode 100644 index ab79bb4..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/overview-tree.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - -Class Hierarchy (Hibernate Maven Plugin 2.1.0 Test API) - - - - - - - - -
- - - - - - - -
- - -
-

Hierarchy For All Packages

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - - - - - - -
- - -

Copyright © 2017. All Rights Reserved.

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/package-list b/projects/hibernate-maven-plugin-2.1.0/testapidocs/package-list deleted file mode 100644 index 4774195..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/package-list +++ /dev/null @@ -1 +0,0 @@ -de.juplo.test diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/script.js b/projects/hibernate-maven-plugin-2.1.0/testapidocs/script.js deleted file mode 100644 index b346356..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/script.js +++ /dev/null @@ -1,30 +0,0 @@ -function show(type) -{ - count = 0; - for (var key in methods) { - var row = document.getElementById(key); - if ((methods[key] & type) != 0) { - row.style.display = ''; - row.className = (count++ % 2) ? rowColor : altColor; - } - else - row.style.display = 'none'; - } - updateTabs(type); -} - -function updateTabs(type) -{ - for (var value in tabs) { - var sNode = document.getElementById(tabs[value][0]); - var spanNode = sNode.firstChild; - if (value == type) { - sNode.className = activeTableTab; - spanNode.innerHTML = tabs[value][1]; - } - else { - sNode.className = tableTab; - spanNode.innerHTML = "" + tabs[value][1] + ""; - } - } -} diff --git a/projects/hibernate-maven-plugin-2.1.0/testapidocs/stylesheet.css b/projects/hibernate-maven-plugin-2.1.0/testapidocs/stylesheet.css deleted file mode 100644 index 98055b2..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/testapidocs/stylesheet.css +++ /dev/null @@ -1,574 +0,0 @@ -/* Javadoc style sheet */ -/* -Overall document style -*/ - -@import url('resources/fonts/dejavu.css'); - -body { - background-color:#ffffff; - color:#353833; - font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; - font-size:14px; - margin:0; -} -a:link, a:visited { - text-decoration:none; - color:#4A6782; -} -a:hover, a:focus { - text-decoration:none; - color:#bb7a2a; -} -a:active { - text-decoration:none; - color:#4A6782; -} -a[name] { - color:#353833; -} -a[name]:hover { - text-decoration:none; - color:#353833; -} -pre { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; -} -h1 { - font-size:20px; -} -h2 { - font-size:18px; -} -h3 { - font-size:16px; - font-style:italic; -} -h4 { - font-size:13px; -} -h5 { - font-size:12px; -} -h6 { - font-size:11px; -} -ul { - list-style-type:disc; -} -code, tt { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; - padding-top:4px; - margin-top:8px; - line-height:1.4em; -} -dt code { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; - padding-top:4px; -} -table tr td dt code { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; - vertical-align:top; - padding-top:4px; -} -sup { - font-size:8px; -} -/* -Document title and Copyright styles -*/ -.clear { - clear:both; - height:0px; - overflow:hidden; -} -.aboutLanguage { - float:right; - padding:0px 21px; - font-size:11px; - z-index:200; - margin-top:-9px; -} -.legalCopy { - margin-left:.5em; -} -.bar a, .bar a:link, .bar a:visited, .bar a:active { - color:#FFFFFF; - text-decoration:none; -} -.bar a:hover, .bar a:focus { - color:#bb7a2a; -} -.tab { - background-color:#0066FF; - color:#ffffff; - padding:8px; - width:5em; - font-weight:bold; -} -/* -Navigation bar styles -*/ -.bar { - background-color:#4D7A97; - color:#FFFFFF; - padding:.8em .5em .4em .8em; - height:auto;/*height:1.8em;*/ - font-size:11px; - margin:0; -} -.topNav { - background-color:#4D7A97; - color:#FFFFFF; - float:left; - padding:0; - width:100%; - clear:right; - height:2.8em; - padding-top:10px; - overflow:hidden; - font-size:12px; -} -.bottomNav { - margin-top:10px; - background-color:#4D7A97; - color:#FFFFFF; - float:left; - padding:0; - width:100%; - clear:right; - height:2.8em; - padding-top:10px; - overflow:hidden; - font-size:12px; -} -.subNav { - background-color:#dee3e9; - float:left; - width:100%; - overflow:hidden; - font-size:12px; -} -.subNav div { - clear:left; - float:left; - padding:0 0 5px 6px; - text-transform:uppercase; -} -ul.navList, ul.subNavList { - float:left; - margin:0 25px 0 0; - padding:0; -} -ul.navList li{ - list-style:none; - float:left; - padding: 5px 6px; - text-transform:uppercase; -} -ul.subNavList li{ - list-style:none; - float:left; -} -.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { - color:#FFFFFF; - text-decoration:none; - text-transform:uppercase; -} -.topNav a:hover, .bottomNav a:hover { - text-decoration:none; - color:#bb7a2a; - text-transform:uppercase; -} -.navBarCell1Rev { - background-color:#F8981D; - color:#253441; - margin: auto 5px; -} -.skipNav { - position:absolute; - top:auto; - left:-9999px; - overflow:hidden; -} -/* -Page header and footer styles -*/ -.header, .footer { - clear:both; - margin:0 20px; - padding:5px 0 0 0; -} -.indexHeader { - margin:10px; - position:relative; -} -.indexHeader span{ - margin-right:15px; -} -.indexHeader h1 { - font-size:13px; -} -.title { - color:#2c4557; - margin:10px 0; -} -.subTitle { - margin:5px 0 0 0; -} -.header ul { - margin:0 0 15px 0; - padding:0; -} -.footer ul { - margin:20px 0 5px 0; -} -.header ul li, .footer ul li { - list-style:none; - font-size:13px; -} -/* -Heading styles -*/ -div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { - background-color:#dee3e9; - border:1px solid #d0d9e0; - margin:0 0 6px -8px; - padding:7px 5px; -} -ul.blockList ul.blockList ul.blockList li.blockList h3 { - background-color:#dee3e9; - border:1px solid #d0d9e0; - margin:0 0 6px -8px; - padding:7px 5px; -} -ul.blockList ul.blockList li.blockList h3 { - padding:0; - margin:15px 0; -} -ul.blockList li.blockList h2 { - padding:0px 0 20px 0; -} -/* -Page layout container styles -*/ -.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { - clear:both; - padding:10px 20px; - position:relative; -} -.indexContainer { - margin:10px; - position:relative; - font-size:12px; -} -.indexContainer h2 { - font-size:13px; - padding:0 0 3px 0; -} -.indexContainer ul { - margin:0; - padding:0; -} -.indexContainer ul li { - list-style:none; - padding-top:2px; -} -.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { - font-size:12px; - font-weight:bold; - margin:10px 0 0 0; - color:#4E4E4E; -} -.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { - margin:5px 0 10px 0px; - font-size:14px; - font-family:'DejaVu Sans Mono',monospace; -} -.serializedFormContainer dl.nameValue dt { - margin-left:1px; - font-size:1.1em; - display:inline; - font-weight:bold; -} -.serializedFormContainer dl.nameValue dd { - margin:0 0 0 1px; - font-size:1.1em; - display:inline; -} -/* -List styles -*/ -ul.horizontal li { - display:inline; - font-size:0.9em; -} -ul.inheritance { - margin:0; - padding:0; -} -ul.inheritance li { - display:inline; - list-style:none; -} -ul.inheritance li ul.inheritance { - margin-left:15px; - padding-left:15px; - padding-top:1px; -} -ul.blockList, ul.blockListLast { - margin:10px 0 10px 0; - padding:0; -} -ul.blockList li.blockList, ul.blockListLast li.blockList { - list-style:none; - margin-bottom:15px; - line-height:1.4; -} -ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { - padding:0px 20px 5px 10px; - border:1px solid #ededed; - background-color:#f8f8f8; -} -ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { - padding:0 0 5px 8px; - background-color:#ffffff; - border:none; -} -ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { - margin-left:0; - padding-left:0; - padding-bottom:15px; - border:none; -} -ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { - list-style:none; - border-bottom:none; - padding-bottom:0; -} -table tr td dl, table tr td dl dt, table tr td dl dd { - margin-top:0; - margin-bottom:1px; -} -/* -Table styles -*/ -.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { - width:100%; - border-left:1px solid #EEE; - border-right:1px solid #EEE; - border-bottom:1px solid #EEE; -} -.overviewSummary, .memberSummary { - padding:0px; -} -.overviewSummary caption, .memberSummary caption, .typeSummary caption, -.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { - position:relative; - text-align:left; - background-repeat:no-repeat; - color:#253441; - font-weight:bold; - clear:none; - overflow:hidden; - padding:0px; - padding-top:10px; - padding-left:1px; - margin:0px; - white-space:pre; -} -.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, -.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, -.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, -.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, -.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, -.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, -.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, -.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { - color:#FFFFFF; -} -.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, -.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { - white-space:nowrap; - padding-top:5px; - padding-left:12px; - padding-right:12px; - padding-bottom:7px; - display:inline-block; - float:left; - background-color:#F8981D; - border: none; - height:16px; -} -.memberSummary caption span.activeTableTab span { - white-space:nowrap; - padding-top:5px; - padding-left:12px; - padding-right:12px; - margin-right:3px; - display:inline-block; - float:left; - background-color:#F8981D; - height:16px; -} -.memberSummary caption span.tableTab span { - white-space:nowrap; - padding-top:5px; - padding-left:12px; - padding-right:12px; - margin-right:3px; - display:inline-block; - float:left; - background-color:#4D7A97; - height:16px; -} -.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { - padding-top:0px; - padding-left:0px; - padding-right:0px; - background-image:none; - float:none; - display:inline; -} -.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, -.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { - display:none; - width:5px; - position:relative; - float:left; - background-color:#F8981D; -} -.memberSummary .activeTableTab .tabEnd { - display:none; - width:5px; - margin-right:3px; - position:relative; - float:left; - background-color:#F8981D; -} -.memberSummary .tableTab .tabEnd { - display:none; - width:5px; - margin-right:3px; - position:relative; - background-color:#4D7A97; - float:left; - -} -.overviewSummary td, .memberSummary td, .typeSummary td, -.useSummary td, .constantsSummary td, .deprecatedSummary td { - text-align:left; - padding:0px 0px 12px 10px; -} -th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, -td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ - vertical-align:top; - padding-right:0px; - padding-top:8px; - padding-bottom:3px; -} -th.colFirst, th.colLast, th.colOne, .constantsSummary th { - background:#dee3e9; - text-align:left; - padding:8px 3px 3px 7px; -} -td.colFirst, th.colFirst { - white-space:nowrap; - font-size:13px; -} -td.colLast, th.colLast { - font-size:13px; -} -td.colOne, th.colOne { - font-size:13px; -} -.overviewSummary td.colFirst, .overviewSummary th.colFirst, -.useSummary td.colFirst, .useSummary th.colFirst, -.overviewSummary td.colOne, .overviewSummary th.colOne, -.memberSummary td.colFirst, .memberSummary th.colFirst, -.memberSummary td.colOne, .memberSummary th.colOne, -.typeSummary td.colFirst{ - width:25%; - vertical-align:top; -} -td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { - font-weight:bold; -} -.tableSubHeadingColor { - background-color:#EEEEFF; -} -.altColor { - background-color:#FFFFFF; -} -.rowColor { - background-color:#EEEEEF; -} -/* -Content styles -*/ -.description pre { - margin-top:0; -} -.deprecatedContent { - margin:0; - padding:10px 0; -} -.docSummary { - padding:0; -} - -ul.blockList ul.blockList ul.blockList li.blockList h3 { - font-style:normal; -} - -div.block { - font-size:14px; - font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; -} - -td.colLast div { - padding-top:0px; -} - - -td.colLast a { - padding-bottom:3px; -} -/* -Formatting effect styles -*/ -.sourceLineNo { - color:green; - padding:0 30px 0 0; -} -h1.hidden { - visibility:hidden; - overflow:hidden; - font-size:10px; -} -.block { - display:block; - margin:3px 10px 2px 0px; - color:#474747; -} -.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, -.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, -.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { - font-weight:bold; -} -.deprecationComment, .emphasizedPhrase, .interfaceName { - font-style:italic; -} - -div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, -div.block div.block span.interfaceName { - font-style:normal; -} - -div.contentContainer ul.blockList li.blockList h2{ - padding-bottom:0px; -} diff --git a/projects/hibernate-maven-plugin-2.1.0/update-mojo.html b/projects/hibernate-maven-plugin-2.1.0/update-mojo.html deleted file mode 100644 index 29e383a..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/update-mojo.html +++ /dev/null @@ -1,1343 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – hibernate:update - - - - -

Path

-

-

    -
-

-
-
- - -
-

hibernate:update

- -

Full name:

- -

de.juplo:hibernate-maven-plugin:2.1.0:update

- -

Description:

- -
Generate/Execute SQL to update the database-schema according to the -configured mappings.
- -

Attributes:

- -
    - -
  • Requires a Maven project to be executed.
  • - -
  • Requires dependency resolution of artifacts in scope: runtime.
  • - -
  • The goal is thread-safe and supports parallel builds.
  • - -
  • Binds by default to the lifecycle phase: process-classes.
  • -
- -
-

Optional Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeSinceDescription
createNamespacesBoolean2.0Specifies whether to automatically create also the database -schema/catalog.
Default value is: false.
User property is: hibernate.hbm2dll.create_namespaces.
delimiterString1.0Delimiter in output-file. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: ;.
User property is: hibernate.hbm2ddl.delimiter.
dialectString1.0Hibernate dialect.
User property is: hibernate.dialect.
driverString1.0SQL-Driver name.
User property is: hibernate.connection.driver_class.
executeBoolean2.0Excecute the generated SQL. If set to false, only the -SQL-script is created and the database is not touched. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: true.
User property is: hibernate.schema.execute.
forceboolean1.0Force generation/execution - -

Force the generation and (if configured) the execution of the -SQL, even if no modified or newly added annotated classes where -found and the configuration was not changed.

- -

skip takes precedence over force.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: false.
User property is: hibernate.schema.force.
formatBoolean1.0Format output-file.
User property is: hibernate.format_sql.
hibernateConfigString1.1.0Path to Hibernate configuration file (.cfg.xml). If this parameter -is specified, the plugin will try to load configuration values from -a file with the given path or a ressource on the classpath with the -given name. If both fails, the execution of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.cfg.xml on the -classpath, if it is present, but will not fail if there is no such -ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.

- -

Settings in this file will overwrite settings in the properties -file.


hibernatePropertiesString1.0Path to a file or name of a ressource with hibernate properties. If -this parameter is specified, the plugin will try to load -configuration values from a file with the given path or a ressource -on the classpath with the given name. If both fails, the execution -of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.properties on -the classpath, if it is present, but will not fail if there is no -such ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.


implicitNamingStrategyString2.0Implicit naming strategy
User property is: hibernate.implicit_naming_strategy.
mappingsString1.0.2List of Hibernate-Mapping-Files (XML). Multiple files can be -separated with white-spaces and/or commas.
User property is: hibernate.mapping.
outputDirectoryString1.0Classes-Directory to scan. - -

This parameter defaults to the maven build-output-directory for -classes. Additionally, all dependencies are scanned for annotated -classes.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


User property is: project.build.outputDirectory.
outputFileString1.0Output file. - -

If the specified filename is not absolut, the file will be -created relative to the project build directory -(project.build.directory).


Default value is: update.sql.
User property is: hibernate.schema.update.
passwordString1.0Database password
User property is: hibernate.connection.password.
persistenceUnitString1.1.0Name of the persistence-unit. If this parameter is specified, the -plugin will try to load configuration values from a -persistence-unit with the specified name. If no such -persistence-unit can be found, the plugin will throw an exception. - -

If this parameter is not set and there is only one -persistence-unit available, that unit will be used automatically. -But if this parameter is not set and there are multiple -persistence-units available on, the class-path, the execution of -the plugin will fail.

- -

Settings in this file will overwrite settings in the properties -or the configuration file.


physicalNamingStrategyString2.0Physical naming strategy
User property is: hibernate.physical_naming_strategy.
scanClassesBoolean2.0Wether the project should be scanned for annotated-classes, or not - -

This parameter is intended to allow overwriting of the parameter -exclude-unlisted-classes of a -persistence-unit. If not specified, it defaults to -true


User property is: hibernate.schema.scan.classes.
scanDependenciesString1.0.3Dependency-Scopes, that should be scanned for annotated classes. - -

By default, only dependencies in the scope compile -are scanned for annotated classes. Multiple scopes can be seperated -by white space or commas.

- -

If you do not want any dependencies to be scanned for annotated -classes, set this parameter to none.

- -

The plugin does not scan for annotated classes in transitive -dependencies. If some of your annotated classes are hidden in a -transitive dependency, you can simply add that dependency -explicitly.


Default value is: compile.
User property is: hibernate.schema.scan.dependencies.
scanTestClassesBoolean1.0.1Whether to scan the test-branch of the project for annotated -classes, or not. - -

If this parameter is set to true the test-classes -of the artifact will be scanned for hibernate-annotated classes -additionally.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: false.
User property is: hibernate.schema.scan.test_classes.
showBoolean1.0Show the generated SQL in the command-line output.
User property is: hibernate.show_sql.
skipboolean1.0Skip execution - -

If set to true, the execution is skipped.

- -

A skipped execution is signaled via the maven-property -${hibernate.schema.skipped}.

- -

The execution is skipped automatically, if no modified or newly -added annotated classes are found and the dialect was not -changed.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: ${maven.test.skip}.
User property is: hibernate.schema.skip.
testOutputDirectoryString1.0.2Test-Classes-Directory to scan. - -

This parameter defaults to the maven build-output-directory for -test-classes.

- -

This parameter is only used, when scanTestClasses -is set to true!

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


User property is: project.build.testOutputDirectory.
urlString1.0Database URL.
User property is: hibernate.connection.url.
usernameString1.0Database username
User property is: hibernate.connection.username.
-
- -
-

Parameter Details

- -

createNamespaces:

- -
Specifies whether to automatically create also the database -schema/catalog.
- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.hbm2dll.create_namespaces
  • - -
  • Default: false
  • -

-

delimiter:

- -
Delimiter in output-file. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.hbm2ddl.delimiter
  • - -
  • Default: ;
  • -

-

dialect:

- -
Hibernate dialect.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.dialect
  • -

-

driver:

- -
SQL-Driver name.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.connection.driver_class
  • -

-

execute:

- -
Excecute the generated SQL. If set to false, only the -SQL-script is created and the database is not touched. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.execute
  • - -
  • Default: true
  • -

-

force:

- -
Force generation/execution - -

Force the generation and (if configured) the execution of the -SQL, even if no modified or newly added annotated classes where -found and the configuration was not changed.

- -

skip takes precedence over force.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.force
  • - -
  • Default: false
  • -

-

format:

- -
Format output-file.
- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.format_sql
  • -

-

hibernateConfig:

- -
Path to Hibernate configuration file (.cfg.xml). If this parameter -is specified, the plugin will try to load configuration values from -a file with the given path or a ressource on the classpath with the -given name. If both fails, the execution of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.cfg.xml on the -classpath, if it is present, but will not fail if there is no such -ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.

- -

Settings in this file will overwrite settings in the properties -file.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.1.0
  • - -
  • Required: No
  • -

-

hibernateProperties:

- -
Path to a file or name of a ressource with hibernate properties. If -this parameter is specified, the plugin will try to load -configuration values from a file with the given path or a ressource -on the classpath with the given name. If both fails, the execution -of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.properties on -the classpath, if it is present, but will not fail if there is no -such ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • -

-

implicitNamingStrategy:

- -
Implicit naming strategy
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.implicit_naming_strategy
  • -

-

mappings:

- -
List of Hibernate-Mapping-Files (XML). Multiple files can be -separated with white-spaces and/or commas.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0.2
  • - -
  • Required: No
  • - -
  • User Property: hibernate.mapping
  • -

-

outputDirectory:

- -
Classes-Directory to scan. - -

This parameter defaults to the maven build-output-directory for -classes. Additionally, all dependencies are scanned for annotated -classes.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: project.build.outputDirectory
  • -

-

outputFile:

- -
Output file. - -

If the specified filename is not absolut, the file will be -created relative to the project build directory -(project.build.directory).

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.update
  • - -
  • Default: update.sql
  • -

-

password:

- -
Database password
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.connection.password
  • -

-

persistenceUnit:

- -
Name of the persistence-unit. If this parameter is specified, the -plugin will try to load configuration values from a -persistence-unit with the specified name. If no such -persistence-unit can be found, the plugin will throw an exception. - -

If this parameter is not set and there is only one -persistence-unit available, that unit will be used automatically. -But if this parameter is not set and there are multiple -persistence-units available on, the class-path, the execution of -the plugin will fail.

- -

Settings in this file will overwrite settings in the properties -or the configuration file.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.1.0
  • - -
  • Required: No
  • -

-

physicalNamingStrategy:

- -
Physical naming strategy
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.physical_naming_strategy
  • -

-

scanClasses:

- -
Wether the project should be scanned for annotated-classes, or not - -

This parameter is intended to allow overwriting of the parameter -exclude-unlisted-classes of a -persistence-unit. If not specified, it defaults to -true

- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.scan.classes
  • -

-

scanDependencies:

- -
Dependency-Scopes, that should be scanned for annotated classes. - -

By default, only dependencies in the scope compile -are scanned for annotated classes. Multiple scopes can be seperated -by white space or commas.

- -

If you do not want any dependencies to be scanned for annotated -classes, set this parameter to none.

- -

The plugin does not scan for annotated classes in transitive -dependencies. If some of your annotated classes are hidden in a -transitive dependency, you can simply add that dependency -explicitly.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0.3
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.scan.dependencies
  • - -
  • Default: compile
  • -

-

scanTestClasses:

- -
Whether to scan the test-branch of the project for annotated -classes, or not. - -

If this parameter is set to true the test-classes -of the artifact will be scanned for hibernate-annotated classes -additionally.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 1.0.1
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.scan.test_classes
  • - -
  • Default: false
  • -

-

show:

- -
Show the generated SQL in the command-line output.
- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.show_sql
  • -

-

skip:

- -
Skip execution - -

If set to true, the execution is skipped.

- -

A skipped execution is signaled via the maven-property -${hibernate.schema.skipped}.

- -

The execution is skipped automatically, if no modified or newly -added annotated classes are found and the dialect was not -changed.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.skip
  • - -
  • Default: ${maven.test.skip}
  • -

-

testOutputDirectory:

- -
Test-Classes-Directory to scan. - -

This parameter defaults to the maven build-output-directory for -test-classes.

- -

This parameter is only used, when scanTestClasses -is set to true!

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0.2
  • - -
  • Required: No
  • - -
  • User Property: project.build.testOutputDirectory
  • -

-

url:

- -
Database URL.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.connection.url
  • -

-

username:

- -
Database username
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.connection.username
  • -
-
-
- - -
-
-

Pages

-

-

-

- - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref-test/allclasses-frame.html b/projects/hibernate-maven-plugin-2.1.0/xref-test/allclasses-frame.html deleted file mode 100644 index 8253aeb..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref-test/allclasses-frame.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - All Classes - - - - -

All Classes

- - - - - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref-test/de/juplo/test/FileComparator.html b/projects/hibernate-maven-plugin-2.1.0/xref-test/de/juplo/test/FileComparator.html deleted file mode 100644 index 64291cd..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref-test/de/juplo/test/FileComparator.html +++ /dev/null @@ -1,70 +0,0 @@ - - - -FileComparator xref - - - -
View Javadoc
-1   package de.juplo.test;
-2   
-3   import java.io.BufferedReader;
-4   import java.io.File;
-5   import java.io.FileNotFoundException;
-6   import java.io.FileReader;
-7   import java.io.IOException;
-8   
-9   
-10  public class FileComparator
-11  {
-12    private final File basedir;
-13    private BufferedReader expectedReader;
-14    private BufferedReader foundReader;
-15  
-16    public FileComparator(File basedir)
-17    {
-18      this.basedir = basedir;
-19    }
-20  
-21    public boolean isEqual(final String expectedFile, final String foundFile)
-22      throws
-23        FileNotFoundException,
-24        IOException
-25    {
-26      File file;
-27      String expected, found;
-28  
-29      file = new File(basedir, expectedFile);
-30      expectedReader = new BufferedReader(new FileReader(file));
-31  
-32      file = new File(basedir, foundFile);
-33      foundReader = new BufferedReader(new FileReader(file));
-34  
-35  
-36      while ((expected = expectedReader.readLine()) != null)
-37      {
-38        found = foundReader.readLine();
-39        if (!expected.equals(found))
-40        {
-41          System.err.println("Mismatch!");
-42          System.err.println("Expected: " + expected);
-43          System.err.println("Found:    " + found);
-44          return false;
-45        }
-46      }
-47  
-48      if ((found = foundReader.readLine()) != null)
-49      {
-50        System.err.println("Found more content than expected!");
-51        System.err.println("Starting with: " + found);
-52        return false;
-53      }
-54  
-55      return true;
-56    }
-57  }
-
-
- - - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref-test/de/juplo/test/package-frame.html b/projects/hibernate-maven-plugin-2.1.0/xref-test/de/juplo/test/package-frame.html deleted file mode 100644 index be57c64..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref-test/de/juplo/test/package-frame.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - Hibernate Maven Plugin 2.1.0 Reference Package de.juplo.test - - - - -

- de.juplo.test -

- -

Classes

- - - - - \ No newline at end of file diff --git a/projects/hibernate-maven-plugin-2.1.0/xref-test/de/juplo/test/package-summary.html b/projects/hibernate-maven-plugin-2.1.0/xref-test/de/juplo/test/package-summary.html deleted file mode 100644 index c0b505b..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref-test/de/juplo/test/package-summary.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - Hibernate Maven Plugin 2.1.0 Reference Package de.juplo.test - - - -
- -
-
- -
- -

Package de.juplo.test

- - - - - - - - - - - - -
Class Summary
- FileComparator -
- -
- -
-
- -
-
- - - \ No newline at end of file diff --git a/projects/hibernate-maven-plugin-2.1.0/xref-test/index.html b/projects/hibernate-maven-plugin-2.1.0/xref-test/index.html deleted file mode 100644 index 7cc75cb..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref-test/index.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - Hibernate Maven Plugin 2.1.0 Reference - - - - - - - - - <body> - <h1>Frame Alert</h1> - <p> - You don't have frames. Go <a href="overview-summary.html">here</a> - </p> - </body> - - - - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref-test/overview-frame.html b/projects/hibernate-maven-plugin-2.1.0/xref-test/overview-frame.html deleted file mode 100644 index 1373d48..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref-test/overview-frame.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - Hibernate Maven Plugin 2.1.0 Reference - - - - -

- All Classes -

- -

Packages

- - - - - - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref-test/overview-summary.html b/projects/hibernate-maven-plugin-2.1.0/xref-test/overview-summary.html deleted file mode 100644 index 56d682e..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref-test/overview-summary.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - Hibernate Maven Plugin 2.1.0 Reference - - - -
- -
-
- -
- -

Hibernate Maven Plugin 2.1.0 Reference

- - - - - - - - - - - - -
Packages
- de.juplo.test -
- -
- -
-
- -
- -
- - - \ No newline at end of file diff --git a/projects/hibernate-maven-plugin-2.1.0/xref-test/stylesheet.css b/projects/hibernate-maven-plugin-2.1.0/xref-test/stylesheet.css deleted file mode 100644 index 89732f8..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref-test/stylesheet.css +++ /dev/null @@ -1,114 +0,0 @@ -/* Javadoc style sheet */ -/* Define colors, fonts and other style attributes here to override the defaults */ -body { - background-color: #fff; - font-family: Arial, Helvetica, sans-serif; -} - -a:link { - color: #00f; -} -a:visited { - color: #00a; -} - -a:active, a:hover { - color: #f30 !important; -} - -ul, li { - list-style-type:none; - margin:0; - padding:0; -} - -table td { - padding: 3px; - border: 1px solid #000; -} -table { - width:100%; - border: 1px solid #000; - border-collapse: collapse; -} - -div.overview { - background-color:#ddd; - padding: 4px 4px 4px 0; -} -div.overview li, div.framenoframe li { - display: inline; -} -div.framenoframe { - text-align: center; - font-size: x-small; -} -div.framenoframe li { - margin: 0 3px 0 3px; -} -div.overview li { - margin:3px 3px 0 3px; - padding: 4px; -} -li.selected { - background-color:#888; - color: #fff; - font-weight: bold; -} - -table.summary { - margin-bottom: 20px; -} -table.summary td, table.summary th { - font-weight: bold; - text-align: left; - padding: 3px; -} -table.summary th { - background-color:#036; - color: #fff; -} -table.summary td { - background-color:#eee; - border: 1px solid black; -} - -em { - color: #A00; -} -em.comment { - color: #390; -} -.string { - color: #009; -} - -#overview { - padding:2px; -} - -hr { - height: 1px; - color: #000; -} - -/* JXR style sheet */ -.jxr_comment -{ - color: #390; -} - -.jxr_javadoccomment -{ - color: #A00; -} - -.jxr_string -{ - color: #009; -} - -.jxr_keyword -{ - color: #000; -} diff --git a/projects/hibernate-maven-plugin-2.1.0/xref/allclasses-frame.html b/projects/hibernate-maven-plugin-2.1.0/xref/allclasses-frame.html deleted file mode 100644 index e6fb5b8..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref/allclasses-frame.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - All Classes - - - - -

All Classes

- - - - - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/AbstractSchemaMojo.html b/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/AbstractSchemaMojo.html deleted file mode 100644 index 8522d9a..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/AbstractSchemaMojo.html +++ /dev/null @@ -1,1433 +0,0 @@ - - - -AbstractSchemaMojo xref - - - -
View Javadoc
-1   package de.juplo.plugins.hibernate;
-2   
-3   
-4   import com.pyx4j.log4j.MavenLogAppender;
-5   import java.io.File;
-6   import java.io.FileInputStream;
-7   import java.io.FileOutputStream;
-8   import java.io.IOException;
-9   import java.io.InputStream;
-10  import java.net.MalformedURLException;
-11  import java.net.URL;
-12  import java.security.NoSuchAlgorithmException;
-13  import java.time.ZonedDateTime;
-14  import java.util.Collections;
-15  import java.util.EnumSet;
-16  import java.util.HashMap;
-17  import java.util.HashSet;
-18  import java.util.Iterator;
-19  import java.util.LinkedHashSet;
-20  import java.util.List;
-21  import java.util.Map;
-22  import java.util.Map.Entry;
-23  import java.util.Properties;
-24  import java.util.Set;
-25  import java.util.regex.Matcher;
-26  import java.util.regex.Pattern;
-27  import javax.persistence.Embeddable;
-28  import javax.persistence.Entity;
-29  import javax.persistence.MappedSuperclass;
-30  import javax.persistence.spi.PersistenceUnitTransactionType;
-31  import org.apache.maven.artifact.Artifact;
-32  import org.apache.maven.model.Resource;
-33  import org.apache.maven.plugin.AbstractMojo;
-34  import org.apache.maven.plugin.MojoExecutionException;
-35  import org.apache.maven.plugin.MojoFailureException;
-36  import org.apache.maven.project.MavenProject;
-37  import org.hibernate.boot.MetadataBuilder;
-38  import org.hibernate.boot.MetadataSources;
-39  import org.hibernate.boot.cfgxml.internal.ConfigLoader;
-40  import org.hibernate.boot.cfgxml.spi.LoadedConfig;
-41  import org.hibernate.boot.cfgxml.spi.MappingReference;
-42  import org.hibernate.boot.model.naming.ImplicitNamingStrategy;
-43  import org.hibernate.boot.model.naming.PhysicalNamingStrategy;
-44  import org.hibernate.boot.registry.BootstrapServiceRegistry;
-45  import org.hibernate.boot.registry.BootstrapServiceRegistryBuilder;
-46  import org.hibernate.boot.registry.StandardServiceRegistry;
-47  import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
-48  import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
-49  import org.hibernate.boot.registry.classloading.spi.ClassLoadingException;
-50  import org.hibernate.boot.registry.selector.spi.StrategySelector;
-51  import org.hibernate.boot.spi.MetadataImplementor;
-52  import org.hibernate.cfg.AvailableSettings;
-53  import static org.hibernate.cfg.AvailableSettings.DIALECT;
-54  import static org.hibernate.cfg.AvailableSettings.DRIVER;
-55  import static org.hibernate.cfg.AvailableSettings.FORMAT_SQL;
-56  import static org.hibernate.cfg.AvailableSettings.HBM2DDL_DELIMITER;
-57  import static org.hibernate.cfg.AvailableSettings.HBM2DLL_CREATE_NAMESPACES;
-58  import static org.hibernate.cfg.AvailableSettings.IMPLICIT_NAMING_STRATEGY;
-59  import static org.hibernate.cfg.AvailableSettings.JPA_JDBC_DRIVER;
-60  import static org.hibernate.cfg.AvailableSettings.JPA_JDBC_PASSWORD;
-61  import static org.hibernate.cfg.AvailableSettings.JPA_JDBC_URL;
-62  import static org.hibernate.cfg.AvailableSettings.JPA_JDBC_USER;
-63  import static org.hibernate.cfg.AvailableSettings.PASS;
-64  import static org.hibernate.cfg.AvailableSettings.PHYSICAL_NAMING_STRATEGY;
-65  import static org.hibernate.cfg.AvailableSettings.SHOW_SQL;
-66  import static org.hibernate.cfg.AvailableSettings.USER;
-67  import static org.hibernate.cfg.AvailableSettings.URL;
-68  import org.hibernate.engine.config.spi.ConfigurationService;
-69  import org.hibernate.engine.jdbc.connections.spi.ConnectionProvider;
-70  import org.hibernate.internal.util.config.ConfigurationException;
-71  import org.hibernate.jpa.boot.internal.ParsedPersistenceXmlDescriptor;
-72  import org.hibernate.jpa.boot.internal.PersistenceXmlParser;
-73  import org.hibernate.tool.schema.TargetType;
-74  import org.hibernate.tool.schema.internal.ExceptionHandlerCollectingImpl;
-75  import org.hibernate.tool.schema.internal.exec.ScriptTargetOutputToFile;
-76  import org.hibernate.tool.schema.spi.ExecutionOptions;
-77  import org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator;
-78  import org.hibernate.tool.schema.spi.ScriptTargetOutput;
-79  import org.hibernate.tool.schema.spi.TargetDescriptor;
-80  import org.scannotation.AnnotationDB;
-81  
-82  
-83  /**
-84   * Baseclass with common attributes and methods.
-85   *
-86   * @phase process-classes
-87   * @threadSafe
-88   * @requiresDependencyResolution runtime
-89   */
-90  public abstract class AbstractSchemaMojo extends AbstractMojo
-91  {
-92    public final static String EXECUTE = "hibernate.schema.execute";
-93    public final static String OUTPUTDIRECTORY = "project.build.outputDirectory";
-94    public final static String SCAN_CLASSES = "hibernate.schema.scan.classes";
-95    public final static String SCAN_DEPENDENCIES = "hibernate.schema.scan.dependencies";
-96    public final static String SCAN_TESTCLASSES = "hibernate.schema.scan.test_classes";
-97    public final static String TEST_OUTPUTDIRECTORY = "project.build.testOutputDirectory";
-98    public final static String SKIPPED = "hibernate.schema.skipped";
-99    public final static String SCRIPT = "hibernate.schema.script";
-100 
-101   private final static Pattern SPLIT = Pattern.compile("[^,\\s]+");
-102 
-103   private final Set<String> packages = new HashSet<String>();
-104 
-105 
-106   /**
-107    * The maven project.
-108    * <p>
-109    * Only needed internally.
-110    *
-111    * @parameter property="project"
-112    * @required
-113    * @readonly
-114    */
-115   private MavenProject project;
-116 
-117   /**
-118    * Build-directory.
-119    * <p>
-120    * Only needed internally.
-121    *
-122    * @parameter property="project.build.directory"
-123    * @required
-124    * @readonly
-125    */
-126   private String buildDirectory;
-127 
-128 
-129   /** Parameters to configure the genaration of the SQL *********************/
-130 
-131   /**
-132    * Excecute the generated SQL.
-133    * If set to <code>false</code>, only the SQL-script is created and the
-134    * database is not touched.
-135    * <p>
-136    * <strong>Important:</strong>
-137    * This configuration value can only be configured through the
-138    * <code>pom.xml</code>, or by the definition of a system-property, because
-139    * it is not known by Hibernate nor JPA and, hence, not picked up from
-140    * their configuration!
-141    *
-142    * @parameter property="hibernate.schema.execute" default-value="true"
-143    * @since 2.0
-144    */
-145   private Boolean execute;
-146 
-147   /**
-148    * Skip execution
-149    * <p>
-150    * If set to <code>true</code>, the execution is skipped.
-151    * <p>
-152    * A skipped execution is signaled via the maven-property
-153    * <code>${hibernate.schema.skipped}</code>.
-154    * <p>
-155    * The execution is skipped automatically, if no modified or newly added
-156    * annotated classes are found and the dialect was not changed.
-157    * <p>
-158    * <strong>Important:</strong>
-159    * This configuration value can only be configured through the
-160    * <code>pom.xml</code>, or by the definition of a system-property, because
-161    * it is not known by Hibernate nor JPA and, hence, not picked up from
-162    * their configuration!
-163    *
-164    * @parameter property="hibernate.schema.skip" default-value="${maven.test.skip}"
-165    * @since 1.0
-166    */
-167   private boolean skip;
-168 
-169   /**
-170    * Force generation/execution
-171    * <p>
-172    * Force the generation and (if configured) the execution of the SQL, even if
-173    * no modified or newly added annotated classes where found and the
-174    * configuration was not changed.
-175    * <p>
-176    * <code>skip</code> takes precedence over <code>force</code>.
-177    * <p>
-178    * <strong>Important:</strong>
-179    * This configuration value can only be configured through the
-180    * <code>pom.xml</code>, or by the definition of a system-property, because
-181    * it is not known by Hibernate nor JPA and, hence, not picked up from
-182    * their configuration!
-183    *
-184    * @parameter property="hibernate.schema.force" default-value="false"
-185    * @since 1.0
-186    */
-187   private boolean force;
-188 
-189   /**
-190    * Hibernate dialect.
-191    *
-192    * @parameter property="hibernate.dialect"
-193    * @since 1.0
-194    */
-195   private String dialect;
-196 
-197   /**
-198    * Delimiter in output-file.
-199    * <p>
-200    * <strong>Important:</strong>
-201    * This configuration value can only be configured through the
-202    * <code>pom.xml</code>, or by the definition of a system-property, because
-203    * it is not known by Hibernate nor JPA and, hence, not picked up from
-204    * their configuration!
-205    *
-206    * @parameter property="hibernate.hbm2ddl.delimiter" default-value=";"
-207    * @since 1.0
-208    */
-209   private String delimiter;
-210 
-211   /**
-212    * Show the generated SQL in the command-line output.
-213    *
-214    * @parameter property="hibernate.show_sql"
-215    * @since 1.0
-216    */
-217   private Boolean show;
-218 
-219   /**
-220    * Format output-file.
-221    *
-222    * @parameter property="hibernate.format_sql"
-223    * @since 1.0
-224    */
-225   private Boolean format;
-226 
-227   /**
-228    * Specifies whether to automatically create also the database schema/catalog.
-229    *
-230    * @parameter property="hibernate.hbm2dll.create_namespaces" default-value="false"
-231    * @since 2.0
-232    */
-233   private Boolean createNamespaces;
-234 
-235   /**
-236    * Implicit naming strategy
-237    *
-238    * @parameter property="hibernate.implicit_naming_strategy"
-239    * @since 2.0
-240    */
-241   private String implicitNamingStrategy;
-242 
-243   /**
-244    * Physical naming strategy
-245    *
-246    * @parameter property="hibernate.physical_naming_strategy"
-247    * @since 2.0
-248    */
-249   private String physicalNamingStrategy;
-250 
-251   /**
-252    * Wether the project should be scanned for annotated-classes, or not
-253    * <p>
-254    * This parameter is intended to allow overwriting of the parameter
-255    * <code>exclude-unlisted-classes</code> of a <code>persistence-unit</code>.
-256    * If not specified, it defaults to <code>true</code>
-257    *
-258    * @parameter property="hibernate.schema.scan.classes"
-259    * @since 2.0
-260    */
-261   private Boolean scanClasses;
-262 
-263   /**
-264    * Classes-Directory to scan.
-265    * <p>
-266    * This parameter defaults to the maven build-output-directory for classes.
-267    * Additionally, all dependencies are scanned for annotated classes.
-268    * <p>
-269    * <strong>Important:</strong>
-270    * This configuration value can only be configured through the
-271    * <code>pom.xml</code>, or by the definition of a system-property, because
-272    * it is not known by Hibernate nor JPA and, hence, not picked up from
-273    * their configuration!
-274    *
-275    * @parameter property="project.build.outputDirectory"
-276    * @since 1.0
-277    */
-278   private String outputDirectory;
-279 
-280   /**
-281    * Dependency-Scopes, that should be scanned for annotated classes.
-282    * <p>
-283    * By default, only dependencies in the scope <code>compile</code> are
-284    * scanned for annotated classes. Multiple scopes can be seperated by
-285    * white space or commas.
-286    * <p>
-287    * If you do not want any dependencies to be scanned for annotated
-288    * classes, set this parameter to <code>none</code>.
-289    * <p>
-290    * The plugin does not scan for annotated classes in transitive
-291    * dependencies. If some of your annotated classes are hidden in a
-292    * transitive dependency, you can simply add that dependency explicitly.
-293    *
-294    * @parameter property="hibernate.schema.scan.dependencies" default-value="compile"
-295    * @since 1.0.3
-296    */
-297   private String scanDependencies;
-298 
-299   /**
-300    * Whether to scan the test-branch of the project for annotated classes, or
-301    * not.
-302    * <p>
-303    * If this parameter is set to <code>true</code> the test-classes of the
-304    * artifact will be scanned for hibernate-annotated classes additionally.
-305    * <p>
-306    * <strong>Important:</strong>
-307    * This configuration value can only be configured through the
-308    * <code>pom.xml</code>, or by the definition of a system-property, because
-309    * it is not known by Hibernate nor JPA and, hence, not picked up from
-310    * their configuration!
-311    *
-312    * @parameter property="hibernate.schema.scan.test_classes" default-value="false"
-313    * @since 1.0.1
-314    */
-315   private Boolean scanTestClasses;
-316 
-317   /**
-318    * Test-Classes-Directory to scan.
-319    * <p>
-320    * This parameter defaults to the maven build-output-directory for
-321    * test-classes.
-322    * <p>
-323    * This parameter is only used, when <code>scanTestClasses</code> is set
-324    * to <code>true</code>!
-325    * <p>
-326    * <strong>Important:</strong>
-327    * This configuration value can only be configured through the
-328    * <code>pom.xml</code>, or by the definition of a system-property, because
-329    * it is not known by Hibernate nor JPA and, hence, not picked up from
-330    * their configuration!
-331    *
-332    * @parameter property="project.build.testOutputDirectory"
-333    * @since 1.0.2
-334    */
-335   private String testOutputDirectory;
-336 
-337 
-338   /** Conection parameters *************************************************/
-339 
-340   /**
-341    * SQL-Driver name.
-342    *
-343    * @parameter property="hibernate.connection.driver_class"
-344    * @since 1.0
-345    */
-346   private String driver;
-347 
-348   /**
-349    * Database URL.
-350    *
-351    * @parameter property="hibernate.connection.url"
-352    * @since 1.0
-353    */
-354   private String url;
-355 
-356   /**
-357    * Database username
-358    *
-359    * @parameter property="hibernate.connection.username"
-360    * @since 1.0
-361    */
-362   private String username;
-363 
-364   /**
-365    * Database password
-366    *
-367    * @parameter property="hibernate.connection.password"
-368    * @since 1.0
-369    */
-370   private String password;
-371 
-372 
-373   /** Parameters to locate configuration sources ****************************/
-374 
-375   /**
-376    * Path to a file or name of a ressource with hibernate properties.
-377    * If this parameter is specified, the plugin will try to load configuration
-378    * values from a file with the given path or a ressource on the classpath with
-379    * the given name. If both fails, the execution of the plugin will fail.
-380    * <p>
-381    * If this parameter is not set the plugin will load configuration values
-382    * from a ressource named <code>hibernate.properties</code> on the classpath,
-383    * if it is present, but will not fail if there is no such ressource.
-384    * <p>
-385    * During ressource-lookup, the test-classpath takes precedence.
-386    *
-387    * @parameter
-388    * @since 1.0
-389    */
-390   private String hibernateProperties;
-391 
-392   /**
-393    * Path to Hibernate configuration file (.cfg.xml).
-394    * If this parameter is specified, the plugin will try to load configuration
-395    * values from a file with the given path or a ressource on the classpath with
-396    * the given name. If both fails, the execution of the plugin will fail.
-397    * <p>
-398    * If this parameter is not set the plugin will load configuration values
-399    * from a ressource named <code>hibernate.cfg.xml</code> on the classpath,
-400    * if it is present, but will not fail if there is no such ressource.
-401    * <p>
-402    * During ressource-lookup, the test-classpath takes precedence.
-403    * <p>
-404    * Settings in this file will overwrite settings in the properties file.
-405    *
-406    * @parameter
-407    * @since 1.1.0
-408    */
-409   private String hibernateConfig;
-410 
-411   /**
-412    * Name of the persistence-unit.
-413    * If this parameter is specified, the plugin will try to load configuration
-414    * values from a persistence-unit with the specified name. If no such
-415    * persistence-unit can be found, the plugin will throw an exception.
-416    * <p>
-417    * If this parameter is not set and there is only one persistence-unit
-418    * available, that unit will be used automatically. But if this parameter is
-419    * not set and there are multiple persistence-units available on,
-420    * the class-path, the execution of the plugin will fail.
-421    * <p>
-422    * Settings in this file will overwrite settings in the properties or the
-423    * configuration file.
-424    *
-425    * @parameter
-426    * @since 1.1.0
-427    */
-428   private String persistenceUnit;
-429 
-430   /**
-431    * List of Hibernate-Mapping-Files (XML).
-432    * Multiple files can be separated with white-spaces and/or commas.
-433    *
-434    * @parameter property="hibernate.mapping"
-435    * @since 1.0.2
-436    */
-437   private String mappings;
-438 
-439 
-440 
-441   public final void execute(String filename)
-442     throws
-443       MojoFailureException,
-444       MojoExecutionException
-445   {
-446     if (skip)
-447     {
-448       getLog().info("Execution of hibernate-maven-plugin was skipped!");
-449       project.getProperties().setProperty(SKIPPED, "true");
-450       return;
-451     }
-452 
-453     ModificationTracker tracker;
-454     try
-455     {
-456       tracker = new ModificationTracker(buildDirectory, filename, getLog());
-457     }
-458     catch (NoSuchAlgorithmException e)
-459     {
-460       throw new MojoFailureException("Digest-Algorithm MD5 is missing!", e);
-461     }
-462 
-463     final SimpleConnectionProvider connectionProvider =
-464         new SimpleConnectionProvider(getLog());
-465 
-466     try
-467     {
-468       /** Start extended logging */
-469       MavenLogAppender.startPluginLog(this);
-470 
-471       /** Load checksums for old mapping and configuration */
-472       tracker.load();
-473 
-474       /** Create the ClassLoader */
-475       MutableClassLoader classLoader = createClassLoader();
-476 
-477       /** Create a BootstrapServiceRegistry with the created ClassLoader */
-478       BootstrapServiceRegistry bootstrapServiceRegitry =
-479           new BootstrapServiceRegistryBuilder()
-480               .applyClassLoader(classLoader)
-481               .build();
-482       ClassLoaderService classLoaderService =
-483           bootstrapServiceRegitry.getService(ClassLoaderService.class);
-484 
-485       Properties properties = new Properties();
-486       ConfigLoader configLoader = new ConfigLoader(bootstrapServiceRegitry);
-487 
-488       /** Loading and merging configuration */
-489       properties.putAll(loadProperties(configLoader));
-490       LoadedConfig config = loadConfig(configLoader);
-491       if (config != null)
-492         properties.putAll(config.getConfigurationValues());
-493       ParsedPersistenceXmlDescriptor unit =
-494           loadPersistenceUnit(classLoaderService, properties);
-495       if (unit != null)
-496         properties.putAll(unit.getProperties());
-497 
-498       /** Overwriting/Completing configuration */
-499       configure(properties, tracker);
-500 
-501       /** Check configuration for modifications */
-502       if(tracker.track(properties))
-503         getLog().debug("Configuration has changed.");
-504       else
-505         getLog().debug("Configuration unchanged.");
-506 
-507       /** Check, that the outputfile is writable */
-508       final File output = getOutputFile(filename);
-509       /** Check, if the outputfile is missing or was changed */
-510       checkOutputFile(output, tracker);
-511 
-512       /** Configure Hibernate */
-513       final StandardServiceRegistry serviceRegistry =
-514           new StandardServiceRegistryBuilder(bootstrapServiceRegitry)
-515               .applySettings(properties)
-516               .addService(ConnectionProvider.class, connectionProvider)
-517               .build();
-518       final MetadataSources sources = new MetadataSources(serviceRegistry);
-519 
-520       /** Add the remaining class-path-elements */
-521       completeClassPath(classLoader);
-522 
-523       /** Apply mappings from hibernate-configuration, if present */
-524       if (config != null)
-525       {
-526         for (MappingReference mapping : config.getMappingReferences())
-527           mapping.apply(sources);
-528       }
-529 
-530       Set<String> classes;
-531       if (unit == null)
-532       {
-533         /** No persistent unit: default behaviour */
-534         if (scanClasses == null)
-535           scanClasses = true;
-536         Set<URL> urls = new HashSet<URL>();
-537         if (scanClasses)
-538           addRoot(urls, outputDirectory);
-539         if (scanTestClasses)
-540           addRoot(urls, testOutputDirectory);
-541         addDependencies(urls);
-542         classes = scanUrls(urls);
-543       }
-544       else
-545       {
-546         /** Follow configuration in persisten unit */
-547         if (scanClasses == null)
-548           scanClasses = !unit.isExcludeUnlistedClasses();
-549         Set<URL> urls = new HashSet<URL>();
-550         if (scanClasses)
-551         {
-552           /**
-553            * Scan the root of the persiten unit and configured jars for
-554            * annotated classes
-555            */
-556           urls.add(unit.getPersistenceUnitRootUrl());
-557           for (URL url : unit.getJarFileUrls())
-558             urls.add(url);
-559         }
-560         if (scanTestClasses)
-561           addRoot(urls, testOutputDirectory);
-562         classes = scanUrls(urls);
-563         for (String className : unit.getManagedClassNames())
-564           classes.add(className);
-565         /**
-566          * Add mappings from the default mapping-file
-567          * <code>META-INF/orm.xml</code>, if present
-568          */
-569         boolean error = false;
-570         InputStream is;
-571         is = classLoader.getResourceAsStream("META-INF/orm.xml");
-572         if (is != null)
-573         {
-574           getLog().info("Adding default JPA-XML-mapping from META-INF/orm.xml");
-575           try
-576           {
-577             tracker.track("META-INF/orm.xml", is);
-578             sources.addResource("META-INF/orm.xml");
-579           }
-580           catch (IOException e)
-581           {
-582             getLog().error("cannot read META-INF/orm.xml: " + e);
-583             error = true;
-584           }
-585         }
-586         else
-587         {
-588           getLog().debug("no META-INF/orm.xml found");
-589         }
-590         /**
-591          * Add mappings from files, that are explicitly configured in the
-592          * persistence unit
-593          */
-594         for (String mapping : unit.getMappingFileNames())
-595         {
-596           getLog().info("Adding explicitly configured mapping from " + mapping);
-597           is = classLoader.getResourceAsStream(mapping);
-598           if (is != null)
-599           {
-600             try
-601             {
-602               tracker.track(mapping, is);
-603               sources.addResource(mapping);
-604             }
-605             catch (IOException e)
-606             {
-607               getLog().info("cannot read mapping-file " + mapping + ": " + e);
-608               error = true;
-609             }
-610           }
-611           else
-612           {
-613             getLog().error("cannot find mapping-file " + mapping);
-614             error = true;
-615           }
-616         }
-617         if (error)
-618           throw new MojoFailureException(
-619               "error, while reading mappings configured in persistence-unit \"" +
-620               unit.getName() +
-621               "\""
-622               );
-623       }
-624 
-625       /** Add the configured/collected annotated classes */
-626       for (String className : classes)
-627         addAnnotated(className, sources, classLoaderService, tracker);
-628 
-629       /** Add explicitly configured classes */
-630       addMappings(sources, tracker);
-631 
-632       /** Skip execution, if mapping and configuration is unchanged */
-633       if (!tracker.modified())
-634       {
-635         getLog().info("Mapping and configuration unchanged.");
-636         if (force)
-637           getLog().info("Generation/execution is forced!");
-638         else
-639         {
-640           getLog().info("Skipping schema generation!");
-641           project.getProperties().setProperty(SKIPPED, "true");
-642           return;
-643         }
-644       }
-645 
-646 
-647       /** Truncate output file */
-648       try
-649       {
-650         new FileOutputStream(output).getChannel().truncate(0).close();
-651       }
-652       catch (IOException e)
-653       {
-654         String error =
-655             "Error while truncating " + output.getAbsolutePath() + ": "
-656             + e.getMessage();
-657         getLog().warn(error);
-658         throw new MojoExecutionException(error);
-659       }
-660 
-661       /** Create a connection, if sufficient configuration infromation is available */
-662       connectionProvider.open(classLoaderService, properties);
-663 
-664       MetadataBuilder metadataBuilder = sources.getMetadataBuilder();
-665 
-666       StrategySelector strategySelector =
-667           serviceRegistry.getService(StrategySelector.class);
-668 
-669       if (properties.containsKey(IMPLICIT_NAMING_STRATEGY))
-670       {
-671         metadataBuilder.applyImplicitNamingStrategy(
-672             strategySelector.resolveStrategy(
-673                 ImplicitNamingStrategy.class,
-674                 properties.getProperty(IMPLICIT_NAMING_STRATEGY)
-675                 )
-676             );
-677       }
-678 
-679       if (properties.containsKey(PHYSICAL_NAMING_STRATEGY))
-680       {
-681         metadataBuilder.applyPhysicalNamingStrategy(
-682             strategySelector.resolveStrategy(
-683                 PhysicalNamingStrategy.class,
-684                 properties.getProperty(PHYSICAL_NAMING_STRATEGY)
-685                 )
-686             );
-687       }
-688 
-689       /** Prepare the generation of the SQL */
-690       Map settings = new HashMap();
-691       settings.putAll(
-692           serviceRegistry
-693               .getService(ConfigurationService.class)
-694               .getSettings()
-695               );
-696       ExceptionHandlerCollectingImpl handler =
-697           new ExceptionHandlerCollectingImpl();
-698       ExecutionOptions options =
-699           SchemaManagementToolCoordinator
-700               .buildExecutionOptions(settings, handler);
-701       final EnumSet<TargetType> targetTypes = EnumSet.of(TargetType.SCRIPT);
-702       if (execute)
-703         targetTypes.add(TargetType.DATABASE);
-704       TargetDescriptor target = new TargetDescriptor()
-705       {
-706         @Override
-707         public EnumSet<TargetType> getTargetTypes()
-708         {
-709           return targetTypes;
-710         }
-711 
-712         @Override
-713         public ScriptTargetOutput getScriptTargetOutput()
-714         {
-715           String charset =
-716               (String)
-717               serviceRegistry
-718                   .getService(ConfigurationService.class)
-719                   .getSettings()
-720                   .get(AvailableSettings.HBM2DDL_CHARSET_NAME);
-721           return new ScriptTargetOutputToFile(output, charset);
-722         }
-723       };
-724 
-725       /**
-726        * Change class-loader of current thread.
-727        * This is necessary, because still not all parts of Hibernate 5 use
-728        * the newly introduced ClassLoaderService and will fail otherwise!
-729        */
-730       Thread thread = Thread.currentThread();
-731       ClassLoader contextClassLoader = thread.getContextClassLoader();
-732       try
-733       {
-734         thread.setContextClassLoader(classLoader);
-735         build((MetadataImplementor)metadataBuilder.build(), options, target);
-736         if (handler.getExceptions().size() > 0)
-737         {
-738           StringBuilder builder = new StringBuilder();
-739           builder.append("Hibernate failed:");
-740           for (Exception e : handler.getExceptions())
-741           {
-742             builder.append("\n * ");
-743             builder.append(e.getMessage());
-744             AbstractSchemaMojo.printStrackTrace(builder, e);
-745             builder.append("\n");
-746           }
-747           String error = builder.toString();
-748           getLog().error(error);
-749           throw new MojoFailureException(error);
-750         }
-751       }
-752       finally
-753       {
-754         thread.setContextClassLoader(contextClassLoader);
-755         /** Track, the content of the generated script */
-756         checkOutputFile(output, tracker);
-757       }
-758     }
-759     catch (MojoExecutionException e)
-760     {
-761       tracker.failed();
-762       throw e;
-763     }
-764     catch (MojoFailureException e)
-765     {
-766       tracker.failed();
-767       throw e;
-768     }
-769     catch (RuntimeException e)
-770     {
-771       tracker.failed();
-772       throw e;
-773     }
-774     finally
-775     {
-776       /** Remember mappings and configuration */
-777       tracker.save();
-778 
-779       /** Close the connection - if one was opened */
-780       connectionProvider.close();
-781 
-782       /** Stop Log-Capturing */
-783       MavenLogAppender.endPluginLog(this);
-784     }
-785   }
-786 
-787 
-788   abstract void build(
-789       MetadataImplementor metadata,
-790       ExecutionOptions options,
-791       TargetDescriptor target
-792       )
-793     throws
-794       MojoFailureException,
-795       MojoExecutionException;
-796 
-797 
-798   private MutableClassLoader createClassLoader() throws MojoExecutionException
-799   {
-800     try
-801     {
-802       getLog().debug("Creating ClassLoader for project-dependencies...");
-803       LinkedHashSet<URL> urls = new LinkedHashSet<URL>();
-804       File file;
-805 
-806       file = new File(testOutputDirectory);
-807       if (!file.exists())
-808       {
-809         getLog().info("Creating test-output-directory: " + testOutputDirectory);
-810         file.mkdirs();
-811       }
-812       urls.add(file.toURI().toURL());
-813 
-814       file = new File(outputDirectory);
-815       if (!file.exists())
-816       {
-817         getLog().info("Creating output-directory: " + outputDirectory);
-818         file.mkdirs();
-819       }
-820       urls.add(file.toURI().toURL());
-821 
-822       return new MutableClassLoader(urls, getLog());
-823     }
-824     catch (Exception e)
-825     {
-826       getLog().error("Error while creating ClassLoader!", e);
-827       throw new MojoExecutionException(e.getMessage());
-828     }
-829   }
-830 
-831   private void completeClassPath(MutableClassLoader classLoader)
-832       throws
-833         MojoExecutionException
-834   {
-835     try
-836     {
-837       getLog().debug("Completing class-paths of the ClassLoader for project-dependencies...");
-838       List<String> classpathFiles = project.getCompileClasspathElements();
-839       if (scanTestClasses)
-840         classpathFiles.addAll(project.getTestClasspathElements());
-841       LinkedHashSet<URL> urls = new LinkedHashSet<URL>();
-842       for (String pathElement : classpathFiles)
-843       {
-844         getLog().debug("Dependency: " + pathElement);
-845         urls.add(new File(pathElement).toURI().toURL());
-846       }
-847       classLoader.add(urls);
-848     }
-849     catch (Exception e)
-850     {
-851       getLog().error("Error while creating ClassLoader!", e);
-852       throw new MojoExecutionException(e.getMessage());
-853     }
-854   }
-855 
-856   private Map loadProperties(ConfigLoader configLoader)
-857       throws
-858         MojoExecutionException
-859   {
-860     /** Try to read configuration from properties-file */
-861     if (hibernateProperties == null)
-862     {
-863       try
-864       {
-865         return configLoader.loadProperties("hibernate.properties");
-866       }
-867       catch (ConfigurationException e)
-868       {
-869         getLog().debug(e.getMessage());
-870         return Collections.EMPTY_MAP;
-871       }
-872     }
-873     else
-874     {
-875       try
-876       {
-877         File file = new File(hibernateProperties);
-878         if (file.exists())
-879         {
-880           getLog().info("Reading settings from file " + hibernateProperties + "...");
-881           return configLoader.loadProperties(file);
-882         }
-883         else
-884           return configLoader.loadProperties(hibernateProperties);
-885       }
-886       catch (ConfigurationException e)
-887       {
-888         getLog().error("Error while reading properties!", e);
-889         throw new MojoExecutionException(e.getMessage());
-890       }
-891     }
-892   }
-893 
-894   private LoadedConfig loadConfig(ConfigLoader configLoader)
-895       throws MojoExecutionException
-896   {
-897     /** Try to read configuration from configuration-file */
-898     if (hibernateConfig == null)
-899     {
-900       try
-901       {
-902         return configLoader.loadConfigXmlResource("hibernate.cfg.xml");
-903       }
-904       catch (ConfigurationException e)
-905       {
-906         getLog().debug(e.getMessage());
-907         return null;
-908       }
-909     }
-910     else
-911     {
-912       try
-913       {
-914         File file = new File(hibernateConfig);
-915         if (file.exists())
-916         {
-917           getLog().info("Reading configuration from file " + hibernateConfig + "...");
-918           return configLoader.loadConfigXmlFile(file);
-919         }
-920         else
-921         {
-922           return configLoader.loadConfigXmlResource(hibernateConfig);
-923         }
-924       }
-925       catch (ConfigurationException e)
-926       {
-927         getLog().error("Error while reading configuration!", e);
-928         throw new MojoExecutionException(e.getMessage());
-929       }
-930     }
-931   }
-932 
-933   private void configure(Properties properties, ModificationTracker tracker)
-934       throws MojoFailureException
-935   {
-936     /**
-937      * Special treatment for the configuration-value "execute": if it is
-938      * switched to "true", the genearation fo the schema should be forced!
-939      */
-940     if (tracker.check(EXECUTE, execute.toString()) && execute)
-941     {
-942       getLog().info(
-943           "hibernate.schema.execute was switched on: " +
-944           "forcing generation/execution of SQL"
-945           );
-946       tracker.touch();
-947     }
-948     configure(properties, execute, EXECUTE);
-949 
-950     /**
-951      * Configure the generation of the SQL.
-952      * Overwrite values from properties-file if the configuration parameter is
-953      * known to Hibernate.
-954      */
-955     configure(properties, dialect, DIALECT);
-956     configure(properties, delimiter, HBM2DDL_DELIMITER);
-957     configure(properties, format, FORMAT_SQL);
-958     configure(properties, createNamespaces, HBM2DLL_CREATE_NAMESPACES);
-959     configure(properties, implicitNamingStrategy, IMPLICIT_NAMING_STRATEGY);
-960     configure(properties, physicalNamingStrategy, PHYSICAL_NAMING_STRATEGY);
-961     configure(properties, outputDirectory, OUTPUTDIRECTORY);
-962     configure(properties, scanDependencies, SCAN_DEPENDENCIES);
-963     configure(properties, scanTestClasses, SCAN_TESTCLASSES);
-964     configure(properties, testOutputDirectory, TEST_OUTPUTDIRECTORY);
-965 
-966     /**
-967      * Special treatment for the configuration-value "show": a change of its
-968      * configured value should not lead to a regeneration of the database
-969      * schama!
-970      */
-971     if (show == null)
-972       show = Boolean.valueOf(properties.getProperty(SHOW_SQL));
-973     else
-974       properties.setProperty(SHOW_SQL, show.toString());
-975 
-976     /**
-977      * Configure the connection parameters.
-978      * Overwrite values from properties-file.
-979      */
-980     configure(properties, driver, DRIVER, JPA_JDBC_DRIVER);
-981     configure(properties, url, URL, JPA_JDBC_URL);
-982     configure(properties, username, USER, JPA_JDBC_USER);
-983     configure(properties, password, PASS, JPA_JDBC_PASSWORD);
-984 
-985     if (properties.isEmpty())
-986     {
-987       getLog().error("No properties set!");
-988       throw new MojoFailureException("Hibernate configuration is missing!");
-989     }
-990 
-991     getLog().info("Gathered configuration:");
-992     for (Entry<Object,Object> entry : properties.entrySet())
-993       getLog().info("  " + entry.getKey() + " = " + entry.getValue());
-994   }
-995 
-996   private void configure(
-997       Properties properties,
-998       String value,
-999       String key,
-1000       String alternativeKey
-1001       )
-1002   {
-1003     configure(properties, value, key);
-1004 
-1005     if (properties.containsKey(alternativeKey))
-1006     {
-1007       if (properties.containsKey(key))
-1008       {
-1009         getLog().warn(
-1010             "Ignoring property " + alternativeKey + "=\"" +
-1011             properties.getProperty(alternativeKey) +
-1012             "\" in favour for property " + key + "=\"" +
-1013             properties.getProperty(key) + "\""
-1014             );
-1015         properties.remove(alternativeKey);
-1016       }
-1017       else
-1018       {
-1019         value = properties.getProperty(alternativeKey);
-1020         properties.remove(alternativeKey);
-1021         getLog().info(
-1022             "Using value \"" + value + "\" from property " + alternativeKey +
-1023             " for property " + key
-1024             );
-1025         properties.setProperty(key, value);
-1026       }
-1027     }
-1028   }
-1029 
-1030   private void configure(Properties properties, String value, String key)
-1031   {
-1032     if (value != null)
-1033     {
-1034       if (properties.containsKey(key))
-1035       {
-1036         if (!properties.getProperty(key).equals(value))
-1037         {
-1038           getLog().info(
-1039               "Overwriting property " + key + "=\"" +
-1040               properties.getProperty(key) +
-1041               "\" with value \"" + value + "\""
-1042               );
-1043           properties.setProperty(key, value);
-1044         }
-1045       }
-1046       else
-1047       {
-1048         getLog().debug("Using value \"" + value + "\" for property " + key);
-1049         properties.setProperty(key, value);
-1050       }
-1051     }
-1052   }
-1053 
-1054   private void configure(Properties properties, Boolean value, String key)
-1055   {
-1056     configure(properties, value == null ? null : value.toString(), key);
-1057   }
-1058 
-1059   private File getOutputFile(String filename)
-1060       throws
-1061         MojoExecutionException
-1062   {
-1063     File output = new File(filename);
-1064 
-1065     if (!output.isAbsolute())
-1066     {
-1067       // Interpret relative file path relative to build directory
-1068       output = new File(buildDirectory, filename);
-1069     }
-1070     getLog().debug("Output file: " + output.getPath());
-1071 
-1072     // Ensure that directory path for specified file exists
-1073     File outFileParentDir = output.getParentFile();
-1074     if (null != outFileParentDir && !outFileParentDir.exists())
-1075     {
-1076       try
-1077       {
-1078         getLog().info(
-1079             "Creating directory path for output file:" +
-1080             outFileParentDir.getPath()
-1081             );
-1082         outFileParentDir.mkdirs();
-1083       }
-1084       catch (Exception e)
-1085       {
-1086         String error =
-1087             "Error creating directory path for output file: " + e.getMessage();
-1088         getLog().error(error);
-1089         throw new MojoExecutionException(error);
-1090       }
-1091     }
-1092 
-1093     try
-1094     {
-1095       output.createNewFile();
-1096     }
-1097     catch (IOException e)
-1098     {
-1099       String error = "Error creating output file: " + e.getMessage();
-1100       getLog().error(error);
-1101       throw new MojoExecutionException(error);
-1102     }
-1103 
-1104     if (!output.canWrite())
-1105     {
-1106       String error =
-1107           "Output file " + output.getAbsolutePath() + " is not writable!";
-1108       getLog().error(error);
-1109       throw new MojoExecutionException(error);
-1110     }
-1111 
-1112     return output;
-1113   }
-1114 
-1115   private void checkOutputFile(File output, ModificationTracker tracker)
-1116       throws
-1117         MojoExecutionException
-1118   {
-1119     try
-1120     {
-1121       if (output.exists())
-1122         tracker.track(SCRIPT, new FileInputStream(output));
-1123       else
-1124         tracker.track(SCRIPT, ZonedDateTime.now().toString());
-1125     }
-1126     catch (IOException e)
-1127     {
-1128       String error =
-1129           "Error while checking the generated script: " + e.getMessage();
-1130       getLog().error(error);
-1131       throw new MojoExecutionException(error);
-1132     }
-1133   }
-1134 
-1135   private void addMappings(MetadataSources sources, ModificationTracker tracker)
-1136       throws MojoFailureException
-1137   {
-1138     getLog().debug("Adding explicitly configured mappings...");
-1139     if (mappings != null)
-1140     {
-1141       try
-1142       {
-1143         for (String filename : mappings.split("[\\s,]+"))
-1144         {
-1145           // First try the filename as absolute/relative path
-1146           File file = new File(filename);
-1147           if (!file.exists())
-1148           {
-1149             // If the file was not found, search for it in the resource-directories
-1150             for (Resource resource : project.getResources())
-1151             {
-1152               file = new File(resource.getDirectory() + File.separator + filename);
-1153               if (file.exists())
-1154                 break;
-1155             }
-1156           }
-1157           if (file.exists())
-1158           {
-1159             if (file.isDirectory())
-1160               // TODO: add support to read all mappings under a directory
-1161               throw new MojoFailureException(file.getAbsolutePath() + " is a directory");
-1162             if (tracker.track(filename, new FileInputStream(file)))
-1163               getLog().debug("Found new or modified mapping-file: " + filename);
-1164             else
-1165               getLog().debug("Mapping-file unchanged: " + filename);
-1166 
-1167             sources.addFile(file);
-1168           }
-1169           else
-1170             throw new MojoFailureException("File " + filename + " could not be found in any of the configured resource-directories!");
-1171         }
-1172       }
-1173       catch (IOException e)
-1174       {
-1175         throw new MojoFailureException("Cannot calculate MD5 sums!", e);
-1176       }
-1177     }
-1178   }
-1179 
-1180   private void addRoot(Set<URL> urls, String path) throws MojoFailureException
-1181   {
-1182     try
-1183     {
-1184       File dir = new File(path);
-1185       if (dir.exists())
-1186       {
-1187         getLog().info("Adding " + dir.getAbsolutePath() + " to the list of roots to scan...");
-1188         urls.add(dir.toURI().toURL());
-1189       }
-1190       else
-1191         getLog().warn(
-1192             "the directory cannot be scanned for annotated classes, " +
-1193             "because it does not exist: " +
-1194             dir.getAbsolutePath()
-1195             );
-1196     }
-1197     catch (MalformedURLException e)
-1198     {
-1199       getLog().error("error while adding the project-root to the list of roots to scan!", e);
-1200       throw new MojoFailureException(e.getMessage());
-1201     }
-1202   }
-1203 
-1204   private void addDependencies(Set<URL> urls) throws MojoFailureException
-1205   {
-1206     try
-1207     {
-1208       if (scanDependencies != null)
-1209       {
-1210         Matcher matcher = SPLIT.matcher(scanDependencies);
-1211         while (matcher.find())
-1212         {
-1213           getLog().info("Adding dependencies from scope " + matcher.group() + " to the list of roots to scan");
-1214           for (Artifact artifact : project.getDependencyArtifacts())
-1215           {
-1216             if (!artifact.getScope().equalsIgnoreCase(matcher.group()))
-1217               continue;
-1218             if (artifact.getFile() == null)
-1219             {
-1220               getLog().warn("Cannot add dependency " + artifact.getId() + ": no JAR-file available!");
-1221               continue;
-1222             }
-1223             getLog().info("Adding dependencies from scope " + artifact.getId() + " to the list of roots to scan");
-1224             urls.add(artifact.getFile().toURI().toURL());
-1225           }
-1226         }
-1227       }
-1228     }
-1229     catch (MalformedURLException e)
-1230     {
-1231       getLog().error("Error while adding dependencies to the list of roots to scan!", e);
-1232       throw new MojoFailureException(e.getMessage());
-1233     }
-1234   }
-1235 
-1236   private Set<String> scanUrls(Set<URL> scanRoots)
-1237       throws
-1238         MojoFailureException
-1239   {
-1240     try
-1241     {
-1242       AnnotationDB db = new AnnotationDB();
-1243       for (URL root : scanRoots)
-1244         db.scanArchives(root);
-1245 
-1246       Set<String> classes = new HashSet<String>();
-1247       if (db.getAnnotationIndex().containsKey(Entity.class.getName()))
-1248         classes.addAll(db.getAnnotationIndex().get(Entity.class.getName()));
-1249       if (db.getAnnotationIndex().containsKey(MappedSuperclass.class.getName()))
-1250         classes.addAll(db.getAnnotationIndex().get(MappedSuperclass.class.getName()));
-1251       if (db.getAnnotationIndex().containsKey(Embeddable.class.getName()))
-1252         classes.addAll(db.getAnnotationIndex().get(Embeddable.class.getName()));
-1253 
-1254       return classes;
-1255     }
-1256     catch (Exception e)
-1257     {
-1258       getLog().error("Error while scanning!", e);
-1259       throw new MojoFailureException(e.getMessage());
-1260     }
-1261   }
-1262 
-1263   private void addAnnotated(
-1264       String name,
-1265       MetadataSources sources,
-1266       ClassLoaderService classLoaderService,
-1267       ModificationTracker tracker
-1268       )
-1269       throws
-1270         MojoFailureException,
-1271         MojoExecutionException
-1272   {
-1273     try
-1274     {
-1275       getLog().info("Adding annotated resource: " + name);
-1276       String packageName = null;
-1277 
-1278       boolean error = false;
-1279       try
-1280       {
-1281         Class<?> annotatedClass = classLoaderService.classForName(name);
-1282         String resourceName = annotatedClass.getName();
-1283         resourceName =
-1284             resourceName.substring(
-1285                 resourceName.lastIndexOf(".") + 1,
-1286                 resourceName.length()
-1287                 ) + ".class";
-1288         InputStream is = annotatedClass.getResourceAsStream(resourceName);
-1289         if (is != null)
-1290         {
-1291           if (tracker.track(name, is))
-1292             getLog().debug("New or modified class: " + name);
-1293           else
-1294             getLog().debug("Unchanged class: " + name);
-1295           sources.addAnnotatedClass(annotatedClass);
-1296           packageName = annotatedClass.getPackage().getName();
-1297         }
-1298         else
-1299         {
-1300           getLog().error("cannot find ressource " + resourceName + " for class " + name);
-1301           error = true;
-1302         }
-1303       }
-1304       catch(ClassLoadingException e)
-1305       {
-1306         packageName = name;
-1307       }
-1308       if (error)
-1309       {
-1310         throw new MojoExecutionException("error while inspecting annotated class " + name);
-1311       }
-1312 
-1313       while (packageName != null)
-1314       {
-1315         if (packages.contains(packageName))
-1316           return;
-1317         String resource = packageName.replace('.', '/') + "/package-info.class";
-1318         InputStream is = classLoaderService.locateResourceStream(resource);
-1319         if (is == null)
-1320         {
-1321           // No compiled package-info available: no package-level annotations!
-1322           getLog().debug("Package " + packageName + " is not annotated.");
-1323         }
-1324         else
-1325         {
-1326           if (tracker.track(packageName, is))
-1327             getLog().debug("New or modified package: " + packageName);
-1328           else
-1329            getLog().debug("Unchanged package: " + packageName);
-1330           getLog().info("Adding annotations from package " + packageName);
-1331           sources.addPackage(packageName);
-1332         }
-1333         packages.add(packageName);
-1334         int i = packageName.lastIndexOf('.');
-1335         if (i < 0)
-1336           packageName = null;
-1337         else
-1338           packageName = packageName.substring(0,i);
-1339       }
-1340     }
-1341     catch (Exception e)
-1342     {
-1343       getLog().error("Error while adding the annotated class " + name, e);
-1344       throw new MojoFailureException(e.getMessage());
-1345     }
-1346   }
-1347 
-1348   private ParsedPersistenceXmlDescriptor loadPersistenceUnit(
-1349       ClassLoaderService classLoaderService,
-1350       Properties properties
-1351       )
-1352       throws
-1353         MojoFailureException
-1354   {
-1355     PersistenceXmlParser parser =
-1356         new PersistenceXmlParser(
-1357             classLoaderService,
-1358             PersistenceUnitTransactionType.RESOURCE_LOCAL
-1359              );
-1360 
-1361     Map<String, ParsedPersistenceXmlDescriptor> units =
-1362         parser.doResolve(properties);
-1363 
-1364     if (persistenceUnit == null)
-1365     {
-1366       Iterator<String> names = units.keySet().iterator();
-1367       if (!names.hasNext())
-1368       {
-1369         getLog().info("Found no META-INF/persistence.xml.");
-1370         return null;
-1371       }
-1372 
-1373       String name = names.next();
-1374       if (!names.hasNext())
-1375       {
-1376           getLog().info("Using persistence-unit " + name);
-1377           return units.get(name);
-1378       }
-1379 
-1380       StringBuilder builder = new StringBuilder();
-1381       builder.append("No name provided and multiple persistence units found: ");
-1382       builder.append(name);
-1383       while(names.hasNext())
-1384       {
-1385         builder.append(", ");
-1386         builder.append(names.next());
-1387       }
-1388       builder.append('.');
-1389       throw new MojoFailureException(builder.toString());
-1390     }
-1391 
-1392     if (units.containsKey(persistenceUnit))
-1393     {
-1394       getLog().info("Using configured persistence-unit " + persistenceUnit);
-1395       return units.get(persistenceUnit);
-1396     }
-1397 
-1398     throw new MojoFailureException("Could not find persistence-unit " + persistenceUnit);
-1399   }
-1400 
-1401 
-1402   public static void printStrackTrace(StringBuilder builder, Throwable t)
-1403   {
-1404     while (t != null)
-1405     {
-1406       builder.append("\n\tCause: ");
-1407       builder.append(t.getMessage() == null ? "" : t.getMessage().replaceAll("\\s+", " "));
-1408       for (StackTraceElement trace : t.getStackTrace())
-1409       {
-1410         builder.append("\n\t");
-1411         builder.append(trace.getClassName());
-1412         builder.append(".");
-1413         builder.append(trace.getMethodName());
-1414         builder.append("():");
-1415         builder.append(trace.getLineNumber());
-1416       }
-1417       t = t.getCause();
-1418     }
-1419   }
-1420 }
-
-
- - - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/CreateMojo.html b/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/CreateMojo.html deleted file mode 100644 index 111daec..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/CreateMojo.html +++ /dev/null @@ -1,111 +0,0 @@ - - - -CreateMojo xref - - - -
View Javadoc
-1   package de.juplo.plugins.hibernate;
-2   
-3   /*
-4    * Copyright 2001-2005 The Apache Software Foundation.
-5    *
-6    * Licensed under the Apache License, Version 2.0 (the "License");
-7    * you may not use this file except in compliance with the License.
-8    * You may obtain a copy of the License at
-9    *
-10   *      http://www.apache.org/licenses/LICENSE-2.0
-11   *
-12   * Unless required by applicable law or agreed to in writing, software
-13   * distributed under the License is distributed on an "AS IS" BASIS,
-14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-15   * See the License for the specific language governing permissions and
-16   * limitations under the License.
-17   */
-18  
-19  import java.util.Map;
-20  import org.apache.maven.plugin.MojoExecutionException;
-21  import org.apache.maven.plugin.MojoFailureException;
-22  import org.hibernate.boot.spi.MetadataImplementor;
-23  import org.hibernate.service.ServiceRegistry;
-24  import org.hibernate.tool.schema.SourceType;
-25  import org.hibernate.tool.schema.spi.ExecutionOptions;
-26  import org.hibernate.tool.schema.spi.SchemaManagementTool;
-27  import org.hibernate.tool.schema.spi.ScriptSourceInput;
-28  import org.hibernate.tool.schema.spi.SourceDescriptor;
-29  import org.hibernate.tool.schema.spi.TargetDescriptor;
-30  
-31  
-32  /**
-33   * Generate/Execute SQL to create a database-schema that represents the
-34   * configured mappings.
-35   *
-36   * @goal create
-37   * @phase process-classes
-38   * @threadSafe
-39   * @requiresDependencyResolution runtime
-40   */
-41  public class CreateMojo extends AbstractSchemaMojo
-42  {
-43    /**
-44     * Output file.
-45     * <p>
-46     * If the specified filename is not absolut, the file will be created
-47     * relative to the project build directory
-48     * (<code>project.build.directory</code>).
-49     *
-50     * @parameter property="hibernate.schema.create" default-value="create.sql"
-51     * @since 1.0
-52     */
-53    private String outputFile;
-54  
-55  
-56    @Override
-57    public final void execute()
-58      throws
-59        MojoFailureException,
-60        MojoExecutionException
-61    {
-62      super.execute(outputFile);
-63    }
-64  
-65  
-66    @Override
-67    void build(
-68        MetadataImplementor metadata,
-69        ExecutionOptions options,
-70        TargetDescriptor target
-71        )
-72        throws
-73          MojoExecutionException,
-74          MojoFailureException
-75    {
-76      ServiceRegistry service =
-77          metadata.getMetadataBuildingOptions().getServiceRegistry();
-78      SchemaManagementTool tool = service.getService(SchemaManagementTool.class);
-79  
-80      Map config = options.getConfigurationValues();
-81      SourceDescriptor source = new SourceDescriptor()
-82      {
-83  	  @Override
-84        public SourceType getSourceType()
-85        {
-86          return SourceType.METADATA;
-87        }
-88  
-89        @Override
-90        public ScriptSourceInput getScriptSourceInput()
-91        {
-92          return null;
-93        }
-94      };
-95  
-96      tool.getSchemaCreator(config).doCreation(metadata, options, source, target);
-97    }
-98  }
-
-
- - - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/DropMojo.html b/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/DropMojo.html deleted file mode 100644 index 6239577..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/DropMojo.html +++ /dev/null @@ -1,111 +0,0 @@ - - - -DropMojo xref - - - -
View Javadoc
-1   package de.juplo.plugins.hibernate;
-2   
-3   /*
-4    * Copyright 2001-2005 The Apache Software Foundation.
-5    *
-6    * Licensed under the Apache License, Version 2.0 (the "License");
-7    * you may not use this file except in compliance with the License.
-8    * You may obtain a copy of the License at
-9    *
-10   *      http://www.apache.org/licenses/LICENSE-2.0
-11   *
-12   * Unless required by applicable law or agreed to in writing, software
-13   * distributed under the License is distributed on an "AS IS" BASIS,
-14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-15   * See the License for the specific language governing permissions and
-16   * limitations under the License.
-17   */
-18  
-19  import java.util.Map;
-20  import org.apache.maven.plugin.MojoExecutionException;
-21  import org.apache.maven.plugin.MojoFailureException;
-22  import org.hibernate.boot.spi.MetadataImplementor;
-23  import org.hibernate.service.ServiceRegistry;
-24  import org.hibernate.tool.schema.SourceType;
-25  import org.hibernate.tool.schema.spi.ExecutionOptions;
-26  import org.hibernate.tool.schema.spi.SchemaManagementTool;
-27  import org.hibernate.tool.schema.spi.ScriptSourceInput;
-28  import org.hibernate.tool.schema.spi.SourceDescriptor;
-29  import org.hibernate.tool.schema.spi.TargetDescriptor;
-30  
-31  
-32  /**
-33   * Generate/Execute SQL to drop all tables of a database-schema that represents
-34   * the configured mappings.
-35   *
-36   * @goal drop
-37   * @phase process-classes
-38   * @threadSafe
-39   * @requiresDependencyResolution runtime
-40   */
-41  public class DropMojo extends AbstractSchemaMojo
-42  {
-43    /**
-44     * Output file.
-45     * <p>
-46     * If the specified filename is not absolut, the file will be created
-47     * relative to the project build directory
-48     * (<code>project.build.directory</code>).
-49     *
-50     * @parameter property="hibernate.schema.drop" default-value="drop.sql"
-51     * @since 1.0
-52     */
-53    private String outputFile;
-54  
-55  
-56    @Override
-57    public final void execute()
-58      throws
-59        MojoFailureException,
-60        MojoExecutionException
-61    {
-62      super.execute(outputFile);
-63    }
-64  
-65  
-66    @Override
-67    void build(
-68        MetadataImplementor metadata,
-69        ExecutionOptions options,
-70        TargetDescriptor target
-71        )
-72        throws
-73          MojoExecutionException,
-74          MojoFailureException
-75    {
-76      ServiceRegistry service =
-77          metadata.getMetadataBuildingOptions().getServiceRegistry();
-78      SchemaManagementTool tool = service.getService(SchemaManagementTool.class);
-79  
-80      Map config = options.getConfigurationValues();
-81      SourceDescriptor source = new SourceDescriptor()
-82      {
-83  	  @Override
-84        public SourceType getSourceType()
-85        {
-86          return SourceType.METADATA;
-87        }
-88  
-89        @Override
-90        public ScriptSourceInput getScriptSourceInput()
-91        {
-92          return null;
-93        }
-94      };
-95  
-96      tool.getSchemaDropper(config).doDrop(metadata, options, source, target);
-97    }
-98  }
-
-
- - - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/HelpMojo.html b/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/HelpMojo.html deleted file mode 100644 index 7082129..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/HelpMojo.html +++ /dev/null @@ -1,467 +0,0 @@ - - - -HelpMojo xref - - - -
View Javadoc
-1   
-2   package de.juplo.plugins.hibernate;
-3   
-4   import org.apache.maven.plugin.AbstractMojo;
-5   import org.apache.maven.plugin.MojoExecutionException;
-6   
-7   import org.w3c.dom.Document;
-8   import org.w3c.dom.Element;
-9   import org.w3c.dom.Node;
-10  import org.w3c.dom.NodeList;
-11  import org.xml.sax.SAXException;
-12  
-13  import javax.xml.parsers.DocumentBuilder;
-14  import javax.xml.parsers.DocumentBuilderFactory;
-15  import javax.xml.parsers.ParserConfigurationException;
-16  import java.io.IOException;
-17  import java.io.InputStream;
-18  import java.util.ArrayList;
-19  import java.util.List;
-20  
-21  /**
-22   * Display help information on hibernate-maven-plugin.<br>
-23   * Call <code>mvn hibernate:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details.
-24   * @author maven-plugin-tools
-25   * @goal help
-26   * @requiresProject false
-27   * @threadSafe
-28   */
-29  public class HelpMojo
-30      extends AbstractMojo
-31  {
-32      /**
-33       * If <code>true</code>, display all settable properties for each goal.
-34       *
-35       * @parameter property="detail" default-value="false"
-36       */
-37      private boolean detail;
-38  
-39      /**
-40       * The name of the goal for which to show help. If unspecified, all goals will be displayed.
-41       *
-42       * @parameter property="goal"
-43       */
-44      private java.lang.String goal;
-45  
-46      /**
-47       * The maximum length of a display line, should be positive.
-48       *
-49       * @parameter property="lineLength" default-value="80"
-50       */
-51      private int lineLength;
-52  
-53      /**
-54       * The number of spaces per indentation level, should be positive.
-55       *
-56       * @parameter property="indentSize" default-value="2"
-57       */
-58      private int indentSize;
-59  
-60      // groupId/artifactId/plugin-help.xml
-61      private static final String PLUGIN_HELP_PATH =
-62                      "/META-INF/maven/de.juplo/hibernate-maven-plugin/plugin-help.xml";
-63  
-64      private static final int DEFAULT_LINE_LENGTH = 80;
-65  
-66      private Document build()
-67          throws MojoExecutionException
-68      {
-69          getLog().debug( "load plugin-help.xml: " + PLUGIN_HELP_PATH );
-70          InputStream is = null;
-71          try
-72          {
-73              is = getClass().getResourceAsStream( PLUGIN_HELP_PATH );
-74              DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
-75              DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
-76              return dBuilder.parse( is );
-77          }
-78          catch ( IOException e )
-79          {
-80              throw new MojoExecutionException( e.getMessage(), e );
-81          }
-82          catch ( ParserConfigurationException e )
-83          {
-84              throw new MojoExecutionException( e.getMessage(), e );
-85          }
-86          catch ( SAXException e )
-87          {
-88              throw new MojoExecutionException( e.getMessage(), e );
-89          }
-90          finally
-91          {
-92              if ( is != null )
-93              {
-94                  try
-95                  {
-96                      is.close();
-97                  }
-98                  catch ( IOException e )
-99                  {
-100                     throw new MojoExecutionException( e.getMessage(), e );
-101                 }
-102             }
-103         }
-104     }
-105 
-106     /**
-107      * {@inheritDoc}
-108      */
-109     public void execute()
-110         throws MojoExecutionException
-111     {
-112         if ( lineLength <= 0 )
-113         {
-114             getLog().warn( "The parameter 'lineLength' should be positive, using '80' as default." );
-115             lineLength = DEFAULT_LINE_LENGTH;
-116         }
-117         if ( indentSize <= 0 )
-118         {
-119             getLog().warn( "The parameter 'indentSize' should be positive, using '2' as default." );
-120             indentSize = 2;
-121         }
-122 
-123         Document doc = build();
-124 
-125         StringBuilder sb = new StringBuilder();
-126         Node plugin = getSingleChild( doc, "plugin" );
-127 
-128 
-129         String name = getValue( plugin, "name" );
-130         String version = getValue( plugin, "version" );
-131         String id = getValue( plugin, "groupId" ) + ":" + getValue( plugin, "artifactId" ) + ":" + version;
-132         if ( isNotEmpty( name ) && !name.contains( id ) )
-133         {
-134             append( sb, name + " " + version, 0 );
-135         }
-136         else
-137         {
-138             if ( isNotEmpty( name ) )
-139             {
-140                 append( sb, name, 0 );
-141             }
-142             else
-143             {
-144                 append( sb, id, 0 );
-145             }
-146         }
-147         append( sb, getValue( plugin, "description" ), 1 );
-148         append( sb, "", 0 );
-149 
-150         //<goalPrefix>plugin</goalPrefix>
-151         String goalPrefix = getValue( plugin, "goalPrefix" );
-152 
-153         Node mojos1 = getSingleChild( plugin, "mojos" );
-154 
-155         List<Node> mojos = findNamedChild( mojos1, "mojo" );
-156 
-157         if ( goal == null || goal.length() <= 0 )
-158         {
-159             append( sb, "This plugin has " + mojos.size() + ( mojos.size() > 1 ? " goals:" : " goal:" ), 0 );
-160             append( sb, "", 0 );
-161         }
-162 
-163         for ( Node mojo : mojos )
-164         {
-165             writeGoal( sb, goalPrefix, (Element) mojo );
-166         }
-167 
-168         if ( getLog().isInfoEnabled() )
-169         {
-170             getLog().info( sb.toString() );
-171         }
-172     }
-173 
-174 
-175     private static boolean isNotEmpty( String string )
-176     {
-177         return string != null && string.length() > 0;
-178     }
-179 
-180     private String getValue( Node node, String elementName )
-181         throws MojoExecutionException
-182     {
-183         return getSingleChild( node, elementName ).getTextContent();
-184     }
-185 
-186     private Node getSingleChild( Node node, String elementName )
-187         throws MojoExecutionException
-188     {
-189         List<Node> namedChild = findNamedChild( node, elementName );
-190         if ( namedChild.isEmpty() )
-191         {
-192             throw new MojoExecutionException( "Could not find " + elementName + " in plugin-help.xml" );
-193         }
-194         if ( namedChild.size() > 1 )
-195         {
-196             throw new MojoExecutionException( "Multiple " + elementName + " in plugin-help.xml" );
-197         }
-198         return namedChild.get( 0 );
-199     }
-200 
-201     private List<Node> findNamedChild( Node node, String elementName )
-202     {
-203         List<Node> result = new ArrayList<Node>();
-204         NodeList childNodes = node.getChildNodes();
-205         for ( int i = 0; i < childNodes.getLength(); i++ )
-206         {
-207             Node item = childNodes.item( i );
-208             if ( elementName.equals( item.getNodeName() ) )
-209             {
-210                 result.add( item );
-211             }
-212         }
-213         return result;
-214     }
-215 
-216     private Node findSingleChild( Node node, String elementName )
-217         throws MojoExecutionException
-218     {
-219         List<Node> elementsByTagName = findNamedChild( node, elementName );
-220         if ( elementsByTagName.isEmpty() )
-221         {
-222             return null;
-223         }
-224         if ( elementsByTagName.size() > 1 )
-225         {
-226             throw new MojoExecutionException( "Multiple " + elementName + "in plugin-help.xml" );
-227         }
-228         return elementsByTagName.get( 0 );
-229     }
-230 
-231     private void writeGoal( StringBuilder sb, String goalPrefix, Element mojo )
-232         throws MojoExecutionException
-233     {
-234         String mojoGoal = getValue( mojo, "goal" );
-235         Node configurationElement = findSingleChild( mojo, "configuration" );
-236         Node description = findSingleChild( mojo, "description" );
-237         if ( goal == null || goal.length() <= 0 || mojoGoal.equals( goal ) )
-238         {
-239             append( sb, goalPrefix + ":" + mojoGoal, 0 );
-240             Node deprecated = findSingleChild( mojo, "deprecated" );
-241             if ( ( deprecated != null ) && isNotEmpty( deprecated.getTextContent() ) )
-242             {
-243                 append( sb, "Deprecated. " + deprecated.getTextContent(), 1 );
-244                 if ( detail && description != null )
-245                 {
-246                     append( sb, "", 0 );
-247                     append( sb, description.getTextContent(), 1 );
-248                 }
-249             }
-250             else if ( description != null )
-251             {
-252                 append( sb, description.getTextContent(), 1 );
-253             }
-254             append( sb, "", 0 );
-255 
-256             if ( detail )
-257             {
-258                 Node parametersNode = getSingleChild( mojo, "parameters" );
-259                 List<Node> parameters = findNamedChild( parametersNode, "parameter" );
-260                 append( sb, "Available parameters:", 1 );
-261                 append( sb, "", 0 );
-262 
-263                 for ( Node parameter : parameters )
-264                 {
-265                     writeParameter( sb, parameter, configurationElement );
-266                 }
-267             }
-268         }
-269     }
-270 
-271     private void writeParameter( StringBuilder sb, Node parameter, Node configurationElement )
-272         throws MojoExecutionException
-273     {
-274         String parameterName = getValue( parameter, "name" );
-275         String parameterDescription = getValue( parameter, "description" );
-276 
-277         Element fieldConfigurationElement = (Element) findSingleChild( configurationElement, parameterName );
-278 
-279         String parameterDefaultValue = "";
-280         if ( fieldConfigurationElement != null && fieldConfigurationElement.hasAttribute( "default-value" ) )
-281         {
-282             parameterDefaultValue = " (Default: " + fieldConfigurationElement.getAttribute( "default-value" ) + ")";
-283         }
-284         append( sb, parameterName + parameterDefaultValue, 2 );
-285         Node deprecated = findSingleChild( parameter, "deprecated" );
-286         if ( ( deprecated != null ) && isNotEmpty( deprecated.getTextContent() ) )
-287         {
-288             append( sb, "Deprecated. " + deprecated.getTextContent(), 3 );
-289             append( sb, "", 0 );
-290         }
-291         append( sb, parameterDescription, 3 );
-292         if ( "true".equals( getValue( parameter, "required" ) ) )
-293         {
-294             append( sb, "Required: Yes", 3 );
-295         }
-296         if ( ( fieldConfigurationElement != null ) && isNotEmpty( fieldConfigurationElement.getTextContent() ) )
-297         {
-298             String property = getPropertyFromExpression( fieldConfigurationElement.getTextContent() );
-299             append( sb, "User property: " + property, 3 );
-300         }
-301 
-302         append( sb, "", 0 );
-303     }
-304 
-305     /**
-306      * <p>Repeat a String <code>n</code> times to form a new string.</p>
-307      *
-308      * @param str    String to repeat
-309      * @param repeat number of times to repeat str
-310      * @return String with repeated String
-311      * @throws NegativeArraySizeException if <code>repeat < 0</code>
-312      * @throws NullPointerException       if str is <code>null</code>
-313      */
-314     private static String repeat( String str, int repeat )
-315     {
-316         StringBuilder buffer = new StringBuilder( repeat * str.length() );
-317 
-318         for ( int i = 0; i < repeat; i++ )
-319         {
-320             buffer.append( str );
-321         }
-322 
-323         return buffer.toString();
-324     }
-325 
-326     /**
-327      * Append a description to the buffer by respecting the indentSize and lineLength parameters.
-328      * <b>Note</b>: The last character is always a new line.
-329      *
-330      * @param sb          The buffer to append the description, not <code>null</code>.
-331      * @param description The description, not <code>null</code>.
-332      * @param indent      The base indentation level of each line, must not be negative.
-333      */
-334     private void append( StringBuilder sb, String description, int indent )
-335     {
-336         for ( String line : toLines( description, indent, indentSize, lineLength ) )
-337         {
-338             sb.append( line ).append( '\n' );
-339         }
-340     }
-341 
-342     /**
-343      * Splits the specified text into lines of convenient display length.
-344      *
-345      * @param text       The text to split into lines, must not be <code>null</code>.
-346      * @param indent     The base indentation level of each line, must not be negative.
-347      * @param indentSize The size of each indentation, must not be negative.
-348      * @param lineLength The length of the line, must not be negative.
-349      * @return The sequence of display lines, never <code>null</code>.
-350      * @throws NegativeArraySizeException if <code>indent < 0</code>
-351      */
-352     private static List<String> toLines( String text, int indent, int indentSize, int lineLength )
-353     {
-354         List<String> lines = new ArrayList<String>();
-355 
-356         String ind = repeat( "\t", indent );
-357 
-358         String[] plainLines = text.split( "(\r\n)|(\r)|(\n)" );
-359 
-360         for ( String plainLine : plainLines )
-361         {
-362             toLines( lines, ind + plainLine, indentSize, lineLength );
-363         }
-364 
-365         return lines;
-366     }
-367 
-368     /**
-369      * Adds the specified line to the output sequence, performing line wrapping if necessary.
-370      *
-371      * @param lines      The sequence of display lines, must not be <code>null</code>.
-372      * @param line       The line to add, must not be <code>null</code>.
-373      * @param indentSize The size of each indentation, must not be negative.
-374      * @param lineLength The length of the line, must not be negative.
-375      */
-376     private static void toLines( List<String> lines, String line, int indentSize, int lineLength )
-377     {
-378         int lineIndent = getIndentLevel( line );
-379         StringBuilder buf = new StringBuilder( 256 );
-380 
-381         String[] tokens = line.split( " +" );
-382 
-383         for ( String token : tokens )
-384         {
-385             if ( buf.length() > 0 )
-386             {
-387                 if ( buf.length() + token.length() >= lineLength )
-388                 {
-389                     lines.add( buf.toString() );
-390                     buf.setLength( 0 );
-391                     buf.append( repeat( " ", lineIndent * indentSize ) );
-392                 }
-393                 else
-394                 {
-395                     buf.append( ' ' );
-396                 }
-397             }
-398 
-399             for ( int j = 0; j < token.length(); j++ )
-400             {
-401                 char c = token.charAt( j );
-402                 if ( c == '\t' )
-403                 {
-404                     buf.append( repeat( " ", indentSize - buf.length() % indentSize ) );
-405                 }
-406                 else if ( c == '\u00A0' )
-407                 {
-408                     buf.append( ' ' );
-409                 }
-410                 else
-411                 {
-412                     buf.append( c );
-413                 }
-414             }
-415         }
-416         lines.add( buf.toString() );
-417     }
-418 
-419     /**
-420      * Gets the indentation level of the specified line.
-421      *
-422      * @param line The line whose indentation level should be retrieved, must not be <code>null</code>.
-423      * @return The indentation level of the line.
-424      */
-425     private static int getIndentLevel( String line )
-426     {
-427         int level = 0;
-428         for ( int i = 0; i < line.length() && line.charAt( i ) == '\t'; i++ )
-429         {
-430             level++;
-431         }
-432         for ( int i = level + 1; i <= level + 4 && i < line.length(); i++ )
-433         {
-434             if ( line.charAt( i ) == '\t' )
-435             {
-436                 level++;
-437                 break;
-438             }
-439         }
-440         return level;
-441     }
-442     
-443     private String getPropertyFromExpression( String expression )
-444     {
-445         if ( expression != null && expression.startsWith( "${" ) && expression.endsWith( "}" )
-446             && !expression.substring( 2 ).contains( "${" ) )
-447         {
-448             // expression="${xxx}" -> property="xxx"
-449             return expression.substring( 2, expression.length() - 1 );
-450         }
-451         // no property can be extracted
-452         return null;
-453     }
-454 }
-
-
- - - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/ModificationTracker.html b/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/ModificationTracker.html deleted file mode 100644 index cb669fc..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/ModificationTracker.html +++ /dev/null @@ -1,224 +0,0 @@ - - - -ModificationTracker xref - - - -
View Javadoc
-1   package de.juplo.plugins.hibernate;
-2   
-3   
-4   import java.io.File;
-5   import java.io.FileInputStream;
-6   import java.io.FileOutputStream;
-7   import java.io.IOException;
-8   import java.io.InputStream;
-9   import java.io.ObjectInputStream;
-10  import java.io.ObjectOutputStream;
-11  import java.math.BigInteger;
-12  import java.security.MessageDigest;
-13  import java.security.NoSuchAlgorithmException;
-14  import java.util.HashMap;
-15  import java.util.HashSet;
-16  import java.util.Map;
-17  import java.util.Properties;
-18  import java.util.Set;
-19  import org.apache.maven.plugin.logging.Log;
-20  
-21  
-22  
-23  /**
-24   *
-25   * @author Kai Moritz
-26   */
-27  public class ModificationTracker
-28  {
-29    private Map<String,String> properties;
-30    private Map<String,String> classes;
-31  
-32    private final Set<String> propertyNames;
-33    private final Set<String> classNames;
-34  
-35    private boolean modified = false;
-36    private boolean failed = false;
-37  
-38    private final File saved;
-39    private final MessageDigest digest;
-40    private final Log log;
-41  
-42  
-43    ModificationTracker(String buildDirectory, String filename, Log log)
-44        throws
-45          NoSuchAlgorithmException
-46    {
-47      propertyNames = new HashSet<String>();
-48      classNames = new HashSet<String>();
-49      File output = new File(filename + ".md5s");
-50      if (output.isAbsolute())
-51      {
-52        saved = output;
-53      }
-54      else
-55      {
-56        // Interpret relative file path relative to build directory
-57        saved = new File(buildDirectory, output.getPath());
-58        log.debug("Adjusted relative path, resulting path is " + saved.getPath());
-59      }
-60      digest = java.security.MessageDigest.getInstance("MD5");
-61      this.log = log;
-62    }
-63  
-64  
-65    private String calculate(InputStream is)
-66        throws
-67          IOException
-68    {
-69      byte[] buffer = new byte[1024*4]; // copy data in 4MB-chunks
-70      int i;
-71      while((i = is.read(buffer)) > -1)
-72        digest.update(buffer, 0, i);
-73      is.close();
-74      byte[] bytes = digest.digest();
-75      BigInteger bi = new BigInteger(1, bytes);
-76      return String.format("%0" + (bytes.length << 1) + "x", bi);
-77    }
-78  
-79    private boolean check(Map<String,String> values, String name, String value)
-80    {
-81      if (!values.containsKey(name) || !values.get(name).equals(value))
-82      {
-83        values.put(name, value);
-84        return true;
-85      }
-86      else
-87        return false;
-88    }
-89  
-90  
-91    boolean track(String name, InputStream is) throws IOException
-92    {
-93      boolean result = check(classes, name, calculate(is));
-94      classNames.add(name);
-95      modified |= result;
-96      return result;
-97    }
-98  
-99  
-100   boolean check(String name, String property)
-101   {
-102     propertyNames.add(name);
-103     return check(properties, name, property);
-104   }
-105 
-106   boolean track(String name, String property)
-107   {
-108     boolean result = check(name, property);
-109     modified |= result;
-110     return result;
-111   }
-112 
-113   boolean track(Properties properties)
-114   {
-115     boolean result = false;
-116     for (String name : properties.stringPropertyNames())
-117       result |= track(name, properties.getProperty(name));
-118     return result;
-119   }
-120 
-121 
-122   void touch()
-123   {
-124     modified = true;
-125   }
-126 
-127   boolean modified()
-128   {
-129     for (String property : new HashSet<String>(properties.keySet()))
-130       if (!propertyNames.contains(property))
-131       {
-132         modified = true;
-133         properties.remove(property);
-134       }
-135      for (String clazz : new HashSet<String>(classes.keySet()))
-136       if (!classNames.contains(clazz))
-137       {
-138         modified = true;
-139         classes.remove(clazz);
-140       }
-141     return modified;
-142   }
-143 
-144 
-145   void failed()
-146   {
-147     failed = true;
-148   }
-149 
-150 
-151   void load()
-152   {
-153     if (saved.isFile() && saved.length() > 0)
-154     {
-155       try
-156       {
-157         FileInputStream fis = new FileInputStream(saved);
-158         ObjectInputStream ois = new ObjectInputStream(fis);
-159         properties = (HashMap<String,String>)ois.readObject();
-160         classes = (HashMap<String,String>)ois.readObject();
-161         ois.close();
-162       }
-163       catch (Exception e)
-164       {
-165         properties = new HashMap<String,String>();
-166         classes = new HashMap<String,String>();
-167         log.warn("Cannot read md5s from saved: " + e);
-168       }
-169     }
-170     else
-171     {
-172       properties = new HashMap<String,String>();
-173       classes = new HashMap<String,String>();
-174       try
-175       {
-176         saved.createNewFile();
-177       }
-178       catch (IOException e)
-179       {
-180         log.debug("Cannot create file \"" + saved.getPath() + "\" for md5s: " + e);
-181       }
-182     }
-183   }
-184 
-185   void save()
-186   {
-187     if (failed)
-188     {
-189       saved.delete();
-190       return;
-191     }
-192 
-193     if (!modified)
-194       return;
-195 
-196     /** Write md5-sums for annotated classes to file */
-197     try
-198     {
-199       FileOutputStream fos = new FileOutputStream(saved);
-200       ObjectOutputStream oos = new ObjectOutputStream(fos);
-201       oos.writeObject(properties);
-202       oos.writeObject(classes);
-203       oos.close();
-204       fos.close();
-205     }
-206     catch (Exception e)
-207     {
-208       log.error("Cannot write md5-sums to file: " + e);
-209     }
-210   }  
-211 }
-
-
- - - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/MutableClassLoader.html b/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/MutableClassLoader.html deleted file mode 100644 index 09336d6..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/MutableClassLoader.html +++ /dev/null @@ -1,115 +0,0 @@ - - - -MutableClassLoader xref - - - -
View Javadoc
-1   package de.juplo.plugins.hibernate;
-2   
-3   import java.io.IOException;
-4   import java.io.InputStream;
-5   import java.net.URL;
-6   import java.net.URLClassLoader;
-7   import java.util.Arrays;
-8   import java.util.Enumeration;
-9   import java.util.LinkedHashSet;
-10  import org.apache.maven.plugin.logging.Log;
-11  
-12  
-13  /**
-14   *
-15   * @author kai
-16   */
-17  public class MutableClassLoader extends ClassLoader
-18  {
-19    private URLClassLoader loader;
-20    private Log log;
-21  
-22  
-23    public MutableClassLoader(LinkedHashSet<URL> urls, Log log)
-24    {
-25      if (log.isDebugEnabled())
-26        for (URL url : urls)
-27          log.debug(url.toString());
-28      loader =
-29          new URLClassLoader(
-30              urls.toArray(new URL[urls.size()]),
-31              getClass().getClassLoader()
-32              );
-33      this.log = log;
-34    }
-35  
-36  
-37    public MutableClassLoader add(LinkedHashSet<URL> urls)
-38    {
-39      LinkedHashSet<URL> old =
-40          new LinkedHashSet<URL>(Arrays.asList(loader.getURLs()));
-41      old.addAll(urls);
-42      if (log.isDebugEnabled())
-43        for (URL url : urls)
-44          log.debug(url.toString());
-45      loader =
-46          new URLClassLoader(
-47              old.toArray(new URL[urls.size()]),
-48              getClass().getClassLoader()
-49              );
-50      return this;
-51    }
-52  
-53  
-54    @Override
-55    public void clearAssertionStatus()
-56    {
-57      loader.clearAssertionStatus();
-58    }
-59  
-60    @Override
-61    public void setClassAssertionStatus(String className, boolean enabled)
-62    {
-63      loader.setClassAssertionStatus(className, enabled);
-64    }
-65  
-66    @Override
-67    public void setPackageAssertionStatus(String packageName, boolean enabled)
-68    {
-69      loader.setPackageAssertionStatus(packageName, enabled);
-70    }
-71  
-72    @Override
-73    public void setDefaultAssertionStatus(boolean enabled)
-74    {
-75      loader.setDefaultAssertionStatus(enabled);
-76    }
-77  
-78    @Override
-79    public InputStream getResourceAsStream(String name)
-80    {
-81      return loader.getResourceAsStream(name);
-82    }
-83  
-84    @Override
-85    public Enumeration<URL> getResources(String name) throws IOException
-86    {
-87      return loader.getResources(name);
-88    }
-89  
-90    @Override
-91    public URL getResource(String name)
-92    {
-93      return loader.getResource(name);
-94    }
-95  
-96    @Override
-97    public Class<?> loadClass(String name) throws ClassNotFoundException
-98    {
-99      return loader.loadClass(name);
-100   }
-101   
-102 }
-
-
- - - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/SimpleConnectionProvider.html b/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/SimpleConnectionProvider.html deleted file mode 100644 index 650ee14..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/SimpleConnectionProvider.html +++ /dev/null @@ -1,245 +0,0 @@ - - - -SimpleConnectionProvider xref - - - -
View Javadoc
-1   package de.juplo.plugins.hibernate;
-2   
-3   import java.sql.Connection;
-4   import java.sql.Driver;
-5   import java.sql.DriverManager;
-6   import java.sql.DriverPropertyInfo;
-7   import java.sql.SQLException;
-8   import java.sql.SQLFeatureNotSupportedException;
-9   import java.util.Properties;
-10  import java.util.logging.Logger;
-11  import org.apache.maven.plugin.MojoFailureException;
-12  import org.apache.maven.plugin.logging.Log;
-13  import static org.eclipse.aether.repository.AuthenticationContext.PASSWORD;
-14  import static org.eclipse.aether.repository.AuthenticationContext.USERNAME;
-15  import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
-16  import static org.hibernate.cfg.AvailableSettings.DRIVER;
-17  import static org.hibernate.cfg.AvailableSettings.PASS;
-18  import static org.hibernate.cfg.AvailableSettings.URL;
-19  import static org.hibernate.cfg.AvailableSettings.USER;
-20  import org.hibernate.engine.jdbc.connections.spi.ConnectionProvider;
-21  import static org.hibernate.jpa.AvailableSettings.JDBC_DRIVER;
-22  import static org.hibernate.jpa.AvailableSettings.JDBC_PASSWORD;
-23  import static org.hibernate.jpa.AvailableSettings.JDBC_URL;
-24  import static org.hibernate.jpa.AvailableSettings.JDBC_USER;
-25  
-26  /**
-27   *
-28   * @author Kai Moritz
-29   */
-30  class SimpleConnectionProvider implements ConnectionProvider
-31  {
-32    private final Log log;
-33  
-34    private Connection connection;
-35  
-36  
-37    SimpleConnectionProvider(Log log)
-38    {
-39      this.log = log;
-40    }
-41  
-42  
-43    void open(ClassLoaderService classLoaderService, Properties properties)
-44        throws
-45          MojoFailureException
-46    {
-47  
-48      String driver = (String)properties.getProperty(DRIVER);
-49      String url = (String)properties.getProperty(URL);
-50      String user = (String)properties.getProperty(USER);
-51      String password = (String)properties.getProperty(PASS);
-52  
-53      if (driver == null || url == null)
-54      {
-55        log.info("No connection opened, because connection information is incomplete");
-56        log.info("Driver-Class: " + driver);
-57        log.info("URL: " + url);
-58        return;
-59      }
-60  
-61      try
-62      {
-63        Class driverClass = classLoaderService.classForName(driver);
-64  
-65        log.debug("Registering JDBC-driver " + driverClass.getName());
-66        DriverManager
-67            .registerDriver(new DriverProxy((Driver) driverClass.newInstance()));
-68  
-69        log.debug(
-70            "Opening JDBC-connection to " + url +
-71            " as " + user +
-72            " with password " + password
-73            );
-74      
-75        connection = DriverManager.getConnection(url, user, password);
-76      }
-77      catch (Exception e)
-78      {
-79        log.info("Could not open the JDBC-connection: " + e.getMessage());
-80      }
-81    }
-82  
-83    void close()
-84    {
-85      if (connection == null)
-86        return;
-87  
-88      log.debug("Closing the JDBC-connection.");
-89      try
-90      {
-91        connection.close();
-92      }
-93      catch (SQLException e)
-94      {
-95        log.error("Error while closing the JDBC-connection: " + e.getMessage());
-96      }
-97    }
-98  
-99    @Override
-100   public Connection getConnection() throws SQLException
-101   {
-102     log.debug("Connection aquired.");
-103 
-104     if (connection == null)
-105       throw new SQLException("No connection available, because of insufficient connection information!");
-106 
-107     return connection;
-108   }
-109 
-110   @Override
-111   public void closeConnection(Connection conn) throws SQLException
-112   {
-113     log.debug("Connection released");
-114   }
-115 
-116   @Override
-117   public boolean supportsAggressiveRelease()
-118   {
-119     return false;
-120   }
-121 
-122   @Override
-123   public boolean isUnwrappableAs(Class unwrapType)
-124   {
-125     return false;
-126   }
-127 
-128   @Override
-129   public <T> T unwrap(Class<T> unwrapType)
-130   {
-131     throw new UnsupportedOperationException("Not supported.");
-132   }
-133 
-134   /**
-135    * Needed, because DriverManager won't pick up drivers, that were not
-136    * loaded by the system-classloader!
-137    * See:
-138    * http://stackoverflow.com/questions/288828/how-to-use-a-jdbc-driver-fromodifiedm-an-arbitrary-location
-139    */
-140   static final class DriverProxy implements Driver
-141   {
-142     private final Driver target;
-143 
-144     DriverProxy(Driver target)
-145     {
-146       if (target == null)
-147         throw new NullPointerException();
-148       this.target = target;
-149     }
-150 
-151     public java.sql.Driver getTarget()
-152     {
-153       return target;
-154     }
-155 
-156     @Override
-157     public boolean acceptsURL(String url) throws SQLException
-158     {
-159       return target.acceptsURL(url);
-160     }
-161 
-162     @Override
-163     public java.sql.Connection connect(
-164         String url,
-165         java.util.Properties info
-166       )
-167       throws
-168         SQLException
-169     {
-170       return target.connect(url, info);
-171     }
-172 
-173     @Override
-174     public int getMajorVersion()
-175     {
-176       return target.getMajorVersion();
-177     }
-178 
-179     @Override
-180     public int getMinorVersion()
-181     {
-182       return target.getMinorVersion();
-183     }
-184 
-185     @Override
-186     public DriverPropertyInfo[] getPropertyInfo(
-187         String url,
-188         Properties info
-189       )
-190       throws
-191         SQLException
-192     {
-193       return target.getPropertyInfo(url, info);
-194     }
-195 
-196     @Override
-197     public boolean jdbcCompliant()
-198     {
-199       return target.jdbcCompliant();
-200     }
-201 
-202     /**
-203      * This Method cannot be annotated with @Override, becaus the plugin
-204      * will not compile then under Java 1.6!
-205      */
-206     public Logger getParentLogger() throws SQLFeatureNotSupportedException
-207     {
-208       throw new SQLFeatureNotSupportedException("Not supported, for backward-compatibility with Java 1.6");
-209     }
-210 
-211     @Override
-212     public String toString()
-213     {
-214       return "Proxy: " + target;
-215     }
-216 
-217     @Override
-218     public int hashCode()
-219     {
-220       return target.hashCode();
-221     }
-222 
-223     @Override
-224     public boolean equals(Object obj)
-225     {
-226       if (!(obj instanceof DriverProxy))
-227         return false;
-228       DriverProxy other = (DriverProxy) obj;
-229       return this.target.equals(other.target);
-230     }
-231   }
-232 }
-
-
- - - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/UpdateMojo.html b/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/UpdateMojo.html deleted file mode 100644 index bd0dc71..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/UpdateMojo.html +++ /dev/null @@ -1,94 +0,0 @@ - - - -UpdateMojo xref - - - -
View Javadoc
-1   package de.juplo.plugins.hibernate;
-2   
-3   /*
-4    * Copyright 2001-2005 The Apache Software Foundation.
-5    *
-6    * Licensed under the Apache License, Version 2.0 (the "License");
-7    * you may not use this file except in compliance with the License.
-8    * You may obtain a copy of the License at
-9    *
-10   *      http://www.apache.org/licenses/LICENSE-2.0
-11   *
-12   * Unless required by applicable law or agreed to in writing, software
-13   * distributed under the License is distributed on an "AS IS" BASIS,
-14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-15   * See the License for the specific language governing permissions and
-16   * limitations under the License.
-17   */
-18  
-19  import java.util.Map;
-20  import org.apache.maven.plugin.MojoExecutionException;
-21  import org.apache.maven.plugin.MojoFailureException;
-22  import org.hibernate.boot.spi.MetadataImplementor;
-23  import org.hibernate.service.ServiceRegistry;
-24  import org.hibernate.tool.schema.spi.ExecutionOptions;
-25  import org.hibernate.tool.schema.spi.SchemaManagementTool;
-26  import org.hibernate.tool.schema.spi.TargetDescriptor;
-27  
-28  
-29  /**
-30   * Generate/Execute SQL to update the database-schema according to the
-31   * configured mappings.
-32   *
-33   * @goal update
-34   * @phase process-classes
-35   * @threadSafe
-36   * @requiresDependencyResolution runtime
-37   */
-38  public class UpdateMojo extends AbstractSchemaMojo
-39  {
-40    /**
-41     * Output file.
-42     * <p>
-43     * If the specified filename is not absolut, the file will be created
-44     * relative to the project build directory
-45     * (<code>project.build.directory</code>).
-46     *
-47     * @parameter property="hibernate.schema.update" default-value="update.sql"
-48     * @since 1.0
-49     */
-50    private String outputFile;
-51  
-52  
-53    @Override
-54    public final void execute()
-55      throws
-56        MojoFailureException,
-57        MojoExecutionException
-58    {
-59      super.execute(outputFile);
-60    }
-61  
-62  
-63    @Override
-64    void build(
-65        MetadataImplementor metadata,
-66        ExecutionOptions options,
-67        TargetDescriptor target
-68        )
-69        throws
-70          MojoExecutionException,
-71          MojoFailureException
-72    {
-73      ServiceRegistry service =
-74          metadata.getMetadataBuildingOptions().getServiceRegistry();
-75      SchemaManagementTool tool = service.getService(SchemaManagementTool.class);
-76  
-77      Map config = options.getConfigurationValues();
-78  
-79      tool.getSchemaMigrator(config).doMigration(metadata, options, target);
-80    }
-81  }
-
-
- - - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/package-frame.html b/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/package-frame.html deleted file mode 100644 index 812fee4..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/package-frame.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - Hibernate Maven Plugin 2.1.0 Reference Package de.juplo.plugins.hibernate - - - - -

- de.juplo.plugins.hibernate -

- -

Classes

- - - - - \ No newline at end of file diff --git a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/package-summary.html b/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/package-summary.html deleted file mode 100644 index e716b01..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref/de/juplo/plugins/hibernate/package-summary.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - Hibernate Maven Plugin 2.1.0 Reference Package de.juplo.plugins.hibernate - - - -
- -
-
- -
- -

Package de.juplo.plugins.hibernate

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Class Summary
- AbstractSchemaMojo -
- CreateMojo -
- DriverProxy -
- DropMojo -
- HelpMojo -
- ModificationTracker -
- MutableClassLoader -
- SimpleConnectionProvider -
- UpdateMojo -
- -
- -
-
- -
-
- - - \ No newline at end of file diff --git a/projects/hibernate-maven-plugin-2.1.0/xref/index.html b/projects/hibernate-maven-plugin-2.1.0/xref/index.html deleted file mode 100644 index 7cc75cb..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref/index.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - Hibernate Maven Plugin 2.1.0 Reference - - - - - - - - - <body> - <h1>Frame Alert</h1> - <p> - You don't have frames. Go <a href="overview-summary.html">here</a> - </p> - </body> - - - - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref/overview-frame.html b/projects/hibernate-maven-plugin-2.1.0/xref/overview-frame.html deleted file mode 100644 index 6190ab7..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref/overview-frame.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - Hibernate Maven Plugin 2.1.0 Reference - - - - -

- All Classes -

- -

Packages

- - - - - - diff --git a/projects/hibernate-maven-plugin-2.1.0/xref/overview-summary.html b/projects/hibernate-maven-plugin-2.1.0/xref/overview-summary.html deleted file mode 100644 index 6cd9e47..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref/overview-summary.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - Hibernate Maven Plugin 2.1.0 Reference - - - -
- -
-
- -
- -

Hibernate Maven Plugin 2.1.0 Reference

- - - - - - - - - - - - -
Packages
- de.juplo.plugins.hibernate -
- -
- -
-
- -
- -
- - - \ No newline at end of file diff --git a/projects/hibernate-maven-plugin-2.1.0/xref/stylesheet.css b/projects/hibernate-maven-plugin-2.1.0/xref/stylesheet.css deleted file mode 100644 index 89732f8..0000000 --- a/projects/hibernate-maven-plugin-2.1.0/xref/stylesheet.css +++ /dev/null @@ -1,114 +0,0 @@ -/* Javadoc style sheet */ -/* Define colors, fonts and other style attributes here to override the defaults */ -body { - background-color: #fff; - font-family: Arial, Helvetica, sans-serif; -} - -a:link { - color: #00f; -} -a:visited { - color: #00a; -} - -a:active, a:hover { - color: #f30 !important; -} - -ul, li { - list-style-type:none; - margin:0; - padding:0; -} - -table td { - padding: 3px; - border: 1px solid #000; -} -table { - width:100%; - border: 1px solid #000; - border-collapse: collapse; -} - -div.overview { - background-color:#ddd; - padding: 4px 4px 4px 0; -} -div.overview li, div.framenoframe li { - display: inline; -} -div.framenoframe { - text-align: center; - font-size: x-small; -} -div.framenoframe li { - margin: 0 3px 0 3px; -} -div.overview li { - margin:3px 3px 0 3px; - padding: 4px; -} -li.selected { - background-color:#888; - color: #fff; - font-weight: bold; -} - -table.summary { - margin-bottom: 20px; -} -table.summary td, table.summary th { - font-weight: bold; - text-align: left; - padding: 3px; -} -table.summary th { - background-color:#036; - color: #fff; -} -table.summary td { - background-color:#eee; - border: 1px solid black; -} - -em { - color: #A00; -} -em.comment { - color: #390; -} -.string { - color: #009; -} - -#overview { - padding:2px; -} - -hr { - height: 1px; - color: #000; -} - -/* JXR style sheet */ -.jxr_comment -{ - color: #390; -} - -.jxr_javadoccomment -{ - color: #A00; -} - -.jxr_string -{ - color: #009; -} - -.jxr_keyword -{ - color: #000; -} diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/allclasses-frame.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/allclasses-frame.html new file mode 100644 index 0000000..d491a69 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/allclasses-frame.html @@ -0,0 +1,26 @@ + + + + + + +All Classes (Hibernate Maven Plugin 2.1.0 API) + + + + + +

All Classes

+
+ +
+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/allclasses-noframe.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/allclasses-noframe.html new file mode 100644 index 0000000..1de8667 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/allclasses-noframe.html @@ -0,0 +1,26 @@ + + + + + + +All Classes (Hibernate Maven Plugin 2.1.0 API) + + + + + +

All Classes

+
+ +
+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/constant-values.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/constant-values.html new file mode 100644 index 0000000..0a764d0 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/constant-values.html @@ -0,0 +1,202 @@ + + + + + + +Constant Field Values (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

de.juplo.*

+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/AbstractSchemaMojo.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/AbstractSchemaMojo.html new file mode 100644 index 0000000..801592c --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/AbstractSchemaMojo.html @@ -0,0 +1,494 @@ + + + + + + +AbstractSchemaMojo (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.juplo.plugins.hibernate
+

Class AbstractSchemaMojo

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    +
    +
    +
    Direct Known Subclasses:
    +
    CreateMojo, DropMojo, UpdateMojo
    +
    +
    +
    +
    public abstract class AbstractSchemaMojo
    +extends org.apache.maven.plugin.AbstractMojo
    +
    Baseclass with common attributes and methods.
    +
    +
    Phase:
    +
    process-classes
    +
    Thread Safe:
    +
    Requires Dependency Resolution:
    +
    runtime
    +
    +
  • +
+
+
+ +
+
+ +
+
+ + +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/CreateMojo.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/CreateMojo.html new file mode 100644 index 0000000..42a70d1 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/CreateMojo.html @@ -0,0 +1,339 @@ + + + + + + +CreateMojo (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.juplo.plugins.hibernate
+

Class CreateMojo

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    +
    +
    +
    +
    public class CreateMojo
    +extends AbstractSchemaMojo
    +
    Generate/Execute SQL to create a database-schema that represents the + configured mappings.
    +
    +
    Goal:
    +
    create
    +
    Phase:
    +
    process-classes
    +
    Thread Safe:
    +
    Requires Dependency Resolution:
    +
    runtime
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CreateMojo

        +
        public CreateMojo()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        execute

        +
        public final void execute()
        +                   throws org.apache.maven.plugin.MojoFailureException,
        +                          org.apache.maven.plugin.MojoExecutionException
        +
        +
        Throws:
        +
        org.apache.maven.plugin.MojoFailureException
        +
        org.apache.maven.plugin.MojoExecutionException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/DropMojo.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/DropMojo.html new file mode 100644 index 0000000..55c69d6 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/DropMojo.html @@ -0,0 +1,339 @@ + + + + + + +DropMojo (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.juplo.plugins.hibernate
+

Class DropMojo

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    +
    +
    +
    +
    public class DropMojo
    +extends AbstractSchemaMojo
    +
    Generate/Execute SQL to drop all tables of a database-schema that represents + the configured mappings.
    +
    +
    Goal:
    +
    drop
    +
    Phase:
    +
    process-classes
    +
    Thread Safe:
    +
    Requires Dependency Resolution:
    +
    runtime
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DropMojo

        +
        public DropMojo()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        execute

        +
        public final void execute()
        +                   throws org.apache.maven.plugin.MojoFailureException,
        +                          org.apache.maven.plugin.MojoExecutionException
        +
        +
        Throws:
        +
        org.apache.maven.plugin.MojoFailureException
        +
        org.apache.maven.plugin.MojoExecutionException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/HelpMojo.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/HelpMojo.html new file mode 100644 index 0000000..8228c74 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/HelpMojo.html @@ -0,0 +1,318 @@ + + + + + + +HelpMojo (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.juplo.plugins.hibernate
+

Class HelpMojo

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    +
    +
    +
    +
    public class HelpMojo
    +extends org.apache.maven.plugin.AbstractMojo
    +
    Display help information on hibernate-maven-plugin.
    + Call mvn hibernate:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
    +
    +
    Author:
    +
    maven-plugin-tools
    +
    Goal:
    +
    help
    +
    Thread Safe:
    +
    Requires Project:
    +
    false
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HelpMojo

        +
        public HelpMojo()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        execute

        +
        public void execute()
        +             throws org.apache.maven.plugin.MojoExecutionException
        +
        +
        Throws:
        +
        org.apache.maven.plugin.MojoExecutionException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/ModificationTracker.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/ModificationTracker.html new file mode 100644 index 0000000..1960f38 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/ModificationTracker.html @@ -0,0 +1,201 @@ + + + + + + +ModificationTracker (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.juplo.plugins.hibernate
+

Class ModificationTracker

+
+
+ +
+
    +
  • +
    +
    +
    public class ModificationTracker
    +extends Object
    +
    +
    Author:
    +
    Kai Moritz
    +
    +
  • +
+
+
+ +
+
+ + +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/MutableClassLoader.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/MutableClassLoader.html new file mode 100644 index 0000000..e9a8ec5 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/MutableClassLoader.html @@ -0,0 +1,435 @@ + + + + + + +MutableClassLoader (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.juplo.plugins.hibernate
+

Class MutableClassLoader

+
+
+ +
+
    +
  • +
    +
    +
    public class MutableClassLoader
    +extends ClassLoader
    +
    +
    Author:
    +
    kai
    +
    +
  • +
+
+
+ +
+
+ +
+
+ + +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/UpdateMojo.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/UpdateMojo.html new file mode 100644 index 0000000..c636e04 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/UpdateMojo.html @@ -0,0 +1,339 @@ + + + + + + +UpdateMojo (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.juplo.plugins.hibernate
+

Class UpdateMojo

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    +
    +
    +
    +
    public class UpdateMojo
    +extends AbstractSchemaMojo
    +
    Generate/Execute SQL to update the database-schema according to the + configured mappings.
    +
    +
    Goal:
    +
    update
    +
    Phase:
    +
    process-classes
    +
    Thread Safe:
    +
    Requires Dependency Resolution:
    +
    runtime
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UpdateMojo

        +
        public UpdateMojo()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        execute

        +
        public final void execute()
        +                   throws org.apache.maven.plugin.MojoFailureException,
        +                          org.apache.maven.plugin.MojoExecutionException
        +
        +
        Throws:
        +
        org.apache.maven.plugin.MojoFailureException
        +
        org.apache.maven.plugin.MojoExecutionException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/AbstractSchemaMojo.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/AbstractSchemaMojo.html new file mode 100644 index 0000000..3f55edd --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/AbstractSchemaMojo.html @@ -0,0 +1,166 @@ + + + + + + +Uses of Class de.juplo.plugins.hibernate.AbstractSchemaMojo (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
de.juplo.plugins.hibernate.AbstractSchemaMojo

+
+
+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/CreateMojo.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/CreateMojo.html new file mode 100644 index 0000000..0ba9d8e --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/CreateMojo.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Class de.juplo.plugins.hibernate.CreateMojo (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
de.juplo.plugins.hibernate.CreateMojo

+
+
No usage of de.juplo.plugins.hibernate.CreateMojo
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/DropMojo.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/DropMojo.html new file mode 100644 index 0000000..ee3bc6d --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/DropMojo.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Class de.juplo.plugins.hibernate.DropMojo (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
de.juplo.plugins.hibernate.DropMojo

+
+
No usage of de.juplo.plugins.hibernate.DropMojo
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/HelpMojo.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/HelpMojo.html new file mode 100644 index 0000000..51e8788 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/HelpMojo.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Class de.juplo.plugins.hibernate.HelpMojo (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
de.juplo.plugins.hibernate.HelpMojo

+
+
No usage of de.juplo.plugins.hibernate.HelpMojo
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/ModificationTracker.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/ModificationTracker.html new file mode 100644 index 0000000..06ce7e4 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/ModificationTracker.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Class de.juplo.plugins.hibernate.ModificationTracker (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
de.juplo.plugins.hibernate.ModificationTracker

+
+
No usage of de.juplo.plugins.hibernate.ModificationTracker
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/MutableClassLoader.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/MutableClassLoader.html new file mode 100644 index 0000000..531ffa6 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/MutableClassLoader.html @@ -0,0 +1,149 @@ + + + + + + +Uses of Class de.juplo.plugins.hibernate.MutableClassLoader (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
de.juplo.plugins.hibernate.MutableClassLoader

+
+
+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/UpdateMojo.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/UpdateMojo.html new file mode 100644 index 0000000..92afddb --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/class-use/UpdateMojo.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Class de.juplo.plugins.hibernate.UpdateMojo (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
de.juplo.plugins.hibernate.UpdateMojo

+
+
No usage of de.juplo.plugins.hibernate.UpdateMojo
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/package-frame.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/package-frame.html new file mode 100644 index 0000000..a799239 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/package-frame.html @@ -0,0 +1,27 @@ + + + + + + +de.juplo.plugins.hibernate (Hibernate Maven Plugin 2.1.0 API) + + + + + +

de.juplo.plugins.hibernate

+
+

Classes

+ +
+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/package-summary.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/package-summary.html new file mode 100644 index 0000000..86f5559 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/package-summary.html @@ -0,0 +1,179 @@ + + + + + + +de.juplo.plugins.hibernate (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Package de.juplo.plugins.hibernate

+
+
+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/package-tree.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/package-tree.html new file mode 100644 index 0000000..8d1aba0 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/package-tree.html @@ -0,0 +1,150 @@ + + + + + + +de.juplo.plugins.hibernate Class Hierarchy (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package de.juplo.plugins.hibernate

+
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/package-use.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/package-use.html new file mode 100644 index 0000000..0591932 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/de/juplo/plugins/hibernate/package-use.html @@ -0,0 +1,147 @@ + + + + + + +Uses of Package de.juplo.plugins.hibernate (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
de.juplo.plugins.hibernate

+
+
+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/deprecated-list.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/deprecated-list.html new file mode 100644 index 0000000..7502994 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Deprecated List (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/help-doc.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/help-doc.html new file mode 100644 index 0000000..082133c --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +API Help (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+ +This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/index-all.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/index-all.html new file mode 100644 index 0000000..8f14ee8 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/index-all.html @@ -0,0 +1,285 @@ + + + + + + +Index (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E G H L M O P S T U  + + +

A

+
+
AbstractSchemaMojo - Class in de.juplo.plugins.hibernate
+
+
Baseclass with common attributes and methods.
+
+
AbstractSchemaMojo() - Constructor for class de.juplo.plugins.hibernate.AbstractSchemaMojo
+
 
+
add(LinkedHashSet<URL>) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
+
 
+
+ + + +

C

+
+
clearAssertionStatus() - Method in class de.juplo.plugins.hibernate.MutableClassLoader
+
 
+
CreateMojo - Class in de.juplo.plugins.hibernate
+
+
Generate/Execute SQL to create a database-schema that represents the + configured mappings.
+
+
CreateMojo() - Constructor for class de.juplo.plugins.hibernate.CreateMojo
+
 
+
+ + + +

D

+
+
de.juplo.plugins.hibernate - package de.juplo.plugins.hibernate
+
 
+
DropMojo - Class in de.juplo.plugins.hibernate
+
+
Generate/Execute SQL to drop all tables of a database-schema that represents + the configured mappings.
+
+
DropMojo() - Constructor for class de.juplo.plugins.hibernate.DropMojo
+
 
+
+ + + +

E

+
+
EXECUTE - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
+
 
+
execute(String) - Method in class de.juplo.plugins.hibernate.AbstractSchemaMojo
+
 
+
execute() - Method in class de.juplo.plugins.hibernate.CreateMojo
+
 
+
execute() - Method in class de.juplo.plugins.hibernate.DropMojo
+
 
+
execute() - Method in class de.juplo.plugins.hibernate.HelpMojo
+
execute() - Method in class de.juplo.plugins.hibernate.UpdateMojo
+
 
+
+ + + +

G

+
+
getResource(String) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
+
 
+
getResourceAsStream(String) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
+
 
+
getResources(String) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
+
 
+
+ + + +

H

+
+
HelpMojo - Class in de.juplo.plugins.hibernate
+
+
Display help information on hibernate-maven-plugin.
+
+
HelpMojo() - Constructor for class de.juplo.plugins.hibernate.HelpMojo
+
 
+
+ + + +

L

+
+
loadClass(String) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
+
 
+
+ + + +

M

+
+
ModificationTracker - Class in de.juplo.plugins.hibernate
+
 
+
MutableClassLoader - Class in de.juplo.plugins.hibernate
+
 
+
MutableClassLoader(LinkedHashSet<URL>, Log) - Constructor for class de.juplo.plugins.hibernate.MutableClassLoader
+
 
+
+ + + +

O

+
+
OUTPUTDIRECTORY - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
+
 
+
+ + + +

P

+
+
printStrackTrace(StringBuilder, Throwable) - Static method in class de.juplo.plugins.hibernate.AbstractSchemaMojo
+
 
+
+ + + +

S

+
+
SCAN_CLASSES - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
+
 
+
SCAN_DEPENDENCIES - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
+
 
+
SCAN_TESTCLASSES - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
+
 
+
SCRIPT - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
+
 
+
setClassAssertionStatus(String, boolean) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
+
 
+
setDefaultAssertionStatus(boolean) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
+
 
+
setPackageAssertionStatus(String, boolean) - Method in class de.juplo.plugins.hibernate.MutableClassLoader
+
 
+
SKIPPED - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
+
 
+
+ + + +

T

+
+
TEST_OUTPUTDIRECTORY - Static variable in class de.juplo.plugins.hibernate.AbstractSchemaMojo
+
 
+
+ + + +

U

+
+
UpdateMojo - Class in de.juplo.plugins.hibernate
+
+
Generate/Execute SQL to update the database-schema according to the + configured mappings.
+
+
UpdateMojo() - Constructor for class de.juplo.plugins.hibernate.UpdateMojo
+
 
+
+A C D E G H L M O P S T U 
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/index.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/index.html new file mode 100644 index 0000000..d3110ee --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/index.html @@ -0,0 +1,73 @@ + + + + + + +Hibernate Maven Plugin 2.1.0 API + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="de/juplo/plugins/hibernate/package-summary.html">Non-frame version</a>.</p> + + + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/overview-tree.html b/projects/hibernate-maven-plugin/2.1.0/apidocs/overview-tree.html new file mode 100644 index 0000000..f2cc465 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/overview-tree.html @@ -0,0 +1,154 @@ + + + + + + +Class Hierarchy (Hibernate Maven Plugin 2.1.0 API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/package-list b/projects/hibernate-maven-plugin/2.1.0/apidocs/package-list new file mode 100644 index 0000000..4e11658 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/package-list @@ -0,0 +1 @@ +de.juplo.plugins.hibernate diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/script.js b/projects/hibernate-maven-plugin/2.1.0/apidocs/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/projects/hibernate-maven-plugin/2.1.0/apidocs/stylesheet.css b/projects/hibernate-maven-plugin/2.1.0/apidocs/stylesheet.css new file mode 100644 index 0000000..98055b2 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/apidocs/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/projects/hibernate-maven-plugin/2.1.0/configuration.html b/projects/hibernate-maven-plugin/2.1.0/configuration.html new file mode 100644 index 0000000..2305e1f --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/configuration.html @@ -0,0 +1,748 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin — Configuration Examples + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Configuration Examples
+

+
+
+ + + + +

Configuration Examples

+ +
+

Configuration Through A Configuration-File

+ +

+ The most simple way to configure the plugin is, to put all the + hibernate-configuration in a hibernate.properties- or + a hibernate.cfg.xml-file on your classpath or in the + persistence.xml-file of your JPA-configuration, just + like you would do, if you are not using the + hibernate-maven-plugin. +

+ +

+ Doing so, the only additionally configuration needed, to activat the plugin + is the following entry in the plugins-section of your pom.xml: +

+ +
+
+<plugin>
+  <groupId>de.juplo</groupId>
+  <artifactId>hibernate-maven-plugin</artifactId>
+  <version>2.1.0</version>
+  <executions>
+    <execution>
+      <goals>
+        <goal>create</goal>
+      </goals>
+    </execution>
+  </executions>
+</plugin>
+ +

+ This would create the configured database. + If you want it to be droped beforehand, you have to add the goal + drop: +

+ +
+
+<plugin>
+  <groupId>de.juplo</groupId>
+  <artifactId>hibernate-maven-plugin</artifactId>
+  <version>2.1.0</version>
+  <executions>
+    <execution>
+      <goals>
+        <goal>drop</goal>
+        <goal>create</goal>
+      </goals>
+    </execution>
+  </executions>
+</plugin>
+ +

+ A correspondin goal for the command update is missing in this + version, but we are planning to implement it in near feature. +

+ +

+ In order to let this configuration work, your configuration file must + contain a complete valid configuration for the database, that you want + to use. + A simple example hibernate.properties-file may look like this: +

+ +
+
+hibernate.dialect=org.hibernate.dialect.H2Dialect
+hibernate.connection.url=jdbc:h2:file:./target/db
+hibernate.connection.driver_class=org.h2.Driver
+hibernate.connection.username=sa
+hibernate.connection.password=
+ +

+ But be aware, that using this configuration-approach the database-url, + that is build in the application is the same that is used while testing, + where the database is droped and recreated by the plugin. + Because of that, + + you should never fire up this configuration on your production + system, or your database might be erased! + +

+ +

+ A better approach is, to specify a different url for testing like in the + following snippet: +

+ +
+
+<plugin>
+  <groupId>de.juplo</groupId>
+  <artifactId>hibernate-maven-plugin</artifactId>
+  <version>2.1.0</version>
+  <executions>
+    <execution>
+      <goals>
+        <goal>drop</goal>
+        <goal>create</goal>
+      </goals>
+    </execution>
+  </executions>
+  <configuration>
+    <url><![CDATA[jdbc:mysql://localhost/test-db]]></url>
+  </configuration>
+</plugin>
+ +

+ Configuration properties, that are set in the configuration-section + of the plugin-configuration cannnot be overwritten elsewere (for details + see Configuration-Method-Precedence). + You never can overwrite them by accident when specifying a property on + the commandline or in your settings.xml. +

+
+
+

Configuration through maven-properties

+ +

+ Alternatively, it is possible, to configure the plugin via maven-properties. + Each relevant configuration-option has a corresponding maven-property + (for a full list see the Documentation of the goal create). + These are named after the + Hibernate JDBC Properties: +

+ +
    + +
  • hibernate.connection.driver_class
  • + +
  • hibernate.dialect
  • + +
  • hibernate.connection.url
  • + +
  • hibernate.connection.username
  • + +
  • hibernate.connection.password
  • +
+ +

+ So, instead of writing the hibernate-configuration in the properties-file, + like above, you could put it in the properties-section of your + pom.xml. +

+ +

+ Thogether with the plugin-definition from above, the following would + be a complete configuration (again, the database-url was overwritten in + the plugin-configuration, to be sure to have a separate database for + testing): +

+ +
+
+<properties>
+  <hibernate.connection.driver_class>org.hsqldb.jdbcDriver</hibernate.connection.driver_class>
+  <hibernate.dialect>org.hibernate.dialect.HSQLDialect</hibernate.dialect>
+  <hibernate.connection.url><![CDATA[jdbc:hsqldb:res:org.my.path.production_db]]></hibernate.connection.url>
+  <hibernate.connection.username>sa</hibernate.connection.username>
+  <hibernate.connection.password></hibernate.connection.password>
+</properties>
+
+...
+
+<plugins>
+
+  ...
+
+  <plugin>
+    <groupId>de.juplo</groupId>
+    <artifactId>hibernate-maven-plugin</artifactId>
+    <version>2.1.0</version>
+    <executions>
+      <execution>
+        <goals>
+          <goal>drop</goal>
+          <goal>create</goal>
+        </goals>
+      </execution>
+    </executions>
+    <configuration>
+      <url><![CDATA[jdbc:hsqldb:target/db/testdb;shutdown=true]]></url>
+    </configuration>
+  </plugin>
+
+<plugins>
+ +

+ This way, you can reuse the same properties to provide a + default-configurationthe, that is build into your application, and + overwrite the database-url, that is used during testing to prevent + accidential drops of your production database. +

+
+
+

Configuration through the plugin-configuration

+ +

+ A third way for configuring the plugin is the plugin-configuration. + The relevant configuration-parameters are: +

+ +
    + +
  • driver
  • + +
  • dialect
  • + +
  • url
  • + +
  • username
  • + +
  • password
  • +
+ +

+ The equivalent of the configuration from the last section would look + like this: +

+ +
+
+<plugin>
+  <groupId>de.juplo</groupId>
+  <artifactId>hibernate-maven-plugin</artifactId>
+  <version>2.1.0</version>
+  <executions>
+    <execution>
+      <goals>
+        <goal>drop</goal>
+        <goal>create</goal>
+      </goals>
+    </execution>
+  </executions>
+  <configuration>
+    <driver>org.hsqldb.jdbcDriver</driver>
+    <dialect>org.hibernate.dialect.HSQLDialect</dialect>
+    <url><![CDATA[jdbc:hsqldb:target/db/fotos;shutdown=true]]></url>
+    <username>sa</username>
+    <password></password>
+  </configuration>
+</plugin>
+ +

+ The parameter hibernateProperties (name of the hibernate-properties-file + to use, defaults to hibernate.properties) can only be configured through + this approach. +

+ +

+ For more explanations, see the + Documentation of the goal create. +

+
+
+

Configuration-Method-Precedence

+ +

+ The configuration is gathered in a fix order: +

+ +
    + +
  1. hibernate.properties
  2. + +
  3. hibernate.cfg.xml
  4. + +
  5. persistence.xml
  6. + +
  7. maven-properties
  8. + +
  9. plugin-configuration
  10. +
+ +

+ If you are in doubt about where a configuration-value comes from, run + maven with the debug-output enabled: mvn -X hibernate:create + and be aware, that maven-properties can be overwitten on the command-line, + in your ~/.m2/settings.xml and in a profile. +

+ +

+ The plugin-configuration comes last and overwrites everything else. + That way, you can be sure, that a configuration-value, that is + specified in the plugin-configuration will never be overwritten by any + other configuration-method. +

+ +

+ If you need to overwrite plugin-configuration-values with + maven-properties, you can use maven-properties in the plugin-configuration: +

+ +
+
+<plugin>
+  <groupId>de.juplo</groupId>
+  <artifactId>hibernate-maven-plugin</artifactId>
+  <version>2.1.0</version>
+  <executions>
+    <execution>
+      <goals>
+        <goal>drop</goal>
+        <goal>create</goal>
+      </goals>
+    </execution>
+  </executions>
+  <configuration>
+    <password>${my-password-property}</password>
+  </configuration>
+</plugin>
+
+ +
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/cpd.html b/projects/hibernate-maven-plugin/2.1.0/cpd.html new file mode 100644 index 0000000..4701165 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/cpd.html @@ -0,0 +1,500 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – CPD Results + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Project Reports
  3. CPD
+

+
+
+
+

CPD Results

+

The following document contains the results of PMD's CPD 5.2.3.

+
+

Duplications

+ + + + + + + + + + +
FileLine
de/juplo/plugins/hibernate/CreateMojo.java41
de/juplo/plugins/hibernate/DropMojo.java41
+
+
public class CreateMojo extends AbstractSchemaMojo
+{
+  /**
+   * Output file.
+   * <p>
+   * If the specified filename is not absolut, the file will be created
+   * relative to the project build directory
+   * (<code>project.build.directory</code>).
+   *
+   * @parameter property="hibernate.schema.create" default-value="create.sql"
+   * @since 1.0
+   */
+  private String outputFile;
+
+
+  @Override
+  public final void execute()
+    throws
+      MojoFailureException,
+      MojoExecutionException
+  {
+    super.execute(outputFile);
+  }
+
+
+  @Override
+  void build(
+      MetadataImplementor metadata,
+      ExecutionOptions options,
+      TargetDescriptor target
+      )
+      throws
+        MojoExecutionException,
+        MojoFailureException
+  {
+    ServiceRegistry service =
+        metadata.getMetadataBuildingOptions().getServiceRegistry();
+    SchemaManagementTool tool = service.getService(SchemaManagementTool.class);
+
+    Map config = options.getConfigurationValues();
+    SourceDescriptor source = new SourceDescriptor()
+    {
+	  @Override
+      public SourceType getSourceType()
+      {
+        return SourceType.METADATA;
+      }
+
+      @Override
+      public ScriptSourceInput getScriptSourceInput()
+      {
+        return null;
+      }
+    };
+
+    tool.getSchemaCreator(config).doCreation(metadata, options, source, target);
+
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/create-mojo.html b/projects/hibernate-maven-plugin/2.1.0/create-mojo.html new file mode 100644 index 0000000..72b3a2c --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/create-mojo.html @@ -0,0 +1,1343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – hibernate:create + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Goal: CREATE
+

+
+
+ + +
+

hibernate:create

+ +

Full name:

+ +

de.juplo:hibernate-maven-plugin:2.1.0:create

+ +

Description:

+ +
Generate/Execute SQL to create a database-schema that represents +the configured mappings.
+ +

Attributes:

+ +
    + +
  • Requires a Maven project to be executed.
  • + +
  • Requires dependency resolution of artifacts in scope: runtime.
  • + +
  • The goal is thread-safe and supports parallel builds.
  • + +
  • Binds by default to the lifecycle phase: process-classes.
  • +
+ +
+

Optional Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeSinceDescription
createNamespacesBoolean2.0Specifies whether to automatically create also the database +schema/catalog.
Default value is: false.
User property is: hibernate.hbm2dll.create_namespaces.
delimiterString1.0Delimiter in output-file. + +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


Default value is: ;.
User property is: hibernate.hbm2ddl.delimiter.
dialectString1.0Hibernate dialect.
User property is: hibernate.dialect.
driverString1.0SQL-Driver name.
User property is: hibernate.connection.driver_class.
executeBoolean2.0Excecute the generated SQL. If set to false, only the +SQL-script is created and the database is not touched. + +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


Default value is: true.
User property is: hibernate.schema.execute.
forceboolean1.0Force generation/execution + +

Force the generation and (if configured) the execution of the +SQL, even if no modified or newly added annotated classes where +found and the configuration was not changed.

+ +

skip takes precedence over force.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


Default value is: false.
User property is: hibernate.schema.force.
formatBoolean1.0Format output-file.
User property is: hibernate.format_sql.
hibernateConfigString1.1.0Path to Hibernate configuration file (.cfg.xml). If this parameter +is specified, the plugin will try to load configuration values from +a file with the given path or a ressource on the classpath with the +given name. If both fails, the execution of the plugin will fail. + +

If this parameter is not set the plugin will load configuration +values from a ressource named hibernate.cfg.xml on the +classpath, if it is present, but will not fail if there is no such +ressource.

+ +

During ressource-lookup, the test-classpath takes +precedence.

+ +

Settings in this file will overwrite settings in the properties +file.


hibernatePropertiesString1.0Path to a file or name of a ressource with hibernate properties. If +this parameter is specified, the plugin will try to load +configuration values from a file with the given path or a ressource +on the classpath with the given name. If both fails, the execution +of the plugin will fail. + +

If this parameter is not set the plugin will load configuration +values from a ressource named hibernate.properties on +the classpath, if it is present, but will not fail if there is no +such ressource.

+ +

During ressource-lookup, the test-classpath takes +precedence.


implicitNamingStrategyString2.0Implicit naming strategy
User property is: hibernate.implicit_naming_strategy.
mappingsString1.0.2List of Hibernate-Mapping-Files (XML). Multiple files can be +separated with white-spaces and/or commas.
User property is: hibernate.mapping.
outputDirectoryString1.0Classes-Directory to scan. + +

This parameter defaults to the maven build-output-directory for +classes. Additionally, all dependencies are scanned for annotated +classes.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


User property is: project.build.outputDirectory.
outputFileString1.0Output file. + +

If the specified filename is not absolut, the file will be +created relative to the project build directory +(project.build.directory).


Default value is: create.sql.
User property is: hibernate.schema.create.
passwordString1.0Database password
User property is: hibernate.connection.password.
persistenceUnitString1.1.0Name of the persistence-unit. If this parameter is specified, the +plugin will try to load configuration values from a +persistence-unit with the specified name. If no such +persistence-unit can be found, the plugin will throw an exception. + +

If this parameter is not set and there is only one +persistence-unit available, that unit will be used automatically. +But if this parameter is not set and there are multiple +persistence-units available on, the class-path, the execution of +the plugin will fail.

+ +

Settings in this file will overwrite settings in the properties +or the configuration file.


physicalNamingStrategyString2.0Physical naming strategy
User property is: hibernate.physical_naming_strategy.
scanClassesBoolean2.0Wether the project should be scanned for annotated-classes, or not + +

This parameter is intended to allow overwriting of the parameter +exclude-unlisted-classes of a +persistence-unit. If not specified, it defaults to +true


User property is: hibernate.schema.scan.classes.
scanDependenciesString1.0.3Dependency-Scopes, that should be scanned for annotated classes. + +

By default, only dependencies in the scope compile +are scanned for annotated classes. Multiple scopes can be seperated +by white space or commas.

+ +

If you do not want any dependencies to be scanned for annotated +classes, set this parameter to none.

+ +

The plugin does not scan for annotated classes in transitive +dependencies. If some of your annotated classes are hidden in a +transitive dependency, you can simply add that dependency +explicitly.


Default value is: compile.
User property is: hibernate.schema.scan.dependencies.
scanTestClassesBoolean1.0.1Whether to scan the test-branch of the project for annotated +classes, or not. + +

If this parameter is set to true the test-classes +of the artifact will be scanned for hibernate-annotated classes +additionally.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


Default value is: false.
User property is: hibernate.schema.scan.test_classes.
showBoolean1.0Show the generated SQL in the command-line output.
User property is: hibernate.show_sql.
skipboolean1.0Skip execution + +

If set to true, the execution is skipped.

+ +

A skipped execution is signaled via the maven-property +${hibernate.schema.skipped}.

+ +

The execution is skipped automatically, if no modified or newly +added annotated classes are found and the dialect was not +changed.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


Default value is: ${maven.test.skip}.
User property is: hibernate.schema.skip.
testOutputDirectoryString1.0.2Test-Classes-Directory to scan. + +

This parameter defaults to the maven build-output-directory for +test-classes.

+ +

This parameter is only used, when scanTestClasses +is set to true!

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


User property is: project.build.testOutputDirectory.
urlString1.0Database URL.
User property is: hibernate.connection.url.
usernameString1.0Database username
User property is: hibernate.connection.username.
+
+ +
+

Parameter Details

+ +

createNamespaces:

+ +
Specifies whether to automatically create also the database +schema/catalog.
+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 2.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.hbm2dll.create_namespaces
  • + +
  • Default: false
  • +

+

delimiter:

+ +
Delimiter in output-file. + +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.hbm2ddl.delimiter
  • + +
  • Default: ;
  • +

+

dialect:

+ +
Hibernate dialect.
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.dialect
  • +

+

driver:

+ +
SQL-Driver name.
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.connection.driver_class
  • +

+

execute:

+ +
Excecute the generated SQL. If set to false, only the +SQL-script is created and the database is not touched. + +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 2.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.execute
  • + +
  • Default: true
  • +

+

force:

+ +
Force generation/execution + +

Force the generation and (if configured) the execution of the +SQL, even if no modified or newly added annotated classes where +found and the configuration was not changed.

+ +

skip takes precedence over force.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: boolean
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.force
  • + +
  • Default: false
  • +

+

format:

+ +
Format output-file.
+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.format_sql
  • +

+

hibernateConfig:

+ +
Path to Hibernate configuration file (.cfg.xml). If this parameter +is specified, the plugin will try to load configuration values from +a file with the given path or a ressource on the classpath with the +given name. If both fails, the execution of the plugin will fail. + +

If this parameter is not set the plugin will load configuration +values from a ressource named hibernate.cfg.xml on the +classpath, if it is present, but will not fail if there is no such +ressource.

+ +

During ressource-lookup, the test-classpath takes +precedence.

+ +

Settings in this file will overwrite settings in the properties +file.

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.1.0
  • + +
  • Required: No
  • +

+

hibernateProperties:

+ +
Path to a file or name of a ressource with hibernate properties. If +this parameter is specified, the plugin will try to load +configuration values from a file with the given path or a ressource +on the classpath with the given name. If both fails, the execution +of the plugin will fail. + +

If this parameter is not set the plugin will load configuration +values from a ressource named hibernate.properties on +the classpath, if it is present, but will not fail if there is no +such ressource.

+ +

During ressource-lookup, the test-classpath takes +precedence.

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • +

+

implicitNamingStrategy:

+ +
Implicit naming strategy
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 2.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.implicit_naming_strategy
  • +

+

mappings:

+ +
List of Hibernate-Mapping-Files (XML). Multiple files can be +separated with white-spaces and/or commas.
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0.2
  • + +
  • Required: No
  • + +
  • User Property: hibernate.mapping
  • +

+

outputDirectory:

+ +
Classes-Directory to scan. + +

This parameter defaults to the maven build-output-directory for +classes. Additionally, all dependencies are scanned for annotated +classes.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: project.build.outputDirectory
  • +

+

outputFile:

+ +
Output file. + +

If the specified filename is not absolut, the file will be +created relative to the project build directory +(project.build.directory).

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.create
  • + +
  • Default: create.sql
  • +

+

password:

+ +
Database password
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.connection.password
  • +

+

persistenceUnit:

+ +
Name of the persistence-unit. If this parameter is specified, the +plugin will try to load configuration values from a +persistence-unit with the specified name. If no such +persistence-unit can be found, the plugin will throw an exception. + +

If this parameter is not set and there is only one +persistence-unit available, that unit will be used automatically. +But if this parameter is not set and there are multiple +persistence-units available on, the class-path, the execution of +the plugin will fail.

+ +

Settings in this file will overwrite settings in the properties +or the configuration file.

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.1.0
  • + +
  • Required: No
  • +

+

physicalNamingStrategy:

+ +
Physical naming strategy
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 2.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.physical_naming_strategy
  • +

+

scanClasses:

+ +
Wether the project should be scanned for annotated-classes, or not + +

This parameter is intended to allow overwriting of the parameter +exclude-unlisted-classes of a +persistence-unit. If not specified, it defaults to +true

+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 2.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.scan.classes
  • +

+

scanDependencies:

+ +
Dependency-Scopes, that should be scanned for annotated classes. + +

By default, only dependencies in the scope compile +are scanned for annotated classes. Multiple scopes can be seperated +by white space or commas.

+ +

If you do not want any dependencies to be scanned for annotated +classes, set this parameter to none.

+ +

The plugin does not scan for annotated classes in transitive +dependencies. If some of your annotated classes are hidden in a +transitive dependency, you can simply add that dependency +explicitly.

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0.3
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.scan.dependencies
  • + +
  • Default: compile
  • +

+

scanTestClasses:

+ +
Whether to scan the test-branch of the project for annotated +classes, or not. + +

If this parameter is set to true the test-classes +of the artifact will be scanned for hibernate-annotated classes +additionally.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 1.0.1
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.scan.test_classes
  • + +
  • Default: false
  • +

+

show:

+ +
Show the generated SQL in the command-line output.
+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.show_sql
  • +

+

skip:

+ +
Skip execution + +

If set to true, the execution is skipped.

+ +

A skipped execution is signaled via the maven-property +${hibernate.schema.skipped}.

+ +

The execution is skipped automatically, if no modified or newly +added annotated classes are found and the dialect was not +changed.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: boolean
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.skip
  • + +
  • Default: ${maven.test.skip}
  • +

+

testOutputDirectory:

+ +
Test-Classes-Directory to scan. + +

This parameter defaults to the maven build-output-directory for +test-classes.

+ +

This parameter is only used, when scanTestClasses +is set to true!

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0.2
  • + +
  • Required: No
  • + +
  • User Property: project.build.testOutputDirectory
  • +

+

url:

+ +
Database URL.
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.connection.url
  • +

+

username:

+ +
Database username
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.connection.username
  • +
+
+
+ + +
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/css/site.css b/projects/hibernate-maven-plugin/2.1.0/css/site.css new file mode 100644 index 0000000..055e7e2 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/css/site.css @@ -0,0 +1 @@ +/* You can override this file with your own styles */ \ No newline at end of file diff --git a/projects/hibernate-maven-plugin/2.1.0/debugging.html b/projects/hibernate-maven-plugin/2.1.0/debugging.html new file mode 100644 index 0000000..7828eea --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/debugging.html @@ -0,0 +1,462 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin — Enable Debugging-Output + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Enable Debugging-Output
+

+
+
+ + + + +

Enable Debugging-Output

+ +

+ If you are new to hibernate-maven-plugin, in many cases, the + Configuration-Method-Precedence + may be the source of configuration errors. + To solve this problem, you should run maven with the debugging output + enabled. + For example, by executing: +

+ +
+
+mvn -X compile hibernate:create
+ +

+ (The compile might be necessary, because hibernate-maven-plugin + has to scan the compiled classes for annotations!) +

+ +

+ Unlike the majority of the maven-plugins, hibernate-maven-plugin was + designed to give a good many hints, when debugging is enabled. + Because, if you do not know, what went wrong, you can't fix it! +

+ +

+ But be warned: hibernate-maven-plugin tends to be very chatty ;) +

+ + +
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/dependencies.html b/projects/hibernate-maven-plugin/2.1.0/dependencies.html new file mode 100644 index 0000000..b390f80 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/dependencies.html @@ -0,0 +1,2122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – Project Dependencies + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Project Information
  3. Dependencies
+

+
+
+ +
+

Project Dependencies

+
+

compile

+

The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
GroupIdArtifactIdVersionTypeLicenses
com.pyx4jmaven-plugin-log4j1.0.1jarThe Apache Software License, Version 2.0
de.juploscannotation1.0.4jar-
javax.eljavax.el-api3.0.0jarCDDL + GPLv2 with classpath exception
org.apache.mavenmaven-core3.3.3jarApache License, Version 2.0
org.apache.mavenmaven-plugin-api3.3.3jarApache License, Version 2.0
org.hibernatehibernate-core5.2.4.FinaljarGNU Lesser General Public License
org.hibernatehibernate-envers5.2.4.FinaljarGNU Lesser General Public License
org.hibernatehibernate-validator5.3.1.FinaljarApache License, Version 2.0
+
+

Project Transitive Dependencies

+

The following is a list of transitive dependencies for this project. Transitive dependencies are the dependencies of the project dependencies.

+
+

compile

+

The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
GroupIdArtifactIdVersionClassifierTypeLicenses
antlrantlr2.7.7-jarBSD License
aopallianceaopalliance1.0-jarPublic Domain
com.fasterxmlclassmate1.3.0-jarThe Apache Software License, Version 2.0
com.google.guavaguava18.0-jarThe Apache Software License, Version 2.0
dom4jdom4j1.6.1-jar-
javax.annotationjsr250-api1.0-jarCOMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
javax.elel-api2.2-jar-
javax.enterprisecdi-api1.1-jarApache License, Version 2.0
javax.injectjavax.inject1-jarThe Apache Software License, Version 2.0
javax.validationvalidation-api1.1.0.Final-jarThe Apache Software License, Version 2.0
log4jlog4j1.2.14-jarThe Apache Software License, Version 2.0
org.apache.geronimo.specsgeronimo-jta_1.1_spec1.1.1-jarThe Apache Software License, Version 2.0
org.apache.mavenmaven-aether-provider3.3.3-jarApache License, Version 2.0
org.apache.mavenmaven-artifact3.3.3-jarApache License, Version 2.0
org.apache.mavenmaven-builder-support3.3.3-jarApache License, Version 2.0
org.apache.mavenmaven-model3.3.3-jarApache License, Version 2.0
org.apache.mavenmaven-model-builder3.3.3-jarApache License, Version 2.0
org.apache.mavenmaven-repository-metadata3.3.3-jarApache License, Version 2.0
org.apache.mavenmaven-settings3.3.3-jarApache License, Version 2.0
org.apache.mavenmaven-settings-builder3.3.3-jarApache License, Version 2.0
org.codehaus.plexusplexus-classworlds2.5.2-jarThe Apache Software License, Version 2.0
org.codehaus.plexusplexus-component-annotations1.5.5-jarThe Apache Software License, Version 2.0
org.codehaus.plexusplexus-interpolation1.21-jarThe Apache Software License, Version 2.0
org.eclipse.aetheraether-api1.0.2.v20150114-jarEclipse Public License, Version 1.0
org.eclipse.aetheraether-impl1.0.2.v20150114-jarEclipse Public License, Version 1.0
org.eclipse.aetheraether-spi1.0.2.v20150114-jarEclipse Public License, Version 1.0
org.eclipse.aetheraether-util1.0.2.v20150114-jarEclipse Public License, Version 1.0
org.eclipse.sisuorg.eclipse.sisu.inject0.3.0-jarEclipse Public License, Version 1.0
org.eclipse.sisuorg.eclipse.sisu.plexus0.3.0-jarEclipse Public License, Version 1.0
org.hibernate.commonhibernate-commons-annotations5.0.1.Final-jarGNU Lesser General Public License
org.hibernate.javax.persistencehibernate-jpa-2.1-api1.0.0.Final-jarEclipse Public License (EPL), Version 1.0-Eclipse Distribution License (EDL), Version 1.0
org.javassistjavassist3.20.0-GA-jarMPL 1.1-LGPL 2.1-Apache License 2.0
org.jbossjandex2.0.0.Final-jarApache License, Version 2.0
org.jboss.loggingjboss-logging3.3.0.Final-jarApache License, version 2.0
org.jboss.spec.javax.interceptorhttp://jboss-interceptors-api_1.1_spec/1.0.0.Beta1-jarlgpl
org.sonatype.plexusplexus-cipher1.4-jarApache Public License 2.0
org.sonatype.plexusplexus-sec-dispatcher1.3-jarApache Public License 2.0
org.sonatype.sisusisu-guice3.2.5no_aopjarThe Apache Software License, Version 2.0
+
+

Project Dependency Graph

+ + +
+

Dependency Tree

+
+
+

Licenses

+

Apache License, version 2.0: JBoss Logging 3

+

Eclipse Public License (EPL), Version 1.0: Java Persistence API, Version 2.1

+

Apache Public License 2.0: Plexus Cipher: encryption/decryption Component, Plexus Security Dispatcher Component

+

lgpl: Interceptors 1.1 API

+

Public Domain: AOP alliance

+

GNU Lesser General Public License: Core Hibernate O/RM functionality, ENtity VERSioning support, Hibernate Commons Annotations

+

Eclipse Distribution License (EDL), Version 1.0: Java Persistence API, Version 2.1

+

Eclipse Public License, Version 1.0: Aether API, Aether Implementation, Aether SPI, Aether Utilities, org.eclipse.sisu.inject, org.eclipse.sisu.plexus

+

Unknown: Expression Language API (2.1 Maintenance Release), dom4j, scannotation

+

Apache License 2.0: Javassist

+

BSD License: AntLR Parser Generator

+

Apache License, Version 2.0: CDI APIs, Hibernate Validator Engine, Java Annotation Indexer, Maven Aether Provider, Maven Artifact, Maven Builder Support, Maven Core, Maven Model, Maven Model Builder, Maven Plugin API, Maven Repository Metadata Model, Maven Settings, Maven Settings Builder

+

COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0: JSR-250 Common Annotations for the JavaTM Platform

+

LGPL 2.1: Javassist

+

CDDL + GPLv2 with classpath exception: Expression Language 3.0 API

+

MPL 1.1: Javassist

+

The Apache Software License, Version 2.0: Bean Validation API, ClassMate, Guava: Google Core Libraries for Java, Hibernate Maven Plugin, JTA 1.1, Log4j, Plexus :: Component Annotations, Plexus Classworlds, Plexus Interpolation API, Sisu Guice - Core Library, javax.inject, maven-plugin-log4j

+
+

Dependency File Details

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FilenameSizeEntriesClassesPackagesJava VersionDebug Information
antlr-2.7.7.jar445.3 kB239224121.2Yes
aopalliance-1.0.jar4.5 kB15921.3Yes
classmate-1.3.0.jar64.1 kB523741.6Yes
guava-18.0.jar2.3 MB17191690171.6Yes
maven-plugin-log4j-1.0.1.jar3.7 kB12111.4Yes
scannotation-1.0.4.jar20.3 kB231321.6Yes
dom4j-1.6.1.jar313.9 kB208190141.3Yes
jsr250-api-1.0.jar5.8 kB161121.5Yes
el-api-2.2.jar33.9 kB382811.5Yes
javax.el-api-3.0.0.jar73.1 kB574611.7Yes
cdi-api-1.1.jar70.7 kB1189871.6Yes
javax.inject-1.jar2.5 kB8611.5No
validation-api-1.1.0.Final.jar63.8 kB12210681.6Yes
log4j-1.2.14.jar367.4 kB288256191.1Yes
geronimo-jta_1.1_spec-1.1.1.jar16 kB301821.5Yes
maven-aether-provider-3.3.3.jar66.3 kB432611.7Yes
maven-artifact-3.3.3.jar55.1 kB5732111.7Yes
maven-builder-support-3.3.3.jar15 kB241011.7Yes
maven-core-3.3.3.jar631.9 kB489390561.7Yes
maven-model-3.3.3.jar160.8 kB675031.7Yes
maven-model-builder-3.3.3.jar176.4 kB154121161.7Yes
maven-plugin-api-3.3.3.jar46.1 kB462561.7Yes
maven-repository-metadata-3.3.3.jar26 kB25721.7Yes
maven-settings-3.3.3.jar43 kB331721.7Yes
maven-settings-builder-3.3.3.jar43.2 kB533251.7Yes
plexus-classworlds-2.5.2.jar52.7 kB523751.6Yes
plexus-component-annotations-1.5.5.jar4.2 kB15311.5No
plexus-interpolation-1.21.jar62.5 kB604461.5Yes
aether-api-1.0.2.v20150114.jar136.3 kB149128111.5Yes
aether-impl-1.0.2.v20150114.jar173 kB1149641.5Yes
aether-spi-1.0.2.v20150114.jar30.7 kB543481.5Yes
aether-util-1.0.2.v20150114.jar146.9 kB126101131.5Yes
org.eclipse.sisu.inject-0.3.0.jar375.3 kB28726991.6Yes
org.eclipse.sisu.plexus-0.3.0.jar205.4 kB196164201.6Yes
hibernate-core-5.2.4.Final.jar6.4 MB464543172491.8Yes
hibernate-envers-5.2.4.Final.jar436.6 kB333278371.8Yes
hibernate-validator-5.3.1.Final.jar723.4 kB548458541.6Yes
hibernate-commons-annotations-5.0.1.Final.jar75.3 kB806771.6Yes
hibernate-jpa-2.1-api-1.0.0.Final.jar113.4 kB20720041.6Yes
javassist-3.20.0-GA.jar750.6 kB423399171.6Yes
jandex-2.0.0.Final.jar187.8 kB11210211.6Yes
jboss-logging-3.3.0.Final.jar66.8 kB604811.6Yes
jboss-interceptors-api_1.1_spec-1.0.0.Beta1.jar5.6 kB17811.5No
plexus-cipher-1.4.jar13.5 kB20611.4Yes
plexus-sec-dispatcher-1.3.jar28.6 kB311331.4Yes
sisu-guice-3.2.5-no_aop.jar399.7 kB33131681.6Yes
TotalSizeEntriesClassesPackagesJava VersionDebug Information
4615.4 MB11796105316561.843
compile: 46compile: 15.4 MBcompile: 11796compile: 10531compile: 656-compile: 43
+
+

Dependency Repository Locations

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Repo IDURLReleaseSnapshotBlacklisted
plexus.snapshotshttps://oss.sonatype.org/content/repositories/plexus-snapshotsNoYesNo
centralhttps://repo.maven.apache.org/maven2YesNoNo
codehaus-snapshotshttp://snapshots.repository.codehaus.orgNoYesYes
apache-snapshotshttp://people.apache.org/repo/m2-snapshot-repositoryNoYesYes
sonatype-nexus-snapshotshttps://oss.sonatype.org/content/repositories/snapshotsNoYesNo
jvnet-nexus-snapshotshttps://maven.java.net/content/repositories/snapshotsNoYesNo
apache-incubatorhttp://people.apache.org/repo/m2-incubating-repository/YesNoYes
jboss-public-repository-grouphttp://repository.jboss.org/nexus/content/groups/publicYesNoNo
apache.snapshotshttp://repository.apache.org/snapshotsNoYesNo
+

Repository locations for each of the Dependencies.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Artifactplexus.snapshotscentralsonatype-nexus-snapshotsjvnet-nexus-snapshotsjboss-public-repository-groupapache.snapshots
antlr:antlr:jar:2.7.7-Found at https://repo.maven.apache.org/maven2----
aopalliance:aopalliance:jar:1.0-Found at https://repo.maven.apache.org/maven2----
com.fasterxml:classmate:jar:1.3.0-Found at https://repo.maven.apache.org/maven2----
com.google.guava:guava:jar:18.0-Found at https://repo.maven.apache.org/maven2----
com.pyx4j:maven-plugin-log4j:jar:1.0.1-Found at https://repo.maven.apache.org/maven2----
de.juplo:scannotation:jar:1.0.4-Found at https://repo.maven.apache.org/maven2----
dom4j:dom4j:jar:1.6.1-Found at https://repo.maven.apache.org/maven2----
javax.annotation:jsr250-api:jar:1.0-Found at https://repo.maven.apache.org/maven2----
javax.el:el-api:jar:2.2-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
javax.el:javax.el-api:jar:3.0.0-Found at https://repo.maven.apache.org/maven2----
javax.enterprise:cdi-api:jar:1.1-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
javax.inject:javax.inject:jar:1-Found at https://repo.maven.apache.org/maven2----
javax.validation:validation-api:jar:1.1.0.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
log4j:log4j:jar:1.2.14-Found at https://repo.maven.apache.org/maven2----
org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-aether-provider:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-artifact:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-builder-support:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-core:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-model:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-model-builder:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-plugin-api:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-repository-metadata:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-settings:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.apache.maven:maven-settings-builder:jar:3.3.3-Found at https://repo.maven.apache.org/maven2----
org.codehaus.plexus:plexus-classworlds:jar:2.5.2-Found at https://repo.maven.apache.org/maven2----
org.codehaus.plexus:plexus-component-annotations:jar:1.5.5-Found at https://repo.maven.apache.org/maven2----
org.codehaus.plexus:plexus-interpolation:jar:1.21-Found at https://repo.maven.apache.org/maven2----
org.eclipse.aether:aether-api:jar:1.0.2.v20150114-Found at https://repo.maven.apache.org/maven2----
org.eclipse.aether:aether-impl:jar:1.0.2.v20150114-Found at https://repo.maven.apache.org/maven2----
org.eclipse.aether:aether-spi:jar:1.0.2.v20150114-Found at https://repo.maven.apache.org/maven2----
org.eclipse.aether:aether-util:jar:1.0.2.v20150114-Found at https://repo.maven.apache.org/maven2----
org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.0-Found at https://repo.maven.apache.org/maven2----
org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.0-Found at https://repo.maven.apache.org/maven2----
org.hibernate:hibernate-core:jar:5.2.4.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.hibernate:hibernate-envers:jar:5.2.4.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.hibernate:hibernate-validator:jar:5.3.1.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.javassist:javassist:jar:3.20.0-GA-Found at https://repo.maven.apache.org/maven2----
org.jboss:jandex:jar:2.0.0.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.jboss.logging:jboss-logging:jar:3.3.0.Final-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:jar:1.0.0.Beta1-Found at https://repo.maven.apache.org/maven2--Found at http://repository.jboss.org/nexus/content/groups/public-
org.sonatype.plexus:plexus-cipher:jar:1.4-Found at https://repo.maven.apache.org/maven2----
org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3-Found at https://repo.maven.apache.org/maven2----
org.sonatype.sisu:sisu-guice:jar:no_aop:3.2.5-Found at https://repo.maven.apache.org/maven2----
Totalplexus.snapshotscentralsonatype-nexus-snapshotsjvnet-nexus-snapshotsjboss-public-repository-groupapache.snapshots
46 (compile: 46)04600110
+
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/dependency-info.html b/projects/hibernate-maven-plugin/2.1.0/dependency-info.html new file mode 100644 index 0000000..1f20524 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/dependency-info.html @@ -0,0 +1,466 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – Dependency Information + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Project Information
  3. Dependency Information
+

+
+
+
+

Dependency Information

+
+

Apache Maven

+
+
<dependency>
+  <groupId>de.juplo</groupId>
+  <artifactId>hibernate-maven-plugin</artifactId>
+  <version>2.1.0</version>
+  <type>maven-plugin</type>
+</dependency>
+
+

Apache Buildr

+
+
'de.juplo:hibernate-maven-plugin:maven-plugin:2.1.0'
+
+

Apache Ivy

+
+
<dependency org="de.juplo" name="hibernate-maven-plugin" rev="2.1.0">
+  <artifact name="hibernate-maven-plugin" type="maven-plugin" />
+</dependency>
+
+

Groovy Grape

+
+
@Grapes(
+@Grab(group='de.juplo', module='hibernate-maven-plugin', version='2.1.0')
+)
+
+

Gradle/Grails

+
+
compile 'de.juplo:hibernate-maven-plugin:2.1.0'
+
+

Scala SBT

+
+
libraryDependencies += "de.juplo" % "hibernate-maven-plugin" % "2.1.0"
+
+

Leiningen

+
+
[de.juplo/hibernate-maven-plugin "2.1.0"]
+
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/distribution-management.html b/projects/hibernate-maven-plugin/2.1.0/distribution-management.html new file mode 100644 index 0000000..a7c8127 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/distribution-management.html @@ -0,0 +1,437 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – Project Distribution Management + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Project Information
  3. Distribution Management
+

+
+
+
+

Overview

+

The following is the distribution management information used by this project.

+ +
+

Snapshot Repository - sonatype-nexus-snapshots

https://oss.sonatype.org/content/repositories/snapshots/
+
+

Site - juplo.de

+

scp://juplo.de/var/www/juplo/hibernate-maven-plugin-2.1.0

+
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/drop-mojo.html b/projects/hibernate-maven-plugin/2.1.0/drop-mojo.html new file mode 100644 index 0000000..2c67b60 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/drop-mojo.html @@ -0,0 +1,1341 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – hibernate:drop + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Goal: DROP
+

+
+
+ + +
+

hibernate:drop

+ +

Full name:

+ +

de.juplo:hibernate-maven-plugin:2.1.0:drop

+ +

Description:

+ +
Generate/Execute SQL to drop all tables of a database-schema that +represents the configured mappings.
+ +

Attributes:

+ +
    + +
  • Requires a Maven project to be executed.
  • + +
  • Requires dependency resolution of artifacts in scope: runtime.
  • + +
  • The goal is thread-safe and supports parallel builds.
  • + +
  • Binds by default to the lifecycle phase: process-classes.
  • +
+ +
+

Optional Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeSinceDescription
createNamespacesBoolean2.0Specifies whether to automatically create also the database +schema/catalog.
Default value is: false.
User property is: hibernate.hbm2dll.create_namespaces.
delimiterString1.0Delimiter in output-file. + +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


Default value is: ;.
User property is: hibernate.hbm2ddl.delimiter.
dialectString1.0Hibernate dialect.
User property is: hibernate.dialect.
driverString1.0SQL-Driver name.
User property is: hibernate.connection.driver_class.
executeBoolean2.0Excecute the generated SQL. If set to false, only the +SQL-script is created and the database is not touched. + +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


Default value is: true.
User property is: hibernate.schema.execute.
forceboolean1.0Force generation/execution + +

Force the generation and (if configured) the execution of the +SQL, even if no modified or newly added annotated classes where +found and the configuration was not changed.

+ +

skip takes precedence over force.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


Default value is: false.
User property is: hibernate.schema.force.
formatBoolean1.0Format output-file.
User property is: hibernate.format_sql.
hibernateConfigString1.1.0Path to Hibernate configuration file (.cfg.xml). If this parameter +is specified, the plugin will try to load configuration values from +a file with the given path or a ressource on the classpath with the +given name. If both fails, the execution of the plugin will fail. + +

If this parameter is not set the plugin will load configuration +values from a ressource named hibernate.cfg.xml on the +classpath, if it is present, but will not fail if there is no such +ressource.

+ +

During ressource-lookup, the test-classpath takes +precedence.

+ +

Settings in this file will overwrite settings in the properties +file.


hibernatePropertiesString1.0Path to a file or name of a ressource with hibernate properties. If +this parameter is specified, the plugin will try to load +configuration values from a file with the given path or a ressource +on the classpath with the given name. If both fails, the execution +of the plugin will fail. + +

If this parameter is not set the plugin will load configuration +values from a ressource named hibernate.properties on +the classpath, if it is present, but will not fail if there is no +such ressource.

+ +

During ressource-lookup, the test-classpath takes +precedence.


implicitNamingStrategyString2.0Implicit naming strategy
User property is: hibernate.implicit_naming_strategy.
mappingsString1.0.2List of Hibernate-Mapping-Files (XML). Multiple files can be +separated with white-spaces and/or commas.
User property is: hibernate.mapping.
outputDirectoryString1.0Classes-Directory to scan. + +

This parameter defaults to the maven build-output-directory for +classes. Additionally, all dependencies are scanned for annotated +classes.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


User property is: project.build.outputDirectory.
outputFileString1.0Output file. + +

If the specified filename is not absolut, the file will be +created relative to the project build directory +(project.build.directory).


Default value is: drop.sql.
User property is: hibernate.schema.drop.
passwordString1.0Database password
User property is: hibernate.connection.password.
persistenceUnitString1.1.0Name of the persistence-unit. If this parameter is specified, the +plugin will try to load configuration values from a +persistence-unit with the specified name. If no such +persistence-unit can be found, the plugin will throw an exception. + +

If this parameter is not set and there is only one +persistence-unit available, that unit will be used automatically. +But if this parameter is not set and there are multiple +persistence-units available on, the class-path, the execution of +the plugin will fail.

+ +

Settings in this file will overwrite settings in the properties +or the configuration file.


physicalNamingStrategyString2.0Physical naming strategy
User property is: hibernate.physical_naming_strategy.
scanClassesBoolean2.0Wether the project should be scanned for annotated-classes, or not + +

This parameter is intended to allow overwriting of the parameter +exclude-unlisted-classes of a +persistence-unit. If not specified, it defaults to +true


User property is: hibernate.schema.scan.classes.
scanDependenciesString1.0.3Dependency-Scopes, that should be scanned for annotated classes. + +

By default, only dependencies in the scope compile +are scanned for annotated classes. Multiple scopes can be seperated +by white space or commas.

+ +

If you do not want any dependencies to be scanned for annotated +classes, set this parameter to none.

+ +

The plugin does not scan for annotated classes in transitive +dependencies. If some of your annotated classes are hidden in a +transitive dependency, you can simply add that dependency +explicitly.


Default value is: compile.
User property is: hibernate.schema.scan.dependencies.
scanTestClassesBoolean1.0.1Whether to scan the test-branch of the project for annotated +classes, or not. + +

If this parameter is set to true the test-classes +of the artifact will be scanned for hibernate-annotated classes +additionally.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


Default value is: false.
User property is: hibernate.schema.scan.test_classes.
showBoolean1.0Show the generated SQL in the command-line output.
User property is: hibernate.show_sql.
skipboolean1.0Skip execution + +

If set to true, the execution is skipped.

+ +

A skipped execution is signaled via the maven-property +${hibernate.schema.skipped}.

+ +

The execution is skipped automatically, if no modified or newly +added annotated classes are found and the dialect was not +changed.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


Default value is: ${maven.test.skip}.
User property is: hibernate.schema.skip.
testOutputDirectoryString1.0.2Test-Classes-Directory to scan. + +

This parameter defaults to the maven build-output-directory for +test-classes.

+ +

This parameter is only used, when scanTestClasses +is set to true!

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


User property is: project.build.testOutputDirectory.
urlString1.0Database URL.
User property is: hibernate.connection.url.
usernameString1.0Database username
User property is: hibernate.connection.username.
+
+ +
+

Parameter Details

+ +

createNamespaces:

+ +
Specifies whether to automatically create also the database +schema/catalog.
+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 2.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.hbm2dll.create_namespaces
  • + +
  • Default: false
  • +

+

delimiter:

+ +
Delimiter in output-file. + +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.hbm2ddl.delimiter
  • + +
  • Default: ;
  • +

+

dialect:

+ +
Hibernate dialect.
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.dialect
  • +

+

driver:

+ +
SQL-Driver name.
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.connection.driver_class
  • +

+

execute:

+ +
Excecute the generated SQL. If set to false, only the +SQL-script is created and the database is not touched. + +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 2.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.execute
  • + +
  • Default: true
  • +

+

force:

+ +
Force generation/execution + +

Force the generation and (if configured) the execution of the +SQL, even if no modified or newly added annotated classes where +found and the configuration was not changed.

+ +

skip takes precedence over force.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: boolean
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.force
  • + +
  • Default: false
  • +

+

format:

+ +
Format output-file.
+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.format_sql
  • +

+

hibernateConfig:

+ +
Path to Hibernate configuration file (.cfg.xml). If this parameter +is specified, the plugin will try to load configuration values from +a file with the given path or a ressource on the classpath with the +given name. If both fails, the execution of the plugin will fail. + +

If this parameter is not set the plugin will load configuration +values from a ressource named hibernate.cfg.xml on the +classpath, if it is present, but will not fail if there is no such +ressource.

+ +

During ressource-lookup, the test-classpath takes +precedence.

+ +

Settings in this file will overwrite settings in the properties +file.

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.1.0
  • + +
  • Required: No
  • +

+

hibernateProperties:

+ +
Path to a file or name of a ressource with hibernate properties. If +this parameter is specified, the plugin will try to load +configuration values from a file with the given path or a ressource +on the classpath with the given name. If both fails, the execution +of the plugin will fail. + +

If this parameter is not set the plugin will load configuration +values from a ressource named hibernate.properties on +the classpath, if it is present, but will not fail if there is no +such ressource.

+ +

During ressource-lookup, the test-classpath takes +precedence.

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • +

+

implicitNamingStrategy:

+ +
Implicit naming strategy
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 2.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.implicit_naming_strategy
  • +

+

mappings:

+ +
List of Hibernate-Mapping-Files (XML). Multiple files can be +separated with white-spaces and/or commas.
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0.2
  • + +
  • Required: No
  • + +
  • User Property: hibernate.mapping
  • +

+

outputDirectory:

+ +
Classes-Directory to scan. + +

This parameter defaults to the maven build-output-directory for +classes. Additionally, all dependencies are scanned for annotated +classes.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: project.build.outputDirectory
  • +

+

outputFile:

+ +
Output file. + +

If the specified filename is not absolut, the file will be +created relative to the project build directory +(project.build.directory).

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.drop
  • + +
  • Default: drop.sql
  • +

+

password:

+ +
Database password
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.connection.password
  • +

+

persistenceUnit:

+ +
Name of the persistence-unit. If this parameter is specified, the +plugin will try to load configuration values from a +persistence-unit with the specified name. If no such +persistence-unit can be found, the plugin will throw an exception. + +

If this parameter is not set and there is only one +persistence-unit available, that unit will be used automatically. +But if this parameter is not set and there are multiple +persistence-units available on, the class-path, the execution of +the plugin will fail.

+ +

Settings in this file will overwrite settings in the properties +or the configuration file.

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.1.0
  • + +
  • Required: No
  • +

+

physicalNamingStrategy:

+ +
Physical naming strategy
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 2.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.physical_naming_strategy
  • +

+

scanClasses:

+ +
Wether the project should be scanned for annotated-classes, or not + +

This parameter is intended to allow overwriting of the parameter +exclude-unlisted-classes of a +persistence-unit. If not specified, it defaults to +true

+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 2.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.scan.classes
  • +

+

scanDependencies:

+ +
Dependency-Scopes, that should be scanned for annotated classes. + +

By default, only dependencies in the scope compile +are scanned for annotated classes. Multiple scopes can be seperated +by white space or commas.

+ +

If you do not want any dependencies to be scanned for annotated +classes, set this parameter to none.

+ +

The plugin does not scan for annotated classes in transitive +dependencies. If some of your annotated classes are hidden in a +transitive dependency, you can simply add that dependency +explicitly.

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0.3
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.scan.dependencies
  • + +
  • Default: compile
  • +

+

scanTestClasses:

+ +
Whether to scan the test-branch of the project for annotated +classes, or not. + +

If this parameter is set to true the test-classes +of the artifact will be scanned for hibernate-annotated classes +additionally.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 1.0.1
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.scan.test_classes
  • + +
  • Default: false
  • +

+

show:

+ +
Show the generated SQL in the command-line output.
+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.show_sql
  • +

+

skip:

+ +
Skip execution + +

If set to true, the execution is skipped.

+ +

A skipped execution is signaled via the maven-property +${hibernate.schema.skipped}.

+ +

The execution is skipped automatically, if no modified or newly +added annotated classes are found and the dialect was not +changed.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: boolean
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.skip
  • + +
  • Default: ${maven.test.skip}
  • +

+

testOutputDirectory:

+ +
Test-Classes-Directory to scan. + +

This parameter defaults to the maven build-output-directory for +test-classes.

+ +

This parameter is only used, when scanTestClasses +is set to true!

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0.2
  • + +
  • Required: No
  • + +
  • User Property: project.build.testOutputDirectory
  • +

+

url:

+ +
Database URL.
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.connection.url
  • +

+

username:

+ +
Database username
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.connection.username
  • +
+
+
+ + +
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/force.html b/projects/hibernate-maven-plugin/2.1.0/force.html new file mode 100644 index 0000000..6bd6863 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/force.html @@ -0,0 +1,473 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin — Force Exceution + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Force Exceution
+

+
+
+ + + + +

Force Execution

+ +

+ The hibernate-maven-plugin computes MD5-sums for all found annotated + classes and stores them together with the generated schema. + If no classes were changed or added and the dialect wasn't changed too, it + automatically skips the configured SQL-generation — and more + important in this respect — the execution of the generated SQL, + to speed up the development cycle. +

+ +

+ The plugin signals, that the execution was skipped by setting the maven + property ${hibernate.schema.skipped} to true. + This may be helpful, because other plugins like + dbunit-plugin + may fail, when the execution is skipped. +

+ +

+ If you need the hibernate-maven-plugin to never skip execution automatically, + you can force it to do so, if you set the parameter force to + true: +

+ +
+
+<plugin>
+  <groupId>de.juplo</groupId>
+  <artifactId>hibernate-maven-plugin</artifactId>
+  <version>2.1.0</version>
+  <configuration>
+    <force>true</force>
+  </configuration>
+</plugin>
+ +

+ Or you may specify -Dhibernate.schema.force=true at the command line, + if you want to force hibernate-maven-plugin only once. +

+ + +
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/help-mojo.html b/projects/hibernate-maven-plugin/2.1.0/help-mojo.html new file mode 100644 index 0000000..e807433 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/help-mojo.html @@ -0,0 +1,576 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – hibernate:help + + + + +

Path

+

+

    +
+

+
+
+ + +
+

hibernate:help

+ +

Full name:

+ +

de.juplo:hibernate-maven-plugin:2.1.0:help

+ +

Description:

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

Attributes:

+ +
    + +
  • The goal is thread-safe and supports parallel builds.
  • +
+ +
+

Optional Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeSinceDescription
detailboolean-If true, display all settable properties for each +goal.
Default value is: false.
User property is: detail.
goalString-The name of the goal for which to show help. If unspecified, all +goals will be displayed.
User property is: goal.
indentSizeint-The number of spaces per indentation level, should be positive.
Default value is: 2.
User property is: indentSize.
lineLengthint-The maximum length of a display line, should be positive.
Default value is: 80.
User property is: lineLength.
+
+ +
+

Parameter Details

+ +

detail:

+ +
If true, display all settable properties for each +goal.
+ +
    + +
  • Type: boolean
  • + +
  • Required: No
  • + +
  • User Property: detail
  • + +
  • Default: false
  • +

+

goal:

+ +
The name of the goal for which to show help. If unspecified, all +goals will be displayed.
+ +
    + +
  • Type: java.lang.String
  • + +
  • Required: No
  • + +
  • User Property: goal
  • +

+

indentSize:

+ +
The number of spaces per indentation level, should be positive.
+ +
    + +
  • Type: int
  • + +
  • Required: No
  • + +
  • User Property: indentSize
  • + +
  • Default: 2
  • +

+

lineLength:

+ +
The maximum length of a display line, should be positive.
+ +
    + +
  • Type: int
  • + +
  • Required: No
  • + +
  • User Property: lineLength
  • + +
  • Default: 80
  • +
+
+
+ + +
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/images/close.gif b/projects/hibernate-maven-plugin/2.1.0/images/close.gif new file mode 100644 index 0000000..1c26bbc Binary files /dev/null and b/projects/hibernate-maven-plugin/2.1.0/images/close.gif differ diff --git a/projects/hibernate-maven-plugin/2.1.0/index.html b/projects/hibernate-maven-plugin/2.1.0/index.html new file mode 100644 index 0000000..24e1b3f --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/index.html @@ -0,0 +1,523 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin — Overview + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Overview
+

+
+
+ + + + +

Hibernate Maven Plugin

+ +
+

A simple plugin for generating a database-schema from Hibernate-Mappings

+ +

+ The hibernate-maven-plugin is a plugin for generating a database-schema + from your Hibernate-Mappings and create or update your database + accordingly. + Its main usage is to automatically create and populate a test-database + for unit-tests in cooperation with the + dbunit-maven-plugin. +

+ +

+ The plugin was designed with three main goals in mind: +

+ +
    + +
  • It should be easy to use.
  • + +
  • It should be maximal unlikely, to erase a producation-database by accident.
  • + +
  • It should not slow down the development cycle.
  • +
+ +

+ To achieve the first goal, the convention-over-configuration paradigma + was applied and the plugin was stuffed with usefull logging-messages. + So, if in doubt, just turn on the debugging output with the mvn -X .... +

+ +

+ To achieve the second goal, the precedence in which the configuration + locations are consulted was layouted in a way that makes it possible, to + prevent overwrites of the wrong database by accident. +

+ +

+ Last but not least, in order to not slow down the development cycle, the + hibernate-maven-plugin only executes the generated SQL, if the mapping + or the configuration has changed (or if you force it to do so). +

+ +

+ For more information about the inspiration to write this tiny plugin, + read our blog-article about the hibernate-maven-plugin. +

+
+
+

Documentation

+ + +
+
+

Releases

+ + +
+ +
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/integration.html b/projects/hibernate-maven-plugin/2.1.0/integration.html new file mode 100644 index 0000000..36fa91e --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/integration.html @@ -0,0 +1,447 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – CI Management + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Project Information
  3. CI Management
+

+
+
+
+

Overview

+

This project uses Continuum.

+
+

Access

+

The following is a link to the continuous integration system used by the project:

+
+
+

Notifiers

+

Configuration for notifying developers/users when a build is unsuccessful, including user information and notification mode.

+ + + + + + + + +
TypeAddressConfiguration
mailkai@juplo.de-
+
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/issue-tracking.html b/projects/hibernate-maven-plugin/2.1.0/issue-tracking.html new file mode 100644 index 0000000..8e740f4 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/issue-tracking.html @@ -0,0 +1,440 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin — $pages.get($alignedFileName).name + + + + +

Path

+

+

    +
+

+
+
+ + + + +

Issue Tracking

+ There is no bug-tracking system set up for this project! + +

+ Please send your bug-reports, questions or feature-requests directly + to the developer. +

+ + +
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/license.html b/projects/hibernate-maven-plugin/2.1.0/license.html new file mode 100644 index 0000000..78dd6c4 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/license.html @@ -0,0 +1,639 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – Project Licenses + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Project Information
  3. Licenses
+

+
+
+
+

Overview

+

Typically the licenses listed for the project are that of the project itself, and not of dependencies.

+
+

Project Licenses

+
+

The Apache Software License, Version 2.0

+

A business-friendly OSS license

+
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/mail-lists.html b/projects/hibernate-maven-plugin/2.1.0/mail-lists.html new file mode 100644 index 0000000..fe71269 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/mail-lists.html @@ -0,0 +1,440 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin — $pages.get($alignedFileName).name + + + + +

Path

+

+

    +
+

+
+
+ + + + +

Mailing Lists

+ There are no mailinglists defined for this project! + +

+ Please send your bug-reports, questions or feature-requests directly + to the developer. +

+ + +
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/pitfalls.html b/projects/hibernate-maven-plugin/2.1.0/pitfalls.html new file mode 100644 index 0000000..d36498e --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/pitfalls.html @@ -0,0 +1,732 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin — Known Pitfalls (FAQ) + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Known Pitfalls (FAQ)
+

+
+
+ + + + +

Known Pitfalls (FAQ)

+ +
+

Annotated classes in dependencies are not found.

+ +

+ hibernate-maven-plugin by default scans dependencies in the scope + compile. You can configure it to scan dependencies in other + scopes as well. But it scans only direct dependencies. Transitive + dependencies are not scanned for annotated classes. If some of your + annotated classes are hidden in a transitive dependency, you can simply + add that dependency explicitly. +

+
+
+

hibernate-maven-plugin always needs a database-connection

+ +

+ The default-configuration executes the created SQL. + Therefore, it needs a valid database-connection and fails, if none is + available. + If you do not need the generated SQL to be executed automatically, + you can set the property hibernate.schema.execute to + false. + This can be achieved with the command-line parameter + -Dhibernate.schema.execute=false or with the following + configuration: +

+ +
+
+<configuration>
+  <execute>false</execute>
+</configuration>
+ +

+ But even when no database is to be created, hibernate always needs to know + the dialect. Hence, the plugin will still fail, if this parameter is also + missing! +

+
+
+

Dependency for driver-class XYZ is missing

+ +

+ One regular problem is the scope of the jdbc-driver-dependency. + It is very unlikely, that this dependency is needed at compile-time. + So a tidy maven-developer would usually scope it for runtime. +

+ +

+ But this will break the execution of the hibernate-maven-plugin. + Since it will not be able to see the needed dependency, it will fail with + an error-message like: +

+ +
+
+[INFO] Gathered hibernate-configuration (turn on debugging for details):
+[INFO]   hibernate.connection.username = sa
+[INFO]   hibernate.connection.password = 
+[INFO]   hibernate.dialect = org.hibernate.dialect.H2Dialect
+[INFO]   hibernate.connection.url = jdbc:h2:file:./db
+[INFO]   hibernate.hbm2dll.create_namespaces = false
+[INFO]   hibernate.connection.driver_class = org.h2.Driver
+[INFO]   hibernate.format_sql = true
+[INFO] HHH000412: Hibernate Core {5.0.2.Final}
+[INFO] HHH000206: hibernate.properties not found
+[INFO] HHH000021: Bytecode provider name : javassist
+[INFO] Adding /home/kai/project/target/classes to the list of roots to scan...
+[INFO] Adding dependencies from scope compile to the list of roots to scan
+[INFO] Adding dependencies from scope org.hibernate:hibernate-core:jar:4.3.0.Final to the list of roots to scan
+[INFO] Adding annotated resource: de.juplo.tests.SimplestMavenHib4Test
+[INFO] ------------------------------------------------------------------------
+[INFO] BUILD FAILURE
+[INFO] ------------------------------------------------------------------------
+[INFO] Total time: 1.760s
+[INFO] Finished at: Mon Mar 07 19:06:54 CET 2016
+[INFO] Final Memory: 11M/215M
+[INFO] ------------------------------------------------------------------------
+[ERROR] Failed to execute goal de.juplo:hibernate-maven-plugin:2.1.0:drop (default) on project hibernate4-properties-test: Could not open the JDBC-connection: Unable to load class [org.h2.Driver]: Could not load requested class : org.h2.Driver -> [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/MojoFailureException
+ +

+ A quick workaround for this error would be, to delete the runtime-constraint + for the jdbc-driver-dependency. +

+ +

+ A much cleaner way is, to (additionally) ad the dependency, to the + plugin-definition: +

+ +
+
+<plugin>
+  <groupId>de.juplo</groupId>
+  <artifactId>hibernate-maven-plugin</artifactId>
+  <version>2.1.0</version>
+  <executions>
+    <execution>
+      <goals>
+        <goal>drop</goal>
+        <goal>create</goal>
+      </goals>
+    </execution>
+  </executions>
+  <dependencies>
+  <dependency>
+    <groupId>org.hsqldb</groupId>
+    <artifactId>hsqldb</artifactId>
+    <version>2.2.8</version>
+  </dependency>
+  </dependencies>
+</plugin>
+ +

+ This is also the best way, if you use a different jdbc-driver for + testing, than in production. + Because otherwise, this dependency will unnecessarily bloat the + runtime-dependencies of your project. +

+
+
+

DBUnit fails after execution of hibernate was skipped because nothing has changed

+ +

+ If hibernate-maven-plugin skips its excecution, this may lead to errors in + other plugins. + For example, when importing sample-data in the automatically created database + with the help of the dbunit-plugin, + the CLEAN_INSERT-operation may fail because of foreign-key-constraints, + if the database was not recreated, because the hibernate-maven-plugin has + skipped its excecution. +

+ +

+ A quick fix to this problem is, to force + hibernate-maven-plugin to generate and execute the SQL every time it is running. + But to recreate the database on every testrun may noticeable slow down your + development cycle, if you have to wait for slow IO. +

+ +

+ To circumvent this problem, hibernate-maven-plugin signals a skipped + excecution by setting the maven property ${hibernate.schema.skipped} to + true. + You can configure other plugins to react on this signal. + For example, the dbunit-plugin can be configured to skip its excecution, if + hibernate-maven-plugin was skipped like this: +

+ +
+
+<plugin>
+  <groupId>org.codehaus.mojo</groupId>
+  <artifactId>dbunit-maven-plugin</artifactId>
+  <configuration>
+    <skip>${hibernate.schema.skipped}</skip>
+  </configuration>
+</plugin>
+
+
+

The database will not be recreated after a manual drop/clean

+ +

+ If one manually drops the database or removes the hsqldb-files, it will not + be recreated by the hibernate-maven-plugin, because it cannot detect, that + the database needs to be recreated. + This happens, because the plugin will not recreate the database if neither + the configuration nor the annotated classes have changed, because an + unnecessary drop-create-cycle might take a long time. The plugin will + report that like this: +

+ +
+
+[INFO] No modified annotated classes found and dialect unchanged.
+[INFO] Skipping schema generation!
+ +

+ If one always uses mvn clean for cleanup, this will not happen. + Otherwise the recreation must be forced: +

+ +
+
+mvn hibernate:create -Dhibernate.schema.force=true
+
+
+

The hibernate:create goal is not executed, when tests are skipped

+ +

+ The hibernate-maven-plugin automatically skips its execution, when + maven.test.skip is set to true. If you need it to be always + executed, you can configure that explicitly like this: +

+ +
+
+<plugin>
+  <groupId>de.juplo</groupId>
+  <artifactId>hibernate-maven-plugin</artifactId>
+  ...
+  <configuration>
+    <skip>false</skip>
+  </configuration>
+</plugin>
+ +

+ Background-information for this design-decission can be found on the extra + page To skip or not to skip: that is the question... +

+
+
+

I do not want my dependencies to be scanned for hibernate annotations

+ +

+ If you do not want your dependencies to be scanned for hibernate annotations, + you can pass -Dhibernate.schema.scan.dependencies=none to maven + or set scanDependencies to none in the configuration + of the plugin like this: +

+ +
+
+<plugin>
+  <groupId>de.juplo</groupId>
+  <artifactId>hibernate-maven-plugin</artifactId>
+  ...
+  <configuration>
+    <scanDependencies>none</scanDependencies>
+  </configuration>
+</plugin>
+
+
+

No annotated classes found

+ +

+ If you are working under Windows and get the error-message + No annotated classes found in directory C:\projects\X Y Z\path-to-project\target\classes, + but you are really sure, that there are annotated classes in that + directory, you are expiriencing a bug, in the scannotation-library, that + was closed in version 1.1.0 of the hibernate-maven-plugin. +

+ +

+ + You should consider to upgrade to the latest version of the plugin. + +

+
+
+

If two goals are specified, the second one is always skipped

+ +

+ If you specify two goals, for example drop and + create, each goal has to be specified in its own + execution, so that you can specify two different + output-files for the two goals. + Otherwise, both goals will use the same output-file and the goal, that + is run second, will always skip, becaus it will find, that the output + file already exists and conclude, that its work was already done in a + prior run. +

+ +

+ Example configuration for two goals: +

+ +
+
+<executions>
+  <execution>
+    <id>Create Drop-Schema</id>
+    <phase>test-compile</phase>
+    <goals>
+      <goal>drop</goal>
+    </goals>
+    <configuration>
+      <outputFile>db-schema/drop-schema.ddl</outputFile>
+    </configuration>
+  </execution>
+  <execution>
+    <id>Create Create-Schema</id>
+    <phase>test-compile</phase>
+    <goals>
+      <goal>create</goal>
+    </goals>
+    <configuration>
+      <outputFile>db-schema/create-schema.ddl</outputFile>
+    </configuration>
+  </execution>
+</executions>
+
+ +
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/plugin-info.html b/projects/hibernate-maven-plugin/2.1.0/plugin-info.html new file mode 100644 index 0000000..c142efc --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/plugin-info.html @@ -0,0 +1,499 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – Plugin Documentation + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Project Reports
  3. Plugin Documentation
+

+
+
+
+

Plugin Documentation

+

Goals available for this plugin:

+ + + + + + + + + + + + + + + +
GoalDescription
hibernate:createGenerate/Execute SQL to create a database-schema that represents +the configured mappings.
hibernate:dropGenerate/Execute SQL to drop all tables of a database-schema that +represents the configured mappings.
hibernate:helpDisplay help information on hibernate-maven-plugin.
+Call mvn hibernate:help -Ddetail=true +-Dgoal=<goal-name> to display parameter details.
hibernate:updateGenerate/Execute SQL to update the database-schema according to the +configured mappings.
+
+

System Requirements

+

The following specifies the minimum requirements to run this Maven plugin:

+ + + + + + + + + + + + +
Maven2.0.6
JDK1.6
MemoryNo minimum requirement.
Disk SpaceNo minimum requirement.
+
+

Usage

+

You should specify the version in your project's plugin configuration:

+
+
<project>
+  ...
+  <build>
+    <!-- To define the plugin version in your parent POM -->
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>de.juplo</groupId>
+          <artifactId>hibernate-maven-plugin</artifactId>
+          <version>2.1.0</version>
+        </plugin>
+        ...
+      </plugins>
+    </pluginManagement>
+    <!-- To use the plugin goals in your POM or parent POM -->
+    <plugins>
+      <plugin>
+        <groupId>de.juplo</groupId>
+        <artifactId>hibernate-maven-plugin</artifactId>
+        <version>2.1.0</version>
+      </plugin>
+      ...
+    </plugins>
+  </build>
+  ...
+</project>
+
+

For more information, see "Guide to Configuring Plug-ins"

+
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/plugin-management.html b/projects/hibernate-maven-plugin/2.1.0/plugin-management.html new file mode 100644 index 0000000..8225ea4 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/plugin-management.html @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – Project Plugin Management + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Project Information
  3. Plugin Management
+

+
+
+
+

Project Plugin Management

+ + + + + + + + + + + + + + + + + + + + + + + + +
GroupIdArtifactIdVersion
org.apache.maven.pluginsmaven-antrun-plugin1.7
org.apache.maven.pluginsmaven-assembly-plugin2.4.1
org.apache.maven.pluginsmaven-dependency-plugin2.8
org.apache.maven.pluginsmaven-release-plugin2.1
org.apache.maven.pluginsmaven-site-plugin3.5.1
+
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/plugins.html b/projects/hibernate-maven-plugin/2.1.0/plugins.html new file mode 100644 index 0000000..3b1d9f3 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/plugins.html @@ -0,0 +1,521 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – Project Plugins + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Project Information
  3. Plugins
+

+
+
+
+

Project Build Plugins

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
GroupIdArtifactIdVersion
org.apache.maven.pluginsmaven-clean-plugin2.5
org.apache.maven.pluginsmaven-compiler-plugin3.3
org.apache.maven.pluginsmaven-dependency-plugin2.10
org.apache.maven.pluginsmaven-deploy-plugin2.7
org.apache.maven.pluginsmaven-enforcer-plugin1.2
org.apache.maven.pluginsmaven-install-plugin2.5.2
org.apache.maven.pluginsmaven-invoker-plugin1.10
org.apache.maven.pluginsmaven-jar-plugin2.4
org.apache.maven.pluginsmaven-javadoc-plugin2.7
org.apache.maven.pluginsmaven-plugin-plugin3.4
org.apache.maven.pluginsmaven-resources-plugin2.7
org.apache.maven.pluginsmaven-scm-plugin1.9.4
org.apache.maven.pluginsmaven-site-plugin3.5.1
org.apache.maven.pluginsmaven-source-plugin2.1.2
org.apache.maven.pluginsmaven-surefire-plugin2.17
+
+

Project Report Plugins

+ + + + + + + + + + + + + + + + + + + + + + + + +
GroupIdArtifactIdVersion
org.apache.maven.pluginsmaven-changes-plugin2.11
org.apache.maven.pluginsmaven-javadoc-plugin2.7
org.apache.maven.pluginsmaven-jxr-plugin2.5
org.apache.maven.pluginsmaven-plugin-plugin3.4
org.apache.maven.pluginsmaven-pmd-plugin3.4
+
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/pmd.html b/projects/hibernate-maven-plugin/2.1.0/pmd.html new file mode 100644 index 0000000..123fcf8 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/pmd.html @@ -0,0 +1,486 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – PMD Results + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Project Reports
  3. PMD
+

+
+
+
+

PMD Results

+

The following document contains the results of PMD 5.2.3.

+
+

Files

+
+

de/juplo/plugins/hibernate/AbstractSchemaMojo.java

+ + + + + + +
ViolationLine
Too many static imports may lead to messy code11420
+
+

de/juplo/plugins/hibernate/ModificationTracker.java

+ + + + + + +
ViolationLine
Unnecessary use of fully qualified name 'java.security.MessageDigest.getInstance' due to existing import 'java.security.MessageDigest'60
+
+

de/juplo/plugins/hibernate/SimpleConnectionProvider.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ViolationLine
Too many static imports may lead to messy code1232
Avoid unused imports such as 'org.eclipse.aether.repository.AuthenticationContext.PASSWORD'13
Avoid unused imports such as 'org.eclipse.aether.repository.AuthenticationContext.USERNAME'14
Avoid unused imports such as 'org.hibernate.jpa.AvailableSettings.JDBC_DRIVER'21
Avoid unused imports such as 'org.hibernate.jpa.AvailableSettings.JDBC_PASSWORD'22
Avoid unused imports such as 'org.hibernate.jpa.AvailableSettings.JDBC_URL'23
Avoid unused imports such as 'org.hibernate.jpa.AvailableSettings.JDBC_USER'24
Unnecessary use of fully qualified name 'java.sql.Driver' due to existing import 'java.sql.Driver'151
Unnecessary use of fully qualified name 'java.sql.Connection' due to existing import 'java.sql.Connection'163
Unnecessary use of fully qualified name 'java.util.Properties' due to existing import 'java.util.Properties'165
+
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/project-info.html b/projects/hibernate-maven-plugin/2.1.0/project-info.html new file mode 100644 index 0000000..886ddc9 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/project-info.html @@ -0,0 +1,469 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – Project Information + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Project Information
+

+
+
+
+

Project Information

+

This document provides an overview of the various documents and links that are part of this project's general information. All of this content is automatically generated by Maven on behalf of the project.

+
+

Overview

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DocumentDescription
CI ManagementThis is a link to the definitions of all continuous integration processes that builds and tests code on a frequent, regular basis.
DependenciesThis document lists the project's dependencies and provides information on each dependency.
Dependency InformationThis document describes how to to include this project as a dependency using various dependency management tools.
Distribution ManagementThis document provides informations on the distribution management of this project.
AboutA simple plugin for generating a database-schema from Hibernate-Mappings
LicensesThis document lists the project license(s).
Plugin ManagementThis document lists the plugins that are defined through pluginManagement.
PluginsThis document lists the build plugins and the report plugins used by this project.
TeamThis document provides information on the members of this project. These are the individuals who have contributed to the project in one form or another.
Source Code ManagementThis document lists ways to access the online source repository.
SummaryThis document lists other related information of this project
+
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/project-reports.html b/projects/hibernate-maven-plugin/2.1.0/project-reports.html new file mode 100644 index 0000000..f619d50 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/project-reports.html @@ -0,0 +1,457 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – Generated Reports + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Project Reports
+

+
+
+
+

Generated Reports

+

This document provides an overview of the various reports that are automatically generated by Maven . Each report is briefly described below.

+
+

Overview

+ + + + + + + + + + + + + + + + + + + + + + + + +
DocumentDescription
Test JavaDocsTest JavaDoc API documentation.
JavaDocsJavaDoc API documentation.
Source XrefHTML based, cross-reference version of Java source code.
Test Source XrefHTML based, cross-reference version of Java test source code.
CPDDuplicate code detection.
PMDVerification of coding rules.
Plugin DocumentationThis report provides goals and parameters documentation of a plugin.
+
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/project-summary.html b/projects/hibernate-maven-plugin/2.1.0/project-summary.html new file mode 100644 index 0000000..9604150 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/project-summary.html @@ -0,0 +1,468 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – Project Summary + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Project Information
  3. Summary
+

+
+
+
+

Project Summary

+
+

Project Information

+ + + + + + + + + + + + +
FieldValue
NameHibernate Maven Plugin
DescriptionA simple plugin for generating a database-schema from Hibernate-Mappings
Homepagehttp://juplo.de/hibernate-maven-plugin/index.html
+
+

Project Organization

+

This project does not belong to an organization.

+
+

Build Information

+ + + + + + + + + + + + + + + + + + +
FieldValue
GroupIdde.juplo
ArtifactIdhibernate-maven-plugin
Version2.1.0
Typemaven-plugin
Java Version1.6
+
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/skip.html b/projects/hibernate-maven-plugin/2.1.0/skip.html new file mode 100644 index 0000000..e279280 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/skip.html @@ -0,0 +1,494 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin — Skipping Execution + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Skipping Execution
+

+
+
+ + + + +

Skipping Execution

+ +

+ In most use-cases, the hibernate-maven-plugin is used to create a + test-database automatically. In this use-cases, it is very likely, that it + will result in mistakes/errors, if the goal is executed, when the tests + are skipped. + For example, one might manually overwrite the database-url with the url of + the production-database, in order to run other tests, like starting a + local webserver with the + jetty-maven-plugin. + If the drop-goal would be executed in such a scenario, it might erase the + hole production-database, which is not very desireable. +

+ +

+ Because of this, the configuration-parameter skip defaults to the value + of the proptery maven.test.skip. This way, the execution of the + hibernate-maven-plugin is skipped automatically, when the tests are + skipped. Think of it as a build-in security-belt. +

+ +

+ If you do not like that, because you need the plugin to always, + even if the tests are skipped you can configure that explicitly, + by setting the configuration-parameter skip to false: +

+ +
+
+<plugin>
+  <groupId>de.juplo</groupId>
+  <artifactId>hibernate-maven-plugin</artifactId>
+  ...
+  <configuration>
+    <skip>false</skip>
+  </configuration>
+</plugin>
+ +

+ Or, if you want the plugin to be executed by default and to be skipped + if you say so, you can bind the value of the configuration-parameter + skip to a custom property. For example: +

+ +
+
+<plugin>
+  <groupId>de.juplo</groupId>
+  <artifactId>hibernate-maven-plugin</artifactId>
+  ...
+  <configuration>
+    <skip>${foo.bar}</skip>
+  </configuration>
+</plugin>
+ +

+ This way, the plugin would be skipped, if you set the property + foo.bar to true. For example, if you specify -Dfoo.bar=true + on the command-line. +

+ + +
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/source-repository.html b/projects/hibernate-maven-plugin/2.1.0/source-repository.html new file mode 100644 index 0000000..9a8447e --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/source-repository.html @@ -0,0 +1,448 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – Source Code Management + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Project Information
  3. Source Code Management
+

+
+
+
+

Overview

+

This project uses Git to manage its source code. Instructions on Git use can be found at http://git-scm.com/documentation.

+
+

Web Browser Access

+

The following is a link to a browsable version of the source repository:

+
+
+

Anonymous Access

+

The source can be checked out anonymously from Git with this command (See http://git-scm.com/docs/git-clone):

+
+
$ git clone http://juplo.de/git/hibernate-maven-plugin
+
+

Developer Access

+

Only project developers can access the Git tree via this method (See http://git-scm.com/docs/git-clone).

+
+
$ git clone ssh://juplo.de/var/lib/git/juplo/hibernate-maven-plugin
+
+

Access from Behind a Firewall

+

Refer to the documentation of the SCM used for more information about access behind a firewall.

+
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/team-list.html b/projects/hibernate-maven-plugin/2.1.0/team-list.html new file mode 100644 index 0000000..940304c --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/team-list.html @@ -0,0 +1,509 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – Project Team + + + + +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. Project Information
  3. Team
+

+
+
+
+

Project Team

+

A successful project requires many people to play many roles. Some members write code or documentation, while others are valuable as testers, submitting patches and suggestions.

+

The project team is comprised of Members and Contributors. Members have direct access to the source of a project and actively evolve the code-base. Contributors improve the project through submission of patches and suggestions to the Members. The number of Contributors to the project is unbounded. Get involved today. All contributions to the project are greatly appreciated.

+
+

Members

+

The following is a list of developers with commit privileges that have directly contributed to the project in one way or another.

+ + + + + + + + + + +
ImageIdNameEmail
kaiKai Moritzkai@juplo.de
+
+

Contributors

+

The following additional people have contributed to this project through the way of suggestions, patches or documentation.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ImageNameEmail
Adriano Machadoadriano.m.machado@hotmail.com
Lorenzo Nicoralorenzo.nicora@nicus.it
Eduard Szenteeduard.szente@gmail.com
Stephen Johnsonstejohns@redhat.com
Victor Tataivtatai@gmail.com
Erik-Berndt Schepererik.berndt.scheper@gmail.com
Guido WimmelWimmel.Guido@swm.de
Joel Johnsonmrjoel@lixil.net
Paul K. Moorepaulkmoore@gmail.com
Mark Robinsonmark@mrobinson.ca
Claus Grafclausgraf@gmail.com
Joachim Van der Auwerajoachim@progs.be
Andreas Kuhtzandreas.kuhtz@gmail.com
Heer Fabiofabio.heer@dvbern.ch
+
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/allclasses-frame.html b/projects/hibernate-maven-plugin/2.1.0/testapidocs/allclasses-frame.html new file mode 100644 index 0000000..a170739 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/allclasses-frame.html @@ -0,0 +1,20 @@ + + + + + + +All Classes (Hibernate Maven Plugin 2.1.0 Test API) + + + + + +

All Classes

+
+ +
+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/allclasses-noframe.html b/projects/hibernate-maven-plugin/2.1.0/testapidocs/allclasses-noframe.html new file mode 100644 index 0000000..d8a6ff1 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/allclasses-noframe.html @@ -0,0 +1,20 @@ + + + + + + +All Classes (Hibernate Maven Plugin 2.1.0 Test API) + + + + + +

All Classes

+
+ +
+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/constant-values.html b/projects/hibernate-maven-plugin/2.1.0/testapidocs/constant-values.html new file mode 100644 index 0000000..83afb64 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/constant-values.html @@ -0,0 +1,124 @@ + + + + + + +Constant Field Values (Hibernate Maven Plugin 2.1.0 Test API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Constant Field Values

+

Contents

+
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/FileComparator.html b/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/FileComparator.html new file mode 100644 index 0000000..3d214b4 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/FileComparator.html @@ -0,0 +1,280 @@ + + + + + + +FileComparator (Hibernate Maven Plugin 2.1.0 Test API) + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.juplo.test
+

Class FileComparator

+
+
+ +
+
    +
  • +
    +
    +
    public class FileComparator
    +extends Object
    +
  • +
+
+
+ +
+
+ +
+
+ + +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/class-use/FileComparator.html b/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/class-use/FileComparator.html new file mode 100644 index 0000000..5ae4192 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/class-use/FileComparator.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Class de.juplo.test.FileComparator (Hibernate Maven Plugin 2.1.0 Test API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
de.juplo.test.FileComparator

+
+
No usage of de.juplo.test.FileComparator
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/package-frame.html b/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/package-frame.html new file mode 100644 index 0000000..490e27a --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +de.juplo.test (Hibernate Maven Plugin 2.1.0 Test API) + + + + + +

de.juplo.test

+
+

Classes

+ +
+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/package-summary.html b/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/package-summary.html new file mode 100644 index 0000000..f3c6754 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/package-summary.html @@ -0,0 +1,142 @@ + + + + + + +de.juplo.test (Hibernate Maven Plugin 2.1.0 Test API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Package de.juplo.test

+
+
+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/package-tree.html b/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/package-tree.html new file mode 100644 index 0000000..590032d --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/package-tree.html @@ -0,0 +1,133 @@ + + + + + + +de.juplo.test Class Hierarchy (Hibernate Maven Plugin 2.1.0 Test API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package de.juplo.test

+
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/package-use.html b/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/package-use.html new file mode 100644 index 0000000..8e1031f --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/de/juplo/test/package-use.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Package de.juplo.test (Hibernate Maven Plugin 2.1.0 Test API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
de.juplo.test

+
+
No usage of de.juplo.test
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/deprecated-list.html b/projects/hibernate-maven-plugin/2.1.0/testapidocs/deprecated-list.html new file mode 100644 index 0000000..8bfbdb1 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Deprecated List (Hibernate Maven Plugin 2.1.0 Test API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/help-doc.html b/projects/hibernate-maven-plugin/2.1.0/testapidocs/help-doc.html new file mode 100644 index 0000000..9932ae9 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +API Help (Hibernate Maven Plugin 2.1.0 Test API) + + + + + + + + +
+ + + + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+ +This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/index-all.html b/projects/hibernate-maven-plugin/2.1.0/testapidocs/index-all.html new file mode 100644 index 0000000..814dca7 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/index-all.html @@ -0,0 +1,147 @@ + + + + + + +Index (Hibernate Maven Plugin 2.1.0 Test API) + + + + + + + + +
+ + + + + + + +
+ + +
D F I  + + +

D

+
+
de.juplo.test - package de.juplo.test
+
 
+
+ + + +

F

+
+
FileComparator - Class in de.juplo.test
+
 
+
FileComparator(File) - Constructor for class de.juplo.test.FileComparator
+
 
+
+ + + +

I

+
+
isEqual(String, String) - Method in class de.juplo.test.FileComparator
+
 
+
+D F I 
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/index.html b/projects/hibernate-maven-plugin/2.1.0/testapidocs/index.html new file mode 100644 index 0000000..a439561 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/index.html @@ -0,0 +1,73 @@ + + + + + + +Hibernate Maven Plugin 2.1.0 Test API + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="de/juplo/test/package-summary.html">Non-frame version</a>.</p> + + + diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/overview-tree.html b/projects/hibernate-maven-plugin/2.1.0/testapidocs/overview-tree.html new file mode 100644 index 0000000..ab79bb4 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/overview-tree.html @@ -0,0 +1,137 @@ + + + + + + +Class Hierarchy (Hibernate Maven Plugin 2.1.0 Test API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2017. All Rights Reserved.

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/package-list b/projects/hibernate-maven-plugin/2.1.0/testapidocs/package-list new file mode 100644 index 0000000..4774195 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/package-list @@ -0,0 +1 @@ +de.juplo.test diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/script.js b/projects/hibernate-maven-plugin/2.1.0/testapidocs/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/projects/hibernate-maven-plugin/2.1.0/testapidocs/stylesheet.css b/projects/hibernate-maven-plugin/2.1.0/testapidocs/stylesheet.css new file mode 100644 index 0000000..98055b2 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/testapidocs/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/projects/hibernate-maven-plugin/2.1.0/update-mojo.html b/projects/hibernate-maven-plugin/2.1.0/update-mojo.html new file mode 100644 index 0000000..29e383a --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/update-mojo.html @@ -0,0 +1,1343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hibernate Maven Plugin – hibernate:update + + + + +

Path

+

+

    +
+

+
+
+ + +
+

hibernate:update

+ +

Full name:

+ +

de.juplo:hibernate-maven-plugin:2.1.0:update

+ +

Description:

+ +
Generate/Execute SQL to update the database-schema according to the +configured mappings.
+ +

Attributes:

+ +
    + +
  • Requires a Maven project to be executed.
  • + +
  • Requires dependency resolution of artifacts in scope: runtime.
  • + +
  • The goal is thread-safe and supports parallel builds.
  • + +
  • Binds by default to the lifecycle phase: process-classes.
  • +
+ +
+

Optional Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeSinceDescription
createNamespacesBoolean2.0Specifies whether to automatically create also the database +schema/catalog.
Default value is: false.
User property is: hibernate.hbm2dll.create_namespaces.
delimiterString1.0Delimiter in output-file. + +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


Default value is: ;.
User property is: hibernate.hbm2ddl.delimiter.
dialectString1.0Hibernate dialect.
User property is: hibernate.dialect.
driverString1.0SQL-Driver name.
User property is: hibernate.connection.driver_class.
executeBoolean2.0Excecute the generated SQL. If set to false, only the +SQL-script is created and the database is not touched. + +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


Default value is: true.
User property is: hibernate.schema.execute.
forceboolean1.0Force generation/execution + +

Force the generation and (if configured) the execution of the +SQL, even if no modified or newly added annotated classes where +found and the configuration was not changed.

+ +

skip takes precedence over force.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


Default value is: false.
User property is: hibernate.schema.force.
formatBoolean1.0Format output-file.
User property is: hibernate.format_sql.
hibernateConfigString1.1.0Path to Hibernate configuration file (.cfg.xml). If this parameter +is specified, the plugin will try to load configuration values from +a file with the given path or a ressource on the classpath with the +given name. If both fails, the execution of the plugin will fail. + +

If this parameter is not set the plugin will load configuration +values from a ressource named hibernate.cfg.xml on the +classpath, if it is present, but will not fail if there is no such +ressource.

+ +

During ressource-lookup, the test-classpath takes +precedence.

+ +

Settings in this file will overwrite settings in the properties +file.


hibernatePropertiesString1.0Path to a file or name of a ressource with hibernate properties. If +this parameter is specified, the plugin will try to load +configuration values from a file with the given path or a ressource +on the classpath with the given name. If both fails, the execution +of the plugin will fail. + +

If this parameter is not set the plugin will load configuration +values from a ressource named hibernate.properties on +the classpath, if it is present, but will not fail if there is no +such ressource.

+ +

During ressource-lookup, the test-classpath takes +precedence.


implicitNamingStrategyString2.0Implicit naming strategy
User property is: hibernate.implicit_naming_strategy.
mappingsString1.0.2List of Hibernate-Mapping-Files (XML). Multiple files can be +separated with white-spaces and/or commas.
User property is: hibernate.mapping.
outputDirectoryString1.0Classes-Directory to scan. + +

This parameter defaults to the maven build-output-directory for +classes. Additionally, all dependencies are scanned for annotated +classes.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


User property is: project.build.outputDirectory.
outputFileString1.0Output file. + +

If the specified filename is not absolut, the file will be +created relative to the project build directory +(project.build.directory).


Default value is: update.sql.
User property is: hibernate.schema.update.
passwordString1.0Database password
User property is: hibernate.connection.password.
persistenceUnitString1.1.0Name of the persistence-unit. If this parameter is specified, the +plugin will try to load configuration values from a +persistence-unit with the specified name. If no such +persistence-unit can be found, the plugin will throw an exception. + +

If this parameter is not set and there is only one +persistence-unit available, that unit will be used automatically. +But if this parameter is not set and there are multiple +persistence-units available on, the class-path, the execution of +the plugin will fail.

+ +

Settings in this file will overwrite settings in the properties +or the configuration file.


physicalNamingStrategyString2.0Physical naming strategy
User property is: hibernate.physical_naming_strategy.
scanClassesBoolean2.0Wether the project should be scanned for annotated-classes, or not + +

This parameter is intended to allow overwriting of the parameter +exclude-unlisted-classes of a +persistence-unit. If not specified, it defaults to +true


User property is: hibernate.schema.scan.classes.
scanDependenciesString1.0.3Dependency-Scopes, that should be scanned for annotated classes. + +

By default, only dependencies in the scope compile +are scanned for annotated classes. Multiple scopes can be seperated +by white space or commas.

+ +

If you do not want any dependencies to be scanned for annotated +classes, set this parameter to none.

+ +

The plugin does not scan for annotated classes in transitive +dependencies. If some of your annotated classes are hidden in a +transitive dependency, you can simply add that dependency +explicitly.


Default value is: compile.
User property is: hibernate.schema.scan.dependencies.
scanTestClassesBoolean1.0.1Whether to scan the test-branch of the project for annotated +classes, or not. + +

If this parameter is set to true the test-classes +of the artifact will be scanned for hibernate-annotated classes +additionally.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


Default value is: false.
User property is: hibernate.schema.scan.test_classes.
showBoolean1.0Show the generated SQL in the command-line output.
User property is: hibernate.show_sql.
skipboolean1.0Skip execution + +

If set to true, the execution is skipped.

+ +

A skipped execution is signaled via the maven-property +${hibernate.schema.skipped}.

+ +

The execution is skipped automatically, if no modified or newly +added annotated classes are found and the dialect was not +changed.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


Default value is: ${maven.test.skip}.
User property is: hibernate.schema.skip.
testOutputDirectoryString1.0.2Test-Classes-Directory to scan. + +

This parameter defaults to the maven build-output-directory for +test-classes.

+ +

This parameter is only used, when scanTestClasses +is set to true!

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!


User property is: project.build.testOutputDirectory.
urlString1.0Database URL.
User property is: hibernate.connection.url.
usernameString1.0Database username
User property is: hibernate.connection.username.
+
+ +
+

Parameter Details

+ +

createNamespaces:

+ +
Specifies whether to automatically create also the database +schema/catalog.
+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 2.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.hbm2dll.create_namespaces
  • + +
  • Default: false
  • +

+

delimiter:

+ +
Delimiter in output-file. + +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.hbm2ddl.delimiter
  • + +
  • Default: ;
  • +

+

dialect:

+ +
Hibernate dialect.
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.dialect
  • +

+

driver:

+ +
SQL-Driver name.
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.connection.driver_class
  • +

+

execute:

+ +
Excecute the generated SQL. If set to false, only the +SQL-script is created and the database is not touched. + +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 2.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.execute
  • + +
  • Default: true
  • +

+

force:

+ +
Force generation/execution + +

Force the generation and (if configured) the execution of the +SQL, even if no modified or newly added annotated classes where +found and the configuration was not changed.

+ +

skip takes precedence over force.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: boolean
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.force
  • + +
  • Default: false
  • +

+

format:

+ +
Format output-file.
+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.format_sql
  • +

+

hibernateConfig:

+ +
Path to Hibernate configuration file (.cfg.xml). If this parameter +is specified, the plugin will try to load configuration values from +a file with the given path or a ressource on the classpath with the +given name. If both fails, the execution of the plugin will fail. + +

If this parameter is not set the plugin will load configuration +values from a ressource named hibernate.cfg.xml on the +classpath, if it is present, but will not fail if there is no such +ressource.

+ +

During ressource-lookup, the test-classpath takes +precedence.

+ +

Settings in this file will overwrite settings in the properties +file.

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.1.0
  • + +
  • Required: No
  • +

+

hibernateProperties:

+ +
Path to a file or name of a ressource with hibernate properties. If +this parameter is specified, the plugin will try to load +configuration values from a file with the given path or a ressource +on the classpath with the given name. If both fails, the execution +of the plugin will fail. + +

If this parameter is not set the plugin will load configuration +values from a ressource named hibernate.properties on +the classpath, if it is present, but will not fail if there is no +such ressource.

+ +

During ressource-lookup, the test-classpath takes +precedence.

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • +

+

implicitNamingStrategy:

+ +
Implicit naming strategy
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 2.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.implicit_naming_strategy
  • +

+

mappings:

+ +
List of Hibernate-Mapping-Files (XML). Multiple files can be +separated with white-spaces and/or commas.
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0.2
  • + +
  • Required: No
  • + +
  • User Property: hibernate.mapping
  • +

+

outputDirectory:

+ +
Classes-Directory to scan. + +

This parameter defaults to the maven build-output-directory for +classes. Additionally, all dependencies are scanned for annotated +classes.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: project.build.outputDirectory
  • +

+

outputFile:

+ +
Output file. + +

If the specified filename is not absolut, the file will be +created relative to the project build directory +(project.build.directory).

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.update
  • + +
  • Default: update.sql
  • +

+

password:

+ +
Database password
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.connection.password
  • +

+

persistenceUnit:

+ +
Name of the persistence-unit. If this parameter is specified, the +plugin will try to load configuration values from a +persistence-unit with the specified name. If no such +persistence-unit can be found, the plugin will throw an exception. + +

If this parameter is not set and there is only one +persistence-unit available, that unit will be used automatically. +But if this parameter is not set and there are multiple +persistence-units available on, the class-path, the execution of +the plugin will fail.

+ +

Settings in this file will overwrite settings in the properties +or the configuration file.

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.1.0
  • + +
  • Required: No
  • +

+

physicalNamingStrategy:

+ +
Physical naming strategy
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 2.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.physical_naming_strategy
  • +

+

scanClasses:

+ +
Wether the project should be scanned for annotated-classes, or not + +

This parameter is intended to allow overwriting of the parameter +exclude-unlisted-classes of a +persistence-unit. If not specified, it defaults to +true

+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 2.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.scan.classes
  • +

+

scanDependencies:

+ +
Dependency-Scopes, that should be scanned for annotated classes. + +

By default, only dependencies in the scope compile +are scanned for annotated classes. Multiple scopes can be seperated +by white space or commas.

+ +

If you do not want any dependencies to be scanned for annotated +classes, set this parameter to none.

+ +

The plugin does not scan for annotated classes in transitive +dependencies. If some of your annotated classes are hidden in a +transitive dependency, you can simply add that dependency +explicitly.

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0.3
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.scan.dependencies
  • + +
  • Default: compile
  • +

+

scanTestClasses:

+ +
Whether to scan the test-branch of the project for annotated +classes, or not. + +

If this parameter is set to true the test-classes +of the artifact will be scanned for hibernate-annotated classes +additionally.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 1.0.1
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.scan.test_classes
  • + +
  • Default: false
  • +

+

show:

+ +
Show the generated SQL in the command-line output.
+ +
    + +
  • Type: java.lang.Boolean
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.show_sql
  • +

+

skip:

+ +
Skip execution + +

If set to true, the execution is skipped.

+ +

A skipped execution is signaled via the maven-property +${hibernate.schema.skipped}.

+ +

The execution is skipped automatically, if no modified or newly +added annotated classes are found and the dialect was not +changed.

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: boolean
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.schema.skip
  • + +
  • Default: ${maven.test.skip}
  • +

+

testOutputDirectory:

+ +
Test-Classes-Directory to scan. + +

This parameter defaults to the maven build-output-directory for +test-classes.

+ +

This parameter is only used, when scanTestClasses +is set to true!

+ +

Important: This configuration value can only be +configured through the pom.xml, or by the definition +of a system-property, because it is not known by Hibernate nor JPA +and, hence, not picked up from their configuration!

+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0.2
  • + +
  • Required: No
  • + +
  • User Property: project.build.testOutputDirectory
  • +

+

url:

+ +
Database URL.
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.connection.url
  • +

+

username:

+ +
Database username
+ +
    + +
  • Type: java.lang.String
  • + +
  • Since: 1.0
  • + +
  • Required: No
  • + +
  • User Property: hibernate.connection.username
  • +
+
+
+ + +
+
+

Pages

+

+

+

+ + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref-test/allclasses-frame.html b/projects/hibernate-maven-plugin/2.1.0/xref-test/allclasses-frame.html new file mode 100644 index 0000000..8253aeb --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref-test/allclasses-frame.html @@ -0,0 +1,20 @@ + + + + + + All Classes + + + + +

All Classes

+ + + + + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref-test/de/juplo/test/FileComparator.html b/projects/hibernate-maven-plugin/2.1.0/xref-test/de/juplo/test/FileComparator.html new file mode 100644 index 0000000..64291cd --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref-test/de/juplo/test/FileComparator.html @@ -0,0 +1,70 @@ + + + +FileComparator xref + + + +
View Javadoc
+1   package de.juplo.test;
+2   
+3   import java.io.BufferedReader;
+4   import java.io.File;
+5   import java.io.FileNotFoundException;
+6   import java.io.FileReader;
+7   import java.io.IOException;
+8   
+9   
+10  public class FileComparator
+11  {
+12    private final File basedir;
+13    private BufferedReader expectedReader;
+14    private BufferedReader foundReader;
+15  
+16    public FileComparator(File basedir)
+17    {
+18      this.basedir = basedir;
+19    }
+20  
+21    public boolean isEqual(final String expectedFile, final String foundFile)
+22      throws
+23        FileNotFoundException,
+24        IOException
+25    {
+26      File file;
+27      String expected, found;
+28  
+29      file = new File(basedir, expectedFile);
+30      expectedReader = new BufferedReader(new FileReader(file));
+31  
+32      file = new File(basedir, foundFile);
+33      foundReader = new BufferedReader(new FileReader(file));
+34  
+35  
+36      while ((expected = expectedReader.readLine()) != null)
+37      {
+38        found = foundReader.readLine();
+39        if (!expected.equals(found))
+40        {
+41          System.err.println("Mismatch!");
+42          System.err.println("Expected: " + expected);
+43          System.err.println("Found:    " + found);
+44          return false;
+45        }
+46      }
+47  
+48      if ((found = foundReader.readLine()) != null)
+49      {
+50        System.err.println("Found more content than expected!");
+51        System.err.println("Starting with: " + found);
+52        return false;
+53      }
+54  
+55      return true;
+56    }
+57  }
+
+
+ + + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref-test/de/juplo/test/package-frame.html b/projects/hibernate-maven-plugin/2.1.0/xref-test/de/juplo/test/package-frame.html new file mode 100644 index 0000000..be57c64 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref-test/de/juplo/test/package-frame.html @@ -0,0 +1,24 @@ + + + + + + Hibernate Maven Plugin 2.1.0 Reference Package de.juplo.test + + + + +

+ de.juplo.test +

+ +

Classes

+ + + + + \ No newline at end of file diff --git a/projects/hibernate-maven-plugin/2.1.0/xref-test/de/juplo/test/package-summary.html b/projects/hibernate-maven-plugin/2.1.0/xref-test/de/juplo/test/package-summary.html new file mode 100644 index 0000000..c0b505b --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref-test/de/juplo/test/package-summary.html @@ -0,0 +1,69 @@ + + + + + + Hibernate Maven Plugin 2.1.0 Reference Package de.juplo.test + + + +
+ +
+
+ +
+ +

Package de.juplo.test

+ + + + + + + + + + + + +
Class Summary
+ FileComparator +
+ +
+ +
+
+ +
+
+ + + \ No newline at end of file diff --git a/projects/hibernate-maven-plugin/2.1.0/xref-test/index.html b/projects/hibernate-maven-plugin/2.1.0/xref-test/index.html new file mode 100644 index 0000000..7cc75cb --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref-test/index.html @@ -0,0 +1,25 @@ + + + + + + + Hibernate Maven Plugin 2.1.0 Reference + + + + + + + + + <body> + <h1>Frame Alert</h1> + <p> + You don't have frames. Go <a href="overview-summary.html">here</a> + </p> + </body> + + + + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref-test/overview-frame.html b/projects/hibernate-maven-plugin/2.1.0/xref-test/overview-frame.html new file mode 100644 index 0000000..1373d48 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref-test/overview-frame.html @@ -0,0 +1,25 @@ + + + + + + Hibernate Maven Plugin 2.1.0 Reference + + + + +

+ All Classes +

+ +

Packages

+ + + + + + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref-test/overview-summary.html b/projects/hibernate-maven-plugin/2.1.0/xref-test/overview-summary.html new file mode 100644 index 0000000..56d682e --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref-test/overview-summary.html @@ -0,0 +1,66 @@ + + + + + + Hibernate Maven Plugin 2.1.0 Reference + + + +
+ +
+
+ +
+ +

Hibernate Maven Plugin 2.1.0 Reference

+ + + + + + + + + + + + +
Packages
+ de.juplo.test +
+ +
+ +
+
+ +
+ +
+ + + \ No newline at end of file diff --git a/projects/hibernate-maven-plugin/2.1.0/xref-test/stylesheet.css b/projects/hibernate-maven-plugin/2.1.0/xref-test/stylesheet.css new file mode 100644 index 0000000..89732f8 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref-test/stylesheet.css @@ -0,0 +1,114 @@ +/* Javadoc style sheet */ +/* Define colors, fonts and other style attributes here to override the defaults */ +body { + background-color: #fff; + font-family: Arial, Helvetica, sans-serif; +} + +a:link { + color: #00f; +} +a:visited { + color: #00a; +} + +a:active, a:hover { + color: #f30 !important; +} + +ul, li { + list-style-type:none; + margin:0; + padding:0; +} + +table td { + padding: 3px; + border: 1px solid #000; +} +table { + width:100%; + border: 1px solid #000; + border-collapse: collapse; +} + +div.overview { + background-color:#ddd; + padding: 4px 4px 4px 0; +} +div.overview li, div.framenoframe li { + display: inline; +} +div.framenoframe { + text-align: center; + font-size: x-small; +} +div.framenoframe li { + margin: 0 3px 0 3px; +} +div.overview li { + margin:3px 3px 0 3px; + padding: 4px; +} +li.selected { + background-color:#888; + color: #fff; + font-weight: bold; +} + +table.summary { + margin-bottom: 20px; +} +table.summary td, table.summary th { + font-weight: bold; + text-align: left; + padding: 3px; +} +table.summary th { + background-color:#036; + color: #fff; +} +table.summary td { + background-color:#eee; + border: 1px solid black; +} + +em { + color: #A00; +} +em.comment { + color: #390; +} +.string { + color: #009; +} + +#overview { + padding:2px; +} + +hr { + height: 1px; + color: #000; +} + +/* JXR style sheet */ +.jxr_comment +{ + color: #390; +} + +.jxr_javadoccomment +{ + color: #A00; +} + +.jxr_string +{ + color: #009; +} + +.jxr_keyword +{ + color: #000; +} diff --git a/projects/hibernate-maven-plugin/2.1.0/xref/allclasses-frame.html b/projects/hibernate-maven-plugin/2.1.0/xref/allclasses-frame.html new file mode 100644 index 0000000..e6fb5b8 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref/allclasses-frame.html @@ -0,0 +1,44 @@ + + + + + + All Classes + + + + +

All Classes

+ + + + + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/AbstractSchemaMojo.html b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/AbstractSchemaMojo.html new file mode 100644 index 0000000..8522d9a --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/AbstractSchemaMojo.html @@ -0,0 +1,1433 @@ + + + +AbstractSchemaMojo xref + + + +
View Javadoc
+1   package de.juplo.plugins.hibernate;
+2   
+3   
+4   import com.pyx4j.log4j.MavenLogAppender;
+5   import java.io.File;
+6   import java.io.FileInputStream;
+7   import java.io.FileOutputStream;
+8   import java.io.IOException;
+9   import java.io.InputStream;
+10  import java.net.MalformedURLException;
+11  import java.net.URL;
+12  import java.security.NoSuchAlgorithmException;
+13  import java.time.ZonedDateTime;
+14  import java.util.Collections;
+15  import java.util.EnumSet;
+16  import java.util.HashMap;
+17  import java.util.HashSet;
+18  import java.util.Iterator;
+19  import java.util.LinkedHashSet;
+20  import java.util.List;
+21  import java.util.Map;
+22  import java.util.Map.Entry;
+23  import java.util.Properties;
+24  import java.util.Set;
+25  import java.util.regex.Matcher;
+26  import java.util.regex.Pattern;
+27  import javax.persistence.Embeddable;
+28  import javax.persistence.Entity;
+29  import javax.persistence.MappedSuperclass;
+30  import javax.persistence.spi.PersistenceUnitTransactionType;
+31  import org.apache.maven.artifact.Artifact;
+32  import org.apache.maven.model.Resource;
+33  import org.apache.maven.plugin.AbstractMojo;
+34  import org.apache.maven.plugin.MojoExecutionException;
+35  import org.apache.maven.plugin.MojoFailureException;
+36  import org.apache.maven.project.MavenProject;
+37  import org.hibernate.boot.MetadataBuilder;
+38  import org.hibernate.boot.MetadataSources;
+39  import org.hibernate.boot.cfgxml.internal.ConfigLoader;
+40  import org.hibernate.boot.cfgxml.spi.LoadedConfig;
+41  import org.hibernate.boot.cfgxml.spi.MappingReference;
+42  import org.hibernate.boot.model.naming.ImplicitNamingStrategy;
+43  import org.hibernate.boot.model.naming.PhysicalNamingStrategy;
+44  import org.hibernate.boot.registry.BootstrapServiceRegistry;
+45  import org.hibernate.boot.registry.BootstrapServiceRegistryBuilder;
+46  import org.hibernate.boot.registry.StandardServiceRegistry;
+47  import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
+48  import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
+49  import org.hibernate.boot.registry.classloading.spi.ClassLoadingException;
+50  import org.hibernate.boot.registry.selector.spi.StrategySelector;
+51  import org.hibernate.boot.spi.MetadataImplementor;
+52  import org.hibernate.cfg.AvailableSettings;
+53  import static org.hibernate.cfg.AvailableSettings.DIALECT;
+54  import static org.hibernate.cfg.AvailableSettings.DRIVER;
+55  import static org.hibernate.cfg.AvailableSettings.FORMAT_SQL;
+56  import static org.hibernate.cfg.AvailableSettings.HBM2DDL_DELIMITER;
+57  import static org.hibernate.cfg.AvailableSettings.HBM2DLL_CREATE_NAMESPACES;
+58  import static org.hibernate.cfg.AvailableSettings.IMPLICIT_NAMING_STRATEGY;
+59  import static org.hibernate.cfg.AvailableSettings.JPA_JDBC_DRIVER;
+60  import static org.hibernate.cfg.AvailableSettings.JPA_JDBC_PASSWORD;
+61  import static org.hibernate.cfg.AvailableSettings.JPA_JDBC_URL;
+62  import static org.hibernate.cfg.AvailableSettings.JPA_JDBC_USER;
+63  import static org.hibernate.cfg.AvailableSettings.PASS;
+64  import static org.hibernate.cfg.AvailableSettings.PHYSICAL_NAMING_STRATEGY;
+65  import static org.hibernate.cfg.AvailableSettings.SHOW_SQL;
+66  import static org.hibernate.cfg.AvailableSettings.USER;
+67  import static org.hibernate.cfg.AvailableSettings.URL;
+68  import org.hibernate.engine.config.spi.ConfigurationService;
+69  import org.hibernate.engine.jdbc.connections.spi.ConnectionProvider;
+70  import org.hibernate.internal.util.config.ConfigurationException;
+71  import org.hibernate.jpa.boot.internal.ParsedPersistenceXmlDescriptor;
+72  import org.hibernate.jpa.boot.internal.PersistenceXmlParser;
+73  import org.hibernate.tool.schema.TargetType;
+74  import org.hibernate.tool.schema.internal.ExceptionHandlerCollectingImpl;
+75  import org.hibernate.tool.schema.internal.exec.ScriptTargetOutputToFile;
+76  import org.hibernate.tool.schema.spi.ExecutionOptions;
+77  import org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator;
+78  import org.hibernate.tool.schema.spi.ScriptTargetOutput;
+79  import org.hibernate.tool.schema.spi.TargetDescriptor;
+80  import org.scannotation.AnnotationDB;
+81  
+82  
+83  /**
+84   * Baseclass with common attributes and methods.
+85   *
+86   * @phase process-classes
+87   * @threadSafe
+88   * @requiresDependencyResolution runtime
+89   */
+90  public abstract class AbstractSchemaMojo extends AbstractMojo
+91  {
+92    public final static String EXECUTE = "hibernate.schema.execute";
+93    public final static String OUTPUTDIRECTORY = "project.build.outputDirectory";
+94    public final static String SCAN_CLASSES = "hibernate.schema.scan.classes";
+95    public final static String SCAN_DEPENDENCIES = "hibernate.schema.scan.dependencies";
+96    public final static String SCAN_TESTCLASSES = "hibernate.schema.scan.test_classes";
+97    public final static String TEST_OUTPUTDIRECTORY = "project.build.testOutputDirectory";
+98    public final static String SKIPPED = "hibernate.schema.skipped";
+99    public final static String SCRIPT = "hibernate.schema.script";
+100 
+101   private final static Pattern SPLIT = Pattern.compile("[^,\\s]+");
+102 
+103   private final Set<String> packages = new HashSet<String>();
+104 
+105 
+106   /**
+107    * The maven project.
+108    * <p>
+109    * Only needed internally.
+110    *
+111    * @parameter property="project"
+112    * @required
+113    * @readonly
+114    */
+115   private MavenProject project;
+116 
+117   /**
+118    * Build-directory.
+119    * <p>
+120    * Only needed internally.
+121    *
+122    * @parameter property="project.build.directory"
+123    * @required
+124    * @readonly
+125    */
+126   private String buildDirectory;
+127 
+128 
+129   /** Parameters to configure the genaration of the SQL *********************/
+130 
+131   /**
+132    * Excecute the generated SQL.
+133    * If set to <code>false</code>, only the SQL-script is created and the
+134    * database is not touched.
+135    * <p>
+136    * <strong>Important:</strong>
+137    * This configuration value can only be configured through the
+138    * <code>pom.xml</code>, or by the definition of a system-property, because
+139    * it is not known by Hibernate nor JPA and, hence, not picked up from
+140    * their configuration!
+141    *
+142    * @parameter property="hibernate.schema.execute" default-value="true"
+143    * @since 2.0
+144    */
+145   private Boolean execute;
+146 
+147   /**
+148    * Skip execution
+149    * <p>
+150    * If set to <code>true</code>, the execution is skipped.
+151    * <p>
+152    * A skipped execution is signaled via the maven-property
+153    * <code>${hibernate.schema.skipped}</code>.
+154    * <p>
+155    * The execution is skipped automatically, if no modified or newly added
+156    * annotated classes are found and the dialect was not changed.
+157    * <p>
+158    * <strong>Important:</strong>
+159    * This configuration value can only be configured through the
+160    * <code>pom.xml</code>, or by the definition of a system-property, because
+161    * it is not known by Hibernate nor JPA and, hence, not picked up from
+162    * their configuration!
+163    *
+164    * @parameter property="hibernate.schema.skip" default-value="${maven.test.skip}"
+165    * @since 1.0
+166    */
+167   private boolean skip;
+168 
+169   /**
+170    * Force generation/execution
+171    * <p>
+172    * Force the generation and (if configured) the execution of the SQL, even if
+173    * no modified or newly added annotated classes where found and the
+174    * configuration was not changed.
+175    * <p>
+176    * <code>skip</code> takes precedence over <code>force</code>.
+177    * <p>
+178    * <strong>Important:</strong>
+179    * This configuration value can only be configured through the
+180    * <code>pom.xml</code>, or by the definition of a system-property, because
+181    * it is not known by Hibernate nor JPA and, hence, not picked up from
+182    * their configuration!
+183    *
+184    * @parameter property="hibernate.schema.force" default-value="false"
+185    * @since 1.0
+186    */
+187   private boolean force;
+188 
+189   /**
+190    * Hibernate dialect.
+191    *
+192    * @parameter property="hibernate.dialect"
+193    * @since 1.0
+194    */
+195   private String dialect;
+196 
+197   /**
+198    * Delimiter in output-file.
+199    * <p>
+200    * <strong>Important:</strong>
+201    * This configuration value can only be configured through the
+202    * <code>pom.xml</code>, or by the definition of a system-property, because
+203    * it is not known by Hibernate nor JPA and, hence, not picked up from
+204    * their configuration!
+205    *
+206    * @parameter property="hibernate.hbm2ddl.delimiter" default-value=";"
+207    * @since 1.0
+208    */
+209   private String delimiter;
+210 
+211   /**
+212    * Show the generated SQL in the command-line output.
+213    *
+214    * @parameter property="hibernate.show_sql"
+215    * @since 1.0
+216    */
+217   private Boolean show;
+218 
+219   /**
+220    * Format output-file.
+221    *
+222    * @parameter property="hibernate.format_sql"
+223    * @since 1.0
+224    */
+225   private Boolean format;
+226 
+227   /**
+228    * Specifies whether to automatically create also the database schema/catalog.
+229    *
+230    * @parameter property="hibernate.hbm2dll.create_namespaces" default-value="false"
+231    * @since 2.0
+232    */
+233   private Boolean createNamespaces;
+234 
+235   /**
+236    * Implicit naming strategy
+237    *
+238    * @parameter property="hibernate.implicit_naming_strategy"
+239    * @since 2.0
+240    */
+241   private String implicitNamingStrategy;
+242 
+243   /**
+244    * Physical naming strategy
+245    *
+246    * @parameter property="hibernate.physical_naming_strategy"
+247    * @since 2.0
+248    */
+249   private String physicalNamingStrategy;
+250 
+251   /**
+252    * Wether the project should be scanned for annotated-classes, or not
+253    * <p>
+254    * This parameter is intended to allow overwriting of the parameter
+255    * <code>exclude-unlisted-classes</code> of a <code>persistence-unit</code>.
+256    * If not specified, it defaults to <code>true</code>
+257    *
+258    * @parameter property="hibernate.schema.scan.classes"
+259    * @since 2.0
+260    */
+261   private Boolean scanClasses;
+262 
+263   /**
+264    * Classes-Directory to scan.
+265    * <p>
+266    * This parameter defaults to the maven build-output-directory for classes.
+267    * Additionally, all dependencies are scanned for annotated classes.
+268    * <p>
+269    * <strong>Important:</strong>
+270    * This configuration value can only be configured through the
+271    * <code>pom.xml</code>, or by the definition of a system-property, because
+272    * it is not known by Hibernate nor JPA and, hence, not picked up from
+273    * their configuration!
+274    *
+275    * @parameter property="project.build.outputDirectory"
+276    * @since 1.0
+277    */
+278   private String outputDirectory;
+279 
+280   /**
+281    * Dependency-Scopes, that should be scanned for annotated classes.
+282    * <p>
+283    * By default, only dependencies in the scope <code>compile</code> are
+284    * scanned for annotated classes. Multiple scopes can be seperated by
+285    * white space or commas.
+286    * <p>
+287    * If you do not want any dependencies to be scanned for annotated
+288    * classes, set this parameter to <code>none</code>.
+289    * <p>
+290    * The plugin does not scan for annotated classes in transitive
+291    * dependencies. If some of your annotated classes are hidden in a
+292    * transitive dependency, you can simply add that dependency explicitly.
+293    *
+294    * @parameter property="hibernate.schema.scan.dependencies" default-value="compile"
+295    * @since 1.0.3
+296    */
+297   private String scanDependencies;
+298 
+299   /**
+300    * Whether to scan the test-branch of the project for annotated classes, or
+301    * not.
+302    * <p>
+303    * If this parameter is set to <code>true</code> the test-classes of the
+304    * artifact will be scanned for hibernate-annotated classes additionally.
+305    * <p>
+306    * <strong>Important:</strong>
+307    * This configuration value can only be configured through the
+308    * <code>pom.xml</code>, or by the definition of a system-property, because
+309    * it is not known by Hibernate nor JPA and, hence, not picked up from
+310    * their configuration!
+311    *
+312    * @parameter property="hibernate.schema.scan.test_classes" default-value="false"
+313    * @since 1.0.1
+314    */
+315   private Boolean scanTestClasses;
+316 
+317   /**
+318    * Test-Classes-Directory to scan.
+319    * <p>
+320    * This parameter defaults to the maven build-output-directory for
+321    * test-classes.
+322    * <p>
+323    * This parameter is only used, when <code>scanTestClasses</code> is set
+324    * to <code>true</code>!
+325    * <p>
+326    * <strong>Important:</strong>
+327    * This configuration value can only be configured through the
+328    * <code>pom.xml</code>, or by the definition of a system-property, because
+329    * it is not known by Hibernate nor JPA and, hence, not picked up from
+330    * their configuration!
+331    *
+332    * @parameter property="project.build.testOutputDirectory"
+333    * @since 1.0.2
+334    */
+335   private String testOutputDirectory;
+336 
+337 
+338   /** Conection parameters *************************************************/
+339 
+340   /**
+341    * SQL-Driver name.
+342    *
+343    * @parameter property="hibernate.connection.driver_class"
+344    * @since 1.0
+345    */
+346   private String driver;
+347 
+348   /**
+349    * Database URL.
+350    *
+351    * @parameter property="hibernate.connection.url"
+352    * @since 1.0
+353    */
+354   private String url;
+355 
+356   /**
+357    * Database username
+358    *
+359    * @parameter property="hibernate.connection.username"
+360    * @since 1.0
+361    */
+362   private String username;
+363 
+364   /**
+365    * Database password
+366    *
+367    * @parameter property="hibernate.connection.password"
+368    * @since 1.0
+369    */
+370   private String password;
+371 
+372 
+373   /** Parameters to locate configuration sources ****************************/
+374 
+375   /**
+376    * Path to a file or name of a ressource with hibernate properties.
+377    * If this parameter is specified, the plugin will try to load configuration
+378    * values from a file with the given path or a ressource on the classpath with
+379    * the given name. If both fails, the execution of the plugin will fail.
+380    * <p>
+381    * If this parameter is not set the plugin will load configuration values
+382    * from a ressource named <code>hibernate.properties</code> on the classpath,
+383    * if it is present, but will not fail if there is no such ressource.
+384    * <p>
+385    * During ressource-lookup, the test-classpath takes precedence.
+386    *
+387    * @parameter
+388    * @since 1.0
+389    */
+390   private String hibernateProperties;
+391 
+392   /**
+393    * Path to Hibernate configuration file (.cfg.xml).
+394    * If this parameter is specified, the plugin will try to load configuration
+395    * values from a file with the given path or a ressource on the classpath with
+396    * the given name. If both fails, the execution of the plugin will fail.
+397    * <p>
+398    * If this parameter is not set the plugin will load configuration values
+399    * from a ressource named <code>hibernate.cfg.xml</code> on the classpath,
+400    * if it is present, but will not fail if there is no such ressource.
+401    * <p>
+402    * During ressource-lookup, the test-classpath takes precedence.
+403    * <p>
+404    * Settings in this file will overwrite settings in the properties file.
+405    *
+406    * @parameter
+407    * @since 1.1.0
+408    */
+409   private String hibernateConfig;
+410 
+411   /**
+412    * Name of the persistence-unit.
+413    * If this parameter is specified, the plugin will try to load configuration
+414    * values from a persistence-unit with the specified name. If no such
+415    * persistence-unit can be found, the plugin will throw an exception.
+416    * <p>
+417    * If this parameter is not set and there is only one persistence-unit
+418    * available, that unit will be used automatically. But if this parameter is
+419    * not set and there are multiple persistence-units available on,
+420    * the class-path, the execution of the plugin will fail.
+421    * <p>
+422    * Settings in this file will overwrite settings in the properties or the
+423    * configuration file.
+424    *
+425    * @parameter
+426    * @since 1.1.0
+427    */
+428   private String persistenceUnit;
+429 
+430   /**
+431    * List of Hibernate-Mapping-Files (XML).
+432    * Multiple files can be separated with white-spaces and/or commas.
+433    *
+434    * @parameter property="hibernate.mapping"
+435    * @since 1.0.2
+436    */
+437   private String mappings;
+438 
+439 
+440 
+441   public final void execute(String filename)
+442     throws
+443       MojoFailureException,
+444       MojoExecutionException
+445   {
+446     if (skip)
+447     {
+448       getLog().info("Execution of hibernate-maven-plugin was skipped!");
+449       project.getProperties().setProperty(SKIPPED, "true");
+450       return;
+451     }
+452 
+453     ModificationTracker tracker;
+454     try
+455     {
+456       tracker = new ModificationTracker(buildDirectory, filename, getLog());
+457     }
+458     catch (NoSuchAlgorithmException e)
+459     {
+460       throw new MojoFailureException("Digest-Algorithm MD5 is missing!", e);
+461     }
+462 
+463     final SimpleConnectionProvider connectionProvider =
+464         new SimpleConnectionProvider(getLog());
+465 
+466     try
+467     {
+468       /** Start extended logging */
+469       MavenLogAppender.startPluginLog(this);
+470 
+471       /** Load checksums for old mapping and configuration */
+472       tracker.load();
+473 
+474       /** Create the ClassLoader */
+475       MutableClassLoader classLoader = createClassLoader();
+476 
+477       /** Create a BootstrapServiceRegistry with the created ClassLoader */
+478       BootstrapServiceRegistry bootstrapServiceRegitry =
+479           new BootstrapServiceRegistryBuilder()
+480               .applyClassLoader(classLoader)
+481               .build();
+482       ClassLoaderService classLoaderService =
+483           bootstrapServiceRegitry.getService(ClassLoaderService.class);
+484 
+485       Properties properties = new Properties();
+486       ConfigLoader configLoader = new ConfigLoader(bootstrapServiceRegitry);
+487 
+488       /** Loading and merging configuration */
+489       properties.putAll(loadProperties(configLoader));
+490       LoadedConfig config = loadConfig(configLoader);
+491       if (config != null)
+492         properties.putAll(config.getConfigurationValues());
+493       ParsedPersistenceXmlDescriptor unit =
+494           loadPersistenceUnit(classLoaderService, properties);
+495       if (unit != null)
+496         properties.putAll(unit.getProperties());
+497 
+498       /** Overwriting/Completing configuration */
+499       configure(properties, tracker);
+500 
+501       /** Check configuration for modifications */
+502       if(tracker.track(properties))
+503         getLog().debug("Configuration has changed.");
+504       else
+505         getLog().debug("Configuration unchanged.");
+506 
+507       /** Check, that the outputfile is writable */
+508       final File output = getOutputFile(filename);
+509       /** Check, if the outputfile is missing or was changed */
+510       checkOutputFile(output, tracker);
+511 
+512       /** Configure Hibernate */
+513       final StandardServiceRegistry serviceRegistry =
+514           new StandardServiceRegistryBuilder(bootstrapServiceRegitry)
+515               .applySettings(properties)
+516               .addService(ConnectionProvider.class, connectionProvider)
+517               .build();
+518       final MetadataSources sources = new MetadataSources(serviceRegistry);
+519 
+520       /** Add the remaining class-path-elements */
+521       completeClassPath(classLoader);
+522 
+523       /** Apply mappings from hibernate-configuration, if present */
+524       if (config != null)
+525       {
+526         for (MappingReference mapping : config.getMappingReferences())
+527           mapping.apply(sources);
+528       }
+529 
+530       Set<String> classes;
+531       if (unit == null)
+532       {
+533         /** No persistent unit: default behaviour */
+534         if (scanClasses == null)
+535           scanClasses = true;
+536         Set<URL> urls = new HashSet<URL>();
+537         if (scanClasses)
+538           addRoot(urls, outputDirectory);
+539         if (scanTestClasses)
+540           addRoot(urls, testOutputDirectory);
+541         addDependencies(urls);
+542         classes = scanUrls(urls);
+543       }
+544       else
+545       {
+546         /** Follow configuration in persisten unit */
+547         if (scanClasses == null)
+548           scanClasses = !unit.isExcludeUnlistedClasses();
+549         Set<URL> urls = new HashSet<URL>();
+550         if (scanClasses)
+551         {
+552           /**
+553            * Scan the root of the persiten unit and configured jars for
+554            * annotated classes
+555            */
+556           urls.add(unit.getPersistenceUnitRootUrl());
+557           for (URL url : unit.getJarFileUrls())
+558             urls.add(url);
+559         }
+560         if (scanTestClasses)
+561           addRoot(urls, testOutputDirectory);
+562         classes = scanUrls(urls);
+563         for (String className : unit.getManagedClassNames())
+564           classes.add(className);
+565         /**
+566          * Add mappings from the default mapping-file
+567          * <code>META-INF/orm.xml</code>, if present
+568          */
+569         boolean error = false;
+570         InputStream is;
+571         is = classLoader.getResourceAsStream("META-INF/orm.xml");
+572         if (is != null)
+573         {
+574           getLog().info("Adding default JPA-XML-mapping from META-INF/orm.xml");
+575           try
+576           {
+577             tracker.track("META-INF/orm.xml", is);
+578             sources.addResource("META-INF/orm.xml");
+579           }
+580           catch (IOException e)
+581           {
+582             getLog().error("cannot read META-INF/orm.xml: " + e);
+583             error = true;
+584           }
+585         }
+586         else
+587         {
+588           getLog().debug("no META-INF/orm.xml found");
+589         }
+590         /**
+591          * Add mappings from files, that are explicitly configured in the
+592          * persistence unit
+593          */
+594         for (String mapping : unit.getMappingFileNames())
+595         {
+596           getLog().info("Adding explicitly configured mapping from " + mapping);
+597           is = classLoader.getResourceAsStream(mapping);
+598           if (is != null)
+599           {
+600             try
+601             {
+602               tracker.track(mapping, is);
+603               sources.addResource(mapping);
+604             }
+605             catch (IOException e)
+606             {
+607               getLog().info("cannot read mapping-file " + mapping + ": " + e);
+608               error = true;
+609             }
+610           }
+611           else
+612           {
+613             getLog().error("cannot find mapping-file " + mapping);
+614             error = true;
+615           }
+616         }
+617         if (error)
+618           throw new MojoFailureException(
+619               "error, while reading mappings configured in persistence-unit \"" +
+620               unit.getName() +
+621               "\""
+622               );
+623       }
+624 
+625       /** Add the configured/collected annotated classes */
+626       for (String className : classes)
+627         addAnnotated(className, sources, classLoaderService, tracker);
+628 
+629       /** Add explicitly configured classes */
+630       addMappings(sources, tracker);
+631 
+632       /** Skip execution, if mapping and configuration is unchanged */
+633       if (!tracker.modified())
+634       {
+635         getLog().info("Mapping and configuration unchanged.");
+636         if (force)
+637           getLog().info("Generation/execution is forced!");
+638         else
+639         {
+640           getLog().info("Skipping schema generation!");
+641           project.getProperties().setProperty(SKIPPED, "true");
+642           return;
+643         }
+644       }
+645 
+646 
+647       /** Truncate output file */
+648       try
+649       {
+650         new FileOutputStream(output).getChannel().truncate(0).close();
+651       }
+652       catch (IOException e)
+653       {
+654         String error =
+655             "Error while truncating " + output.getAbsolutePath() + ": "
+656             + e.getMessage();
+657         getLog().warn(error);
+658         throw new MojoExecutionException(error);
+659       }
+660 
+661       /** Create a connection, if sufficient configuration infromation is available */
+662       connectionProvider.open(classLoaderService, properties);
+663 
+664       MetadataBuilder metadataBuilder = sources.getMetadataBuilder();
+665 
+666       StrategySelector strategySelector =
+667           serviceRegistry.getService(StrategySelector.class);
+668 
+669       if (properties.containsKey(IMPLICIT_NAMING_STRATEGY))
+670       {
+671         metadataBuilder.applyImplicitNamingStrategy(
+672             strategySelector.resolveStrategy(
+673                 ImplicitNamingStrategy.class,
+674                 properties.getProperty(IMPLICIT_NAMING_STRATEGY)
+675                 )
+676             );
+677       }
+678 
+679       if (properties.containsKey(PHYSICAL_NAMING_STRATEGY))
+680       {
+681         metadataBuilder.applyPhysicalNamingStrategy(
+682             strategySelector.resolveStrategy(
+683                 PhysicalNamingStrategy.class,
+684                 properties.getProperty(PHYSICAL_NAMING_STRATEGY)
+685                 )
+686             );
+687       }
+688 
+689       /** Prepare the generation of the SQL */
+690       Map settings = new HashMap();
+691       settings.putAll(
+692           serviceRegistry
+693               .getService(ConfigurationService.class)
+694               .getSettings()
+695               );
+696       ExceptionHandlerCollectingImpl handler =
+697           new ExceptionHandlerCollectingImpl();
+698       ExecutionOptions options =
+699           SchemaManagementToolCoordinator
+700               .buildExecutionOptions(settings, handler);
+701       final EnumSet<TargetType> targetTypes = EnumSet.of(TargetType.SCRIPT);
+702       if (execute)
+703         targetTypes.add(TargetType.DATABASE);
+704       TargetDescriptor target = new TargetDescriptor()
+705       {
+706         @Override
+707         public EnumSet<TargetType> getTargetTypes()
+708         {
+709           return targetTypes;
+710         }
+711 
+712         @Override
+713         public ScriptTargetOutput getScriptTargetOutput()
+714         {
+715           String charset =
+716               (String)
+717               serviceRegistry
+718                   .getService(ConfigurationService.class)
+719                   .getSettings()
+720                   .get(AvailableSettings.HBM2DDL_CHARSET_NAME);
+721           return new ScriptTargetOutputToFile(output, charset);
+722         }
+723       };
+724 
+725       /**
+726        * Change class-loader of current thread.
+727        * This is necessary, because still not all parts of Hibernate 5 use
+728        * the newly introduced ClassLoaderService and will fail otherwise!
+729        */
+730       Thread thread = Thread.currentThread();
+731       ClassLoader contextClassLoader = thread.getContextClassLoader();
+732       try
+733       {
+734         thread.setContextClassLoader(classLoader);
+735         build((MetadataImplementor)metadataBuilder.build(), options, target);
+736         if (handler.getExceptions().size() > 0)
+737         {
+738           StringBuilder builder = new StringBuilder();
+739           builder.append("Hibernate failed:");
+740           for (Exception e : handler.getExceptions())
+741           {
+742             builder.append("\n * ");
+743             builder.append(e.getMessage());
+744             AbstractSchemaMojo.printStrackTrace(builder, e);
+745             builder.append("\n");
+746           }
+747           String error = builder.toString();
+748           getLog().error(error);
+749           throw new MojoFailureException(error);
+750         }
+751       }
+752       finally
+753       {
+754         thread.setContextClassLoader(contextClassLoader);
+755         /** Track, the content of the generated script */
+756         checkOutputFile(output, tracker);
+757       }
+758     }
+759     catch (MojoExecutionException e)
+760     {
+761       tracker.failed();
+762       throw e;
+763     }
+764     catch (MojoFailureException e)
+765     {
+766       tracker.failed();
+767       throw e;
+768     }
+769     catch (RuntimeException e)
+770     {
+771       tracker.failed();
+772       throw e;
+773     }
+774     finally
+775     {
+776       /** Remember mappings and configuration */
+777       tracker.save();
+778 
+779       /** Close the connection - if one was opened */
+780       connectionProvider.close();
+781 
+782       /** Stop Log-Capturing */
+783       MavenLogAppender.endPluginLog(this);
+784     }
+785   }
+786 
+787 
+788   abstract void build(
+789       MetadataImplementor metadata,
+790       ExecutionOptions options,
+791       TargetDescriptor target
+792       )
+793     throws
+794       MojoFailureException,
+795       MojoExecutionException;
+796 
+797 
+798   private MutableClassLoader createClassLoader() throws MojoExecutionException
+799   {
+800     try
+801     {
+802       getLog().debug("Creating ClassLoader for project-dependencies...");
+803       LinkedHashSet<URL> urls = new LinkedHashSet<URL>();
+804       File file;
+805 
+806       file = new File(testOutputDirectory);
+807       if (!file.exists())
+808       {
+809         getLog().info("Creating test-output-directory: " + testOutputDirectory);
+810         file.mkdirs();
+811       }
+812       urls.add(file.toURI().toURL());
+813 
+814       file = new File(outputDirectory);
+815       if (!file.exists())
+816       {
+817         getLog().info("Creating output-directory: " + outputDirectory);
+818         file.mkdirs();
+819       }
+820       urls.add(file.toURI().toURL());
+821 
+822       return new MutableClassLoader(urls, getLog());
+823     }
+824     catch (Exception e)
+825     {
+826       getLog().error("Error while creating ClassLoader!", e);
+827       throw new MojoExecutionException(e.getMessage());
+828     }
+829   }
+830 
+831   private void completeClassPath(MutableClassLoader classLoader)
+832       throws
+833         MojoExecutionException
+834   {
+835     try
+836     {
+837       getLog().debug("Completing class-paths of the ClassLoader for project-dependencies...");
+838       List<String> classpathFiles = project.getCompileClasspathElements();
+839       if (scanTestClasses)
+840         classpathFiles.addAll(project.getTestClasspathElements());
+841       LinkedHashSet<URL> urls = new LinkedHashSet<URL>();
+842       for (String pathElement : classpathFiles)
+843       {
+844         getLog().debug("Dependency: " + pathElement);
+845         urls.add(new File(pathElement).toURI().toURL());
+846       }
+847       classLoader.add(urls);
+848     }
+849     catch (Exception e)
+850     {
+851       getLog().error("Error while creating ClassLoader!", e);
+852       throw new MojoExecutionException(e.getMessage());
+853     }
+854   }
+855 
+856   private Map loadProperties(ConfigLoader configLoader)
+857       throws
+858         MojoExecutionException
+859   {
+860     /** Try to read configuration from properties-file */
+861     if (hibernateProperties == null)
+862     {
+863       try
+864       {
+865         return configLoader.loadProperties("hibernate.properties");
+866       }
+867       catch (ConfigurationException e)
+868       {
+869         getLog().debug(e.getMessage());
+870         return Collections.EMPTY_MAP;
+871       }
+872     }
+873     else
+874     {
+875       try
+876       {
+877         File file = new File(hibernateProperties);
+878         if (file.exists())
+879         {
+880           getLog().info("Reading settings from file " + hibernateProperties + "...");
+881           return configLoader.loadProperties(file);
+882         }
+883         else
+884           return configLoader.loadProperties(hibernateProperties);
+885       }
+886       catch (ConfigurationException e)
+887       {
+888         getLog().error("Error while reading properties!", e);
+889         throw new MojoExecutionException(e.getMessage());
+890       }
+891     }
+892   }
+893 
+894   private LoadedConfig loadConfig(ConfigLoader configLoader)
+895       throws MojoExecutionException
+896   {
+897     /** Try to read configuration from configuration-file */
+898     if (hibernateConfig == null)
+899     {
+900       try
+901       {
+902         return configLoader.loadConfigXmlResource("hibernate.cfg.xml");
+903       }
+904       catch (ConfigurationException e)
+905       {
+906         getLog().debug(e.getMessage());
+907         return null;
+908       }
+909     }
+910     else
+911     {
+912       try
+913       {
+914         File file = new File(hibernateConfig);
+915         if (file.exists())
+916         {
+917           getLog().info("Reading configuration from file " + hibernateConfig + "...");
+918           return configLoader.loadConfigXmlFile(file);
+919         }
+920         else
+921         {
+922           return configLoader.loadConfigXmlResource(hibernateConfig);
+923         }
+924       }
+925       catch (ConfigurationException e)
+926       {
+927         getLog().error("Error while reading configuration!", e);
+928         throw new MojoExecutionException(e.getMessage());
+929       }
+930     }
+931   }
+932 
+933   private void configure(Properties properties, ModificationTracker tracker)
+934       throws MojoFailureException
+935   {
+936     /**
+937      * Special treatment for the configuration-value "execute": if it is
+938      * switched to "true", the genearation fo the schema should be forced!
+939      */
+940     if (tracker.check(EXECUTE, execute.toString()) && execute)
+941     {
+942       getLog().info(
+943           "hibernate.schema.execute was switched on: " +
+944           "forcing generation/execution of SQL"
+945           );
+946       tracker.touch();
+947     }
+948     configure(properties, execute, EXECUTE);
+949 
+950     /**
+951      * Configure the generation of the SQL.
+952      * Overwrite values from properties-file if the configuration parameter is
+953      * known to Hibernate.
+954      */
+955     configure(properties, dialect, DIALECT);
+956     configure(properties, delimiter, HBM2DDL_DELIMITER);
+957     configure(properties, format, FORMAT_SQL);
+958     configure(properties, createNamespaces, HBM2DLL_CREATE_NAMESPACES);
+959     configure(properties, implicitNamingStrategy, IMPLICIT_NAMING_STRATEGY);
+960     configure(properties, physicalNamingStrategy, PHYSICAL_NAMING_STRATEGY);
+961     configure(properties, outputDirectory, OUTPUTDIRECTORY);
+962     configure(properties, scanDependencies, SCAN_DEPENDENCIES);
+963     configure(properties, scanTestClasses, SCAN_TESTCLASSES);
+964     configure(properties, testOutputDirectory, TEST_OUTPUTDIRECTORY);
+965 
+966     /**
+967      * Special treatment for the configuration-value "show": a change of its
+968      * configured value should not lead to a regeneration of the database
+969      * schama!
+970      */
+971     if (show == null)
+972       show = Boolean.valueOf(properties.getProperty(SHOW_SQL));
+973     else
+974       properties.setProperty(SHOW_SQL, show.toString());
+975 
+976     /**
+977      * Configure the connection parameters.
+978      * Overwrite values from properties-file.
+979      */
+980     configure(properties, driver, DRIVER, JPA_JDBC_DRIVER);
+981     configure(properties, url, URL, JPA_JDBC_URL);
+982     configure(properties, username, USER, JPA_JDBC_USER);
+983     configure(properties, password, PASS, JPA_JDBC_PASSWORD);
+984 
+985     if (properties.isEmpty())
+986     {
+987       getLog().error("No properties set!");
+988       throw new MojoFailureException("Hibernate configuration is missing!");
+989     }
+990 
+991     getLog().info("Gathered configuration:");
+992     for (Entry<Object,Object> entry : properties.entrySet())
+993       getLog().info("  " + entry.getKey() + " = " + entry.getValue());
+994   }
+995 
+996   private void configure(
+997       Properties properties,
+998       String value,
+999       String key,
+1000       String alternativeKey
+1001       )
+1002   {
+1003     configure(properties, value, key);
+1004 
+1005     if (properties.containsKey(alternativeKey))
+1006     {
+1007       if (properties.containsKey(key))
+1008       {
+1009         getLog().warn(
+1010             "Ignoring property " + alternativeKey + "=\"" +
+1011             properties.getProperty(alternativeKey) +
+1012             "\" in favour for property " + key + "=\"" +
+1013             properties.getProperty(key) + "\""
+1014             );
+1015         properties.remove(alternativeKey);
+1016       }
+1017       else
+1018       {
+1019         value = properties.getProperty(alternativeKey);
+1020         properties.remove(alternativeKey);
+1021         getLog().info(
+1022             "Using value \"" + value + "\" from property " + alternativeKey +
+1023             " for property " + key
+1024             );
+1025         properties.setProperty(key, value);
+1026       }
+1027     }
+1028   }
+1029 
+1030   private void configure(Properties properties, String value, String key)
+1031   {
+1032     if (value != null)
+1033     {
+1034       if (properties.containsKey(key))
+1035       {
+1036         if (!properties.getProperty(key).equals(value))
+1037         {
+1038           getLog().info(
+1039               "Overwriting property " + key + "=\"" +
+1040               properties.getProperty(key) +
+1041               "\" with value \"" + value + "\""
+1042               );
+1043           properties.setProperty(key, value);
+1044         }
+1045       }
+1046       else
+1047       {
+1048         getLog().debug("Using value \"" + value + "\" for property " + key);
+1049         properties.setProperty(key, value);
+1050       }
+1051     }
+1052   }
+1053 
+1054   private void configure(Properties properties, Boolean value, String key)
+1055   {
+1056     configure(properties, value == null ? null : value.toString(), key);
+1057   }
+1058 
+1059   private File getOutputFile(String filename)
+1060       throws
+1061         MojoExecutionException
+1062   {
+1063     File output = new File(filename);
+1064 
+1065     if (!output.isAbsolute())
+1066     {
+1067       // Interpret relative file path relative to build directory
+1068       output = new File(buildDirectory, filename);
+1069     }
+1070     getLog().debug("Output file: " + output.getPath());
+1071 
+1072     // Ensure that directory path for specified file exists
+1073     File outFileParentDir = output.getParentFile();
+1074     if (null != outFileParentDir && !outFileParentDir.exists())
+1075     {
+1076       try
+1077       {
+1078         getLog().info(
+1079             "Creating directory path for output file:" +
+1080             outFileParentDir.getPath()
+1081             );
+1082         outFileParentDir.mkdirs();
+1083       }
+1084       catch (Exception e)
+1085       {
+1086         String error =
+1087             "Error creating directory path for output file: " + e.getMessage();
+1088         getLog().error(error);
+1089         throw new MojoExecutionException(error);
+1090       }
+1091     }
+1092 
+1093     try
+1094     {
+1095       output.createNewFile();
+1096     }
+1097     catch (IOException e)
+1098     {
+1099       String error = "Error creating output file: " + e.getMessage();
+1100       getLog().error(error);
+1101       throw new MojoExecutionException(error);
+1102     }
+1103 
+1104     if (!output.canWrite())
+1105     {
+1106       String error =
+1107           "Output file " + output.getAbsolutePath() + " is not writable!";
+1108       getLog().error(error);
+1109       throw new MojoExecutionException(error);
+1110     }
+1111 
+1112     return output;
+1113   }
+1114 
+1115   private void checkOutputFile(File output, ModificationTracker tracker)
+1116       throws
+1117         MojoExecutionException
+1118   {
+1119     try
+1120     {
+1121       if (output.exists())
+1122         tracker.track(SCRIPT, new FileInputStream(output));
+1123       else
+1124         tracker.track(SCRIPT, ZonedDateTime.now().toString());
+1125     }
+1126     catch (IOException e)
+1127     {
+1128       String error =
+1129           "Error while checking the generated script: " + e.getMessage();
+1130       getLog().error(error);
+1131       throw new MojoExecutionException(error);
+1132     }
+1133   }
+1134 
+1135   private void addMappings(MetadataSources sources, ModificationTracker tracker)
+1136       throws MojoFailureException
+1137   {
+1138     getLog().debug("Adding explicitly configured mappings...");
+1139     if (mappings != null)
+1140     {
+1141       try
+1142       {
+1143         for (String filename : mappings.split("[\\s,]+"))
+1144         {
+1145           // First try the filename as absolute/relative path
+1146           File file = new File(filename);
+1147           if (!file.exists())
+1148           {
+1149             // If the file was not found, search for it in the resource-directories
+1150             for (Resource resource : project.getResources())
+1151             {
+1152               file = new File(resource.getDirectory() + File.separator + filename);
+1153               if (file.exists())
+1154                 break;
+1155             }
+1156           }
+1157           if (file.exists())
+1158           {
+1159             if (file.isDirectory())
+1160               // TODO: add support to read all mappings under a directory
+1161               throw new MojoFailureException(file.getAbsolutePath() + " is a directory");
+1162             if (tracker.track(filename, new FileInputStream(file)))
+1163               getLog().debug("Found new or modified mapping-file: " + filename);
+1164             else
+1165               getLog().debug("Mapping-file unchanged: " + filename);
+1166 
+1167             sources.addFile(file);
+1168           }
+1169           else
+1170             throw new MojoFailureException("File " + filename + " could not be found in any of the configured resource-directories!");
+1171         }
+1172       }
+1173       catch (IOException e)
+1174       {
+1175         throw new MojoFailureException("Cannot calculate MD5 sums!", e);
+1176       }
+1177     }
+1178   }
+1179 
+1180   private void addRoot(Set<URL> urls, String path) throws MojoFailureException
+1181   {
+1182     try
+1183     {
+1184       File dir = new File(path);
+1185       if (dir.exists())
+1186       {
+1187         getLog().info("Adding " + dir.getAbsolutePath() + " to the list of roots to scan...");
+1188         urls.add(dir.toURI().toURL());
+1189       }
+1190       else
+1191         getLog().warn(
+1192             "the directory cannot be scanned for annotated classes, " +
+1193             "because it does not exist: " +
+1194             dir.getAbsolutePath()
+1195             );
+1196     }
+1197     catch (MalformedURLException e)
+1198     {
+1199       getLog().error("error while adding the project-root to the list of roots to scan!", e);
+1200       throw new MojoFailureException(e.getMessage());
+1201     }
+1202   }
+1203 
+1204   private void addDependencies(Set<URL> urls) throws MojoFailureException
+1205   {
+1206     try
+1207     {
+1208       if (scanDependencies != null)
+1209       {
+1210         Matcher matcher = SPLIT.matcher(scanDependencies);
+1211         while (matcher.find())
+1212         {
+1213           getLog().info("Adding dependencies from scope " + matcher.group() + " to the list of roots to scan");
+1214           for (Artifact artifact : project.getDependencyArtifacts())
+1215           {
+1216             if (!artifact.getScope().equalsIgnoreCase(matcher.group()))
+1217               continue;
+1218             if (artifact.getFile() == null)
+1219             {
+1220               getLog().warn("Cannot add dependency " + artifact.getId() + ": no JAR-file available!");
+1221               continue;
+1222             }
+1223             getLog().info("Adding dependencies from scope " + artifact.getId() + " to the list of roots to scan");
+1224             urls.add(artifact.getFile().toURI().toURL());
+1225           }
+1226         }
+1227       }
+1228     }
+1229     catch (MalformedURLException e)
+1230     {
+1231       getLog().error("Error while adding dependencies to the list of roots to scan!", e);
+1232       throw new MojoFailureException(e.getMessage());
+1233     }
+1234   }
+1235 
+1236   private Set<String> scanUrls(Set<URL> scanRoots)
+1237       throws
+1238         MojoFailureException
+1239   {
+1240     try
+1241     {
+1242       AnnotationDB db = new AnnotationDB();
+1243       for (URL root : scanRoots)
+1244         db.scanArchives(root);
+1245 
+1246       Set<String> classes = new HashSet<String>();
+1247       if (db.getAnnotationIndex().containsKey(Entity.class.getName()))
+1248         classes.addAll(db.getAnnotationIndex().get(Entity.class.getName()));
+1249       if (db.getAnnotationIndex().containsKey(MappedSuperclass.class.getName()))
+1250         classes.addAll(db.getAnnotationIndex().get(MappedSuperclass.class.getName()));
+1251       if (db.getAnnotationIndex().containsKey(Embeddable.class.getName()))
+1252         classes.addAll(db.getAnnotationIndex().get(Embeddable.class.getName()));
+1253 
+1254       return classes;
+1255     }
+1256     catch (Exception e)
+1257     {
+1258       getLog().error("Error while scanning!", e);
+1259       throw new MojoFailureException(e.getMessage());
+1260     }
+1261   }
+1262 
+1263   private void addAnnotated(
+1264       String name,
+1265       MetadataSources sources,
+1266       ClassLoaderService classLoaderService,
+1267       ModificationTracker tracker
+1268       )
+1269       throws
+1270         MojoFailureException,
+1271         MojoExecutionException
+1272   {
+1273     try
+1274     {
+1275       getLog().info("Adding annotated resource: " + name);
+1276       String packageName = null;
+1277 
+1278       boolean error = false;
+1279       try
+1280       {
+1281         Class<?> annotatedClass = classLoaderService.classForName(name);
+1282         String resourceName = annotatedClass.getName();
+1283         resourceName =
+1284             resourceName.substring(
+1285                 resourceName.lastIndexOf(".") + 1,
+1286                 resourceName.length()
+1287                 ) + ".class";
+1288         InputStream is = annotatedClass.getResourceAsStream(resourceName);
+1289         if (is != null)
+1290         {
+1291           if (tracker.track(name, is))
+1292             getLog().debug("New or modified class: " + name);
+1293           else
+1294             getLog().debug("Unchanged class: " + name);
+1295           sources.addAnnotatedClass(annotatedClass);
+1296           packageName = annotatedClass.getPackage().getName();
+1297         }
+1298         else
+1299         {
+1300           getLog().error("cannot find ressource " + resourceName + " for class " + name);
+1301           error = true;
+1302         }
+1303       }
+1304       catch(ClassLoadingException e)
+1305       {
+1306         packageName = name;
+1307       }
+1308       if (error)
+1309       {
+1310         throw new MojoExecutionException("error while inspecting annotated class " + name);
+1311       }
+1312 
+1313       while (packageName != null)
+1314       {
+1315         if (packages.contains(packageName))
+1316           return;
+1317         String resource = packageName.replace('.', '/') + "/package-info.class";
+1318         InputStream is = classLoaderService.locateResourceStream(resource);
+1319         if (is == null)
+1320         {
+1321           // No compiled package-info available: no package-level annotations!
+1322           getLog().debug("Package " + packageName + " is not annotated.");
+1323         }
+1324         else
+1325         {
+1326           if (tracker.track(packageName, is))
+1327             getLog().debug("New or modified package: " + packageName);
+1328           else
+1329            getLog().debug("Unchanged package: " + packageName);
+1330           getLog().info("Adding annotations from package " + packageName);
+1331           sources.addPackage(packageName);
+1332         }
+1333         packages.add(packageName);
+1334         int i = packageName.lastIndexOf('.');
+1335         if (i < 0)
+1336           packageName = null;
+1337         else
+1338           packageName = packageName.substring(0,i);
+1339       }
+1340     }
+1341     catch (Exception e)
+1342     {
+1343       getLog().error("Error while adding the annotated class " + name, e);
+1344       throw new MojoFailureException(e.getMessage());
+1345     }
+1346   }
+1347 
+1348   private ParsedPersistenceXmlDescriptor loadPersistenceUnit(
+1349       ClassLoaderService classLoaderService,
+1350       Properties properties
+1351       )
+1352       throws
+1353         MojoFailureException
+1354   {
+1355     PersistenceXmlParser parser =
+1356         new PersistenceXmlParser(
+1357             classLoaderService,
+1358             PersistenceUnitTransactionType.RESOURCE_LOCAL
+1359              );
+1360 
+1361     Map<String, ParsedPersistenceXmlDescriptor> units =
+1362         parser.doResolve(properties);
+1363 
+1364     if (persistenceUnit == null)
+1365     {
+1366       Iterator<String> names = units.keySet().iterator();
+1367       if (!names.hasNext())
+1368       {
+1369         getLog().info("Found no META-INF/persistence.xml.");
+1370         return null;
+1371       }
+1372 
+1373       String name = names.next();
+1374       if (!names.hasNext())
+1375       {
+1376           getLog().info("Using persistence-unit " + name);
+1377           return units.get(name);
+1378       }
+1379 
+1380       StringBuilder builder = new StringBuilder();
+1381       builder.append("No name provided and multiple persistence units found: ");
+1382       builder.append(name);
+1383       while(names.hasNext())
+1384       {
+1385         builder.append(", ");
+1386         builder.append(names.next());
+1387       }
+1388       builder.append('.');
+1389       throw new MojoFailureException(builder.toString());
+1390     }
+1391 
+1392     if (units.containsKey(persistenceUnit))
+1393     {
+1394       getLog().info("Using configured persistence-unit " + persistenceUnit);
+1395       return units.get(persistenceUnit);
+1396     }
+1397 
+1398     throw new MojoFailureException("Could not find persistence-unit " + persistenceUnit);
+1399   }
+1400 
+1401 
+1402   public static void printStrackTrace(StringBuilder builder, Throwable t)
+1403   {
+1404     while (t != null)
+1405     {
+1406       builder.append("\n\tCause: ");
+1407       builder.append(t.getMessage() == null ? "" : t.getMessage().replaceAll("\\s+", " "));
+1408       for (StackTraceElement trace : t.getStackTrace())
+1409       {
+1410         builder.append("\n\t");
+1411         builder.append(trace.getClassName());
+1412         builder.append(".");
+1413         builder.append(trace.getMethodName());
+1414         builder.append("():");
+1415         builder.append(trace.getLineNumber());
+1416       }
+1417       t = t.getCause();
+1418     }
+1419   }
+1420 }
+
+
+ + + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/CreateMojo.html b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/CreateMojo.html new file mode 100644 index 0000000..111daec --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/CreateMojo.html @@ -0,0 +1,111 @@ + + + +CreateMojo xref + + + +
View Javadoc
+1   package de.juplo.plugins.hibernate;
+2   
+3   /*
+4    * Copyright 2001-2005 The Apache Software Foundation.
+5    *
+6    * Licensed under the Apache License, Version 2.0 (the "License");
+7    * you may not use this file except in compliance with the License.
+8    * You may obtain a copy of the License at
+9    *
+10   *      http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing, software
+13   * distributed under the License is distributed on an "AS IS" BASIS,
+14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+15   * See the License for the specific language governing permissions and
+16   * limitations under the License.
+17   */
+18  
+19  import java.util.Map;
+20  import org.apache.maven.plugin.MojoExecutionException;
+21  import org.apache.maven.plugin.MojoFailureException;
+22  import org.hibernate.boot.spi.MetadataImplementor;
+23  import org.hibernate.service.ServiceRegistry;
+24  import org.hibernate.tool.schema.SourceType;
+25  import org.hibernate.tool.schema.spi.ExecutionOptions;
+26  import org.hibernate.tool.schema.spi.SchemaManagementTool;
+27  import org.hibernate.tool.schema.spi.ScriptSourceInput;
+28  import org.hibernate.tool.schema.spi.SourceDescriptor;
+29  import org.hibernate.tool.schema.spi.TargetDescriptor;
+30  
+31  
+32  /**
+33   * Generate/Execute SQL to create a database-schema that represents the
+34   * configured mappings.
+35   *
+36   * @goal create
+37   * @phase process-classes
+38   * @threadSafe
+39   * @requiresDependencyResolution runtime
+40   */
+41  public class CreateMojo extends AbstractSchemaMojo
+42  {
+43    /**
+44     * Output file.
+45     * <p>
+46     * If the specified filename is not absolut, the file will be created
+47     * relative to the project build directory
+48     * (<code>project.build.directory</code>).
+49     *
+50     * @parameter property="hibernate.schema.create" default-value="create.sql"
+51     * @since 1.0
+52     */
+53    private String outputFile;
+54  
+55  
+56    @Override
+57    public final void execute()
+58      throws
+59        MojoFailureException,
+60        MojoExecutionException
+61    {
+62      super.execute(outputFile);
+63    }
+64  
+65  
+66    @Override
+67    void build(
+68        MetadataImplementor metadata,
+69        ExecutionOptions options,
+70        TargetDescriptor target
+71        )
+72        throws
+73          MojoExecutionException,
+74          MojoFailureException
+75    {
+76      ServiceRegistry service =
+77          metadata.getMetadataBuildingOptions().getServiceRegistry();
+78      SchemaManagementTool tool = service.getService(SchemaManagementTool.class);
+79  
+80      Map config = options.getConfigurationValues();
+81      SourceDescriptor source = new SourceDescriptor()
+82      {
+83  	  @Override
+84        public SourceType getSourceType()
+85        {
+86          return SourceType.METADATA;
+87        }
+88  
+89        @Override
+90        public ScriptSourceInput getScriptSourceInput()
+91        {
+92          return null;
+93        }
+94      };
+95  
+96      tool.getSchemaCreator(config).doCreation(metadata, options, source, target);
+97    }
+98  }
+
+
+ + + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/DropMojo.html b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/DropMojo.html new file mode 100644 index 0000000..6239577 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/DropMojo.html @@ -0,0 +1,111 @@ + + + +DropMojo xref + + + +
View Javadoc
+1   package de.juplo.plugins.hibernate;
+2   
+3   /*
+4    * Copyright 2001-2005 The Apache Software Foundation.
+5    *
+6    * Licensed under the Apache License, Version 2.0 (the "License");
+7    * you may not use this file except in compliance with the License.
+8    * You may obtain a copy of the License at
+9    *
+10   *      http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing, software
+13   * distributed under the License is distributed on an "AS IS" BASIS,
+14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+15   * See the License for the specific language governing permissions and
+16   * limitations under the License.
+17   */
+18  
+19  import java.util.Map;
+20  import org.apache.maven.plugin.MojoExecutionException;
+21  import org.apache.maven.plugin.MojoFailureException;
+22  import org.hibernate.boot.spi.MetadataImplementor;
+23  import org.hibernate.service.ServiceRegistry;
+24  import org.hibernate.tool.schema.SourceType;
+25  import org.hibernate.tool.schema.spi.ExecutionOptions;
+26  import org.hibernate.tool.schema.spi.SchemaManagementTool;
+27  import org.hibernate.tool.schema.spi.ScriptSourceInput;
+28  import org.hibernate.tool.schema.spi.SourceDescriptor;
+29  import org.hibernate.tool.schema.spi.TargetDescriptor;
+30  
+31  
+32  /**
+33   * Generate/Execute SQL to drop all tables of a database-schema that represents
+34   * the configured mappings.
+35   *
+36   * @goal drop
+37   * @phase process-classes
+38   * @threadSafe
+39   * @requiresDependencyResolution runtime
+40   */
+41  public class DropMojo extends AbstractSchemaMojo
+42  {
+43    /**
+44     * Output file.
+45     * <p>
+46     * If the specified filename is not absolut, the file will be created
+47     * relative to the project build directory
+48     * (<code>project.build.directory</code>).
+49     *
+50     * @parameter property="hibernate.schema.drop" default-value="drop.sql"
+51     * @since 1.0
+52     */
+53    private String outputFile;
+54  
+55  
+56    @Override
+57    public final void execute()
+58      throws
+59        MojoFailureException,
+60        MojoExecutionException
+61    {
+62      super.execute(outputFile);
+63    }
+64  
+65  
+66    @Override
+67    void build(
+68        MetadataImplementor metadata,
+69        ExecutionOptions options,
+70        TargetDescriptor target
+71        )
+72        throws
+73          MojoExecutionException,
+74          MojoFailureException
+75    {
+76      ServiceRegistry service =
+77          metadata.getMetadataBuildingOptions().getServiceRegistry();
+78      SchemaManagementTool tool = service.getService(SchemaManagementTool.class);
+79  
+80      Map config = options.getConfigurationValues();
+81      SourceDescriptor source = new SourceDescriptor()
+82      {
+83  	  @Override
+84        public SourceType getSourceType()
+85        {
+86          return SourceType.METADATA;
+87        }
+88  
+89        @Override
+90        public ScriptSourceInput getScriptSourceInput()
+91        {
+92          return null;
+93        }
+94      };
+95  
+96      tool.getSchemaDropper(config).doDrop(metadata, options, source, target);
+97    }
+98  }
+
+
+ + + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/HelpMojo.html b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/HelpMojo.html new file mode 100644 index 0000000..7082129 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/HelpMojo.html @@ -0,0 +1,467 @@ + + + +HelpMojo xref + + + +
View Javadoc
+1   
+2   package de.juplo.plugins.hibernate;
+3   
+4   import org.apache.maven.plugin.AbstractMojo;
+5   import org.apache.maven.plugin.MojoExecutionException;
+6   
+7   import org.w3c.dom.Document;
+8   import org.w3c.dom.Element;
+9   import org.w3c.dom.Node;
+10  import org.w3c.dom.NodeList;
+11  import org.xml.sax.SAXException;
+12  
+13  import javax.xml.parsers.DocumentBuilder;
+14  import javax.xml.parsers.DocumentBuilderFactory;
+15  import javax.xml.parsers.ParserConfigurationException;
+16  import java.io.IOException;
+17  import java.io.InputStream;
+18  import java.util.ArrayList;
+19  import java.util.List;
+20  
+21  /**
+22   * Display help information on hibernate-maven-plugin.<br>
+23   * Call <code>mvn hibernate:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details.
+24   * @author maven-plugin-tools
+25   * @goal help
+26   * @requiresProject false
+27   * @threadSafe
+28   */
+29  public class HelpMojo
+30      extends AbstractMojo
+31  {
+32      /**
+33       * If <code>true</code>, display all settable properties for each goal.
+34       *
+35       * @parameter property="detail" default-value="false"
+36       */
+37      private boolean detail;
+38  
+39      /**
+40       * The name of the goal for which to show help. If unspecified, all goals will be displayed.
+41       *
+42       * @parameter property="goal"
+43       */
+44      private java.lang.String goal;
+45  
+46      /**
+47       * The maximum length of a display line, should be positive.
+48       *
+49       * @parameter property="lineLength" default-value="80"
+50       */
+51      private int lineLength;
+52  
+53      /**
+54       * The number of spaces per indentation level, should be positive.
+55       *
+56       * @parameter property="indentSize" default-value="2"
+57       */
+58      private int indentSize;
+59  
+60      // groupId/artifactId/plugin-help.xml
+61      private static final String PLUGIN_HELP_PATH =
+62                      "/META-INF/maven/de.juplo/hibernate-maven-plugin/plugin-help.xml";
+63  
+64      private static final int DEFAULT_LINE_LENGTH = 80;
+65  
+66      private Document build()
+67          throws MojoExecutionException
+68      {
+69          getLog().debug( "load plugin-help.xml: " + PLUGIN_HELP_PATH );
+70          InputStream is = null;
+71          try
+72          {
+73              is = getClass().getResourceAsStream( PLUGIN_HELP_PATH );
+74              DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
+75              DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
+76              return dBuilder.parse( is );
+77          }
+78          catch ( IOException e )
+79          {
+80              throw new MojoExecutionException( e.getMessage(), e );
+81          }
+82          catch ( ParserConfigurationException e )
+83          {
+84              throw new MojoExecutionException( e.getMessage(), e );
+85          }
+86          catch ( SAXException e )
+87          {
+88              throw new MojoExecutionException( e.getMessage(), e );
+89          }
+90          finally
+91          {
+92              if ( is != null )
+93              {
+94                  try
+95                  {
+96                      is.close();
+97                  }
+98                  catch ( IOException e )
+99                  {
+100                     throw new MojoExecutionException( e.getMessage(), e );
+101                 }
+102             }
+103         }
+104     }
+105 
+106     /**
+107      * {@inheritDoc}
+108      */
+109     public void execute()
+110         throws MojoExecutionException
+111     {
+112         if ( lineLength <= 0 )
+113         {
+114             getLog().warn( "The parameter 'lineLength' should be positive, using '80' as default." );
+115             lineLength = DEFAULT_LINE_LENGTH;
+116         }
+117         if ( indentSize <= 0 )
+118         {
+119             getLog().warn( "The parameter 'indentSize' should be positive, using '2' as default." );
+120             indentSize = 2;
+121         }
+122 
+123         Document doc = build();
+124 
+125         StringBuilder sb = new StringBuilder();
+126         Node plugin = getSingleChild( doc, "plugin" );
+127 
+128 
+129         String name = getValue( plugin, "name" );
+130         String version = getValue( plugin, "version" );
+131         String id = getValue( plugin, "groupId" ) + ":" + getValue( plugin, "artifactId" ) + ":" + version;
+132         if ( isNotEmpty( name ) && !name.contains( id ) )
+133         {
+134             append( sb, name + " " + version, 0 );
+135         }
+136         else
+137         {
+138             if ( isNotEmpty( name ) )
+139             {
+140                 append( sb, name, 0 );
+141             }
+142             else
+143             {
+144                 append( sb, id, 0 );
+145             }
+146         }
+147         append( sb, getValue( plugin, "description" ), 1 );
+148         append( sb, "", 0 );
+149 
+150         //<goalPrefix>plugin</goalPrefix>
+151         String goalPrefix = getValue( plugin, "goalPrefix" );
+152 
+153         Node mojos1 = getSingleChild( plugin, "mojos" );
+154 
+155         List<Node> mojos = findNamedChild( mojos1, "mojo" );
+156 
+157         if ( goal == null || goal.length() <= 0 )
+158         {
+159             append( sb, "This plugin has " + mojos.size() + ( mojos.size() > 1 ? " goals:" : " goal:" ), 0 );
+160             append( sb, "", 0 );
+161         }
+162 
+163         for ( Node mojo : mojos )
+164         {
+165             writeGoal( sb, goalPrefix, (Element) mojo );
+166         }
+167 
+168         if ( getLog().isInfoEnabled() )
+169         {
+170             getLog().info( sb.toString() );
+171         }
+172     }
+173 
+174 
+175     private static boolean isNotEmpty( String string )
+176     {
+177         return string != null && string.length() > 0;
+178     }
+179 
+180     private String getValue( Node node, String elementName )
+181         throws MojoExecutionException
+182     {
+183         return getSingleChild( node, elementName ).getTextContent();
+184     }
+185 
+186     private Node getSingleChild( Node node, String elementName )
+187         throws MojoExecutionException
+188     {
+189         List<Node> namedChild = findNamedChild( node, elementName );
+190         if ( namedChild.isEmpty() )
+191         {
+192             throw new MojoExecutionException( "Could not find " + elementName + " in plugin-help.xml" );
+193         }
+194         if ( namedChild.size() > 1 )
+195         {
+196             throw new MojoExecutionException( "Multiple " + elementName + " in plugin-help.xml" );
+197         }
+198         return namedChild.get( 0 );
+199     }
+200 
+201     private List<Node> findNamedChild( Node node, String elementName )
+202     {
+203         List<Node> result = new ArrayList<Node>();
+204         NodeList childNodes = node.getChildNodes();
+205         for ( int i = 0; i < childNodes.getLength(); i++ )
+206         {
+207             Node item = childNodes.item( i );
+208             if ( elementName.equals( item.getNodeName() ) )
+209             {
+210                 result.add( item );
+211             }
+212         }
+213         return result;
+214     }
+215 
+216     private Node findSingleChild( Node node, String elementName )
+217         throws MojoExecutionException
+218     {
+219         List<Node> elementsByTagName = findNamedChild( node, elementName );
+220         if ( elementsByTagName.isEmpty() )
+221         {
+222             return null;
+223         }
+224         if ( elementsByTagName.size() > 1 )
+225         {
+226             throw new MojoExecutionException( "Multiple " + elementName + "in plugin-help.xml" );
+227         }
+228         return elementsByTagName.get( 0 );
+229     }
+230 
+231     private void writeGoal( StringBuilder sb, String goalPrefix, Element mojo )
+232         throws MojoExecutionException
+233     {
+234         String mojoGoal = getValue( mojo, "goal" );
+235         Node configurationElement = findSingleChild( mojo, "configuration" );
+236         Node description = findSingleChild( mojo, "description" );
+237         if ( goal == null || goal.length() <= 0 || mojoGoal.equals( goal ) )
+238         {
+239             append( sb, goalPrefix + ":" + mojoGoal, 0 );
+240             Node deprecated = findSingleChild( mojo, "deprecated" );
+241             if ( ( deprecated != null ) && isNotEmpty( deprecated.getTextContent() ) )
+242             {
+243                 append( sb, "Deprecated. " + deprecated.getTextContent(), 1 );
+244                 if ( detail && description != null )
+245                 {
+246                     append( sb, "", 0 );
+247                     append( sb, description.getTextContent(), 1 );
+248                 }
+249             }
+250             else if ( description != null )
+251             {
+252                 append( sb, description.getTextContent(), 1 );
+253             }
+254             append( sb, "", 0 );
+255 
+256             if ( detail )
+257             {
+258                 Node parametersNode = getSingleChild( mojo, "parameters" );
+259                 List<Node> parameters = findNamedChild( parametersNode, "parameter" );
+260                 append( sb, "Available parameters:", 1 );
+261                 append( sb, "", 0 );
+262 
+263                 for ( Node parameter : parameters )
+264                 {
+265                     writeParameter( sb, parameter, configurationElement );
+266                 }
+267             }
+268         }
+269     }
+270 
+271     private void writeParameter( StringBuilder sb, Node parameter, Node configurationElement )
+272         throws MojoExecutionException
+273     {
+274         String parameterName = getValue( parameter, "name" );
+275         String parameterDescription = getValue( parameter, "description" );
+276 
+277         Element fieldConfigurationElement = (Element) findSingleChild( configurationElement, parameterName );
+278 
+279         String parameterDefaultValue = "";
+280         if ( fieldConfigurationElement != null && fieldConfigurationElement.hasAttribute( "default-value" ) )
+281         {
+282             parameterDefaultValue = " (Default: " + fieldConfigurationElement.getAttribute( "default-value" ) + ")";
+283         }
+284         append( sb, parameterName + parameterDefaultValue, 2 );
+285         Node deprecated = findSingleChild( parameter, "deprecated" );
+286         if ( ( deprecated != null ) && isNotEmpty( deprecated.getTextContent() ) )
+287         {
+288             append( sb, "Deprecated. " + deprecated.getTextContent(), 3 );
+289             append( sb, "", 0 );
+290         }
+291         append( sb, parameterDescription, 3 );
+292         if ( "true".equals( getValue( parameter, "required" ) ) )
+293         {
+294             append( sb, "Required: Yes", 3 );
+295         }
+296         if ( ( fieldConfigurationElement != null ) && isNotEmpty( fieldConfigurationElement.getTextContent() ) )
+297         {
+298             String property = getPropertyFromExpression( fieldConfigurationElement.getTextContent() );
+299             append( sb, "User property: " + property, 3 );
+300         }
+301 
+302         append( sb, "", 0 );
+303     }
+304 
+305     /**
+306      * <p>Repeat a String <code>n</code> times to form a new string.</p>
+307      *
+308      * @param str    String to repeat
+309      * @param repeat number of times to repeat str
+310      * @return String with repeated String
+311      * @throws NegativeArraySizeException if <code>repeat < 0</code>
+312      * @throws NullPointerException       if str is <code>null</code>
+313      */
+314     private static String repeat( String str, int repeat )
+315     {
+316         StringBuilder buffer = new StringBuilder( repeat * str.length() );
+317 
+318         for ( int i = 0; i < repeat; i++ )
+319         {
+320             buffer.append( str );
+321         }
+322 
+323         return buffer.toString();
+324     }
+325 
+326     /**
+327      * Append a description to the buffer by respecting the indentSize and lineLength parameters.
+328      * <b>Note</b>: The last character is always a new line.
+329      *
+330      * @param sb          The buffer to append the description, not <code>null</code>.
+331      * @param description The description, not <code>null</code>.
+332      * @param indent      The base indentation level of each line, must not be negative.
+333      */
+334     private void append( StringBuilder sb, String description, int indent )
+335     {
+336         for ( String line : toLines( description, indent, indentSize, lineLength ) )
+337         {
+338             sb.append( line ).append( '\n' );
+339         }
+340     }
+341 
+342     /**
+343      * Splits the specified text into lines of convenient display length.
+344      *
+345      * @param text       The text to split into lines, must not be <code>null</code>.
+346      * @param indent     The base indentation level of each line, must not be negative.
+347      * @param indentSize The size of each indentation, must not be negative.
+348      * @param lineLength The length of the line, must not be negative.
+349      * @return The sequence of display lines, never <code>null</code>.
+350      * @throws NegativeArraySizeException if <code>indent < 0</code>
+351      */
+352     private static List<String> toLines( String text, int indent, int indentSize, int lineLength )
+353     {
+354         List<String> lines = new ArrayList<String>();
+355 
+356         String ind = repeat( "\t", indent );
+357 
+358         String[] plainLines = text.split( "(\r\n)|(\r)|(\n)" );
+359 
+360         for ( String plainLine : plainLines )
+361         {
+362             toLines( lines, ind + plainLine, indentSize, lineLength );
+363         }
+364 
+365         return lines;
+366     }
+367 
+368     /**
+369      * Adds the specified line to the output sequence, performing line wrapping if necessary.
+370      *
+371      * @param lines      The sequence of display lines, must not be <code>null</code>.
+372      * @param line       The line to add, must not be <code>null</code>.
+373      * @param indentSize The size of each indentation, must not be negative.
+374      * @param lineLength The length of the line, must not be negative.
+375      */
+376     private static void toLines( List<String> lines, String line, int indentSize, int lineLength )
+377     {
+378         int lineIndent = getIndentLevel( line );
+379         StringBuilder buf = new StringBuilder( 256 );
+380 
+381         String[] tokens = line.split( " +" );
+382 
+383         for ( String token : tokens )
+384         {
+385             if ( buf.length() > 0 )
+386             {
+387                 if ( buf.length() + token.length() >= lineLength )
+388                 {
+389                     lines.add( buf.toString() );
+390                     buf.setLength( 0 );
+391                     buf.append( repeat( " ", lineIndent * indentSize ) );
+392                 }
+393                 else
+394                 {
+395                     buf.append( ' ' );
+396                 }
+397             }
+398 
+399             for ( int j = 0; j < token.length(); j++ )
+400             {
+401                 char c = token.charAt( j );
+402                 if ( c == '\t' )
+403                 {
+404                     buf.append( repeat( " ", indentSize - buf.length() % indentSize ) );
+405                 }
+406                 else if ( c == '\u00A0' )
+407                 {
+408                     buf.append( ' ' );
+409                 }
+410                 else
+411                 {
+412                     buf.append( c );
+413                 }
+414             }
+415         }
+416         lines.add( buf.toString() );
+417     }
+418 
+419     /**
+420      * Gets the indentation level of the specified line.
+421      *
+422      * @param line The line whose indentation level should be retrieved, must not be <code>null</code>.
+423      * @return The indentation level of the line.
+424      */
+425     private static int getIndentLevel( String line )
+426     {
+427         int level = 0;
+428         for ( int i = 0; i < line.length() && line.charAt( i ) == '\t'; i++ )
+429         {
+430             level++;
+431         }
+432         for ( int i = level + 1; i <= level + 4 && i < line.length(); i++ )
+433         {
+434             if ( line.charAt( i ) == '\t' )
+435             {
+436                 level++;
+437                 break;
+438             }
+439         }
+440         return level;
+441     }
+442     
+443     private String getPropertyFromExpression( String expression )
+444     {
+445         if ( expression != null && expression.startsWith( "${" ) && expression.endsWith( "}" )
+446             && !expression.substring( 2 ).contains( "${" ) )
+447         {
+448             // expression="${xxx}" -> property="xxx"
+449             return expression.substring( 2, expression.length() - 1 );
+450         }
+451         // no property can be extracted
+452         return null;
+453     }
+454 }
+
+
+ + + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/ModificationTracker.html b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/ModificationTracker.html new file mode 100644 index 0000000..cb669fc --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/ModificationTracker.html @@ -0,0 +1,224 @@ + + + +ModificationTracker xref + + + +
View Javadoc
+1   package de.juplo.plugins.hibernate;
+2   
+3   
+4   import java.io.File;
+5   import java.io.FileInputStream;
+6   import java.io.FileOutputStream;
+7   import java.io.IOException;
+8   import java.io.InputStream;
+9   import java.io.ObjectInputStream;
+10  import java.io.ObjectOutputStream;
+11  import java.math.BigInteger;
+12  import java.security.MessageDigest;
+13  import java.security.NoSuchAlgorithmException;
+14  import java.util.HashMap;
+15  import java.util.HashSet;
+16  import java.util.Map;
+17  import java.util.Properties;
+18  import java.util.Set;
+19  import org.apache.maven.plugin.logging.Log;
+20  
+21  
+22  
+23  /**
+24   *
+25   * @author Kai Moritz
+26   */
+27  public class ModificationTracker
+28  {
+29    private Map<String,String> properties;
+30    private Map<String,String> classes;
+31  
+32    private final Set<String> propertyNames;
+33    private final Set<String> classNames;
+34  
+35    private boolean modified = false;
+36    private boolean failed = false;
+37  
+38    private final File saved;
+39    private final MessageDigest digest;
+40    private final Log log;
+41  
+42  
+43    ModificationTracker(String buildDirectory, String filename, Log log)
+44        throws
+45          NoSuchAlgorithmException
+46    {
+47      propertyNames = new HashSet<String>();
+48      classNames = new HashSet<String>();
+49      File output = new File(filename + ".md5s");
+50      if (output.isAbsolute())
+51      {
+52        saved = output;
+53      }
+54      else
+55      {
+56        // Interpret relative file path relative to build directory
+57        saved = new File(buildDirectory, output.getPath());
+58        log.debug("Adjusted relative path, resulting path is " + saved.getPath());
+59      }
+60      digest = java.security.MessageDigest.getInstance("MD5");
+61      this.log = log;
+62    }
+63  
+64  
+65    private String calculate(InputStream is)
+66        throws
+67          IOException
+68    {
+69      byte[] buffer = new byte[1024*4]; // copy data in 4MB-chunks
+70      int i;
+71      while((i = is.read(buffer)) > -1)
+72        digest.update(buffer, 0, i);
+73      is.close();
+74      byte[] bytes = digest.digest();
+75      BigInteger bi = new BigInteger(1, bytes);
+76      return String.format("%0" + (bytes.length << 1) + "x", bi);
+77    }
+78  
+79    private boolean check(Map<String,String> values, String name, String value)
+80    {
+81      if (!values.containsKey(name) || !values.get(name).equals(value))
+82      {
+83        values.put(name, value);
+84        return true;
+85      }
+86      else
+87        return false;
+88    }
+89  
+90  
+91    boolean track(String name, InputStream is) throws IOException
+92    {
+93      boolean result = check(classes, name, calculate(is));
+94      classNames.add(name);
+95      modified |= result;
+96      return result;
+97    }
+98  
+99  
+100   boolean check(String name, String property)
+101   {
+102     propertyNames.add(name);
+103     return check(properties, name, property);
+104   }
+105 
+106   boolean track(String name, String property)
+107   {
+108     boolean result = check(name, property);
+109     modified |= result;
+110     return result;
+111   }
+112 
+113   boolean track(Properties properties)
+114   {
+115     boolean result = false;
+116     for (String name : properties.stringPropertyNames())
+117       result |= track(name, properties.getProperty(name));
+118     return result;
+119   }
+120 
+121 
+122   void touch()
+123   {
+124     modified = true;
+125   }
+126 
+127   boolean modified()
+128   {
+129     for (String property : new HashSet<String>(properties.keySet()))
+130       if (!propertyNames.contains(property))
+131       {
+132         modified = true;
+133         properties.remove(property);
+134       }
+135      for (String clazz : new HashSet<String>(classes.keySet()))
+136       if (!classNames.contains(clazz))
+137       {
+138         modified = true;
+139         classes.remove(clazz);
+140       }
+141     return modified;
+142   }
+143 
+144 
+145   void failed()
+146   {
+147     failed = true;
+148   }
+149 
+150 
+151   void load()
+152   {
+153     if (saved.isFile() && saved.length() > 0)
+154     {
+155       try
+156       {
+157         FileInputStream fis = new FileInputStream(saved);
+158         ObjectInputStream ois = new ObjectInputStream(fis);
+159         properties = (HashMap<String,String>)ois.readObject();
+160         classes = (HashMap<String,String>)ois.readObject();
+161         ois.close();
+162       }
+163       catch (Exception e)
+164       {
+165         properties = new HashMap<String,String>();
+166         classes = new HashMap<String,String>();
+167         log.warn("Cannot read md5s from saved: " + e);
+168       }
+169     }
+170     else
+171     {
+172       properties = new HashMap<String,String>();
+173       classes = new HashMap<String,String>();
+174       try
+175       {
+176         saved.createNewFile();
+177       }
+178       catch (IOException e)
+179       {
+180         log.debug("Cannot create file \"" + saved.getPath() + "\" for md5s: " + e);
+181       }
+182     }
+183   }
+184 
+185   void save()
+186   {
+187     if (failed)
+188     {
+189       saved.delete();
+190       return;
+191     }
+192 
+193     if (!modified)
+194       return;
+195 
+196     /** Write md5-sums for annotated classes to file */
+197     try
+198     {
+199       FileOutputStream fos = new FileOutputStream(saved);
+200       ObjectOutputStream oos = new ObjectOutputStream(fos);
+201       oos.writeObject(properties);
+202       oos.writeObject(classes);
+203       oos.close();
+204       fos.close();
+205     }
+206     catch (Exception e)
+207     {
+208       log.error("Cannot write md5-sums to file: " + e);
+209     }
+210   }  
+211 }
+
+
+ + + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/MutableClassLoader.html b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/MutableClassLoader.html new file mode 100644 index 0000000..09336d6 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/MutableClassLoader.html @@ -0,0 +1,115 @@ + + + +MutableClassLoader xref + + + +
View Javadoc
+1   package de.juplo.plugins.hibernate;
+2   
+3   import java.io.IOException;
+4   import java.io.InputStream;
+5   import java.net.URL;
+6   import java.net.URLClassLoader;
+7   import java.util.Arrays;
+8   import java.util.Enumeration;
+9   import java.util.LinkedHashSet;
+10  import org.apache.maven.plugin.logging.Log;
+11  
+12  
+13  /**
+14   *
+15   * @author kai
+16   */
+17  public class MutableClassLoader extends ClassLoader
+18  {
+19    private URLClassLoader loader;
+20    private Log log;
+21  
+22  
+23    public MutableClassLoader(LinkedHashSet<URL> urls, Log log)
+24    {
+25      if (log.isDebugEnabled())
+26        for (URL url : urls)
+27          log.debug(url.toString());
+28      loader =
+29          new URLClassLoader(
+30              urls.toArray(new URL[urls.size()]),
+31              getClass().getClassLoader()
+32              );
+33      this.log = log;
+34    }
+35  
+36  
+37    public MutableClassLoader add(LinkedHashSet<URL> urls)
+38    {
+39      LinkedHashSet<URL> old =
+40          new LinkedHashSet<URL>(Arrays.asList(loader.getURLs()));
+41      old.addAll(urls);
+42      if (log.isDebugEnabled())
+43        for (URL url : urls)
+44          log.debug(url.toString());
+45      loader =
+46          new URLClassLoader(
+47              old.toArray(new URL[urls.size()]),
+48              getClass().getClassLoader()
+49              );
+50      return this;
+51    }
+52  
+53  
+54    @Override
+55    public void clearAssertionStatus()
+56    {
+57      loader.clearAssertionStatus();
+58    }
+59  
+60    @Override
+61    public void setClassAssertionStatus(String className, boolean enabled)
+62    {
+63      loader.setClassAssertionStatus(className, enabled);
+64    }
+65  
+66    @Override
+67    public void setPackageAssertionStatus(String packageName, boolean enabled)
+68    {
+69      loader.setPackageAssertionStatus(packageName, enabled);
+70    }
+71  
+72    @Override
+73    public void setDefaultAssertionStatus(boolean enabled)
+74    {
+75      loader.setDefaultAssertionStatus(enabled);
+76    }
+77  
+78    @Override
+79    public InputStream getResourceAsStream(String name)
+80    {
+81      return loader.getResourceAsStream(name);
+82    }
+83  
+84    @Override
+85    public Enumeration<URL> getResources(String name) throws IOException
+86    {
+87      return loader.getResources(name);
+88    }
+89  
+90    @Override
+91    public URL getResource(String name)
+92    {
+93      return loader.getResource(name);
+94    }
+95  
+96    @Override
+97    public Class<?> loadClass(String name) throws ClassNotFoundException
+98    {
+99      return loader.loadClass(name);
+100   }
+101   
+102 }
+
+
+ + + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/SimpleConnectionProvider.html b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/SimpleConnectionProvider.html new file mode 100644 index 0000000..650ee14 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/SimpleConnectionProvider.html @@ -0,0 +1,245 @@ + + + +SimpleConnectionProvider xref + + + +
View Javadoc
+1   package de.juplo.plugins.hibernate;
+2   
+3   import java.sql.Connection;
+4   import java.sql.Driver;
+5   import java.sql.DriverManager;
+6   import java.sql.DriverPropertyInfo;
+7   import java.sql.SQLException;
+8   import java.sql.SQLFeatureNotSupportedException;
+9   import java.util.Properties;
+10  import java.util.logging.Logger;
+11  import org.apache.maven.plugin.MojoFailureException;
+12  import org.apache.maven.plugin.logging.Log;
+13  import static org.eclipse.aether.repository.AuthenticationContext.PASSWORD;
+14  import static org.eclipse.aether.repository.AuthenticationContext.USERNAME;
+15  import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
+16  import static org.hibernate.cfg.AvailableSettings.DRIVER;
+17  import static org.hibernate.cfg.AvailableSettings.PASS;
+18  import static org.hibernate.cfg.AvailableSettings.URL;
+19  import static org.hibernate.cfg.AvailableSettings.USER;
+20  import org.hibernate.engine.jdbc.connections.spi.ConnectionProvider;
+21  import static org.hibernate.jpa.AvailableSettings.JDBC_DRIVER;
+22  import static org.hibernate.jpa.AvailableSettings.JDBC_PASSWORD;
+23  import static org.hibernate.jpa.AvailableSettings.JDBC_URL;
+24  import static org.hibernate.jpa.AvailableSettings.JDBC_USER;
+25  
+26  /**
+27   *
+28   * @author Kai Moritz
+29   */
+30  class SimpleConnectionProvider implements ConnectionProvider
+31  {
+32    private final Log log;
+33  
+34    private Connection connection;
+35  
+36  
+37    SimpleConnectionProvider(Log log)
+38    {
+39      this.log = log;
+40    }
+41  
+42  
+43    void open(ClassLoaderService classLoaderService, Properties properties)
+44        throws
+45          MojoFailureException
+46    {
+47  
+48      String driver = (String)properties.getProperty(DRIVER);
+49      String url = (String)properties.getProperty(URL);
+50      String user = (String)properties.getProperty(USER);
+51      String password = (String)properties.getProperty(PASS);
+52  
+53      if (driver == null || url == null)
+54      {
+55        log.info("No connection opened, because connection information is incomplete");
+56        log.info("Driver-Class: " + driver);
+57        log.info("URL: " + url);
+58        return;
+59      }
+60  
+61      try
+62      {
+63        Class driverClass = classLoaderService.classForName(driver);
+64  
+65        log.debug("Registering JDBC-driver " + driverClass.getName());
+66        DriverManager
+67            .registerDriver(new DriverProxy((Driver) driverClass.newInstance()));
+68  
+69        log.debug(
+70            "Opening JDBC-connection to " + url +
+71            " as " + user +
+72            " with password " + password
+73            );
+74      
+75        connection = DriverManager.getConnection(url, user, password);
+76      }
+77      catch (Exception e)
+78      {
+79        log.info("Could not open the JDBC-connection: " + e.getMessage());
+80      }
+81    }
+82  
+83    void close()
+84    {
+85      if (connection == null)
+86        return;
+87  
+88      log.debug("Closing the JDBC-connection.");
+89      try
+90      {
+91        connection.close();
+92      }
+93      catch (SQLException e)
+94      {
+95        log.error("Error while closing the JDBC-connection: " + e.getMessage());
+96      }
+97    }
+98  
+99    @Override
+100   public Connection getConnection() throws SQLException
+101   {
+102     log.debug("Connection aquired.");
+103 
+104     if (connection == null)
+105       throw new SQLException("No connection available, because of insufficient connection information!");
+106 
+107     return connection;
+108   }
+109 
+110   @Override
+111   public void closeConnection(Connection conn) throws SQLException
+112   {
+113     log.debug("Connection released");
+114   }
+115 
+116   @Override
+117   public boolean supportsAggressiveRelease()
+118   {
+119     return false;
+120   }
+121 
+122   @Override
+123   public boolean isUnwrappableAs(Class unwrapType)
+124   {
+125     return false;
+126   }
+127 
+128   @Override
+129   public <T> T unwrap(Class<T> unwrapType)
+130   {
+131     throw new UnsupportedOperationException("Not supported.");
+132   }
+133 
+134   /**
+135    * Needed, because DriverManager won't pick up drivers, that were not
+136    * loaded by the system-classloader!
+137    * See:
+138    * http://stackoverflow.com/questions/288828/how-to-use-a-jdbc-driver-fromodifiedm-an-arbitrary-location
+139    */
+140   static final class DriverProxy implements Driver
+141   {
+142     private final Driver target;
+143 
+144     DriverProxy(Driver target)
+145     {
+146       if (target == null)
+147         throw new NullPointerException();
+148       this.target = target;
+149     }
+150 
+151     public java.sql.Driver getTarget()
+152     {
+153       return target;
+154     }
+155 
+156     @Override
+157     public boolean acceptsURL(String url) throws SQLException
+158     {
+159       return target.acceptsURL(url);
+160     }
+161 
+162     @Override
+163     public java.sql.Connection connect(
+164         String url,
+165         java.util.Properties info
+166       )
+167       throws
+168         SQLException
+169     {
+170       return target.connect(url, info);
+171     }
+172 
+173     @Override
+174     public int getMajorVersion()
+175     {
+176       return target.getMajorVersion();
+177     }
+178 
+179     @Override
+180     public int getMinorVersion()
+181     {
+182       return target.getMinorVersion();
+183     }
+184 
+185     @Override
+186     public DriverPropertyInfo[] getPropertyInfo(
+187         String url,
+188         Properties info
+189       )
+190       throws
+191         SQLException
+192     {
+193       return target.getPropertyInfo(url, info);
+194     }
+195 
+196     @Override
+197     public boolean jdbcCompliant()
+198     {
+199       return target.jdbcCompliant();
+200     }
+201 
+202     /**
+203      * This Method cannot be annotated with @Override, becaus the plugin
+204      * will not compile then under Java 1.6!
+205      */
+206     public Logger getParentLogger() throws SQLFeatureNotSupportedException
+207     {
+208       throw new SQLFeatureNotSupportedException("Not supported, for backward-compatibility with Java 1.6");
+209     }
+210 
+211     @Override
+212     public String toString()
+213     {
+214       return "Proxy: " + target;
+215     }
+216 
+217     @Override
+218     public int hashCode()
+219     {
+220       return target.hashCode();
+221     }
+222 
+223     @Override
+224     public boolean equals(Object obj)
+225     {
+226       if (!(obj instanceof DriverProxy))
+227         return false;
+228       DriverProxy other = (DriverProxy) obj;
+229       return this.target.equals(other.target);
+230     }
+231   }
+232 }
+
+
+ + + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/UpdateMojo.html b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/UpdateMojo.html new file mode 100644 index 0000000..bd0dc71 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/UpdateMojo.html @@ -0,0 +1,94 @@ + + + +UpdateMojo xref + + + +
View Javadoc
+1   package de.juplo.plugins.hibernate;
+2   
+3   /*
+4    * Copyright 2001-2005 The Apache Software Foundation.
+5    *
+6    * Licensed under the Apache License, Version 2.0 (the "License");
+7    * you may not use this file except in compliance with the License.
+8    * You may obtain a copy of the License at
+9    *
+10   *      http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing, software
+13   * distributed under the License is distributed on an "AS IS" BASIS,
+14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+15   * See the License for the specific language governing permissions and
+16   * limitations under the License.
+17   */
+18  
+19  import java.util.Map;
+20  import org.apache.maven.plugin.MojoExecutionException;
+21  import org.apache.maven.plugin.MojoFailureException;
+22  import org.hibernate.boot.spi.MetadataImplementor;
+23  import org.hibernate.service.ServiceRegistry;
+24  import org.hibernate.tool.schema.spi.ExecutionOptions;
+25  import org.hibernate.tool.schema.spi.SchemaManagementTool;
+26  import org.hibernate.tool.schema.spi.TargetDescriptor;
+27  
+28  
+29  /**
+30   * Generate/Execute SQL to update the database-schema according to the
+31   * configured mappings.
+32   *
+33   * @goal update
+34   * @phase process-classes
+35   * @threadSafe
+36   * @requiresDependencyResolution runtime
+37   */
+38  public class UpdateMojo extends AbstractSchemaMojo
+39  {
+40    /**
+41     * Output file.
+42     * <p>
+43     * If the specified filename is not absolut, the file will be created
+44     * relative to the project build directory
+45     * (<code>project.build.directory</code>).
+46     *
+47     * @parameter property="hibernate.schema.update" default-value="update.sql"
+48     * @since 1.0
+49     */
+50    private String outputFile;
+51  
+52  
+53    @Override
+54    public final void execute()
+55      throws
+56        MojoFailureException,
+57        MojoExecutionException
+58    {
+59      super.execute(outputFile);
+60    }
+61  
+62  
+63    @Override
+64    void build(
+65        MetadataImplementor metadata,
+66        ExecutionOptions options,
+67        TargetDescriptor target
+68        )
+69        throws
+70          MojoExecutionException,
+71          MojoFailureException
+72    {
+73      ServiceRegistry service =
+74          metadata.getMetadataBuildingOptions().getServiceRegistry();
+75      SchemaManagementTool tool = service.getService(SchemaManagementTool.class);
+76  
+77      Map config = options.getConfigurationValues();
+78  
+79      tool.getSchemaMigrator(config).doMigration(metadata, options, target);
+80    }
+81  }
+
+
+ + + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/package-frame.html b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/package-frame.html new file mode 100644 index 0000000..812fee4 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/package-frame.html @@ -0,0 +1,48 @@ + + + + + + Hibernate Maven Plugin 2.1.0 Reference Package de.juplo.plugins.hibernate + + + + +

+ de.juplo.plugins.hibernate +

+ +

Classes

+ + + + + \ No newline at end of file diff --git a/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/package-summary.html b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/package-summary.html new file mode 100644 index 0000000..e716b01 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref/de/juplo/plugins/hibernate/package-summary.html @@ -0,0 +1,109 @@ + + + + + + Hibernate Maven Plugin 2.1.0 Reference Package de.juplo.plugins.hibernate + + + +
+ +
+
+ +
+ +

Package de.juplo.plugins.hibernate

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Class Summary
+ AbstractSchemaMojo +
+ CreateMojo +
+ DriverProxy +
+ DropMojo +
+ HelpMojo +
+ ModificationTracker +
+ MutableClassLoader +
+ SimpleConnectionProvider +
+ UpdateMojo +
+ +
+ +
+
+ +
+
+ + + \ No newline at end of file diff --git a/projects/hibernate-maven-plugin/2.1.0/xref/index.html b/projects/hibernate-maven-plugin/2.1.0/xref/index.html new file mode 100644 index 0000000..7cc75cb --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref/index.html @@ -0,0 +1,25 @@ + + + + + + + Hibernate Maven Plugin 2.1.0 Reference + + + + + + + + + <body> + <h1>Frame Alert</h1> + <p> + You don't have frames. Go <a href="overview-summary.html">here</a> + </p> + </body> + + + + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref/overview-frame.html b/projects/hibernate-maven-plugin/2.1.0/xref/overview-frame.html new file mode 100644 index 0000000..6190ab7 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref/overview-frame.html @@ -0,0 +1,25 @@ + + + + + + Hibernate Maven Plugin 2.1.0 Reference + + + + +

+ All Classes +

+ +

Packages

+ + + + + + diff --git a/projects/hibernate-maven-plugin/2.1.0/xref/overview-summary.html b/projects/hibernate-maven-plugin/2.1.0/xref/overview-summary.html new file mode 100644 index 0000000..6cd9e47 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref/overview-summary.html @@ -0,0 +1,66 @@ + + + + + + Hibernate Maven Plugin 2.1.0 Reference + + + +
+ +
+
+ +
+ +

Hibernate Maven Plugin 2.1.0 Reference

+ + + + + + + + + + + + +
Packages
+ de.juplo.plugins.hibernate +
+ +
+ +
+
+ +
+ +
+ + + \ No newline at end of file diff --git a/projects/hibernate-maven-plugin/2.1.0/xref/stylesheet.css b/projects/hibernate-maven-plugin/2.1.0/xref/stylesheet.css new file mode 100644 index 0000000..89732f8 --- /dev/null +++ b/projects/hibernate-maven-plugin/2.1.0/xref/stylesheet.css @@ -0,0 +1,114 @@ +/* Javadoc style sheet */ +/* Define colors, fonts and other style attributes here to override the defaults */ +body { + background-color: #fff; + font-family: Arial, Helvetica, sans-serif; +} + +a:link { + color: #00f; +} +a:visited { + color: #00a; +} + +a:active, a:hover { + color: #f30 !important; +} + +ul, li { + list-style-type:none; + margin:0; + padding:0; +} + +table td { + padding: 3px; + border: 1px solid #000; +} +table { + width:100%; + border: 1px solid #000; + border-collapse: collapse; +} + +div.overview { + background-color:#ddd; + padding: 4px 4px 4px 0; +} +div.overview li, div.framenoframe li { + display: inline; +} +div.framenoframe { + text-align: center; + font-size: x-small; +} +div.framenoframe li { + margin: 0 3px 0 3px; +} +div.overview li { + margin:3px 3px 0 3px; + padding: 4px; +} +li.selected { + background-color:#888; + color: #fff; + font-weight: bold; +} + +table.summary { + margin-bottom: 20px; +} +table.summary td, table.summary th { + font-weight: bold; + text-align: left; + padding: 3px; +} +table.summary th { + background-color:#036; + color: #fff; +} +table.summary td { + background-color:#eee; + border: 1px solid black; +} + +em { + color: #A00; +} +em.comment { + color: #390; +} +.string { + color: #009; +} + +#overview { + padding:2px; +} + +hr { + height: 1px; + color: #000; +} + +/* JXR style sheet */ +.jxr_comment +{ + color: #390; +} + +.jxr_javadoccomment +{ + color: #A00; +} + +.jxr_string +{ + color: #009; +} + +.jxr_keyword +{ + color: #000; +}