| |

VerySource

 Forgot password?
 Register
Search
View: 720|Reply: 1

ear packaging problem

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-10-19 10:30:02
| Show all posts |Read mode
Now I want to publish multiple ear applications in a jboss environment. Previously, I used the war package. Put ejb in the hot deployment directory of deploy, which is not convenient for website porting. Now I want to deploy each website separately as an enterprise application. But I used to develop ear that was generated directly without using tools. Now I want to manually pack it into an ear bag. ? ? ?
How to package ear package on the command line? ? ? ?
Reply

Use magic Report

0

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-10-19 13:45:01
| Show all posts
Use ant
<target name="MakeEar" depends="init">
  <ear destfile="${outdir}/my.ear"
       appxml="${devdir}/META-INF/application.xml"
       compress="false">
   <fileset dir="${devdir}/lib" includes="*.jar,*.war" />
   <fileset dir="${devdir}"
          includes="APP-INF/lib/*.jar, APP-INF/lib/*.zip" />
   <fileset dir="${devdir}" includes="APP-INF/classes/*.*"/>
  </ear>
</target>
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list