[ 
https://issues.apache.org/jira/browse/MTOMCAT-280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14264622#comment-14264622
 ] 

Matteo TURRA commented on MTOMCAT-280:
--------------------------------------

I think the requiresProject = false  attribute is needed in the Mojo 
annotation, to skip the check that fire this Exception:

Caused by: org.apache.maven.lifecycle.MissingProjectException: Goal requires a 
project to execute but there is no POM in this directory 
(/home/mturra/checkout/didanet/web/didanet/target). Please verify you invoked 
Maven from the correct directory.
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:174)

And the -Dtomcat.ignorePackaging=true must be added to skip the war type 
checking on pom.


> Allow running deploy-only and redeploy-only goals without pom file
> ------------------------------------------------------------------
>
>                 Key: MTOMCAT-280
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-280
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Improvement
>          Components: tomcat7
>            Reporter: Lauri Lehtinen
>            Assignee: Olivier Lamy (*$^¨%`£)
>              Labels: patch
>             Fix For: 2.3
>
>         Attachments: MTOMCAT-280.patch
>
>
> Use case is as follows:
> 0. A 2-step CI build exists for the sole purpose of deploying any artifact to 
> a remote tomcat server
> 1. Run mvn dependency:get -D... -D... to download a war file from Nexus.
> 2. Run mvn tomcat7:deploy -D... -D... to deploy the war file.
> I would prefer to not involve a pom file in this. However, if the plugin 
> doesn't find one, it fail.s
> Also, it appears that all the properties I need, except warFile, can be 
> overriden with -D's. The only way I'm able to make this work is create a 
> dummy pom file with tomcat7 plugin defined in the build section, and a 
> <warFile>${warFile}</warFile> in its configuration section.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to