jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 2.x Tomcat Plugin
  • Maven 2.x Tomcat Plugin
  • MTOMCAT-23

Allow to deploy assembled wars

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-beta-1
  • Fix Version/s: 1.0
  • Labels:
    None
  • Patch Submitted:
    Yes
  • Number of attachments :
    0

Description

We are assembling our wars with the assembly plugin in a project that has pom packaging so we can not use the tomcat plugin to deploy our wars.

Pls. allow to configure overwriting the isWar() functionality checking the packaging:
E.G. change AbstractRunMojo.java with (i am not familiar with the patch format so here inline

/**
 * If set to true ignore if packaging of project is not 'war'.
 * 
 * @parameter expression="false"
 */
private boolean ignorePackaging;

221     /**
222      * Gets whether this project uses WAR packaging or if it shoud be ignored.
223      * 
224      * @return whether this project uses WAR packaging or if it should be ignored.
225      */
226     protected boolean isWar()
227     {
228         return "war".equals( packaging ) || ignorePackaging;
229     }

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Ulrich David added a comment - 10/Mar/09 5:16 AM

Sorry, but i did not recognized, that confluence formating is used so:

// after line 112
/**
 * If set to true ignore if packaging of project is not 'war'.
 *
 * @parameter expression="false"
*/
private boolean ignorePackaging;

// lines 221-229
/**
* Gets whether this project uses WAR packaging or if it shoud be ignored.
*
* @return whether this project uses WAR packaging or if it should be ignored.
*/
protected boolean isWar()
{ 
    return "war".equals( packaging ) || ignorePackaging;
}
Show
Ulrich David added a comment - 10/Mar/09 5:16 AM Sorry, but i did not recognized, that confluence formating is used so: // after line 112 /** * If set to true ignore if packaging of project is not 'war'. * * @parameter expression= " false " */ private boolean ignorePackaging; // lines 221-229 /** * Gets whether this project uses WAR packaging or if it shoud be ignored. * * @ return whether this project uses WAR packaging or if it should be ignored. */ protected boolean isWar() { return "war" .equals( packaging ) || ignorePackaging; }
Hide
Permalink
Dennis Lundberg added a comment - 10/Mar/09 11:29 AM

Add formating.

Show
Dennis Lundberg added a comment - 10/Mar/09 11:29 AM Add formating.
Hide
Permalink
Simone Gianni added a comment - 08/Apr/09 8:31 PM

Moreover the code looks for packaging.equals("war"), this makes it impossible to make it work with alternative packagings that still produce a war. If I understand it correctly, I think it should check for type.equals("war"), which anyway works with the default packaging, as described here http://docs.codehaus.org/display/MAVEN/Packaging+vs+Type+-+Derived+and+Attached+Artifacts .

Show
Simone Gianni added a comment - 08/Apr/09 8:31 PM Moreover the code looks for packaging.equals("war"), this makes it impossible to make it work with alternative packagings that still produce a war. If I understand it correctly, I think it should check for type.equals("war"), which anyway works with the default packaging, as described here http://docs.codehaus.org/display/MAVEN/Packaging+vs+Type+-+Derived+and+Attached+Artifacts .
Hide
Permalink
Olivier Lamy added a comment - 05/Apr/10 12:41 PM

rev 12066
Thanks

Show
Olivier Lamy added a comment - 05/Apr/10 12:41 PM rev 12066 Thanks

People

  • Assignee:
    Olivier Lamy
    Reporter:
    Ulrich David
Vote (2)
Watch (0)

Dates

  • Created:
    10/Mar/09 5:13 AM
    Updated:
    05/Apr/10 12:41 PM
    Resolved:
    05/Apr/10 12:41 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.