File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven 2 Plugin for WebSphere Application Server 5

 
Ihor Komarenko
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ihor Komarenko
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic