English 中文(简体)
无法修复 liqibase maven 插件在为 mifos 源代码建立战争文件的过程中更新 sql 吗?
原标题:unable to fix liqibase maven plugin update sql during the process of building war file for mifos source code?

建立战争文件时出错 。 we r 正在通过 Maven 工具为 mifos 源代码建立战争文件 。 mifos is java open 源代码是 java 开源代码。 我们使用 mvn 清洁软件包 - Dmaven. test. kskip=tule cmd, 并给出路径名 TI 源代码头文件夹如下 。

C:mifos_src_codemifos-head-2.1.6-0-gb6f7b86mifos-head-e9d4674>mvn clean package -Dmaven.test.
skip=true;
[INFO] Scanning for projects...
[WARNING]
[WARNING]
 Some problems were encountered while building the effective model for org.mifos:mifos-
db:jar:1.8-SNAPSHOT

[WARNING]
  build.plugins.plugin.(groupId:artifactId)  must be unique but found duplicate declara
tion of plugin org.liquibase:liquibase-maven-plugin @ line 132, column 21
[WARNING]  build.plugins.plugin.(groupId:artifactId)  must be unique but found duplicate declara
tion of plugin org.liquibase:liquibase-maven-plugin @ line 149, column 21
[WARNING]

[WARNING] Some problems were encountered while building the effective model for org.mifos:mifos-
accounting:jar:1.8-SNAPSHOT
[WARNING]  build.plugins.plugin.version  for org.apache.maven.plugins:maven-war-plugin is missin
g. @ line 29, column 21
[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]
[INFO] ------------------------------------------------------------------------
[INFO]
 Reactor Build Order:
[INFO]
[INFO]
 Mifos - Parent

[INFO] Mifos - DB Management

[INFO] Mifos - Common

[INFO] Mifos - Domain Data Transfer Objects

[INFO] Mifos - Test Framework

[INFO] Mifos - Service Interfaces

[INFO] Mifos - User Interface

[INFO] Mifos - Accounting Integration

[INFO] Mifos - Questionnaire

[INFO] Mifos - Cashflow

[INFO] Mifos - Abstract Domain

[INFO] Mifos - Organization

[INFO] Mifos - Application Domain

[INFO] Mifos - Application

[INFO] Mifos - Acceptance Tests

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building Mifos - Parent 1.8-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ mifos-parent ---

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building Mifos - DB Management 1.8-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ mifos-db ---

[INFO] Deleting C:mifos_src_codemifos-head-2.1.6-0-gb6f7b86mifos-head-e9d4674db	arget

[INFO]

[INFO] --- properties-maven-plugin:1.0-alpha-1:read-project-properties (default) @ mifos-db 
---

[WARNING] Ignoring missing properties file: C:UsersPavan.Kumar1.mifoslocal.properties

[INFO]

[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ mifos-db ---

[INFO] Using  UTF-8  encoding to copy filtered resources.

[INFO] Copying 1 resource

[INFO]

[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ mifos-db ---

[INFO] No sources to compile

[INFO]

[INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) @ mifos-db ---

[INFO] Using  UTF-8  encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory C:mifos_src_codemifos-head-2.1.6-0-
gb6f7b86mifos-h

ead-e9d4674dbsrc	est
esources

[INFO]

[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ mifos-db ---

[INFO] No sources to compile

[INFO]

[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ mifos-db ---

[INFO] No tests to run.

[INFO] Surefire report directory: C:mifos_src_codemifos-head-2.1.6-0-gb6f7b86mifos-head-
e9d46

74db	argetsurefire-reports



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

 T E S T S

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


Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0


[INFO]

[INFO] --- liquibase-maven-plugin:2.0.0:updateSQL (update-sql) @ mifos-db ---

[INFO] ------------------------------------------------------------------------

[INFO] Parsing Liquibase Properties File

[INFO]   File: target/classes/liquibase.properties

[INFO] ------------------------------------------------------------------------

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO]

[INFO] Mifos - Parent .................................... SUCCESS [0.110s]

[INFO] Mifos - DB Management ............................. FAILURE [1.570s]

[INFO] Mifos - Common .................................... SKIPPED

[INFO] Mifos - Domain Data Transfer Objects .............. SKIPPED

[INFO] Mifos - Test Framework ............................ SKIPPED

[INFO] Mifos - Service Interfaces ........................ SKIPPED

[INFO] Mifos - User Interface ............................ SKIPPED

[INFO] Mifos - Accounting Integration .................... SKIPPED

[INFO] Mifos - Questionnaire ............................. SKIPPED

[INFO] Mifos - Cashflow .................................. SKIPPED

[INFO] Mifos - Abstract Domain ........................... SKIPPED

[INFO] Mifos - Organization .............................. SKIPPED

[INFO] Mifos - Application Domain ........................ SKIPPED

[INFO] Mifos - Application ............................... SKIPPED

[INFO] Mifos - Acceptance Tests .......................... SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 2.080s

[INFO] Finished at: Mon May 21 10:57:16 IST 2012

[INFO] Final Memory: 7M/18M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:2.0.0:updateSQL 
(update-sql)

 on project mifos-db: Error setting up or running Liquibase: java.sql.SQLException: Access 
denie

d for user  mifos @ localhost  (using password: YES) -> [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/MojoExecutionException

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :mifos-db

C:mifos_src_codemifos-head-2.1.6-0-gb6f7b86mifos-head-e9d4674> 
问题回答

我建议开始用第一行 来修正你的屁股:

[WARNING]
  build.plugins.plugin.(groupId:artifactId)  must be unique but found duplicate declara
tion of plugin org.liquibase:liquibase-maven-plugin @ line 132, column 21
[WARNING]  build.plugins.plugin.(groupId:artifactId)  must be unique but found duplicate declara
tion of plugin org.liquibase:liquibase-maven-plugin @ line 149, column 21
[WARNING]

[WARNING] Some problems were encountered while building the effective model for org.mifos:mifos-
accounting:jar:1.8-SNAPSHOT
[WARNING]  build.plugins.plugin.version  for org.apache.maven.plugins:maven-war-plugin is missin
g. @ line 29, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of
your build.
[WARNING]

在你修好后,我可以看到 基于这个信息:

 on project mifos-db: Error setting up or running Liquibase: java.sql.SQLException: Access 
denied for user  mifos @ localhost  (using password: YES)

您正在试图访问一个不允许与此用户有密码关系的数据库( 假设 MySQL? ) 。 您必须修正此用户的权限 。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签