Hi to all,
I have a situation with build-helper-maven-plugin. I have a jar that has
sources in three separate folders. As we all know pm.xml permits only
one source folder (which is just plain silly in my opinion) by default.
So I tried to use this plugin and specify extra folders. The thing is
plugin is never executed and/or even detected by maven. So the question
is what am I doing wrong? Am I using the wrong phase? Here is the short
version of pom.xml :
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>gid</groupId>
<artifactId>main</artifactId>
<version>0.0.1</version>
</parent>
<groupId>gid</groupId>
<artifactId>mainapp</artifactId>
<version>0.0.1</version>
<name>main application</name>
<packaging>jar</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>
myapp.Startup
</mainClass>
<addClasspath>true</addClasspath>
</manifest>
<manifestFile>
src/main/resources/META-INF/MANIFEST.MF
</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>somesourcefolder</source>
<source>somothersourcefolder</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email