Hi,

I would have a question to Maven and additional resources.
I have build a simple Maven project, afterwards I did mvn eclipse:eclipse
and than I imported it into Eclipse.
This all worked fine. 
Afterwards I would like to extend the pom.xml (below) in order to have new
file structure which is in classpath to the existion one: 

src/main/java and
src/test/java

I would like this additional folder structure:
src/main/generated in my Maven project and also in my Eclipse project.
Therefore I have defined src/main/generated into my pom.

My opinion was that if I add it to the pom than it appears at the file
system and also in eclipse after a refresh - but this isn't.
Does anyone know why this is so and what I'am doing wrong?

Thanks a lot and all the best
PollerJava

<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
      <modelVersion>4.0.0</modelVersion>
     
      <groupId>at.company.app</groupId>
      <artifactId>my-project</artifactId>
      <packaging>jar</packaging>
      <name>my-project</name>
      <url>http://maven.apache.org</url>
     
      <parent>
        <groupId>at.company.app</groupId>
        <artifactId>my-master</artifactId>
        <version>1.0-SNAPSHOT</version>
        <relativePath>../my-master/pom.xml</relativePath>
      </parent>
     
      <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      </properties>
     
      <dependencies>
        <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>3.8.1</version>
          <scope>test</scope>
        </dependency>
      </dependencies>
     
      <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>generate-sources</phase>
                        <goals><goal>add-source</goal></goals>
                        <configuration>
                            <sources>
                                <source>src/main/generated</source>
                            </sources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
      </build>
     
    </project>



--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-add-resource-tp5781977.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to