-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi folks!

I have the following problem with a Maven 2 project:

My project is in a CVS repository and the target-dir is excluded from CVS via .cvsignore. As long as I build with Maven everything is fine. When I generate a Eclipse project out of this and import it in my workspace I run into the problem that Eclipse builds the sources to the target "target". Sadly the CVS -directories from src are not excluded from target. After the build the target directories contain CVS directories and confuse the CVS syncronization of Eclipse. Now Eclipse thinks that it wants to add the target-directories CVS although I specified them in the .cvsignore. When I add an exclusion pattern (CVS) for each source-directory in the project properties of Eclipse manually then Eclipse behaves fine while syncronization with CVS. My question is if it is possible to define those exclusion patterns in POM that is reflected in a generated Eclipse project. I attached the pom.xml for this project.

Best Regards,
Robin

<?xml version="1.0" encoding="UTF-8"?><project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>xxx</groupId>
  <artifactId>xxx</artifactId>
  <packaging>war</packaging>
  <version>0.0.1</version>
  <description>xxx</description>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>portlet-api</groupId>
      <artifactId>portlet-api</artifactId>
      <version>1.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate</artifactId>
      <version>3.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.mail</groupId>
      <artifactId>mail</artifactId>
      <version>1.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
</project>


- --
Robin de Silva Jayasinghe
[EMAIL PROTECTED]



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFFVyPMJWhj7CIqBXkRAvWSAKCyQJcSEWZ6FAM3CvIV+2x1iw7E0gCgkw/4
tt2J7MyuXbaZafsUbzPhRyQ=
=PvoF
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to