You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ludwig Magnusson <lu...@itcatapult.com> on 2010/08/19 15:12:14 UTC

Different settings for compile/deploy?

Hi!

When our application is being built sources are generated during the
generate-sources phase. The torque generator that generates our code has a
maven plugin that we use for this. That plugin has an option, you can let
the generated classes cache their data or not. I would like them _not_ to
cache the data in the development environment, and I would like them to
cache the data in the production environment.

 

Is there any way to change this parameter based on whether I run mvn compile
or mvn deploy? Or is there any other way to solve the problem?

/Ludwig


Re: Different settings for compile/deploy?

Posted by Justin Edelson <ju...@gmail.com>.
Take a look at the release plugin. It has support for specifying profiles to be activated when releasing.

If you can't use the release plugin, then you'll need to activate your profile manually.

On Aug 19, 2010, at 9:20 AM, "Ludwig Magnusson" <lu...@itcatapult.com> wrote:

> I did actually look at profiles, but I did not find how to activate them on
> different kind of goals. 
> The documentation covers how to activate on jdk, os, properties and present
> files.
> 
> -----Original Message-----
> From: Justin Edelson [mailto:justinedelson@gmail.com] 
> Sent: den 19 augusti 2010 15:14
> To: Maven Users List
> Subject: Re: Different settings for compile/deploy?
> 
> Use a profile and activate that profile when doing releases.
> 
> On Aug 19, 2010, at 9:12 AM, "Ludwig Magnusson" <lu...@itcatapult.com>
> wrote:
> 
>> Hi!
>> 
>> When our application is being built sources are generated during the 
>> generate-sources phase. The torque generator that generates our code 
>> has a maven plugin that we use for this. That plugin has an option, 
>> you can let the generated classes cache their data or not. I would 
>> like them _not_ to cache the data in the development environment, and 
>> I would like them to cache the data in the production environment.
>> 
>> 
>> 
>> Is there any way to change this parameter based on whether I run mvn 
>> compile or mvn deploy? Or is there any other way to solve the problem?
>> 
>> /Ludwig
>> 
> 
> ---------------------------------------------------------------------
> 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: Different settings for compile/deploy?

Posted by Ludwig Magnusson <lu...@itcatapult.com>.
I did actually look at profiles, but I did not find how to activate them on
different kind of goals. 
The documentation covers how to activate on jdk, os, properties and present
files.

-----Original Message-----
From: Justin Edelson [mailto:justinedelson@gmail.com] 
Sent: den 19 augusti 2010 15:14
To: Maven Users List
Subject: Re: Different settings for compile/deploy?

Use a profile and activate that profile when doing releases.

On Aug 19, 2010, at 9:12 AM, "Ludwig Magnusson" <lu...@itcatapult.com>
wrote:

> Hi!
> 
> When our application is being built sources are generated during the 
> generate-sources phase. The torque generator that generates our code 
> has a maven plugin that we use for this. That plugin has an option, 
> you can let the generated classes cache their data or not. I would 
> like them _not_ to cache the data in the development environment, and 
> I would like them to cache the data in the production environment.
> 
> 
> 
> Is there any way to change this parameter based on whether I run mvn 
> compile or mvn deploy? Or is there any other way to solve the problem?
> 
> /Ludwig
> 

---------------------------------------------------------------------
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: Different settings for compile/deploy?

Posted by Justin Edelson <ju...@gmail.com>.
Use a profile and activate that profile when doing releases.

On Aug 19, 2010, at 9:12 AM, "Ludwig Magnusson" <lu...@itcatapult.com> wrote:

> Hi!
> 
> When our application is being built sources are generated during the
> generate-sources phase. The torque generator that generates our code has a
> maven plugin that we use for this. That plugin has an option, you can let
> the generated classes cache their data or not. I would like them _not_ to
> cache the data in the development environment, and I would like them to
> cache the data in the production environment.
> 
> 
> 
> Is there any way to change this parameter based on whether I run mvn compile
> or mvn deploy? Or is there any other way to solve the problem?
> 
> /Ludwig
> 

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