Hi,
I have an prototype setup with three modules, 2 Jars and a WEB app.
I have set up the WebLogic plugins in the web project.
When I CD to the web project and "mvn weblogic:deploy" the web app is
deployed as expected.
However, if I go to the root/parent dir and try "mvn weblogic:deploy" I
get this error
[INFO] Reactor build order:
[INFO] Unnamed - com.mergere.mvnbook:build-all-aggregator:pom:1
[INFO] console
[INFO] helloworld
[INFO] helloWeb
[INFO] Searching repository for plugin with prefix: 'weblogic'.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-weblogic-plugin' does
not exist or no valid version could be found
in this setup I'm ONLY looking at deployment issues.
Here's the parent pom
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.mergere.mvnbook</groupId>
<artifactId>build-all-aggregator</artifactId>
<version>1</version>
<packaging>pom</packaging>
<modules>
<module>console</module>
<module>helloworld</module>
<module>helloWeb</module>
</modules>
</project>
And here's the web-app (child) pom
<project>
<parent>
<artifactId>build-all-aggregator</artifactId>
<groupId>com.mergere.mvnbook</groupId>
<version>1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>anton</groupId>
<artifactId>helloWeb</artifactId>
<name>helloWeb</name>
<description>testWeb</description>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin><!-- WebLogic Plugin for deploy
================================== WebLogic -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
<version>2.9.0-SNAPSHOT</version>
<configuration>
<adminServerHostName>${weblogicServerHostName}</adminServerHostName><!--
localhost -->
<adminServerPort>${weblogicServerPort}</adminServerPort>
<adminServerProtocol>http</adminServerProtocol>
<userId>${weblogicUserId}</userId>
<password>${weblogicPassword}</password>
<upload>true</upload>
<remote>true</remote>
<verbose>true</verbose>
<debug>false</debug>
<targetNames>${weblogicTargetNames}</targetNames>
<artifactPath>D:\build\helloWeb\target\helloWeb-1.0-SNAPSHOT.war</artifa
ctPath>
<name>helloWeb</name><!-- app name on the
server -->
<projectPackaging>war</projectPackaging>
</configuration>
</plugin>
</plugins>
</build>
</project>
Any ideas? How should I be approaching this?
In our situataion we have 50 odd projects, most of which are deployable
(ear / war),
with only a handfull being jar projects. We'd like to be able to deploy
all of them in one cmd.
I figure each deployable project will have it's own weblogic plugin and
config - with more
generic handling of the artifactPath obviously.
TestBox: WinXp; WebLogic:9.2x; Maven:2.0.6; Jdk:1.5.0_06
Anton Schoultz
Senior Java developer
Life Systems - Servicing
Discovery Life
Direct: +27 11 529 1636
Mobile: +27 83 651 7191
Email: [EMAIL PROTECTED]
Discovery Holdings Limited
Registration number: 1999/007789/06
This message and any attachments are confidential and intended solely for the
addressee. If you have received this message in error, please notify Discovery
immediately, telephone number +27 11 529 2888. Any unauthorised use; alteration
or dissemination of the contents of this email is strictly prohibited. In no
event will Discovery or the sender be liable in any manner whatsoever to any
person for any loss or any direct, indirect, special or consequential damages
arising from use of this email or any linked website, including, without
limitation, from any lost profits, business interruption, loss of programmes or
other data that may be stored on any information handling system or otherwise
from any assurance that this email is virus free even if Discovery is expressly
advised of the possibility of such damages. Discovery is an Authorised
Financial Services Provider. A full list of directors is available on our
website at
https://www.discovery.co.za/index_login.jhtml?p_content=/investor_relations/directorate.jhtml
alternatively, to obtain a full list of Directors via email, please email
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]