[cosmo-dev] cosmo webapp packaging

Mike Taylor bear at code-bear.com
Mon Dec 10 14:12:09 PST 2007


After a short IRC conversation with Brian on IRC we decided:

   1. put the context.xml file in cosmo/build
   2. adjust the cosmo/pom.xml to copy that file to the war's META-INF

Brian will fill out the empty context.xml I created to contain the  
information needed.

Because the copy definition is in the cosmo war file configuration, it  
will be copied for both
war:inplace and package targets.

For those playing along at home - the following was added to the maven- 
war-plugin's webresources configuration definition:

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.0.2</version>
        <configuration>
        ...
        <webResources>
            ...
	  <resource>
               <directory>${basedir}/build</directory>
               <targetPath>META-INF</targetPath>
               <filtering>false</filtering>
               <includes>
                   <include>context.xml</include>
               </includes>
           </resource>
        </webResources>
     </plugin>

On Dec 10, 2007, at 4:58 PM, Mike Taylor wrote:

>
> On Dec 10, 2007, at 1:45 PM, Brian Moseley wrote:
>
>> what do y'all think? bear, is it doable to make the cosmo packaging
>> step copy a non-filtered context.xml into place when the war is being
>> created?
>
> What do you want the contents of the default context.xml file to be?
>
> Just a copyright statement?  some default xml?
>
> I have the changes ready to commit but wanted to hold off in case a  
> completely empty context.xml file causes breakage.
>
> --
> bear
>
> Build and Release Engineer
> Open Source Applications Foundation (OSAF)
> bear at osafoundation.org
> http://www.osafoundation.org
>
> bear at code-bear.com
> http://code-bear.com
>
>
>
> _______________________________________________
> cosmo-dev mailing list
> cosmo-dev at lists.osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/cosmo-dev
>

--
bear

Build and Release Engineer
Open Source Applications Foundation (OSAF)
bear at osafoundation.org
http://www.osafoundation.org

bear at code-bear.com
http://code-bear.com





More information about the cosmo-dev mailing list