hibernate-maven-plugin 4.3.1.Final 生成实体类配置问题

Jack_Ruin 发布于 2017/02/27 13:41
阅读 425
收藏 0

使用hibernate插件生成实体类,部分配置如下:

<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>hibernate3-maven-plugin</artifactId>
                <version>2.2</version>

                <!-- <groupId>org.hibernate</groupId>
                <artifactId>hibernate-maven-plugin</artifactId>
                <version>4.3.1.Final</version> -->

                <dependencies>
                    <!-- mysql链接驱动,如果是Oracle的就换成Oracle的驱动 -->
                    <dependency>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>${mysql.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>cglib</groupId>
                        <artifactId>cglib</artifactId>
                        <version>3.2.4</version>
                    </dependency>
                    <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>ejb3-persistence</artifactId>
                        <version>3.3.2.Beta1</version>
                    </dependency>
                </dependencies>

.......

如果使用hibernate3-maven-plugin 2.2 执行hibernate3:hbm2java没问题,

但是如果使用hibernate-maven-plugin 执行hibernate3:hbm2java就会报错,详细日志如下:

[WARNING] Failed to retrieve plugin descriptor for org.hibernate:hibernate-maven-plugin:4.3.1.Final: Failed to parse plugin descriptor for org.hibernate:hibernate-maven-plugin:4.3.1.Final (D:\repo\org\hibernate\hibernate-maven-plugin\4.3.1.Final\hibernate-maven-plugin-4.3.1.Final.jar): No plugin descriptor found at META-INF/maven/plugin.xml
org.apache.maven.plugin.PluginDescriptorParsingException: Failed to parse plugin descriptor for org.hibernate:hibernate-maven-plugin:4.3.1.Final (D:\repo\org\hibernate\hibernate-maven-plugin\4.3.1.Final\hibernate-maven-plugin-4.3.1.Final.jar): No plugin descriptor found at META-INF/maven/plugin.xml
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.extractPluginDescriptor(DefaultMavenPluginManager.java:239)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:184)
    at org.apache.maven.plugin.DefaultBuildPluginManager.loadPlugin(DefaultBuildPluginManager.java:83)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:138)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:121)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:85)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:265)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:219)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:103)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:83)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:89)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.io.IOException: No plugin descriptor found at META-INF/maven/plugin.xml
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.extractPluginDescriptor(DefaultMavenPluginManager.java:234)
    ... 24 more
[DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (D:\repo)
[DEBUG] Skipped remote request for org.apache.maven.plugins/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata org.codehaus.mojo/maven-metadata.xml in local (D:\repo)
[DEBUG] Skipped remote request for org.codehaus.mojo/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin prefix hibernate3 to org.codehaus.mojo:hibernate3-maven-plugin from repository central
[DEBUG] Resolving plugin version for org.codehaus.mojo:hibernate3-maven-plugin
[DEBUG] Could not find metadata org.codehaus.mojo:hibernate3-maven-plugin/maven-metadata.xml in local (D:\repo)
[DEBUG] Skipped remote request for org.codehaus.mojo:hibernate3-maven-plugin/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin version for org.codehaus.mojo:hibernate3-maven-plugin to 3.0 from repository central (https://repo.maven.apache.org/maven2, default, releases)
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: com.ruin.app:rzos-hibernate:war:0.0.1-SNAPSHOT
[DEBUG] Tasks:   [hibernate3:hbm2java]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building rzos-hibernate Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Resolving plugin prefix hibernate3 from [org.apache.maven.plugins, org.codehaus.mojo]
[WARNING] Failed to retrieve plugin descriptor for org.hibernate:hibernate-maven-plugin:4.3.1.Final: Failed to parse plugin descriptor for org.hibernate:hibernate-maven-plugin:4.3.1.Final (D:\repo\org\hibernate\hibernate-maven-plugin\4.3.1.Final\hibernate-maven-plugin-4.3.1.Final.jar): No plugin descriptor found at META-INF/maven/plugin.xml
org.apache.maven.plugin.PluginDescriptorParsingException: Failed to parse plugin descriptor for org.hibernate:hibernate-maven-plugin:4.3.1.Final (D:\repo\org\hibernate\hibernate-maven-plugin\4.3.1.Final\hibernate-maven-plugin-4.3.1.Final.jar): No plugin descriptor found at META-INF/maven/plugin.xml
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.extractPluginDescriptor(DefaultMavenPluginManager.java:239)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:184)
    at org.apache.maven.plugin.DefaultBuildPluginManager.loadPlugin(DefaultBuildPluginManager.java:83)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:138)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:121)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:85)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:265)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:219)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateMojoExecutions(DefaultLifecycleExecutionPlanCalculator.java:206)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:127)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:145)
    at org.apache.maven.lifecycle.internal.builder.BuilderCommon.resolveBuildPlan(BuilderCommon.java:96)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:109)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.io.IOException: No plugin descriptor found at META-INF/maven/plugin.xml
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.extractPluginDescriptor(DefaultMavenPluginManager.java:234)
    ... 29 more
[DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (D:\repo)
[DEBUG] Skipped remote request for org.apache.maven.plugins/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata org.codehaus.mojo/maven-metadata.xml in local (D:\repo)
[DEBUG] Skipped remote request for org.codehaus.mojo/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin prefix hibernate3 to org.codehaus.mojo:hibernate3-maven-plugin from repository central
[DEBUG] Resolving plugin version for org.codehaus.mojo:hibernate3-maven-plugin
[DEBUG] Could not find metadata org.codehaus.mojo:hibernate3-maven-plugin/maven-metadata.xml in local (D:\repo)
[DEBUG] Skipped remote request for org.codehaus.mojo:hibernate3-maven-plugin/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin version for org.codehaus.mojo:hibernate3-maven-plugin to 3.0 from repository central (https://repo.maven.apache.org/maven2, default, releases)
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project:       com.ruin.app:rzos-hibernate:0.0.1-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [runtime]
[DEBUG] Repositories (dependencies): [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Repositories (plugins)     : [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] --- init fork of com.ruin.app:rzos-hibernate:0.0.1-SNAPSHOT for org.codehaus.mojo:hibernate3-maven-plugin:3.0:hbm2java (default-cli) ---
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-resources-plugin:2.6:resources (default-resources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <buildFilters default-value="${project.build.filters}"/>
  <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <escapeString>${maven.resources.escapeString}</escapeString>
  <escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
  <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <overwrite default-value="false">${maven.resources.overwrite}</overwrite>
  <project default-value="${project}"/>
  <resources default-value="${project.resources}"/>
  <session default-value="${session}"/>
  <supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering>
  <useBuildFilters default-value="true"/>
  <useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] --- exit fork of com.ruin.app:rzos-hibernate:0.0.1-SNAPSHOT for org.codehaus.mojo:hibernate3-maven-plugin:3.0:hbm2java (default-cli) ---
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.codehaus.mojo:hibernate3-maven-plugin:3.0:hbm2java (default-cli)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <classRealm>${plugin.classRealm}</classRealm>
  <hibernatetool>${hibernatetool}</hibernatetool>
  <localRepository>${localRepository}</localRepository>
  <session>${session}</session>
</configuration>
[DEBUG] =======================================================================
[INFO] 
[INFO] >>> hibernate3-maven-plugin:3.0:hbm2java (default-cli) > process-resources @ rzos-hibernate >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ rzos-hibernate ---
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1, ConflictMarker.markTime=0, ConflictMarker.nodeCount=77, ConflictIdSorter.graphTime=1, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=26, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=8, ConflictResolver.conflictItemCount=74, DefaultDependencyCollector.collectTime=141, DefaultDependencyCollector.transformTime=12}
[DEBUG] org.apache.maven.plugins:maven-resources-plugin🏺2.6:
[DEBUG]    org.apache.maven:maven-plugin-api🏺2.0.6:compile
[DEBUG]    org.apache.maven:maven-project🏺2.0.6:compile
[DEBUG]       org.apache.maven:maven-profile🏺2.0.6:compile
[DEBUG]       org.apache.maven:maven-artifact-manager🏺2.0.6:compile
[DEBUG]       org.apache.maven:maven-plugin-registry🏺2.0.6:compile
[DEBUG]    org.apache.maven:maven-core🏺2.0.6:compile
[DEBUG]       org.apache.maven:maven-plugin-parameter-documenter🏺2.0.6:compile
[DEBUG]       org.apache.maven.reporting:maven-reporting-api🏺2.0.6:compile
[DEBUG]          org.apache.maven.doxia:doxia-sink-api🏺1.0-alpha-7:compile
[DEBUG]       org.apache.maven:maven-repository-metadata🏺2.0.6:compile
[DEBUG]       org.apache.maven:maven-error-diagnostics🏺2.0.6:compile
[DEBUG]       commons-cli:commons-cli🏺1.0:compile
[DEBUG]       org.apache.maven:maven-plugin-descriptor🏺2.0.6:compile
[DEBUG]       org.codehaus.plexus:plexus-interactivity-api🏺1.0-alpha-4:compile
[DEBUG]       classworlds:classworlds🏺1.1:compile
[DEBUG]    org.apache.maven:maven-artifact🏺2.0.6:compile
[DEBUG]    org.apache.maven:maven-settings🏺2.0.6:compile
[DEBUG]    org.apache.maven:maven-model🏺2.0.6:compile
[DEBUG]    org.apache.maven:maven-monitor🏺2.0.6:compile
[DEBUG]    org.codehaus.plexus:plexus-container-default🏺1.0-alpha-9-stable-1:compile
[DEBUG]       junit:junit🏺3.8.1:compile
[DEBUG]    org.codehaus.plexus:plexus-utils🏺2.0.5:compile
[DEBUG]    org.apache.maven.shared:maven-filtering🏺1.1:compile
[DEBUG]       org.sonatype.plexus:plexus-build-api🏺0.0.4:compile
[DEBUG]    org.codehaus.plexus:plexus-interpolation🏺1.13:compile
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.6
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.6
[DEBUG]   Imported:  < maven.api
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.6
[DEBUG]   Included: org.apache.maven.plugins:maven-resources-plugin🏺2.6
[DEBUG]   Included: org.apache.maven.reporting:maven-reporting-api🏺2.0.6
[DEBUG]   Included: org.apache.maven.doxia:doxia-sink-api🏺1.0-alpha-7
[DEBUG]   Included: commons-cli:commons-cli🏺1.0
[DEBUG]   Included: org.codehaus.plexus:plexus-interactivity-api🏺1.0-alpha-4
[DEBUG]   Included: junit:junit🏺3.8.1
[DEBUG]   Included: org.codehaus.plexus:plexus-utils🏺2.0.5
[DEBUG]   Included: org.apache.maven.shared:maven-filtering🏺1.1
[DEBUG]   Included: org.sonatype.plexus:plexus-build-api🏺0.0.4
[DEBUG]   Included: org.codehaus.plexus:plexus-interpolation🏺1.13
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-resources-plugin:2.6:resources from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-resources-plugin:2.6, parent: sun.misc.Launcher$AppClassLoader@18b4aac2]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.6:resources' with basic configurator -->
[DEBUG]   (f) buildFilters = []
[DEBUG]   (f) encoding = utf-8
[DEBUG]   (f) escapeWindowsPaths = true
[DEBUG]   (s) includeEmptyDirs = false
[DEBUG]   (s) outputDirectory = E:\workspaces\eclipse1\rzos-hibernate\target\classes
[DEBUG]   (s) overwrite = false
[DEBUG]   (f) project = MavenProject: com.ruin.app:rzos-hibernate:0.0.1-SNAPSHOT @ E:\workspaces\eclipse1\rzos-hibernate\pom.xml
[DEBUG]   (s) resources = [Resource {targetPath: null, filtering: false, FileSet {directory: E:\workspaces\eclipse1\rzos-hibernate\src\main\resources, PatternSet [includes: {}, excludes: {}]}}]
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@2532b351
[DEBUG]   (f) supportMultiLineFiltering = false
[DEBUG]   (f) useBuildFilters = true
[DEBUG]   (s) useDefaultDelimiters = true
[DEBUG] -- end configuration --
[DEBUG] properties used {java.vendor=Oracle Corporation, env.SYSTEMROOT=C:\WINDOWS, mybatis.version=3.4.2, env.MOZ_PLUGIN_PATH=D:\Program Files (x86)\Foxit Software\Foxit Reader Plus\plugins\, env.USERDOMAIN_ROAMINGPROFILE=YHQ-ZHANGJR-PC, sun.java.launcher=SUN_STANDARD, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, env.PROMPT=$P$G, fastjson.version=1.2.24, os.name=Windows 10, sun.boot.class.path=D:\Program Files (x86)\Java\jdk1.8.0_91\jre\lib\resources.jar;D:\Program Files (x86)\Java\jdk1.8.0_91\jre\lib\rt.jar;D:\Program Files (x86)\Java\jdk1.8.0_91\jre\lib\sunrsasign.jar;D:\Program Files (x86)\Java\jdk1.8.0_91\jre\lib\jsse.jar;D:\Program Files (x86)\Java\jdk1.8.0_91\jre\lib\jce.jar;D:\Program Files (x86)\Java\jdk1.8.0_91\jre\lib\charsets.jar;D:\Program Files (x86)\Java\jdk1.8.0_91\jre\lib\jfr.jar;D:\Program Files (x86)\Java\jdk1.8.0_91\jre\classes, env.COMPUTERNAME=YHQ-ZHANGJR-PC, env.ALLUSERSPROFILE=C:\ProgramData, sun.desktop=windows, java.vm.specification.vendor=Oracle Corporation, java.runtime.version=1.8.0_91-b14, env.HOMEPATH=\Users\zhangjr, project.build.sourceEncoding=utf-8, user.name=zhangjr, maven.build.version=Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00), logback.version=1.2.1, env.PATH=D:\Program Files (x86)\Java\jdk1.8.0_91\jre\bin;D:/Program Files (x86)/Java/jdk1.8.0_91/bin/../jre/bin/server;D:/Program Files (x86)/Java/jdk1.8.0_91/bin/../jre/bin;D:/Program Files (x86)/Java/jdk1.8.0_91/bin/../jre/lib/amd64;C:\Program Files (x86)\Common Files\NetSarang;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\Program Files (x86)\Java\jdk1.7.0_71\bin;D:\Program Files (x86)\mysql-5.6.24\bin;D:\Program Files\nodejs\;D:\Program Files\TortoiseSVN\bin;C:\Users\zhangjr\AppData\Local\Microsoft\WindowsApps;C:\Users\zhangjr\AppData\Roaming\npm;D:\ttmnq\Tools;D:\eclipse-oxygen;, user.language=zh, mybatis-generator.version=1.3.5, env.WINDIR=C:\WINDOWS, sun.boot.library.path=D:\Program Files (x86)\Java\jdk1.8.0_91\jre\bin, env.MYSQL_HOME=D:\Program Files (x86)\mysql-5.6.24, classworlds.conf=E:\workspaces\eclipse1\.metadata\.plugins\org.eclipse.m2e.launching\launches\m2conf4016803828455889695.tmp, java.version=1.8.0_91, env.PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 60 Stepping 3, GenuineIntel, user.timezone=Asia/Shanghai, maven.compiler.compilerVersion=1.7, env.TEMP=C:\Users\zhangjr\AppData\Local\Temp, sun.arch.data.model=64, java.endorsed.dirs=D:\Program Files (x86)\Java\jdk1.8.0_91\jre\lib\endorsed, sun.cpu.isalist=amd64, env.HOMEDRIVE=C:, sun.jnu.encoding=GBK, file.encoding.pkg=sun.io, env.SYSTEMDRIVE=C:, file.separator=\, java.specification.name=Java Platform API Specification, java.class.version=52.0, org.slf4j.simpleLogger.defaultLogLevel=debug, user.country=CN, java.home=D:\Program Files (x86)\Java\jdk1.8.0_91\jre, env.APPDATA=C:\Users\zhangjr\AppData\Roaming, env.PUBLIC=C:\Users\Public, java.vm.info=mixed mode, env.OS=Windows_NT, os.version=10.0, maven.compiler.target=1.7, path.separator=;, java.vm.version=25.91-b14, servlet.version=3.1.0, env.USERPROFILE=C:\Users\zhangjr, user.variant=, env.JAVA_HOME=D:\Program Files (x86)\Java\jdk1.7.0_71, java.awt.printerjob=sun.awt.windows.WPrinterJob, env.TMP=C:\Users\zhangjr\AppData\Local\Temp, env.FPS_BROWSER_USER_PROFILE_STRING=Default, env.PROGRAMFILES=C:\Program Files, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.windows.WToolkit, user.script=, user.home=C:\Users\zhangjr, env.COMMONPROGRAMFILES=C:\Program Files\Common Files, env.SESSIONNAME=Console, java.specification.vendor=Oracle Corporation, mysql.version=5.1.38, env.NUMBER_OF_PROCESSORS=4, java.library.path=D:\Program Files (x86)\Java\jdk1.8.0_91\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\Program Files (x86)\Java\jdk1.8.0_91\jre\bin;D:/Program Files (x86)/Java/jdk1.8.0_91/bin/../jre/bin/server;D:/Program Files (x86)/Java/jdk1.8.0_91/bin/../jre/bin;D:/Program Files (x86)/Java/jdk1.8.0_91/bin/../jre/lib/amd64;C:\Program Files (x86)\Common Files\NetSarang;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\Program Files (x86)\Java\jdk1.7.0_71\bin;D:\Program Files (x86)\mysql-5.6.24\bin;D:\Program Files\nodejs\;D:\Program Files\TortoiseSVN\bin;C:\Users\zhangjr\AppData\Local\Microsoft\WindowsApps;C:\Users\zhangjr\AppData\Roaming\npm;D:\ttmnq\Tools;D:\eclipse-oxygen;;., java.vendor.url=http://java.oracle.com/, env.COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files, env.PSMODULEPATH=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\, java.vm.vendor=Oracle Corporation, maven.home=E:\workspaces\eclipse1\rzos-hibernate\EMBEDDED, java.runtime.name=Java(TM) SE Runtime Environment, sun.java.command=org.codehaus.plexus.classworlds.launcher.Launcher -B -gs D:\repo\settings.xml -s D:\repo\settings.xml hibernate3:hbm2java -X, java.class.path=/D:/eclipse-oxygen/plugins/org.eclipse.m2e.maven.runtime_1.8.0.20160921-2001/jars/plexus-classworlds-2.5.2.jar, env.PROGRAMW6432=C:\Program Files, maven.version=3.3.9, jdk.version=1.8, env.PROGRAMFILES(X86)=C:\Program Files (x86), slf4j.version=1.7.24, java.vm.specification.name=Java Virtual Machine Specification, env.LOGONSERVER=\\YHQ-ZHANGJR-PC, java.vm.specification.version=1.8, env.PROCESSOR_ARCHITECTURE=AMD64, env.COMMONPROGRAMW6432=C:\Program Files\Common Files, sun.cpu.endian=little, sun.os.patch.level=, env.PROCESSOR_REVISION=3c03, java.io.tmpdir=C:\Users\zhangjr\AppData\Local\Temp\, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, maven.multiModuleProjectDirectory=E:\workspaces\eclipse1\rzos-hibernate, env.PROGRAMDATA=C:\ProgramData, env.COMSPEC=C:\WINDOWS\system32\cmd.exe, maven.compiler.source=1.7, env.FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer, os.arch=amd64, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.ext.dirs=D:\Program Files (x86)\Java\jdk1.8.0_91\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext, env.LOCALAPPDATA=C:\Users\zhangjr\AppData\Local, user.dir=E:\workspaces\eclipse1\rzos-hibernate, line.separator=
, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, env.PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, env.USERNAME=zhangjr, jackson.version=2.8.6, spring.version=4.3.6.RELEASE, file.encoding=GBK, mybatis-spring.version=1.3.1, env.USERDOMAIN=YHQ-ZHANGJR-PC, druid.version=1.0.28, java.specification.version=1.8, shiro.version=1.3.2, env.PROCESSOR_LEVEL=6, env.VBOX_MSI_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\}
[INFO] Using 'utf-8' encoding to copy filtered resources.
[DEBUG] resource with targetPath null
directory E:\workspaces\eclipse1\rzos-hibernate\src\main\resources
excludes []
includes []
[DEBUG] ignoreDelta true
[INFO] Copying 10 resources
[DEBUG] file applicationContext.xml has a filtered file extension
[DEBUG] copy E:\workspaces\eclipse1\rzos-hibernate\src\main\resources\applicationContext.xml to E:\workspaces\eclipse1\rzos-hibernate\target\classes\applicationContext.xml
[DEBUG] file jdbc.properties has a filtered file extension
[DEBUG] copy E:\workspaces\eclipse1\rzos-hibernate\src\main\resources\configs\jdbc.properties to E:\workspaces\eclipse1\rzos-hibernate\target\classes\configs\jdbc.properties
[DEBUG] file messages.properties has a filtered file extension
[DEBUG] copy E:\workspaces\eclipse1\rzos-hibernate\src\main\resources\configs\messages.properties to E:\workspaces\eclipse1\rzos-hibernate\target\classes\configs\messages.properties
[DEBUG] file ehcache.xml has a filtered file extension
[DEBUG] copy E:\workspaces\eclipse1\rzos-hibernate\src\main\resources\ehcache.xml to E:\workspaces\eclipse1\rzos-hibernate\target\classes\ehcache.xml
[DEBUG] file hibernate.cfg.xml has a filtered file extension
[DEBUG] copy E:\workspaces\eclipse1\rzos-hibernate\src\main\resources\hibernate.cfg.xml to E:\workspaces\eclipse1\rzos-hibernate\target\classes\hibernate.cfg.xml
[DEBUG] file logback.xml has a filtered file extension
[DEBUG] copy E:\workspaces\eclipse1\rzos-hibernate\src\main\resources\logback.xml to E:\workspaces\eclipse1\rzos-hibernate\target\classes\logback.xml
[DEBUG] file spring-hibernate.xml has a filtered file extension
[DEBUG] copy E:\workspaces\eclipse1\rzos-hibernate\src\main\resources\spring\spring-hibernate.xml to E:\workspaces\eclipse1\rzos-hibernate\target\classes\spring\spring-hibernate.xml
[DEBUG] file spring-mvc.xml has a filtered file extension
[DEBUG] copy E:\workspaces\eclipse1\rzos-hibernate\src\main\resources\spring\spring-mvc.xml to E:\workspaces\eclipse1\rzos-hibernate\target\classes\spring\spring-mvc.xml
[DEBUG] file spring-service.xml has a filtered file extension
[DEBUG] copy E:\workspaces\eclipse1\rzos-hibernate\src\main\resources\spring\spring-service.xml to E:\workspaces\eclipse1\rzos-hibernate\target\classes\spring\spring-service.xml
[DEBUG] file spring-shiro.xml has a filtered file extension
[DEBUG] copy E:\workspaces\eclipse1\rzos-hibernate\src\main\resources\spring\spring-shiro.xml to E:\workspaces\eclipse1\rzos-hibernate\target\classes\spring\spring-shiro.xml
[DEBUG] no use filter components
[INFO] 
[INFO] <<< hibernate3-maven-plugin:3.0:hbm2java (default-cli) < process-resources @ rzos-hibernate <<<
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1, ConflictMarker.markTime=1, ConflictMarker.nodeCount=226, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=69, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=6, ConflictResolver.conflictItemCount=146, DefaultDependencyCollector.collectTime=323, DefaultDependencyCollector.transformTime=8}
[DEBUG] com.ruin.app:rzos-hibernate:war:0.0.1-SNAPSHOT
[DEBUG]    junit:junit🏺4.11:test
[DEBUG]       org.hamcrest:hamcrest-core🏺1.3:test
[DEBUG]    org.springframework:spring-test🏺4.3.6.RELEASE:test
[DEBUG]    javax.servlet:javax.servlet-api🏺3.1.0:provided
[DEBUG]    javax.servlet:jsp-api🏺2.0:provided
[DEBUG]       javax.servlet:servlet-api🏺2.4:provided
[DEBUG]    javax.servlet:jstl🏺1.2:compile
[DEBUG]    joda-time:joda-time🏺2.9.4:compile
[DEBUG]    org.slf4j:slf4j-api🏺1.7.24:compile
[DEBUG]    org.slf4j:jcl-over-slf4j🏺1.7.24:compile
[DEBUG]    ch.qos.logback:logback-core🏺1.2.1:compile
[DEBUG]    ch.qos.logback:logback-classic🏺1.2.1:compile
[DEBUG]    org.logback-extensions:logback-ext-spring🏺0.1.4:compile
[DEBUG]    org.springframework:spring-core🏺4.3.6.RELEASE:compile
[DEBUG]    org.springframework:spring-context🏺4.3.6.RELEASE:compile
[DEBUG]       org.springframework:spring-expression🏺4.3.6.RELEASE:compile
[DEBUG]    org.springframework:spring-context-support🏺4.3.6.RELEASE:compile
[DEBUG]    org.springframework:spring-beans🏺4.3.6.RELEASE:compile
[DEBUG]    org.springframework:spring-jdbc🏺4.3.6.RELEASE:compile
[DEBUG]    org.springframework:spring-aop🏺4.3.6.RELEASE:compile
[DEBUG]    org.springframework:spring-aspects🏺4.3.6.RELEASE:compile
[DEBUG]       org.aspectj:aspectjweaver🏺1.8.9:compile
[DEBUG]    org.springframework:spring-tx🏺4.3.6.RELEASE:compile
[DEBUG]    org.springframework:spring-oxm🏺4.3.6.RELEASE:compile
[DEBUG]    org.springframework:spring-web🏺4.3.6.RELEASE:compile
[DEBUG]    org.springframework:spring-webmvc🏺4.3.6.RELEASE:compile
[DEBUG]    org.springframework:spring-orm🏺4.3.6.RELEASE:compile
[DEBUG]    org.hibernate:hibernate-core🏺5.2.8.Final:compile
[DEBUG]       org.jboss.logging:jboss-logging🏺3.3.0.Final:compile
[DEBUG]       org.hibernate.javax.persistence:hibernate-jpa-2.1-api🏺1.0.0.Final:compile
[DEBUG]       org.javassist:javassist🏺3.20.0-GA:compile
[DEBUG]       antlr:antlr🏺2.7.7:compile
[DEBUG]       org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec🏺1.0.1.Final:compile
[DEBUG]       org.jboss:jandex🏺2.0.3.Final:compile
[DEBUG]       com.fasterxml:classmate🏺1.3.0:compile
[DEBUG]       dom4j:dom4j🏺1.6.1:compile
[DEBUG]       org.hibernate.common:hibernate-commons-annotations🏺5.0.1.Final:compile
[DEBUG]    org.mybatis:mybatis🏺3.4.2:compile
[DEBUG]    org.mybatis:mybatis-spring🏺1.3.1:compile
[DEBUG]    mysql:mysql-connector-java🏺5.1.38:runtime
[DEBUG]    com.alibaba:druid🏺1.0.28:compile
[DEBUG]       com.alibaba:jconsole🏺1.8.0:system
[DEBUG]       com.alibaba:tools🏺1.8.0:system
[DEBUG]    com.fasterxml.jackson.core:jackson-core🏺2.8.6:compile
[DEBUG]    com.fasterxml.jackson.core:jackson-databind🏺2.8.6:compile
[DEBUG]    com.fasterxml.jackson.core:jackson-annotations🏺2.8.6:compile
[DEBUG]    org.apache.commons:commons-lang3🏺3.3.2:compile
[DEBUG]    commons-io:commons-io🏺2.4:compile
[DEBUG]    commons-fileupload:commons-fileupload🏺1.3:compile
[DEBUG]    commons-codec:commons-codec🏺1.10:compile
[DEBUG]    com.alibaba:fastjson🏺1.2.24:compile
[DEBUG]    org.apache.shiro:shiro-core🏺1.3.2:compile
[DEBUG]       commons-beanutils:commons-beanutils🏺1.8.3:compile
[DEBUG]    org.apache.shiro:shiro-spring🏺1.3.2:compile
[DEBUG]       org.apache.shiro:shiro-web🏺1.3.2:compile
[DEBUG]    org.apache.shiro:shiro-ehcache🏺1.3.2:compile
[DEBUG]       net.sf.ehcache:ehcache-core🏺2.5.3:compile
[DEBUG]    com.mangofactory:swagger-springmvc🏺1.0.2:compile
[DEBUG]       com.wordnik:swagger-annotations🏺1.3.11:compile
[DEBUG]       com.google.guava:guava🏺15.0:compile
[DEBUG]       com.mangofactory:swagger-models🏺1.0.2:compile
[DEBUG]    io.springfox:springfox-petstore🏺2.2.2:compile
[DEBUG]       org.springframework.plugin:spring-plugin-core🏺1.2.0.RELEASE:compile
[DEBUG]       org.springframework.plugin:spring-plugin-metadata🏺1.2.0.RELEASE:compile
[DEBUG]       org.springframework.hateoas:spring-hateoas🏺0.18.0.RELEASE:compile
[DEBUG]       io.swagger:swagger-annotations🏺1.5.3:compile
[DEBUG]       io.swagger:swagger-models🏺1.5.3:compile
[INFO] 
[INFO] --- hibernate3-maven-plugin:3.0:hbm2java (default-cli) @ rzos-hibernate ---
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, ConflictMarker.markTime=0, ConflictMarker.nodeCount=115, ConflictIdSorter.graphTime=1, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=42, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1, ConflictResolver.conflictItemCount=85, DefaultDependencyCollector.collectTime=173, DefaultDependencyCollector.transformTime=2}
[DEBUG] org.codehaus.mojo:hibernate3-maven-plugin🏺3.0:
[DEBUG]    org.hibernate:hibernate-tools🏺3.2.4.GA:compile
[DEBUG]       org.beanshell:bsh🏺2.0b4:compile
[DEBUG]       freemarker:freemarker🏺2.3.8:compile
[DEBUG]       org.hibernate:jtidy🏺r8-20060801:compile
[DEBUG]    org.slf4j:jcl-over-slf4j🏺1.6.1:runtime
[DEBUG]       org.slf4j:slf4j-api🏺1.6.1:runtime
[DEBUG]    org.slf4j:slf4j-nop🏺1.6.1:runtime
[DEBUG]    org.apache.maven.plugins:maven-antrun-plugin🏺1.6:compile
[DEBUG]       org.apache.maven:maven-plugin-api🏺2.0.1:compile
[DEBUG]       org.apache.maven:maven-project🏺2.0.11:compile
[DEBUG]          org.apache.maven:maven-plugin-registry🏺2.0.11:compile
[DEBUG]          org.codehaus.plexus:plexus-interpolation🏺1.1:compile
[DEBUG]       org.apache.maven:maven-artifact🏺2.0.11:compile
[DEBUG]       org.apache.ant:ant-nodeps🏺1.8.1:compile
[DEBUG]          org.apache.ant:ant🏺1.8.1:compile
[DEBUG]             org.apache.ant:ant-launcher🏺1.8.1:compile
[DEBUG]    org.codehaus.plexus:plexus-utils🏺2.0.5:compile
[DEBUG]    org.apache.maven:maven-core🏺2.2.1:compile
[DEBUG]       org.apache.maven:maven-settings🏺2.2.1:compile
[DEBUG]       org.apache.maven:maven-plugin-parameter-documenter🏺2.2.1:compile
[DEBUG]       org.slf4j:slf4j-jdk14🏺1.5.6:runtime
[DEBUG]       org.apache.maven.reporting:maven-reporting-api🏺2.2.1:compile
[DEBUG]          org.apache.maven.doxia:doxia-sink-api🏺1.1:compile
[DEBUG]          org.apache.maven.doxia:doxia-logging-api🏺1.1:compile
[DEBUG]       org.apache.maven:maven-profile🏺2.2.1:compile
[DEBUG]       org.apache.maven:maven-model🏺2.2.1:compile
[DEBUG]       org.codehaus.plexus:plexus-container-default🏺1.0-alpha-9-stable-1:compile
[DEBUG]          junit:junit🏺4.10:test
[DEBUG]             org.hamcrest:hamcrest-core🏺1.1:test
[DEBUG]       org.apache.maven:maven-repository-metadata🏺2.2.1:compile
[DEBUG]       org.apache.maven:maven-error-diagnostics🏺2.2.1:compile
[DEBUG]       commons-cli:commons-cli🏺1.2:compile
[DEBUG]       org.apache.maven:maven-plugin-descriptor🏺2.2.1:compile
[DEBUG]       org.codehaus.plexus:plexus-interactivity-api🏺1.0-alpha-4:compile
[DEBUG]       org.apache.maven:maven-artifact-manager🏺2.2.1:compile
[DEBUG]          backport-util-concurrent:backport-util-concurrent🏺3.1:compile
[DEBUG]       org.apache.maven:maven-monitor🏺2.2.1:compile
[DEBUG]       classworlds:classworlds🏺1.1:compile
[DEBUG]       org.sonatype.plexus:plexus-sec-dispatcher🏺1.3:compile
[DEBUG]          org.sonatype.plexus:plexus-cipher🏺1.4:compile
[DEBUG] Created new class realm plugin>org.codehaus.mojo:hibernate3-maven-plugin:3.0
[DEBUG] Importing foreign packages into class realm plugin>org.codehaus.mojo:hibernate3-maven-plugin:3.0
[DEBUG]   Imported:  < maven.api
[DEBUG] Populating class realm plugin>org.codehaus.mojo:hibernate3-maven-plugin:3.0
[DEBUG]   Included: org.codehaus.mojo:hibernate3-maven-plugin🏺3.0
[DEBUG]   Included: org.hibernate:hibernate-tools🏺3.2.4.GA
[DEBUG]   Included: org.beanshell:bsh🏺2.0b4
[DEBUG]   Included: freemarker:freemarker🏺2.3.8
[DEBUG]   Included: org.hibernate:jtidy🏺r8-20060801
[DEBUG]   Included: org.slf4j:jcl-over-slf4j🏺1.6.1
[DEBUG]   Included: org.slf4j:slf4j-nop🏺1.6.1
[DEBUG]   Included: org.apache.maven.plugins:maven-antrun-plugin🏺1.6
[DEBUG]   Included: org.codehaus.plexus:plexus-interpolation🏺1.1
[DEBUG]   Included: org.apache.ant:ant-nodeps🏺1.8.1
[DEBUG]   Included: org.apache.ant:ant🏺1.8.1
[DEBUG]   Included: org.apache.ant:ant-launcher🏺1.8.1
[DEBUG]   Included: org.codehaus.plexus:plexus-utils🏺2.0.5
[DEBUG]   Included: org.slf4j:slf4j-jdk14🏺1.5.6
[DEBUG]   Included: org.apache.maven.reporting:maven-reporting-api🏺2.2.1
[DEBUG]   Included: org.apache.maven.doxia:doxia-sink-api🏺1.1
[DEBUG]   Included: org.apache.maven.doxia:doxia-logging-api🏺1.1
[DEBUG]   Included: commons-cli:commons-cli🏺1.2
[DEBUG]   Included: org.codehaus.plexus:plexus-interactivity-api🏺1.0-alpha-4
[DEBUG]   Included: backport-util-concurrent:backport-util-concurrent🏺3.1
[DEBUG]   Included: org.sonatype.plexus:plexus-sec-dispatcher🏺1.3
[DEBUG]   Included: org.sonatype.plexus:plexus-cipher🏺1.4
[DEBUG] Configuring mojo org.codehaus.mojo:hibernate3-maven-plugin:3.0:hbm2java from plugin realm ClassRealm[plugin>org.codehaus.mojo:hibernate3-maven-plugin:3.0, parent: sun.misc.Launcher$AppClassLoader@18b4aac2]
[DEBUG] Configuring mojo 'org.codehaus.mojo:hibernate3-maven-plugin:3.0:hbm2java' with basic configurator -->
[DEBUG]   (f) classRealm = ClassRealm[plugin>org.codehaus.mojo:hibernate3-maven-plugin:3.0, parent: sun.misc.Launcher$AppClassLoader@18b4aac2]
[DEBUG]   (f) hibernatetool = <hibernatetool>${hibernatetool}</hibernatetool>

[DEBUG]   (f) localRepository =       id: local
      url: file:///D:/repo/
   layout: default
snapshots: [enabled => true, update => always]
 releases: [enabled => true, update => always]

[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@2532b351
[DEBUG] -- end configuration --
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.541 s
[INFO] Finished at: 2017-02-27T13:38:28+08:00
[INFO] Final Memory: 16M/222M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:hibernate3-maven-plugin:3.0:hbm2java (default-cli) on project rzos-hibernate: There was an error creating the AntRun task. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:hibernate3-maven-plugin:3.0:hbm2java (default-cli) on project rzos-hibernate: There was an error creating the AntRun task.
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: There was an error creating the AntRun task.
    at org.codehaus.mojo.hibernate3.AbstractHibernateMojo.execute(AbstractHibernateMojo.java:84)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    ... 20 more
Caused by: java.lang.NullPointerException
    at org.codehaus.plexus.configuration.DefaultPlexusConfiguration.add(DefaultPlexusConfiguration.java:175)
    at org.codehaus.plexus.configuration.DefaultPlexusConfiguration.addChild(DefaultPlexusConfiguration.java:151)
    at org.codehaus.mojo.hibernate3.util.PlexusConfigurationUtils.setHibernateConfiguration(PlexusConfigurationUtils.java:289)
    at org.codehaus.mojo.hibernate3.util.PlexusConfigurationUtils.parseHibernateTool(PlexusConfigurationUtils.java:67)
    at org.codehaus.mojo.hibernate3.AbstractHibernateToolMojo.getConfiguration(AbstractHibernateToolMojo.java:60)
    at org.codehaus.mojo.hibernate3.AbstractHibernateMojo.execute(AbstractHibernateMojo.java:76)
    ... 22 more
[ERROR] 
[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/MojoExecutionException

 

加载中
返回顶部
顶部