Are you running a version of maven that has the prepare-package phase? Since it's a hack I'd just hack it in to the "test" phase
that phase is after all the compile phases and before the package phase (note I'm assuming that the source-jar packaging runs in the packaging phase... -Stephen 2009/4/7 Eric B. <[email protected]> > "Stephen Connolly" <[email protected]> wrote in message > news:[email protected]... > > [Hack alert] > > You could put them in a separate folder tree > > > > e.g. > > > > src/main/example-java/ > > > > and then use the build-helper-maven-plugin to add this as an extra source > > directory *but bind the execution to a phase in the lifecycle after > > compile > > but before package* > > > > [/Hack alert] > > > > Sounds like the right idea. I looked up the build-helper-maven-plugin and > tried to configure it properly, but it doesn't seem to be doing anything. > I > added the following to my pom.xml: > <!-- copy resources --> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>build-helper-maven-plugin</artifactId> > <executions> > <execution> > <id>add-source</id> > <phase>prepare-package</phase> > <goals> > <goal>add-source</goal> > </goals> > <configuration> > <sources> > <source>src/main/webapp</source> > </sources> > </configuration> > </execution> > </executions> > </plugin> > > I now expected everything in src/main/webapp to appear my my sources.jar > file, but none of them do. > > Am I missing something obvious here? Am I chasing my tail somehow? > > Thanks! > > Eric > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
