On Fri, Aug 22, 2008 at 3:27 AM, Martin Homik <[EMAIL PROTECTED]> wrote:
>
> Just to complete. Add the following plugin overrides to the prod profile.
> Can it be simplified?

Possibly in a future version of Maven that supports attributes:

http://raibledesigns.com/rd/entry/maven_now_supports_attributes_in

BTW, if you want to speed up your development with Maven, you might
try the CLI plugin. It seems to currently only work with single-module
projects:

http://www.jroller.com/mrdon/entry/speed_up_maven_through_the

Matt

>
> <!-- skip tests -->
> <plugin>
>   <artifactId>maven-surefire-plugin</artifactId>
>   <configuration>
>      <skip>true</skip>
>   </configuration>
> </plugin>
>
> <!-- skip database re-population -->
> <plugin>
>   <groupId>org.codehaus.mojo</groupId>
>   <artifactId>dbunit-maven-plugin</artifactId>
>   <version>1.0-beta-1</version>
>   <configuration>
>      <skip>true</skip>
>   </configuration>
> </plugin>
>
> <!-- skip drop/create tables -->
> <plugin>
>   <groupId>org.codehaus.mojo</groupId>
>   <artifactId>hibernate3-maven-plugin</artifactId>
>   <version>2.1</version>
>   <configuration>
>      <components>
>         <component>
>            <name>hbm2ddl</name>
>            <implementation>annotationconfiguration</implementation>
>         </component>
>      </components>
>      <componentProperties>
>         <drop>false</drop>
>         <jdk5>true</jdk5>
>         <propertyfile>target/classes/jdbc.properties</propertyfile>
>         <skip>true</skip>
>      </componentProperties>
>   </configuration>
> </plugin>
>
> Martin
>
>
> dusty wrote:
>>
>> I believe I understand your question.  I have an application where we
>> develop on MySQL but we run Oracle in production.  When we build for
>> production we want to replace the MySQL jdbc settings with the Oracle
>> settings.  Also, we don't want to run hibernate3 or dbunit or it would
>> wipe out our production database.  This is where the maven profiles
>> come in.  Appfuse ships with a profile called prod and other profiles
>> for databases like Oracle.
>>
>> I was a little paranoid about someone doing mvn -Poracle test and blow
>> out our production database so I moved the db-related stuff (hibernate-
>> tools and dbunit) to its own profile called db-setup.  I also moved
>> the oracle database settings to prod since we don't use any of the
>> other database profiles.   Finally I included a skip = true for my
>> prod profile.  The final effect is that when we are building our WAR
>> for deployment we run mvn -Pprod package and it works great.  If we
>> want to reset our test db we run mvn -Pdb-setup test.  We just NEVER
>> run mvn -Pprod,db-setup.
>>
>> -D
>>
>>
>> On May 20, 2008, at 5:51 AM, Mauri Ferreyra wrote:
>>
>>> Yes! I belive Appfuse is really very good!
>>> But, I need to know, what consideration i should have in the moment i
>>> send the aplication for finals users. for example, plugin of the test,
>>> and others plugin.
>>> What's plugin i need remove?
>>>
>>>
>>> On Tue, May 20, 2008 at 9:43 AM, Matt Raible
>>> <[EMAIL PROTECTED]> wrote:
>>>> Can you rephrase your question? AppFuse creates a WAR and can be
>>>> deployed to production just like any other WAR.
>>>>
>>>> Matt
>>>>
>>>> On Tue, May 20, 2008 at 6:40 AM, Mauri Ferreyra <[EMAIL PROTECTED]>
>>>> wrote:
>>>>> What  I have know about AppFuse?
>>>>> if I want use Appfuse as platform for an application that I will
>>>>> send
>>>>> to production.
>>>>>
>>>>> Thanks
>>>>> Mauri
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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]
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Mauricio F. Ferreyra |tel #: (0351) 156-623072 | Cordoba - Argentina
>>>
>>> ---------------------------------------------------------------------
>>> 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]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/AppFuse-to-production-tp17339383s2369p19104092.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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