I did somthing like - 

 <profile> 
   <id>deploy</id> 
   <activation> 
   <property> 
   <name>deploy</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>
     <configuration>
     
<objectPath>${project.build.directory}/${project.artifactId}-${project.version}.ear</objectPath>
      <verbose>true</verbose>
      <debugging>true</debugging>
      <nowarnings>false</nowarnings>
      <lineNumbers>true</lineNumbers>
      <adminServerHostName>${host}</adminServerHostName>
      <adminServerPort>${port}</adminServerPort>
      <adminServerProtocol>t3</adminServerProtocol>
      <userId>${user}</userId>
      <password>${password}</password>
      <upload>false</upload>
      <remote>false</remote>
      <verbose>false</verbose>
      <debug>false</debug>
      <targetNames>${server.name}</targetNames>
     </configuration>
     <executions>
      <execution>
       <phase>package</phase>
       <goals>
          <goal>deploy</goal>
       </goals>
       </execution>
     </executions>
    </plugin> 
    </plugins>
    <filters> 
     <filter>../../env/${env}.properties</filter> 
    </filters> 
   </build> 
 </profile> 

When i do 'mvn install -Ddeploy=true -Denv=dev', the above profile is
executed but it fails to pick up the porperties from the dev.properties
file. It tries to use the default porperties as of a localhost. Is it the
case that the filter will only work for resources? I'm using the same filter
for compiling the resources. 


Scott Ryan-2 wrote:
> 
> You just need to configure the plugin in your different profiles.  You can
> have a different set of configurations in each profile definition.
> 
> Scott Ryan
> Chief Technology Officer
> Soaring Eagle L.L.C.
> [EMAIL PROTECTED]
> www.soaringeagleco.com
> (303) 263-3044
> 
> -----Original Message-----
> From: Dmystery [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 08, 2006 4:35 AM
> To: [email protected]
> Subject: weblogic-maven-plugin:using properties file
> 
> 
> 
> How can i use a properties file in weblogic-maven-plugin. I've to deploy
> an
> ear on different enviroments and the
> <adminServerHostName>,<adminServerPort>
> etc will hold values based on the environment. At the pom level i can
> access
> the appropriate properties file using profiles, but the same properties
> are
> not available in the plugin.
> 
> Any solution???
> --
> View this message in context:
> http://www.nabble.com/weblogic-maven-plugin%3Ausing-properties-file-tf259470
> 5s177.html#a7236919
> Sent from the Maven - Users 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/weblogic-maven-plugin%3Ausing-properties-file-tf2594705s177.html#a7252764
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to