You have to checkout the Weblogic Maven plugin from the mojo codehaus subversion repository and build and install the plugin manually.

Checkout the website at http://mojo.codehaus.org/weblogic-maven-plugin. You can access the SVN at: svn://svn.codehaus.org/mojo/scm/trunk/mojo/mojo-sandbox/weblogic-maven-plugin weblogic-maven-plugin

Hope it helps

        Ralf


Pauquette, Bryan wrote:
I have a maven 2.0.4 build creating an ear file that I would like to
deploy to a weblogic 8.1.x container via a mvn command line.
Where do I start?

I have tried getting the maven-weblogic-plugin installed but this
doesn't seem to be working for me.  I have tried the following...

        mvn install:install-file -Dfile=maven-weblogic-plugin-2.8.0.jar
-DgroupId=org.codehaus.mojo -DartifactId=maven-weblogic-plugin
-Dversion=2.8.0 -Dpackaging=plugin


        mvn install:install-file -Dfile=maven-weblogic-plugin-2.8.0.jar
-DgroupId=org.codehaus.mojo -DartifactId=maven-weblogic-plugin
-Dversion=2.8.0 -Dpackaging=jar


These both "succeed" in that I get the message "Build Successful"
however When I attempt to use the plugin via adding the plugin into the ear pom.xml Like so

<plugin>
         <groupId>org.codehaus.mojo</groupId>
            <artifactId>maven-weblogic-plugin</artifactId>
               <configuration>
<adminServerHostName>myhostname</adminServerHostName>
                    <adminServerPort>8081</adminServerPort>
                    <userId>weblogic</userId>
<objectPath>${project.build.outputDirectory}/../${project.artifactId}.${
project.packaging}</objectPath>
      <password>weblogic</password>
      <name>${project.artifactId}</name>
      <staging>nostage</staging>
      <targetNames>
        <targetName>opus-frontend-server</targetName>
      </targetNames>
    </configuration>
  </plugin>

I get the following....


What am I doing wrong?


[EMAIL PROTECTED]:ear]$ mvn -e -X deploy
+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from:
'/opt/app/devtp/bp6048/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'/opt/app/devtp/opusbuild/.gnu/maven-2.0.4/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Searching for parent-POM: net.cingular.dsc:dsc::1.0 of project:
null:dsc-ear:ear:null in relative path: ../pom.xml
[DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for
project: null:dsc-ear:ear:null
[INFO]
------------------------------------------------------------------------
----
[INFO] Building Device Support Center:: Enterprise Application
[INFO]    task-segment: [deploy]
[INFO]
------------------------------------------------------------------------
----
[DEBUG] maven-ear-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugin-parent::2.0 for project:
null:maven-ear-plugin:maven-plugin:2.0 from the repository.
[DEBUG] maven-resources-plugin: resolved to version 2.1 from repository
central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugin-parent::2.0 for project:
null:maven-resources-plugin:maven-plugin:2.1 from the repository.
[DEBUG] maven-install-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugin-parent::2.0 for project:
null:maven-install-plugin:maven-plugin:2.0 from the repository.
[DEBUG] maven-deploy-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugin-parent::2.0 for project:
null:maven-deploy-plugin:maven-plugin:2.0 from the repository.
[DEBUG] maven-weblogic-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
latest version

  org.codehaus.mojo:maven-weblogic-plugin:pom:LATEST


[DEBUG] Using defaults for missing POM
org.codehaus.mojo:maven-weblogic-plugin:pom:LATEST
[DEBUG] maven-weblogic-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
release version

  org.codehaus.mojo:maven-weblogic-plugin:pom:RELEASE


[DEBUG] Using defaults for missing POM
org.codehaus.mojo:maven-weblogic-plugin:pom:RELEASE
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.codehaus.mojo:maven-weblogic-plugin' does not
exist or no valid version could be found
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.codehaus.mojo:maven-weblogic-plugin' does not exist or no valid
version could be found
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
LifecycleExecutor.java:1281)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycl
e(DefaultLifecycleExecutor.java:1216)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa
ppings(DefaultLifecycleExecutor.java:982)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:453)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:140)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by:
org.apache.maven.plugin.version.PluginVersionNotFoundException: The
plugin 'org.codehaus.mojo:maven-weblogic-plugin' does not exist or no
valid version could be found
        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
nVersion(DefaultPluginVersionManager.java:225)
        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
nVersion(DefaultPluginVersionManager.java:87)
        at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM
anager.java:158)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
LifecycleExecutor.java:1252)
        ... 17 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Tue Jul 18 14:57:50 EDT 2006
[INFO] Final Memory: 2M/6M
[INFO]
------------------------------------------------------------------------



---------------------------------------------------------------------
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