0
  • Maven 命令行

    mvn clean deploy -X -U -P aws -Dprofile=jboss -Pjboss -Dmaven.repo.local=./newrepo

  • 在 Maven 中配置的配置文件。

在此处输入图像描述

  • 将 Nexus 迁移到另一台服务器后,该错误开始发生。

  • 使用maven构建项目时会出现以下错误。

[ERROR] Failed to execute goal org.apache.openjpa:openjpa-maven-plugin:2.2.0:enhance (enhancer) on project XPTO: Execution enhancer of goal org.apache.openjpa:openjpa-maven-plugin:2.2.0:enhance failed: org.apache.openjpa.persistence.PersistenceProductDerivation:java.io.IOException: org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLanguage -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.openjpa:openjpa-maven-plugin:2.2.0:enhance (enhancer) on project XPTO: Execution enhancer of goal org.apache.openjpa:openjpa-maven-plugin:2.2.0:enhance failed: org.apache.openjpa.persistence.PersistenceProductDerivation:java.io.IOException: org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
    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:120)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
    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.PluginExecutionException: Execution enhancer of goal org.apache.openjpa:openjpa-maven-plugin:2.2.0:enhance failed: org.apache.openjpa.persistence.PersistenceProductDerivation:java.io.IOException: org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    ... 19 more
Caused by: java.util.MissingResourceException: org.apache.openjpa.persistence.PersistenceProductDerivation:java.io.IOException: org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
    at org.apache.openjpa.lib.conf.ProductDerivations.reportErrors(ProductDerivations.java:365)
    at org.apache.openjpa.lib.conf.ProductDerivations.load(ProductDerivations.java:354)
    at org.apache.openjpa.lib.conf.ProductDerivations.loadDefaults(ProductDerivations.java:318)
    at org.apache.openjpa.lib.conf.Configurations.populateConfiguration(Configurations.java:353)
    at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4438)
    at org.apache.openjpa.enhance.PCEnhancer$1.run(PCEnhancer.java:4409)
    at org.apache.openjpa.lib.conf.Configurations.launchRunnable(Configurations.java:708)
    at org.apache.openjpa.lib.conf.Configurations.runAgainstAllAnchors(Configurations.java:693)
    at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4404)
    at org.apache.openjpa.tools.maven.AbstractOpenJpaEnhancerMojo.enhance(AbstractOpenJpaEnhancerMojo.java:133)
    at org.apache.openjpa.tools.maven.AbstractOpenJpaEnhancerMojo.execute(AbstractOpenJpaEnhancerMojo.java:95)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
    ... 20 more
Caused by: java.io.IOException: org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
    at org.apache.openjpa.lib.meta.XMLMetaDataParser.parseNewResource(XMLMetaDataParser.java:379)
    at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:318)
    at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:295)
    at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:268)
    at org.apache.openjpa.persistence.PersistenceProductDerivation$ConfigurationParser.parse(PersistenceProductDerivation.java:509)
    at org.apache.openjpa.persistence.PersistenceProductDerivation.parseResources(PersistenceProductDerivation.java:359)
    at org.apache.openjpa.persistence.PersistenceProductDerivation.load(PersistenceProductDerivation.java:326)
    at org.apache.openjpa.persistence.PersistenceProductDerivation.loadDefaults(PersistenceProductDerivation.java:278)
    at org.apache.openjpa.lib.conf.ProductDerivations.load(ProductDerivations.java:344)
    ... 30 more
Caused by: org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
    at gnu.xml.aelfred2.XmlReader.getProperty(XmlReader.java:181)
    at gnu.xml.aelfred2.XmlReader.setProperty(XmlReader.java:166)
    at gnu.xml.aelfred2.JAXPFactory$JaxpParser.setProperty(JAXPFactory.java:147)
    at org.apache.openjpa.lib.meta.XMLMetaDataParser.parseNewResource(XMLMetaDataParser.java:365)
    ... 38 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/PluginExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
4

0 回答 0