[jetty-dev] [jira] (JETTY-1517) Resolve submodule artifacts in reactor builds with Maven 3

"Thomas Broyer (JIRA)" <[email protected]> Tue, 12 Mar 2013 04:28:52 -0500 (CDT)
Newsgroups gmane.comp.java.jetty.general
Message-ID <JIRA.137070.1337554948694.4485.1363080532946@codehaus01.managed.contegix.com>


























<style>
/* Changing the layout to use less space for mobiles */
@media screen and (max-device-width: 480px), screen and (-webkit-min-device=
-pixel-ratio: 2) {
    #email-body { min-width: 30em !important; }
    #email-page { padding: 8px !important; }
    #email-banner { padding: 8px 8px 0 8px !important; }
    #email-avatar { margin: 1px 8px 8px 0 !important; padding: 0 !important=
; }
    #email-fields { padding: 0 8px 8px 8px !important; }
    #email-gutter { width: 0 !important; }
}
</style>
<div id=3D"email-body">
<table id=3D"email-wrap" align=3D"center" border=3D"0" cellpadding=3D"0" ce=
llspacing=3D"0" style=3D"background-color:#f0f0f0;color:#000000;width:100%;=
">
    <tr valign=3D"top">
        <td id=3D"email-page" style=3D"padding:16px !important;">
            <table align=3D"center" border=3D"0" cellpadding=3D"0" cellspac=
ing=3D"0" style=3D"background-color:#ffffff;border:1px solid #bbbbbb;color:=
#000000;width:100%;">
                <tr valign=3D"top">
                    <td bgcolor=3D"#ffffff" style=3D"background-color:#ffff=
ff;color:#00AA00;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:=
12px;line-height:1;"><img src=3D"http://www.codehaus.org/codehaus-small.gif=
" alt=3D"" style=3D"vertical-align:top;" /></td>
                </tr><tr valign=3D"top">
    <td id=3D"email-banner" style=3D"padding:32px 32px 0 32px;">

               =20
       =20
       =20
            <table align=3D"left" border=3D"0" cellpadding=3D"0" cellspacin=
g=3D"0" width=3D"100%" style=3D"width:100%;">
    <tr valign=3D"top">
        <td style=3D"color:#505050;font-family:Arial,FreeSans,Helvetica,san=
s-serif;padding:0;">
                            &nbsp;                         <div id=3D"email=
-action" style=3D"padding: 0 0 8px 0;font-size:12px;line-height:18px;">
                                    <a class=3D"user-hover" rel=3D"t.broyer=
" id=3D"email_t.broyer" href=3D"https://jira.codehaus.org/secure/ViewProfil=
e.jspa?name=3Dt.broyer" style=3D"color:#005500;">Thomas Broyer</a>
     edited a comment on <img src=3D"https://jira.codehaus.org/images/icons=
/issuetypes/improvement.png" height=3D"16" width=3D"16" border=3D"0" align=
=3D"absmiddle" alt=3D"Improvement"> <a style=3D'color:#005500;text-decorati=
on:none;' href=3D'https://jira.codehaus.org/browse/JETTY-1517'>JETTY-1517</=
a>
            </div>
                        <div id=3D"email-summary" style=3D"font-size:16px;l=
ine-height:20px;padding:2px 0 16px 0;">
                <a style=3D'color:#005500;text-decoration:none;' href=3D'ht=
tps://jira.codehaus.org/browse/JETTY-1517'><strong>Resolve submodule artifa=
cts in reactor builds with Maven 3</strong></a>
            </div>
                    </td>
    </tr>
</table>
       =20
    </td>
</tr>
<tr valign=3D"top">
    <td id=3D"email-fields" style=3D"padding:0 32px 32px 32px;">
        <table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" style=3D"pa=
dding:0;text-align:left;width:100%;" width=3D"100%">
            <tr valign=3D"top">
                <td id=3D"email-gutter" style=3D"width:64px;white-space:now=
rap;"></td>
                <td>
                    <table border=3D"0" cellpadding=3D"0" cellspacing=3D"0"=
 width=3D"100%">
                        <tr valign=3D"top">
    <td colspan=3D"2" style=3D"color:#000000;font-family:Arial,FreeSans,Hel=
vetica,sans-serif;font-size:12px;padding:0 0 16px 0;width:100%;">
        <div class=3D"comment-block" style=3D"background-color:#edf5ff;bord=
er:1px solid #dddddd;color:#000000;padding:12px;"><p>Ah, note that reactor-=
resolution only works for classes and resources (<tt>project.build.outputDi=
rectory</tt>), and specifically not for web resources. Those would have to =
be computed out of the <tt>MavenProject#getProjectReferences</tt>, if at al=
l possible (the Tomcat plugin doesn't do it, see <a href=3D"https://issues.=
apache.org/jira/browse/MTOMCAT-158" class=3D"external-link">MTOMCAT-158</a>=
). A workaround would be to use <tt>mvn -pl my-webapp -am package jetty:run=
</tt> but then <tt>Artifact#getFile</tt> would return the packaged JAR for =
the dependencies, defeating the purpose of launching <tt>jetty:run</tt> in =
a reactor build (which is to use the <tt>build.outputDirectory</tt> directl=
y, so the webapp can be restarted easily while your IDE compiles the classe=
s there on-the-fly, and without the need to package the dependencies). Mayb=
e for overlays support, the plugin could require that <tt>prepare-package</=
tt> or <tt>war:exploded</tt> by run previously on the WAR dependencies, and=
 then look at the output for these (<tt>&lt;project.build.directory&gt;/&lt=
;project.build.finalName&gt;</tt>) out of the <tt>getProjectReferences</tt>=
.</p>

<p>See also <a href=3D"https://jira.codehaus.org/browse/MNG-5214" title=3D"=
Dependency resolution substitutes g:a:v:jar for j:a:v:something-else when s=
omething-else isn&#39;t in the reactor"><del>MNG-5214</del></a>: for now (p=
ending Maven 3.1.0), Maven will give you the <tt>build.outputDirectory</tt>=
 for a dependency with type <tt>war</tt>; after the fix, <tt>Artifact#getFi=
le()</tt> will instead return null.</p></div>
        <div style=3D"color:#505050;padding:4px 0 0 0;">                </d=
iv>
    </td>
</tr>
                    </table>
                </td>
            </tr>
        </table>
    </td>
</tr>













            </table>
        </td><!-- End #email-page -->
    </tr>
    <tr valign=3D"top">
        <td style=3D"color:#505050;font-family:Arial,FreeSans,Helvetica,san=
s-serif;font-size:10px;line-height:14px;padding: 0 16px 16px 16px;text-alig=
n:center;">
            This message is automatically generated by JIRA.<br />
            If you think it was sent incorrectly, please contact your JIRA =
administrators<br />
            For more information on JIRA, see: <a style=3D'color:#005500;' =
href=3D'http://www.atlassian.com/software/jira'>http://www.atlassian.com/so=
ftware/jira</a>
        </td>
    </tr>
</table><!-- End #email-wrap -->
</div><!-- End #email-body -->

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email