Maven项目的
<modules>
<module>common-login</module>
<module>common-sysconfig</module>
<module>common-frameworkimpl</module>
<module>common-dict</module>
<module>common-monitor</module>
<module>common-message</module>
<module>common-sync</module>
<module>common-authorization</module>
</modules>
各个模块的依赖关系,在完成整体模块编译之前,需要各个module全部install完成,而且各个需求在maven版本下,存在对应的jar包;
如果按照依赖顺序,先编译成功全部的子module,然后在编译对应的parent工程。
Maven编译出错信息:
Apache Maven 3.0.2 (r1056850; 2011-01-09 08:58:10+0800)
Java version: 1.6.0_25, vendor: Sun Microsystems Inc.
Java home: C:\jdk\jdk1.6.0_25\jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from EMBEDDED\conf\settings.xml
[DEBUG] Reading user settings from d:\232750\.m2\settings.xml
[DEBUG] Using local repository at D:\232750\.m2\repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for D:\232750\.m2\repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project com.deppon.dpap.brms.governor:brms-governor-web:war:0.9.0: (none)
[DEBUG] Looking up lifecyle mappings for packaging war from ClassRealm[plexus.core, parent: null]
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.deppon.dpap.brms.governor:brms-governor-web:war:0.9.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ com.deppon.dpap.brms.governor:brms-governor:0.9.0, F:\juny.qu\rule_workspace\brms-governor\pom.xml, line 245, column 14
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: com.deppon.dpap.brms.governor:brms-governor-web:war:0.9.0
[DEBUG] Tasks: [install]
[DEBUG] Style: Regular
[DEBUG] =======================================================================
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building brms-governor-web 0.9.0
[INFO] ------------------------------------------------------------------------
[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] 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] 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] 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] 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.deppon.dpap.brms.governor:brms-governor-web:0.9.0
[DEBUG] Dependencies (collect): []
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-resources-plugin:2.4.3: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 default-value="${maven.resources.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}"/>
<useBuildFilters default-value="true"/>
<useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] =======================================================================
[DEBUG] com.deppon.dpap.brms.governor:brms-governor-web:war:0.9.0
[DEBUG] com.deppon.dpap:framework-server:jar:1.1.2:compile
[DEBUG] com.deppon.dpap:framework-shared:jar:1.1.2:compile
[DEBUG] com.caucho:hessian:jar:4.0.7:compile
[DEBUG] org.springframework:spring-core:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-context:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-aspects:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-context-support:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-test:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-instrument:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-jdbc:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-tx:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-jms:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-orm:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-oxm:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-web:jar:3.0.5.RELEASE:compile
[DEBUG] org.springframework:spring-webmvc:jar:3.0.5.RELEASE:compile
[DEBUG] aopalliance:aopalliance:jar:1.0:compile
[DEBUG] org.aspectj:aspectjweaver:jar:1.6.8:compile
[DEBUG] cglib:cglib-nodep:jar:2.2:compile
[DEBUG] org.apache.struts:struts2-core:jar:2.3.15.1:compile
[DEBUG] org.apache.struts.xwork:xwork-core:jar:2.3.15.1:compile
[DEBUG] asm:asm:jar:3.3:compile
[DEBUG] asm:asm-commons:jar:3.3:compile
[DEBUG] asm:asm-tree:jar:3.3:compile
[DEBUG] org.freemarker:freemarker:jar:2.3.19:compile
[DEBUG] ognl:ognl:jar:3.0.6:compile
[DEBUG] commons-fileupload:commons-fileupload:jar:1.3:compile
[DEBUG] org.apache.struts:struts2-spring-plugin:jar:2.3.15.1:compile
[DEBUG] org.apache.commons:commons-lang3:jar:3.1:compile
[DEBUG] org.apache.struts:struts2-convention-plugin:jar:2.3.15.1:compile
[DEBUG] commons-beanutils:commons-beanutils:jar:1.8.3:compile
[DEBUG] commons-lang:commons-lang:jar:2.6:compile
[DEBUG] commons-collections:commons-collections:jar:3.2.1:compile
[DEBUG] commons-codec:commons-codec:jar:1.5:compile
[DEBUG] commons-io:commons-io:jar:2.0.1:compile
[DEBUG] commons-logging:commons-logging:jar:1.1.1:compile
[DEBUG] commons-configuration:commons-configuration:jar:1.6:compile
[DEBUG] commons-beanutils:commons-beanutils-core:jar:1.8.0:compile
[DEBUG] commons-digester:commons-digester:jar:2.1:compile
[DEBUG] commons-pool:commons-pool:jar:1.5.6:compile
[DEBUG] commons-dbcp:commons-dbcp:jar:1.4:compile
[DEBUG] commons-dbutils:commons-dbutils:jar:1.3:compile
[DEBUG] org.mybatis:mybatis:jar:3.0.5:compile
[DEBUG] org.mybatis:mybatis-spring:jar:1.0.1:compile
[DEBUG] javax.transaction:transaction-api:jar:1.1:compile
[DEBUG] org.quartz-scheduler:quartz:jar:1.8.6:compile
[DEBUG] org.quartz-scheduler:quartz-oracle:jar:1.8.6:compile
[DEBUG] log4j:log4j:jar:1.2.16:compile
[DEBUG] org.slf4j:slf4j-log4j12:jar:1.6.1:compile
[DEBUG] org.slf4j:slf4j-api:jar:1.6.1:compile
[DEBUG] org.codehaus.jackson:jackson-core-asl:jar:1.8.1:compile
[DEBUG] org.codehaus.jackson:jackson-mapper-asl:jar:1.8.1:compile
[DEBUG] javax.mail:mail:jar:1.4.1:compile
[DEBUG] javax.activation:activation:jar:1.0.2:compile
[DEBUG] javassist:javassist:jar:3.12.1.GA:compile
[DEBUG] org.jgroups:jgroups:jar:3.0.10.Final:compile
[DEBUG] redis.clients:jedis:jar:2.1.0:compile
[DEBUG] com.alibaba:fastjson:jar:1.1.35:compile
[DEBUG] org.apache.poi:poi:jar:3.8:compile
[DEBUG] org.apache.poi:poi-ooxml:jar:3.8:compile
[DEBUG] dom4j:dom4j:jar:1.6.1:compile
[DEBUG] xml-apis:xml-apis:jar:1.0.b2:compile
[DEBUG] org.apache.poi:poi-ooxml-schemas:jar:3.8:compile
[DEBUG] org.apache.xmlbeans:xmlbeans:jar:2.3.0:compile
[DEBUG] stax:stax-api:jar:1.0.1:compile
[DEBUG] org.codehaus.groovy:groovy-all:jar:1.7.5:compile
[DEBUG] com.lowagie:itext:jar:2.1.7:compile
[DEBUG] bouncycastle:bcmail-jdk14:jar:138:compile
[DEBUG] bouncycastle:bcprov-jdk14:jar:138:compile
[DEBUG] org.bouncycastle:bctsp-jdk14:jar:1.38:compile
[DEBUG] org.bouncycastle:bcprov-jdk14:jar:1.38:compile
[DEBUG] org.bouncycastle:bcmail-jdk14:jar:1.38:compile
[DEBUG] com.lowagie:iTextAsian:jar:2.1.7:compile
[DEBUG] org.mongodb:mongo-java-driver:jar:2.9.3:compile
[DEBUG] commons-net:commons-net:jar:3.2:compile
[DEBUG] org.apache.ant:ant:jar:1.8.4:compile
[DEBUG] org.apache.ant:ant-launcher:jar:1.8.4:compile
[DEBUG] com.deppon.dpap.brms.governor:brms-governor-config:jar:0.9.0:compile
[DEBUG] com.deppon.dpap.brms.governor:brms-governor-common:jar:0.9.0:compile
[DEBUG] com.deppon.dpap.brms.server:brms-server-base:jar:0.9.0:compile
[DEBUG] com.deppon.dpap:framework-sso:jar:1.1.2:compile
[DEBUG] com.deppon.dpap.brms.governor:brms-governor-ruleeditor:jar:0.9.0:compile
[DEBUG] com.deppon.dpap.brms.governor:brms-governor-rulemanage:jar:0.9.0:compile
[DEBUG] com.deppon.dpap.brms.governor:common-dict:jar:0.9.0:compile
[DEBUG] com.deppon.dpap.brms.governor:common-frameworkimpl:jar:0.9.0:compile
[DEBUG] com.deppon.dpap.brms.governor:common-login:jar:0.9.0:compile
[DEBUG] com.deppon.dpap.brms.governor:common-authorization:jar:0.9.0:compile
[DEBUG] com.deppon.dpap.brms.governor:common-message:jar:0.9.0:compile
[DEBUG] com.deppon.dpap.brms.governor:common-sync:jar:0.9.0:compile
[DEBUG] com.ibm.mq:commonservices:jar:1.0:compile
[DEBUG] com.ibm.mq:dhbcore:jar:1.0:compile
[DEBUG] com.ibm.mq:fscontext:jar:1.0:compile
[DEBUG] com.ibm.mq:headers:jar:1.0:compile
[DEBUG] com.ibm.mq:jmqi:jar:1.0:compile
[DEBUG] com.ibm.mq:jms:jar:1.0:compile
[DEBUG] com.ibm.mq:jta:jar:1.0:compile
[DEBUG] com.ibm.mq:mq:jar:1.0:compile
[DEBUG] com.ibm.mq:mqjms:jar:1.0:compile
[DEBUG] com.ibm.mq:pcf:jar:1.0:compile
[DEBUG] com.ibm.mq:providerutil:jar:1.0:compile
[DEBUG] com.deppon.dpap.brms.governor:common-sysconfig:jar:0.9.0:compile
[DEBUG] com.deppon.dpap.brms.governor:common-monitor:jar:0.9.0:compile
[DEBUG] com.deppon.casclient:casclient:jar:2.1.1:compile
[DEBUG] com.deppon.dpap.brms.governor:brms-governor-monitor:jar:0.9.0:compile
[DEBUG] oracle:oracle-jdbc:jar:10.1.0.2.0:compile
[DEBUG] javax.servlet:servlet-api:jar:2.5:provided
[DEBUG] javax.servlet:jsp-api:jar:2.0:provided
[DEBUG] org.lazyluke:log4jdbc-remix:jar:0.2.7:compile
[DEBUG] junit:junit:jar:4.8.2:test (scope managed from compile) (version managed from 4.7)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.796s
[INFO] Finished at: Mon Feb 09 16:52:45 CST 2015
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project brms-governor-web: Could not resolve dependencies for project com.deppon.dpap.brms.governor:brms-governor-web:war:0.9.0: Failure to find com.deppon.dpap.brms.governor:brms-governor-monitor:jar:0.9.0 in http://私服地址:端口/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project brms-governor-web: Could not resolve dependencies for project com.deppon.dpap.brms.governor:brms-governor-web:war:0.9.0: Failure to find com.deppon.dpap.brms.governor:brms-governor-monitor:jar:0.9.0 in http://私服地址:端口/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:190)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:104)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
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:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project com.deppon.dpap.brms.governor:brms-governor-web:war:0.9.0: Failure to find com.deppon.dpap.brms.governor:brms-governor-monitor:jar:0.9.0 in http://私服地址:端口/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:156)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:165)
... 22 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure to find com.deppon.dpap.brms.governor:brms-governor-monitor:jar:0.9.0 in http://私服地址:端口/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:526)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifacts(DefaultRepositorySystem.java:304)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:334)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:150)
... 23 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find com.deppon.dpap.brms.governor:brms-governor-monitor:jar:0.9.0 in http://私服地址:端口/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:186)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:408)
... 26 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/DependencyResolutionException