aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven 2 Plugin for WebSphere Application Server 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven 2 Plugin for WebSphere Application Server 5" Watch "Maven 2 Plugin for WebSphere Application Server 5" New topic
Author

Maven 2 Plugin for WebSphere Application Server 5

Ihor Komarenko
Greenhorn

Joined: Apr 05, 2007
Posts: 4
Hello.

Does anybody know if there is any Maven 2 plugin for WAS 5 Server available?

I want my WAR/EAR to be deployed automatically, but seems I need a plugin for WAS Server. In Tomcat/Jetty/Jboss deploy I just can configure Maven <distributionManagement> tag to deploy WAR/EAR to a server deploy directory, where it will look for WAR/EAR files, e.g. Tomcat "/webapps" directory, JBoss "server/default/deploy", but WAS seems doesn't have such directory where it looks for WAR/EAR files, all is done via console or a plugin is needed.

Please, tell me how to do a deployment with Maven 2 in WAS automatically or suggest any plugin for this task.

Thanks

Ihor
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

I think this is the plugin you would use -

maven-was5-plugin

<dependency>
<groupId>maven-plugins</groupId>
<artifactId>maven-was5-plugin</artifactId>
<version>2.0.2</version>
</dependency>

Can't really talk much about how to use it though - I don't use Websphere.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Ihor Komarenko
Greenhorn

Joined: Apr 05, 2007
Posts: 4
Thanks Nathan, but I am looking for Maven 2 plugin, not Maven 1 plugin for WAS. sitemaven-plugins.sourceforge.net contains plugins for Apache Maven 1.x, I am looking for similar WAS plugin you've recommended me, but for Maven2.

Thanks
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Oops - sorry...

There *is* a Maven2 version from codehaus, but it's not listed in either their "official" Mojo or their "sandbox" Mojo... ?

add the following to your POM -



Since there's no project page for this plugin on CodeHaus's Mojo page, it's difficult to find the plugin name (was5), goals(ListApplication, StartApplication, EJBDeploy, etc.), and configuration options (wasHome, server, wasCell, wasNode, etc.)... go into your local maven repository and use your favorite Zip tool to unzip was5-maven-plugin-1.1.3-SNAPSHOT.jar - go into the META-INF\maven\ directory inside the JAR and take a look at plugin.xml
Ihor Komarenko
Greenhorn

Joined: Apr 05, 2007
Posts: 4
Nate, do you know if a plugin from Codehaus you sent me is the same as this one: WAS 5 Plugin , seems is the same plugin, maybe this one is a previous version of one you sent me before. Anyways, both plugins are just snapshots/beta. Do you know if any stable plugin is available?

Thanks
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

I *think* it's the same plugin (actually, I think the jira post probably is about the 1.1 version - the latest snapshot is 1.1.3)...

Unfortunately, I think you're stuck with using the SNAPSHOT release for Websphere deployment.

I have to use a SNAPSHOT release for Weblogic deployment, too, and I haven't had any problems using it. (yet... ) So it seems pretty "stable" even though they haven't "officially" released it.

I wish that they would make an actual release of these so developers don't have to put in Maven "black magic" and extra repositories to get these plugins.
Ihor Komarenko
Greenhorn

Joined: Apr 05, 2007
Posts: 4
Nate, thank you very much for your help.

Could you please provide a simple basic configuration for a WAS plugin you are using and some available goals? I know that plugin.xml has all this, but having a basic configuration will save my time and a lot of effort.

Thanks a lot in advance,

Ihor
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Sorry - I'm using Weblogic, not Websphere - so I don't have any valid values to supply the plugin with on my machine. I just know how to get the plugin into the POM because I had to do similar things to get the Weblogic plugin working.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

Francesco Bellini,
Your post was moved to a new topic.
since this isn't about websphere 5, i'm splitting it to a new thread so more people will read it


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Maven 2 Plugin for WebSphere Application Server 5