jeudi 3 décembre 2020

Could not copy project resources in java maven

Deploying on tomcat80:home=E:\java\apache-tomcat-8.5.55 profile mode: false debug mode: false force redeploy: true cd C:\Users\kamlesh\Documents\NetBeansProjects\Webbb; "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_251\jre" cmd /c ""E:\ashish\java\netbeans\java\maven\bin\mvn.cmd" -Dnetbeans.deploy=true -Dmaven.ext.class.path=E:\ashish\java\netbeans\java\maven-nblib\netbeans-eventspy.jar -Dfile.encoding=UTF-8 package" Scanning for projects...


Building Webbb 1.0-SNAPSHOT

--- maven-dependency-plugin:2.6:copy (default) @ Webbb ---

--- maven-resources-plugin:2.6:resources (default-resources) @ Webbb --- Using 'UTF-8' encoding to copy filtered resources. skip non existing resourceDirectory C:\Users\kamlesh\Documents\NetBeansProjects\Webbb\src\main\resources

--- maven-compiler-plugin:3.1:compile (default-compile) @ Webbb --- Nothing to compile - all classes are up to date

--- maven-resources-plugin:2.6:testResources (default-testResources) @ Webbb --- Using 'UTF-8' encoding to copy filtered resources. skip non existing resourceDirectory C:\Users\kamlesh\Documents\NetBeansProjects\Webbb\src\test\resources

--- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ Webbb --- Nothing to compile - all classes are up to date

--- maven-surefire-plugin:2.12.4:test (default-test) @ Webbb ---

--- maven-war-plugin:2.3:war (default-war) @ Webbb --- Packaging webapp Assembling webapp [Webbb] in [C:\Users\kamlesh\Documents\NetBeansProjects\Webbb\target\Webbb-1.0-SNAPSHOT] Processing war project Copying webapp resources [C:\Users\kamlesh\Documents\NetBeansProjects\Webbb\src\main\webapp]

BUILD FAILURE

Total time: 38.847 s Finished at: 2020-12-03T14:56:31+05:30 Final Memory: 12M/64M

Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.3:war (default-war) on project Webbb: Could not copy webapp sources [C:\Users\kamlesh\Documents\NetBeansProjects\Webbb\target\Webbb-1.0-SNAPSHOT]: C:\Users\kamlesh\Documents\NetBeansProjects\Webbb\target\Webbb-1.0-SNAPSHOT\images\Thumbs.db (Access is denied) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles: [Help 1]




Aucun commentaire:

Enregistrer un commentaire