You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ra...@jpmchase.com on 2006/08/09 17:34:07 UTC

build happening twice

Hi All

I have multimodule project with maven everthing seems to be working 
fine,but one thing

I will create ear from my project, then i created a profile which is 
activated by a property like, so when that property(deployto.wlserver)is 
set to true it will deploy the created ear into weblogic server.

so when i ran "mvn -e clean deploy" it goes thru the deploy lifecycle 
twice.. i see the reason its coz my profile was activated at deploy  phase 
and i'm running the goal deploy which is found in "weblogic-maven-plugin"

Is there a way to make it work only once the deploy goal, i tried with 
weblogic:deploy at goal section but it was throwing error as 

[INFO] 'weblogic:deploy' was specified in an execution, but not found in 
the plugin

                 <profile>
                        <id>DEPLOY-TO-WEBLOGIC</id>
                        <activation>
                                <property>
                                        <name>deployto.wlserver</name>
                                        <value>true</value>
                                </property>
                        </activation>
                        <build>
                                <plugins>
                                    <plugin>
 <groupId>org.codehaus.mojo</groupId>
 <artifactId>weblogic-maven-plugin</artifactId>
                                        <version>2.8.0-SNAPSHOT</version>
                                        <executions>
                                                <execution>
 <id>Deploy-To-Weblogic</id>
                                                        <goals>
 <goal>deploy</goal>
                                                        </goals>
 <phase>deploy</phase>
                                                        <configuration>
 <adminServerProtocol>${wl.admin.protocol}</adminServerProtocol>
 <adminServerHostName>${wl.admin.host}</adminServerHostName>
 <adminServerPort>${wl.admin.port}</adminServerPort>
 <userId>${wl.admin.userid}</userId>
 <password>${wl.admin.passwd}</password>
 <targetNames>${apps.target.servers}</targetNames>
                                                        <!-- 
<name>${deploying.apps.name}</name> 
 <objectPath>${apps.loc.inserver}</objectPath>
 <staging>${copy.fileto.targets}</staging> -->
 <upload>${upload.artifactto.adminServer}</upload>
 <remote>${running.from.adminServer}</remote>
 <verbose>${turn.on.verbose}</verbose>
 <debug>${turn.on.debug}</debug>
                                                        </configuration>
                                                   </execution>
                                                </executions>
                                    </plugin>
                                </plugins>
                        </build>
                </profile>


Please help


Thanks,
Raghurajan Gurunathan




-----------------------------------------
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.