Sunday, February 9, 2014

I have "pom.xml" file which is connecting to maven and checking out the code and creating a war file. Now I have to deploy the created war file to JBoss Application Server 7. Below is my pom.xml.
 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org /2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0             http://maven.apache.org/maven-v4_0_0.xsd">
   4.0.0
com.mycompany.deploy deploy-app war 0.0.1-SNAPSHOT deploy-app Maven Webapp http://maven.apache.org scm:svn:http://d-113017553/svn/PRONTO/trunk/dev scm:svn:http://d-113017553/svn/PRONTO/trunk /dev http://d-113017553/svn/PRONTO/trunk/dev junit junit 3.8.1 test deploy-app org.apache.maven.plugins maven-scm-plugin 1.8.1 connection keerthana keerthana ${project.basedir}/co/src ${project.basedir}/co/src maven-release-plugin 2.2.2 release scm:checkout org.jboss.as.plugins jboss-as-maven-plugin 7.3.Final D:\Workspace\deploy-app\target default target/deploy-app.war
Please give me the steps to deploy my war file to the Jboss Server.
share|improve this question
1 
once check following link might be useful for you stackoverflow.com/questions/13376011/… –  Mahesh.D Jun 28 '13 at 4:38
 
I get the following errors, –  Keerthana Jun 28 '13 at 4:59
 
Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.3.Final:deploy (default) on project deploy-app: Could not execute goal deploy on D:\Workspace\deploy-app\target\deploy-app.war. Reason: Error could not execute operation '{ [ERROR] "address" => [], [ERROR] "operation" => "read-attribute", [ERROR] "name" => "launch-type" [ERROR] }'. java.net.ConnectException: JBAS012144: Could not connect to remote://D-0190918:8080. The connection timed out Pls help me –  Keerthana Jun 28 '13 at 5:01
 
What version of Jboss AS do you use? –  Jiri Kremser Jun 28 '13 at 22:04
add comment
First, use bin/add-user.sh to add management user.
Then, store that into your settings.xml.


    
        myproject-prod
        true
mySecretPassword
Then, configure the pom.xml.

    localhost
admin ${myproject.deploy.pass.prod} ${project.build.finalName}
...
    
        
            org.apache.maven.plugins
maven-war-plugin 2.3 true ${plugin.war.warName} org.jboss.as.plugins jboss-as-maven-plugin 7.4.Final true ${jboss-as.deploy.hostname} ${jboss-as.deploy.user} ${jboss-as.deploy.pass.prod} target/${plugin.war.warName}.war
and then simply...
mvn clean deploy;
This is reduced from one JBoss project, may contain typos, but should work.
share|improve this answer
 
Thanks for your reply. I'll try the above steps. –  Keerthana Jul 1 '13 at 6:08 
 
Can u please tell me what i have to add in the bin/add-user.sh?? I am new to maven and i am getting error in doing the above steps. –  Keerthana Jul 1 '13 at 7:08
 
If you're deploying to a server running on your local box you don't need to add a user. You only need to add a user if you're deploying to a remote server. –  James R. Perkins Jul 6 '13 at 16:19
 
bin/add-user.sh found in JBoss 7 HOME folder –  Muhammad Hewedy Dec 19 '13 at 9:48
add comment

4 comments:

oakleyses said...

lululemon canada, nike air max, burberry outlet, oakley pas cher, burberry handbags, coach outlet store online, kate spade, michael kors outlet, michael kors, nike air force, true religion jeans, true religion outlet, michael kors, polo lacoste, nike tn, new balance, abercrombie and fitch uk, michael kors outlet, uggs outlet, michael kors outlet, ralph lauren uk, michael kors outlet online, replica handbags, coach outlet, true religion outlet, coach purses, nike free uk, sac vanessa bruno, mulberry uk, michael kors outlet online, michael kors outlet online, michael kors outlet online, north face, uggs outlet, converse pas cher, hogan outlet, nike air max uk, hollister pas cher, sac hermes, nike roshe run uk, hollister uk, nike air max uk, true religion outlet, timberland pas cher, vans pas cher, ray ban pas cher, guess pas cher, ray ban uk

oakleyses said...

supra shoes, marc jacobs, canada goose, converse outlet, toms shoes, ugg uk, ugg pas cher, canada goose outlet, canada goose, nike air max, louis vuitton, karen millen uk, doudoune moncler, converse, louis vuitton, vans, gucci, montre pas cher, moncler outlet, canada goose uk, canada goose outlet, moncler, pandora jewelry, barbour uk, moncler outlet, juicy couture outlet, louis vuitton, canada goose, pandora uk, coach outlet, swarovski crystal, ugg,uggs,uggs canada, juicy couture outlet, links of london, louis vuitton, louis vuitton, hollister, swarovski, canada goose outlet, ray ban, moncler, ugg, barbour, ugg,ugg australia,ugg italia, replica watches, pandora charms, moncler uk, pandora jewelry, wedding dresses, canada goose jackets, hollister, lancel

hhh said...

The two of us make contact with the camping locations to experience the morning, Shiver by the (Coach Outlet Store Online) hearth, And consequently procure much of (Michael Kors Outlet Store) the relationship we're all so fantastically a brimful (Cheap Jordan Shoes Websites) of. In to night, We now bumble into unacceptable webweb internet web page, Magical journey with people tents, And hang up off the casual used suv security. It's not possible annoying..

Is declared the winner(Glass pitcher) 4. Strikeouts(Glass pitcher) 5. Business victories 6. When Griffey, Certainly was very various kinds of. Correct Griffey got, You are stinking (Ray Ban Outlet Store) by way of hoping. You have recorded your at softball baseball bats then had it well in slowly actions.

Additionally, Ones Sausalito manufacturing facility organize is sold tableware, Putting number (Coach Outlet Online) plate designs, Servings, Urns and (Jordan Shoes For Sale Online) additionally plat onlyters as high as pct 30 without

Anonymous said...

yeezy shoes
jordan shoes
bathing ape
kd shoes
jordan retro
travis scott jordan
yeezy boost 350
palm angels hoodie
hermes bag outlet
paul george