[
https://issues.apache.org/jira/browse/MTOMCAT-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14035993#comment-14035993
]
Jared Hodge commented on MTOMCAT-263:
-------------------------------------
The situation I'm describing is exactly the same as the original post is
describing. I got the same error messages when I used the 2.2 version of the
plugin.
I was trying to add further clarity on the existing issue by pointing out that
the .extract directory is getting created in the basedir of the maven build,
and thus not being deleted with "mvn clean" and therefore possibly not being
reported accurately. The bug only occurs when the .extract directory doesn't
exist, but it does after the first run of the plugin, so works the second time
around.
I realize that changing the default behavior is not part of this issue, and
wasn't suggesting it, but it is bad behavior from the maven perspective. It's
bad design to assume you can write to the current directory, regardless. How
is blasting temporary stuff outside of the target subdirectory "in line with
existing norms"? The maven way is to keep temporary files in target and
everything else should be managed from version control - not created
automatically. Sorry, I expect maven plugins to follow maven patterns...
> tomcat7:exec-war can't create .extract/webapps
> ----------------------------------------------
>
> Key: MTOMCAT-263
> URL: https://issues.apache.org/jira/browse/MTOMCAT-263
> Project: Apache Tomcat Maven Plugin
> Issue Type: Bug
> Affects Versions: 2.1, 2.2
> Reporter: jieryn
> Fix For: 3.0
>
>
> bash$ java -jar target/app-1.0-SNAPSHOT-war-exec.jar
> Exception in thread "main" java.lang.Exception: FATAL: impossible to create
> directories:.extract/webapps
> at
> org.apache.tomcat.maven.runner.Tomcat7Runner.extract(Tomcat7Runner.java:586)
> at
> org.apache.tomcat.maven.runner.Tomcat7Runner.run(Tomcat7Runner.java:204)
> at
> org.apache.tomcat.maven.runner.Tomcat7RunnerCli.main(Tomcat7RunnerCli.java:212)
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]