tomcat - Maven permission denied -
i'm getting strange exception while trying create exploded war directory maven. , it's strange because changed files permissions 777 everyone. should check? ican't find useful info in stacktrace :(
goals execute:
install war:exploded tomcat:redeploy
here's stacktrace:
failed execute goal org.apache.maven.plugins:maven-war-plugin:2.3:exploded (default-cli) on project app-web: failed copy file artifact [com.kk:app-core2:jar:app-snapshot:compile]: d:\kk\app-2013\app-core2\target\classes (odmowa dostępu) -> [help 1] org.apache.maven.lifecycle.lifecycleexecutionexception: failed execute goal org.apache.maven.plugins:maven-war-plugin:2.3:exploded (default-cli) on project app-web: failed copy file artifact [com.kk:app-core2:jar:app-snapshot:compile] @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:217) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:153) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:145) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:84) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:59) @ org.apache.maven.lifecycle.internal.lifecyclestarter.singlethreadedbuild(lifecyclestarter.java:183) @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:161) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:320) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:156) @ org.apache.maven.cli.mavencli.execute(mavencli.java:537) @ org.apache.maven.cli.mavencli.domain(mavencli.java:196) @ org.apache.maven.cli.mavencli.main(mavencli.java:141) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:601) @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:290) @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:230) @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:409) @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:352) caused by: org.apache.maven.plugin.mojoexecutionexception: failed copy file artifact [com.kk:app-core2:jar:app-snapshot:compile] @ org.apache.maven.plugin.war.packaging.artifactspackagingtask.performpackaging(artifactspackagingtask.java:137) @ org.apache.maven.plugin.war.packaging.warprojectpackagingtask.handleartifacts(warprojectpackagingtask.java:195) @ org.apache.maven.plugin.war.packaging.warprojectpackagingtask.performpackaging(warprojectpackagingtask.java:107) @ org.apache.maven.plugin.war.abstractwarmojo.buildwebapp(abstractwarmojo.java:479) @ org.apache.maven.plugin.war.abstractwarmojo.buildexplodedwebapp(abstractwarmojo.java:412) @ org.apache.maven.plugin.war.warexplodedmojo.execute(warexplodedmojo.java:43) @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:101) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:209) ... 19 more caused by: java.io.filenotfoundexception: d:\kk\app-2013\app-core2\target\classes (odmowa dostępu) @ java.io.fileinputstream.open(native method) @ java.io.fileinputstream.(fileinputstream.java:138) @ org.codehaus.plexus.util.fileutils.docopyfile(fileutils.java:1067) @ org.codehaus.plexus.util.fileutils.copyfile(fileutils.java:1049) @ org.apache.maven.plugin.war.packaging.abstractwarpackagingtask.copyfile(abstractwarpackagingtask.java:304) @ org.apache.maven.plugin.war.packaging.abstractwarpackagingtask$1.registered(abstractwarpackagingtask.java:152) @ org.apache.maven.plugin.war.util.webappstructure.registerfile(webappstructure.java:211) @ org.apache.maven.plugin.war.packaging.abstractwarpackagingtask.copyfile(abstractwarpackagingtask.java:147) @ org.apache.maven.plugin.war.packaging.artifactspackagingtask.performpackaging(artifactspackagingtask.java:112) ... 26 more
edit pom.xml:
<?xml version="1.0" encoding="utf-8"?> <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <artifactid>app</artifactid> <groupid>com.kk</groupid> <version>2013-snapshot</version> </parent> <modelversion>4.0.0</modelversion> <artifactid>app-web</artifactid> <packaging>war</packaging> <name>application</name> <dependencies> <!- whole lot of dependecies-> </dependencies> <build> <resources> <resource> <filtering>false</filtering> <directory>src/main/resources</directory> <includes> <include>**</include> </includes> <excludes> </excludes> </resource> <resource> <filtering>false</filtering> <directory>src/main/java</directory> <includes> <include>**</include> </includes> <excludes> <exclude>**/*.java</exclude> </excludes> </resource> <resource> <filtering>false</filtering> <directory>src/main/html</directory> <includes> <include>**</include> </includes> </resource> </resources> <plugins> <plugin> <groupid>org.apache.tomcat.maven</groupid> <artifactid>tomcat7-maven-plugin</artifactid> <version>2.0</version> </plugin> <plugin> <groupid>org.mortbay.jetty</groupid> <artifactid>jetty-maven-plugin</artifactid> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-eclipse-plugin</artifactid> <configuration> <downloadsources>true</downloadsources> </configuration> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-source-plugin</artifactid> <configuration> <excluderesources>true</excluderesources> </configuration> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-compiler-plugin</artifactid> <executions> <execution> <goals> <goal>compile</goal> </goals> </execution> </executions> </plugin> <plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>aspectj-maven-plugin</artifactid> <executions> <execution> <goals> <goal>compile</goal> </goals> </execution> </executions> <configuration> <source>1.6</source> <target>1.6</target> <encoding>utf-8</encoding> <compliancelevel>1.6</compliancelevel> <includes> <include>**/imediamanager.java</include> <include>**/cachablemediamanager.java</include> <include>**/baseapplication.java</include> </includes> <aspectlibraries> <aspectlibrary> <groupid>com.kk</groupid> <artifactid>commons-cache</artifactid> </aspectlibrary> </aspectlibraries> </configuration> <dependencies> <dependency> <groupid>org.aspectj</groupid> <artifactid>aspectjtools</artifactid> <version>${aspectj.version}</version> </dependency> </dependencies> </plugin> </plugins> <finalname>app-web</finalname> </build> <profiles> <profile> <id>development</id> <dependencies> <dependency> <groupid>com.kk</groupid> <artifactid>app-web-config</artifactid> <scope>runtime</scope> </dependency> </dependencies> <properties> <m2eclipse.wtp.contextroot>/</m2eclipse.wtp.contextroot> </properties> </profile> </profiles> </project>
Comments
Post a Comment