Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1005045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:13:47+00:00 2026-05-16T08:13:47+00:00

I am using maven2 with a struts-hibernate Java EE project and developing with myEclipse.

  • 0

I am using maven2 with a struts-hibernate Java EE project and developing with myEclipse.
When I run a maven build, clean&install, it generates myProject.ear under the myProject_ear\target folder as usual. However, I have to copy this ear file from that folder to the ..jboss-4.2.2.GA_2\server\default\deploy folder in order to deploy, and again turn back to eclipse and start the server.

It is because of my project has not a standard Java EE skeleton I think. However, if there is a way to tell maven to deploy my ear under the ..\deploy folder of jboss automatically, I would be glad to hear that.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T08:13:48+00:00Added an answer on May 16, 2026 at 8:13 am

    If this is during development, my suggestion would be to use the WTP support and to Run [your project] on Server. And if for whatever reason you cannot use the WTP, then my second suggestion would be to use the JBoss Maven Plugin and the following goals:

    • jboss:hard-deploy
      Deploy a file or directory to JBoss by copying
      files directly to the server
      deployment directory.
    • jboss:hard-undeploy
      Undeploy a file or directory to JBoss
      by removing files from the server
      deployment directory.

    From the examples:

    Deploying the files by direct copy

    The plugin goals hard-deploy and
    hard-undeploy can be used to deploy
    files or directories by copying
    directly to the deploy directory of
    the server. The first step is to
    configure the location of the server
    and the file to be deployed.

    <project>
      ...
      <build>
        ...
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>jboss-maven-plugin</artifactId>
            <version>1.4.1</version>
            <configuration>
              <jbossHome>/usr/jboss-4.2.3.GA</jbossHome>
              <serverName>all</serverName>
              <fileName>target/my-project.war</fileName>
            </configuration>
          </plugin>
          ...
        </plugins>
        ...
      </build>
      ...
    </project>
    

    The file can now be deployed and
    undeployed using the appropriate
    goals.

    mvn jboss:hard-deploy
    mvn jboss:hard-undeploy
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using maven2 to build the java project, when i issue the command
Possible Duplicate: compiling project with jdk1.5 using maven2 I am trying to build java
I'm using MyEclipse to develop a really simple Java Struts project. Everything was working
I am using maven2 to build the java project. when I am trying to
I'm trying to start a new struts 2 project using maven (struts2 blank archetype)
Im using maven to build a multi module project. But some projects are in
I'm using Maven2 and Spring 3, when I run my project in Eclipse everything
I'm using maven2 for dependency management. I have one project that contains some Java
I am using Maven2 to build a WAR project. Some properties files are dependent
I have a Java only project using Maven2. It'd be very useful to be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.