You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by amit kumar <am...@gmail.com> on 2008/01/01 13:59:17 UTC

CVS files being packaged in WAR

Hi,
I am facing this problem of getting CVS files packaged in the WAR build from
maven. I am overriding the maven's default directory layout. Below is the
part of my pom.xml

 <build>
          <finalName>Portal</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.0</version>
                <configuration>
                    <webappDirectory>
                        ${basedir}/webRoot
                    </webappDirectory>
                    <excludes>
             <exclude>**/CVS</exclude>
          </excludes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                    <optimize>true</optimize>
                </configuration>
            </plugin>
        </plugins>
        <sourceDirectory>${basedir}/src</sourceDirectory>
        <directory>C:\finalbuilds\readioneportal</directory>
        <resources>
        <resource>
             <directory>${basedir}/resources</directory>
        </resource>
        </resources>
    </build>

How shall I avoid this? Any help?

Regards,
Amit

Re: CVS files being packaged in WAR

Posted by Wayne Fay <wa...@gmail.com>.
The stars in Maven paths work just like the stars in Ant paths, which
might be documented a little better so check the Ant site. Definitely
not the same as dot-dot.

Wayne

On 1/2/08, amit kumar <am...@gmail.com> wrote:
> What do the stars represent here? Is it same as ../ in linux/windows? Or are
> they some sort of regular expression, because in my case CVS folder is there
> inside every folder not just one directory ( The project directory is a CVS
> checked out directory).
>
> Regards,
> Amit
>
> On Jan 3, 2008 1:01 AM, Lee Meador <le...@leemeador.com> wrote:
>
> > Try **/CVS/**/*.* or some similar set of stars.
> >
> > -- Lee
> >
> > On Jan 2, 2008 3:45 AM, amit kumar <am...@gmail.com> wrote:
> >
> > > I want to exclude this CVS Folder present in every folder inside
> > > <webappDirectory>.
> > >
> > > On Jan 2, 2008 2:44 PM, amit kumar <am...@gmail.com> wrote:
> > >
> > > > Can I exclude a directory as such?
> > > >
> > > >
> > > > On Jan 1, 2008 6:29 PM, amit kumar <am...@gmail.com> wrote:
> > > >
> > > > > Hi,
> > > > > I am facing this problem of getting CVS files packaged in the WAR
> > > build
> > > > > from maven. I am overriding the maven's default directory layout.
> > > Below is
> > > > > the part of my pom.xml
> > > > >
> > > > >  <build>
> > > > >           <finalName>Portal</finalName>
> > > > >         <plugins>
> > > > >             <plugin>
> > > > >                 <groupId>org.apache.maven.plugins</groupId>
> > > > >                 <artifactId>maven-war-plugin</artifactId>
> > > > >                 <version>2.0</version>
> > > > >                 <configuration>
> > > > >                     <webappDirectory>
> > > > >                         ${basedir}/webRoot
> > > > >                     </webappDirectory>
> > > > >                     <excludes>
> > > > >              <exclude>**/CVS</exclude>
> > > > >           </excludes>
> > > > >                 </configuration>
> > > > >             </plugin>
> > > > >             <plugin>
> > > > >                 <groupId>org.apache.maven.plugins</groupId>
> > > > >                 <artifactId>maven-compiler-plugin</artifactId>
> > > > >                 <configuration>
> > > > >                     <source>1.5</source>
> > > > >                     <target>1.5</target>
> > > > >                     <optimize>true</optimize>
> > > > >                 </configuration>
> > > > >             </plugin>
> > > > >         </plugins>
> > > > >         <sourceDirectory>${basedir}/src</sourceDirectory>
> > > > >         <directory>C:\finalbuilds\readioneportal</directory>
> > > > >         <resources>
> > > > >         <resource>
> > > > >              <directory>${basedir}/resources</directory>
> > > > >         </resource>
> > > > >         </resources>
> > > > >     </build>
> > > > >
> > > > > How shall I avoid this? Any help?
> > > > >
> > > > > Regards,
> > > > > Amit
> > > > >
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > -- Lee Meador
> > Sent from gmail. My real email address is lee AT leemeador.com
> >
>

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


Re: CVS files being packaged in WAR

Posted by amit kumar <am...@gmail.com>.
What do the stars represent here? Is it same as ../ in linux/windows? Or are
they some sort of regular expression, because in my case CVS folder is there
inside every folder not just one directory ( The project directory is a CVS
checked out directory).

Regards,
Amit

On Jan 3, 2008 1:01 AM, Lee Meador <le...@leemeador.com> wrote:

> Try **/CVS/**/*.* or some similar set of stars.
>
> -- Lee
>
> On Jan 2, 2008 3:45 AM, amit kumar <am...@gmail.com> wrote:
>
> > I want to exclude this CVS Folder present in every folder inside
> > <webappDirectory>.
> >
> > On Jan 2, 2008 2:44 PM, amit kumar <am...@gmail.com> wrote:
> >
> > > Can I exclude a directory as such?
> > >
> > >
> > > On Jan 1, 2008 6:29 PM, amit kumar <am...@gmail.com> wrote:
> > >
> > > > Hi,
> > > > I am facing this problem of getting CVS files packaged in the WAR
> > build
> > > > from maven. I am overriding the maven's default directory layout.
> > Below is
> > > > the part of my pom.xml
> > > >
> > > >  <build>
> > > >           <finalName>Portal</finalName>
> > > >         <plugins>
> > > >             <plugin>
> > > >                 <groupId>org.apache.maven.plugins</groupId>
> > > >                 <artifactId>maven-war-plugin</artifactId>
> > > >                 <version>2.0</version>
> > > >                 <configuration>
> > > >                     <webappDirectory>
> > > >                         ${basedir}/webRoot
> > > >                     </webappDirectory>
> > > >                     <excludes>
> > > >              <exclude>**/CVS</exclude>
> > > >           </excludes>
> > > >                 </configuration>
> > > >             </plugin>
> > > >             <plugin>
> > > >                 <groupId>org.apache.maven.plugins</groupId>
> > > >                 <artifactId>maven-compiler-plugin</artifactId>
> > > >                 <configuration>
> > > >                     <source>1.5</source>
> > > >                     <target>1.5</target>
> > > >                     <optimize>true</optimize>
> > > >                 </configuration>
> > > >             </plugin>
> > > >         </plugins>
> > > >         <sourceDirectory>${basedir}/src</sourceDirectory>
> > > >         <directory>C:\finalbuilds\readioneportal</directory>
> > > >         <resources>
> > > >         <resource>
> > > >              <directory>${basedir}/resources</directory>
> > > >         </resource>
> > > >         </resources>
> > > >     </build>
> > > >
> > > > How shall I avoid this? Any help?
> > > >
> > > > Regards,
> > > > Amit
> > > >
> > >
> > >
> >
>
>
>
> --
> -- Lee Meador
> Sent from gmail. My real email address is lee AT leemeador.com
>

Re: CVS files being packaged in WAR

Posted by Lee Meador <le...@leemeador.com>.
Try **/CVS/**/*.* or some similar set of stars.

-- Lee

On Jan 2, 2008 3:45 AM, amit kumar <am...@gmail.com> wrote:

> I want to exclude this CVS Folder present in every folder inside
> <webappDirectory>.
>
> On Jan 2, 2008 2:44 PM, amit kumar <am...@gmail.com> wrote:
>
> > Can I exclude a directory as such?
> >
> >
> > On Jan 1, 2008 6:29 PM, amit kumar <am...@gmail.com> wrote:
> >
> > > Hi,
> > > I am facing this problem of getting CVS files packaged in the WAR
> build
> > > from maven. I am overriding the maven's default directory layout.
> Below is
> > > the part of my pom.xml
> > >
> > >  <build>
> > >           <finalName>Portal</finalName>
> > >         <plugins>
> > >             <plugin>
> > >                 <groupId>org.apache.maven.plugins</groupId>
> > >                 <artifactId>maven-war-plugin</artifactId>
> > >                 <version>2.0</version>
> > >                 <configuration>
> > >                     <webappDirectory>
> > >                         ${basedir}/webRoot
> > >                     </webappDirectory>
> > >                     <excludes>
> > >              <exclude>**/CVS</exclude>
> > >           </excludes>
> > >                 </configuration>
> > >             </plugin>
> > >             <plugin>
> > >                 <groupId>org.apache.maven.plugins</groupId>
> > >                 <artifactId>maven-compiler-plugin</artifactId>
> > >                 <configuration>
> > >                     <source>1.5</source>
> > >                     <target>1.5</target>
> > >                     <optimize>true</optimize>
> > >                 </configuration>
> > >             </plugin>
> > >         </plugins>
> > >         <sourceDirectory>${basedir}/src</sourceDirectory>
> > >         <directory>C:\finalbuilds\readioneportal</directory>
> > >         <resources>
> > >         <resource>
> > >              <directory>${basedir}/resources</directory>
> > >         </resource>
> > >         </resources>
> > >     </build>
> > >
> > > How shall I avoid this? Any help?
> > >
> > > Regards,
> > > Amit
> > >
> >
> >
>



-- 
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com

Re: CVS files being packaged in WAR

Posted by amit kumar <am...@gmail.com>.
I want to exclude this CVS Folder present in every folder inside
<webappDirectory>.

On Jan 2, 2008 2:44 PM, amit kumar <am...@gmail.com> wrote:

> Can I exclude a directory as such?
>
>
> On Jan 1, 2008 6:29 PM, amit kumar <am...@gmail.com> wrote:
>
> > Hi,
> > I am facing this problem of getting CVS files packaged in the WAR build
> > from maven. I am overriding the maven's default directory layout. Below is
> > the part of my pom.xml
> >
> >  <build>
> >           <finalName>Portal</finalName>
> >         <plugins>
> >             <plugin>
> >                 <groupId>org.apache.maven.plugins</groupId>
> >                 <artifactId>maven-war-plugin</artifactId>
> >                 <version>2.0</version>
> >                 <configuration>
> >                     <webappDirectory>
> >                         ${basedir}/webRoot
> >                     </webappDirectory>
> >                     <excludes>
> >              <exclude>**/CVS</exclude>
> >           </excludes>
> >                 </configuration>
> >             </plugin>
> >             <plugin>
> >                 <groupId>org.apache.maven.plugins</groupId>
> >                 <artifactId>maven-compiler-plugin</artifactId>
> >                 <configuration>
> >                     <source>1.5</source>
> >                     <target>1.5</target>
> >                     <optimize>true</optimize>
> >                 </configuration>
> >             </plugin>
> >         </plugins>
> >         <sourceDirectory>${basedir}/src</sourceDirectory>
> >         <directory>C:\finalbuilds\readioneportal</directory>
> >         <resources>
> >         <resource>
> >              <directory>${basedir}/resources</directory>
> >         </resource>
> >         </resources>
> >     </build>
> >
> > How shall I avoid this? Any help?
> >
> > Regards,
> > Amit
> >
>
>

Re: CVS files being packaged in WAR

Posted by amit kumar <am...@gmail.com>.
Can I exclude a directory as such?

On Jan 1, 2008 6:29 PM, amit kumar <am...@gmail.com> wrote:

> Hi,
> I am facing this problem of getting CVS files packaged in the WAR build
> from maven. I am overriding the maven's default directory layout. Below is
> the part of my pom.xml
>
>  <build>
>           <finalName>Portal</finalName>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-war-plugin</artifactId>
>                 <version>2.0</version>
>                 <configuration>
>                     <webappDirectory>
>                         ${basedir}/webRoot
>                     </webappDirectory>
>                     <excludes>
>              <exclude>**/CVS</exclude>
>           </excludes>
>                 </configuration>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-compiler-plugin</artifactId>
>                 <configuration>
>                     <source>1.5</source>
>                     <target>1.5</target>
>                     <optimize>true</optimize>
>                 </configuration>
>             </plugin>
>         </plugins>
>         <sourceDirectory>${basedir}/src</sourceDirectory>
>         <directory>C:\finalbuilds\readioneportal</directory>
>         <resources>
>         <resource>
>              <directory>${basedir}/resources</directory>
>         </resource>
>         </resources>
>     </build>
>
> How shall I avoid this? Any help?
>
> Regards,
> Amit
>

Re: CVS files being packaged in WAR

Posted by Stephane Nicoll <st...@gmail.com>.
Upgrade to 2.0.2. This bug is fixed for over a year.

Stéphane

On Jan 1, 2008 1:59 PM, amit kumar <am...@gmail.com> wrote:
> Hi,
> I am facing this problem of getting CVS files packaged in the WAR build from
> maven. I am overriding the maven's default directory layout. Below is the
> part of my pom.xml
>
>  <build>
>           <finalName>Portal</finalName>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-war-plugin</artifactId>
>                 <version>2.0</version>
>                 <configuration>
>                     <webappDirectory>
>                         ${basedir}/webRoot
>                     </webappDirectory>
>                     <excludes>
>              <exclude>**/CVS</exclude>
>           </excludes>
>                 </configuration>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-compiler-plugin</artifactId>
>                 <configuration>
>                     <source>1.5</source>
>                     <target>1.5</target>
>                     <optimize>true</optimize>
>                 </configuration>
>             </plugin>
>         </plugins>
>         <sourceDirectory>${basedir}/src</sourceDirectory>
>         <directory>C:\finalbuilds\readioneportal</directory>
>         <resources>
>         <resource>
>              <directory>${basedir}/resources</directory>
>         </resource>
>         </resources>
>     </build>
>
> How shall I avoid this? Any help?
>
> Regards,
> Amit
>



-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck" -- S.Yegge

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