I think it's related to this issue.
http://jira.codehaus.org/browse/MNG-2206
I have the same trouble ;-)
-Olivier

-----Message d'origine-----
De : Mick Knutson [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 14 avril 2006 18:59
À : [email protected]
Objet : [m2] issue switching profiles


I have the following settings in my profiles.xml:

        <profile>
            <id>default</id>
            <properties>
                <target.server>default</target.server>
            </properties>
        </profile>

        <!--
        | to run a single profile:
        | mvn assembly:assembly -P config-only
        |-->
        <profile>
            <id>config-only</id>
            <properties>
                <target.server>config-only</target.server>
            </properties>
        </profile>

    </profiles>

    <activeProfiles>
        <activeProfile>default</activeProfile>
    </activeProfiles>



Then in my pom.xml, I have the following descriptor for my assembly that

switches the assembly descriptor based on profile:

            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.0-beta-2</version>
                <configuration>
                    
<descriptor>src/main/assembly/assembly-descriptor-${target.server}.xml</
descriptor>
                    <finalName>furl_assembly</finalName>
                    <outputDirectory>target/assembly</outputDirectory>
                    <workDirectory>target/assembly/work</workDirectory>
                </configuration>
            </plugin>




But when I run "mvn assembly:assembly -P config-only", I still get only
the 
default assebly not the config-only.

Can someone help me to understand how to have the 'default' run by
default, 
and allow my command line switch to change it to config-only?

---
Thank You
Mick Knutson

BASE logic, inc.
(415) 648-1804 (San Francisco, CA)
http://www.BASELogic.com

http://www.djmick.com
---



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
********************************************************************** 
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
********************************************************************** 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to