You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mac-Systems <ma...@mac-systems.de> on 2007/10/08 14:08:26 UTC

How to generate-sources always ?

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: How to generate-sources always ?

Posted by Jörg Schaible <Jo...@Elsag-Solutions.com>.
Mac-Systems wrote on Wednesday, October 10, 2007 2:46 PM:

> Below example do not run when Install is invoked. May i missunderstood
> something completly.
> As far as i understood i bound the ANT Plugin to the
> "generate-sources" phase. As
> Goal "Install" inclúdes compile, the "generate-source" should run
> also, or what ?

Try a more "unique" id ;-)
or run maven with -X option to see, what it actually does.

- Jörg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to generate-sources always ?

Posted by Mac-Systems <ma...@mac-systems.de>.
Thanks,
after changing the id all works fine. Also i tested it in a continuus  
build.

regards,
Jens

> Mac-Systems schrieb:
>> Below example do not run when Install is invoked. May i 
>> missunderstood something completly.
>
> I don't think so.
>
>> As far as i understood i bound the ANT Plugin to the 
>> "generate-sources" phase. As Goal "Install" inclúdes compile, the 
>> "generate-source" should run also, or what ?
>
> That's correct, with the configuration below the antrun-plugin should 
> execute when you run 'mvn install'.
>
> As a first step to debug this I would add a simple echo task 
> definition with some dummy output to the configuration and see if that 
> gets printed. If it is printed (as it most probably will) the 
> antrun-plugin executes just fine and the problem is somewhere in the 
> external ant script you invoke.
>
> -Tim
>
>>> Hi,
>>>
>>> What exactly is your problem? Is the question in the subject still 
>>> relevant or do you have some other problem now?
>>>
>>> -Tim
>>>
>>> Mac-Systems schrieb:
>>>> Hello,
>>>>
>>>> my pom looks like this:
>>>>
>>>>    <build>
>>>>        <plugins>
>>>>              <plugin>
>>>>                <groupId>org.apache.maven.plugins</groupId>
>>>>                <artifactId>maven-antrun-plugin</artifactId>
>>>>                <version>1.1</version>
>>>>                   <executions>
>>>>                      <execution>
>>>>                        <id>generate-sources</id>
>>>>                        <phase>generate-sources</phase>
>>>>                        <configuration>
>>>>                              <tasks>
>>>>                                <ant antfile="xdoclet_070814.xml" 
>>>> inheritRefs="true"/>
>>>>                              </tasks>
>>>>                        </configuration>
>>>>                    <goals>
>>>>                          <goal>run</goal>
>>>>                    </goals>
>>>>                  </execution>
>>>>            </executions>
>>>>        </plugin>
>>>>
>>>>
>>>> So, what i am doing wrong there ?
>>>>
>>>> regards,
>>>> Jens
>>>>
>>>>
>>>>
>>>>> 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 <ni...@planet.nl>
>>>>>> An: Maven Users List <us...@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: users-unsubscribe@maven.apache.org
>>>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>>>           
>>>>>>>> --------------------------------------------------------------------- 
>>>>>>>>
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>         
>>>>>>> --------------------------------------------------------------------- 
>>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>
>>>>>>>
>>>>>>>       
>>>>>> --------------------------------------------------------------------- 
>>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>     
>>>>>
>>>>>   
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to generate-sources always ?

Posted by Tim Kettler <ti...@udo.edu>.
Mac-Systems schrieb:
> Below example do not run when Install is invoked. May i missunderstood 
> something completly.

I don't think so.

> As far as i understood i bound the ANT Plugin to the "generate-sources" 
> phase. As Goal "Install" inclúdes compile, the "generate-source" should run also, 
> or what ?

That's correct, with the configuration below the antrun-plugin should 
execute when you run 'mvn install'.

As a first step to debug this I would add a simple echo task definition 
with some dummy output to the configuration and see if that gets 
printed. If it is printed (as it most probably will) the antrun-plugin 
executes just fine and the problem is somewhere in the external ant 
script you invoke.

-Tim

>> Hi,
>>
>> What exactly is your problem? Is the question in the subject still 
>> relevant or do you have some other problem now?
>>
>> -Tim
>>
>> Mac-Systems schrieb:
>>> Hello,
>>>
>>> my pom looks like this:
>>>
>>>    <build>
>>>        <plugins>
>>>              <plugin>
>>>                <groupId>org.apache.maven.plugins</groupId>
>>>                <artifactId>maven-antrun-plugin</artifactId>
>>>                <version>1.1</version>
>>>                   <executions>
>>>                      <execution>
>>>                        <id>generate-sources</id>
>>>                        <phase>generate-sources</phase>
>>>                        <configuration>
>>>                              <tasks>
>>>                                <ant antfile="xdoclet_070814.xml" 
>>> inheritRefs="true"/>
>>>                              </tasks>
>>>                        </configuration>
>>>                    <goals>
>>>                          <goal>run</goal>
>>>                    </goals>
>>>                  </execution>
>>>            </executions>
>>>        </plugin>
>>>
>>>
>>> So, what i am doing wrong there ?
>>>
>>> regards,
>>> Jens
>>>
>>>
>>>
>>>> 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 <ni...@planet.nl>
>>>>> An: Maven Users List <us...@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: users-unsubscribe@maven.apache.org
>>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>>           
>>>>>>> --------------------------------------------------------------------- 
>>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>         
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>
>>>>>>
>>>>>>       
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>     
>>>>
>>>>   
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to generate-sources always ?

Posted by Mac-Systems <ma...@mac-systems.de>.
Below example do not run when Install is invoked. May i missunderstood 
something completly.
As far as i understood i bound the ANT Plugin to the "generate-sources" 
phase. As
Goal "Install" inclúdes compile, the "generate-source" should run also, 
or what ?
> Hi,
>
> What exactly is your problem? Is the question in the subject still 
> relevant or do you have some other problem now?
>
> -Tim
>
> Mac-Systems schrieb:
>> Hello,
>>
>> my pom looks like this:
>>
>>    <build>
>>        <plugins>
>>              <plugin>
>>                <groupId>org.apache.maven.plugins</groupId>
>>                <artifactId>maven-antrun-plugin</artifactId>
>>                <version>1.1</version>
>>                   <executions>
>>                      <execution>
>>                        <id>generate-sources</id>
>>                        <phase>generate-sources</phase>
>>                        <configuration>
>>                              <tasks>
>>                                <ant antfile="xdoclet_070814.xml" 
>> inheritRefs="true"/>
>>                              </tasks>
>>                        </configuration>
>>                    <goals>
>>                          <goal>run</goal>
>>                    </goals>
>>                  </execution>
>>            </executions>
>>        </plugin>
>>
>>
>> So, what i am doing wrong there ?
>>
>> regards,
>> Jens
>>
>>
>>
>>> 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 <ni...@planet.nl>
>>>> An: Maven Users List <us...@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: users-unsubscribe@maven.apache.org
>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>           
>>>>>> --------------------------------------------------------------------- 
>>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>         
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>>>>       
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>     
>>>
>>>   
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to generate-sources always ?

Posted by Tim Kettler <ti...@udo.edu>.
Hi,

What exactly is your problem? Is the question in the subject still 
relevant or do you have some other problem now?

-Tim

Mac-Systems schrieb:
> Hello,
> 
> my pom looks like this:
> 
>    <build>
>        <plugins>
>              <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-antrun-plugin</artifactId>
>                <version>1.1</version>
>                   <executions>
>                      <execution>
>                        <id>generate-sources</id>
>                        <phase>generate-sources</phase>
>                        <configuration>
>                              <tasks>
>                                <ant antfile="xdoclet_070814.xml" 
> inheritRefs="true"/>
>                              </tasks>
>                        </configuration>
>                    <goals>
>                          <goal>run</goal>
>                    </goals>
>                  </execution>
>            </executions>
>        </plugin>
> 
> 
> So, what i am doing wrong there ?
> 
> regards,
> Jens
> 
> 
> 
>> 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 <ni...@planet.nl>
>>> An: Maven Users List <us...@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: users-unsubscribe@maven.apache.org
>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>           
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>>>>
>>>>>         
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>       
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>     
>>
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to generate-sources always ?

Posted by Mac-Systems <ma...@mac-systems.de>.
Hello,

my pom looks like this:

    <build>
        <plugins>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.1</version>
                   <executions>
                      <execution>
                        <id>generate-sources</id>
                        <phase>generate-sources</phase>
                        <configuration>
                              <tasks>
                                <ant antfile="xdoclet_070814.xml" 
inheritRefs="true"/>
                              </tasks>
                        </configuration>
                    <goals>
                          <goal>run</goal>
                    </goals>
                  </execution>
            </executions>
        </plugin>


So, what i am doing wrong there ?

regards,
Jens



> 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 <ni...@planet.nl>
>> An: Maven Users List <us...@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: users-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>           
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>
>>>>         
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>     
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to generate-sources always ?

Posted by Matthias Marchart <ng...@gmx.at>.
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 <ni...@planet.nl>
> An: Maven Users List <us...@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: users-unsubscribe@maven.apache.org
> >>> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org

-- 
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to generate-sources always ?

Posted by Nick Stolwijk <ni...@planet.nl>.
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: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to generate-sources always ?

Posted by Mac-Systems <ma...@mac-systems.de>.
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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to generate-sources always ?

Posted by Tim Kettler <ti...@udo.edu>.
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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org