maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mang Jun Lau <MangJun_...@otpp.com>
Subject Re: [M2] Modifying war plugin
Date Tue, 21 Feb 2006 14:49:28 GMT
I need it because without it, the classes in my war cannot find classes 
from jars in my ear.

-----------------------------------------------------------
Mang Lau
Software Developer
MIS Member Services
Ontario Teachers' Pension Plan Board
T: 416-228-3148
E: mang_lau@otpp.com





"Alexandre Poitras" <alexandre.poitras@gmail.com> 
02/20/2006 06:19 PM
Please respond to
"Maven Users List" <users@maven.apache.org>


To
"Maven Users List" <users@maven.apache.org>
cc

Subject
Re: [M2] Modifying war plugin






I am curious to know why do you need a manifest file in a war? I have
never needed it.

On 2/20/06, Mang Jun Lau <MangJun_Lau@otpp.com> wrote:
> Hi,
>
> Since there is no functionality in the maven-war-plugin to support the 
use
> of custom manifest files, I'm getting desperate and I'm going to try to
> add it in.  I've checked out the latest code and I built it.  My POM has
> the following:
>
> <build>
>     <plugins>
>       <plugin>
>         <artifactId>maven-war-plugin</artifactId>
>         <configuration>
>           <archive>
>             <manifest>
>  <manifestFile>${basedir}/WebContent/META-INF/MANIFEST.MF</manifestFile>
>             </manifest>
>           </archive>
>           <warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
>           <webXml>${basedir}/WebContent/WEB-INF/web.xml</webXml>
>         </configuration>
>       </plugin>
>     </plugins>
> </build>
>
> This gives me this error when I run mvn clean package:
>
> [INFO] Failed to configure plugin parameters for:
> org.apache.maven.plugins:maven-war-plugin:2.0-beta-3-SNAPSHOT
> Cause: Cannot find setter nor field in
> org.apache.maven.archiver.ManifestConfiguration for 'manifestFile'
>
> The stack trace says "Error configuring:
> org.apache.maven.plugins:maven-war-plugin. Reason: Unable to parse the
> created DOM for plugin configuration".  Where is this code?  To add this
> functionality would I have to modify the parser?  Would I have to modify
> Plexus WarArchiver code?  If so, I can't find the source anywhere. Their
> CVS and their SVN repos don't seem to work anymore.  Could someone more
> experienced with the code (e.g. a Maven developer) point me in the right
> direction?  Can it even be done?  This is sort of a last ditch effort 
for
> me since my attempts at a workaround have failed.
>
> Please reply.  I'm really desperate for this custom manifest file 
feature.
>  Thanks again.
>
>
> _Mang Lau
>


--
Alexandre Poitras
Qu├ębec, Canada

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message