2016-10-22 2 views
0

私はappfuseでプロジェクトを作成しました。私はjdbc.propertiesファイル内のデータを変更しました。コマンドjetty:runを実行すると、app_userのようなデータベースとappfuseテーブルが作成されましたが、その後は "BUILD FAILURE"となり、エラーが返されます。appfuseの設定jdbc.properties

Failed to execute goal org.codehaus.mojo:dbunit-maven-plugin:1.0-beta-3:operation 
(test-compile) on project myproject: Error executing database operation: 
CLEAN_INSERT: Access denied for user 'root'@'localhost' (using password: NO) 

答えて

0

あなたのpom.xmlのプロパティを変更しようとしました。これらは、jdbc.propertiesのDbUnitとプロパティの置換に使用されます。

<groupId>org.codehaus.mojo</groupId> 
<artifactId>dbunit-maven-plugin</artifactId> 
<version>1.0-beta-3</version> 
<configuration> 
    <dataTypeFactoryName>${dbunit.dataTypeFactoryName}</dataTypeFactoryName> 
    <driver>${jdbc.driverClassName}</driver> 
    <username>${jdbc.username}</username> 
    <password>${jdbc.password}</password> 
    <url>${jdbc.url}</url> 
    <src>src/test/resources/sample-data.xml</src> 
    <type>${dbunit.operation.type}</type> 
    <schema>${dbunit.schema}</schema> 
    <skip>${skipTests}</skip> 
    <transaction>true</transaction> 
</configuration> 
+0

どのような変更を行う必要がありますか? "applicationContext-resources.xml"ファイルのプロパティを変更しましたが、同じエラーが発生しました。 – Dandelion

+0

rootのパスワードを削除しても、次のエラーが表示されます。目標org.codehaus.mojoの実行に失敗しました:dbunit-maven-plugin:1.0-beta-3:プロジェクトdermlの操作(テストコンパイル):データベース操作の実行中にエラーが発生しました:CLEAN_INSERT:user_role – Dandelion

関連する問題