I'm doing the source:jar creation on install, deploy as follows ... <plugins> ...... <plugin> <artifactId>maven-source-plugin</artifactId> <configuration> <outputDirectory>${project.build.directory}</outputDirectory> <finalName>${project.artifactId}</finalName> <attach>true</attach> </configuration> <executions> <execution> <id>make-sources</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> .... </plugins>
Best regards, Matthias -------- Original-Nachricht -------- > Datum: Mon, 08 Oct 2007 14:31:23 +0200 > Von: Nick Stolwijk <[EMAIL PROTECTED]> > An: Maven Users List <users@maven.apache.org> > Betreff: Re: How to generate-sources always ? > Take a look at the Maven Antrun plugin [1], it's usage [2] and > especially the plugin/executions/execution/phase element. > > Hth, > > Nick Stolwijk > > [1] http://maven.apache.org/plugins/maven-antrun-plugin > [2] http://maven.apache.org/plugins/maven-antrun-plugin/usage.html > Mac-Systems wrote: > > Hello, > > > > i need to run ANT for some source-code generation. > > > > regards, > > Jens > > > > > >> Hi, > >> > >> 'generate-sources' isn't a goal, it is a *phase* of the default build > >> lifecylce [1]. No plugin is bound to that phase for the provided > default > >> packagings (jar, war, ...). > >> > >> What are actually trying to do? > >> > >> -Tim > >> > >> [1] > >> > http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html > > >> > >> > >> Mac-Systems schrieb: > >>> Hi, > >>> > >>> > >>> Can someone tell me how my pom needs to modified that goal > >>> "generate-sources" always will > >>> run when "mvn install" is invoked ? > >>> > >>> > >>> best regards, > >>> Jens > >>> > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > >>> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]