openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENJPA-2415) add a configuration to not fail if no entities were found
Date Thu, 25 Jul 2013 16:07:48 GMT
Romain Manni-Bucau created OPENJPA-2415:
-------------------------------------------

             Summary: add a configuration to not fail if no entities were found
                 Key: OPENJPA-2415
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2415
             Project: OpenJPA
          Issue Type: Improvement
            Reporter: Romain Manni-Bucau


if no entities are present but openjpa maven plugin is configured the build will fail. It
prevent the plugin to be generated by an archetype IMO.

Would be great to get an option in http://svn.apache.org/repos/asf/openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/main/java/org/apache/openjpa/tools/maven/AbstractOpenJpaEnhancerMojo.java
to skip the exception maybe:

if (!ok && !quiet) {
            throw new MojoExecutionException("The OpenJPA Enhancer tool detected an error!");
}

with the additional param:

   /**
     * @parameter default-value="false"
     */
    protected boolean quiet;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message