Hi

just looked again at the internals of this plugin and saw that it uses a static 
variable.

If m2 is loaded once and instantiated twice, this explains what I see. Any 
static variable
will thus not be cleared.

I can easily fix it on my side, BUT is there a way to reload plugins in case a 
fix would
not be that easy on the plugin's side?

Regards
Mark Donszelmann
Stanford Linear Accelerator Center


-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 02, 2005 8:26 PM
To: Maven Developers List
Subject: Re: Plugin seems to not reload/restart

I'm not sure what you are referring to by "load into memory".

The plugin JAR is loaded once, the class that contains the generate goal should 
be instantiated twice (once for each run, with the respective configuration).

Is this not what you are seeing?

- Brett

Donszelmann, Mark wrote:

>Hi
>
>my plugin is configured to execute twice with different configuration:
>
>            <plugin>
>                <groupId>org.freehep</groupId>
>                <artifactId>freehep-aid-plugin</artifactId>
>                <version>0.4</version>
>                <executions>
>                    <execution>
>                        <id>java</id>
>                        <goals>
>                            <goal>generate</goal>
>                        </goals>
>                    </execution>
>                    <execution>
>                        <id>cpp</id>
>                        <goals>
>                            <goal>generate</goal>
>                        </goals>
>                        <configuration>
>                            <generator>CPPHeaderGenerator</generator>
>                            
> <targetDirectory>${project.build.directory}/generated-sources/aid/org/freehep/aid/include</targetDirectory>
>                        </configuration>
>                    </execution>
>                </executions>
>            </plugin>
>
>however, it seems to load only once in memory and start up. 
>Am I correct here? and if so, is there a way to reload it for each execution?
>
>
>Regards
>Mark Donszelmann
>Stanford Linear Accelerator Center
>
>---------------------------------------------------------------------
>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]

Reply via email to