maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart McCulloch <mccu...@gmail.com>
Subject Re: Exception overlaying zip in war
Date Mon, 08 Dec 2014 18:07:21 GMT
On Monday, 8 December 2014 at 16:24, Paul Benedict wrote:
> I configured the WAR plugin to overlay a zip file. Nothing fancy. Here's
> the config:
> 
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.5</version>
> <configuration>
> <overlays>
> <groupId>org.company</groupId>
> 
> 

^ missing <overlay> ... </overlay> ? 
> <artifactId>ui</artifactId>
> <type>zip</type>
> </overlays>
> </configuration>
> </plugin>
> 
> I get an exception:
> java.lang.ClassCastException: java.lang.String cannot be
> cast to org.apache.maven.plugin.war.Overlay
> at
> org.apache.maven.plugin.war.overlay.OverlayManager.initialize(OverlayManager.java:122)
> 
> I looked at the WAR source. I don't know how a String is making it into the
> List<Overlay> collection. Any WAR developers here?
> 
> Cheers,
> Paul
> 
> 



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