blob: f91f3d74515690fb9c14a152214a0d46b8a98857 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wtp.doc.user/common.css" />
<title>Exporting an enterprise application into an EAR file</title>
</head>
<body id="tjexpear"><a name="tjexpear"><!-- --></a>
<h1 class="topictitle1">Exporting an enterprise application into an EAR file</h1>
<div><p>Enterprise applications are deployed in the form of an EAR file.
Use the Export wizard to export an enterprise application project into an
EAR file for deployment.</p>
<div class="section"> <p>To export an enterprise application project into an EAR file:</p>
</div>
<ol><li class="stepexpand"><span>In the Project Explorer view of the J2EE perspective, right-click
the project that you want to export.</span></li>
<li class="stepexpand"><span>Click <span class="uicontrol">Export</span> from the pop-up menu. The Export
wizard opens.</span></li>
<li class="stepexpand"><span>Under <span class="uicontrol">Select an export destination</span>, click <span class="uicontrol">EAR
file</span>.</span></li>
<li class="stepexpand"><span>Click <span class="uicontrol">Next</span>.</span></li>
<li class="stepexpand"><span>In the <span class="uicontrol">EAR Application</span> list, select the
project to export.</span></li>
<li class="stepexpand"><span>In the <span class="uicontrol">Destination</span> field, enter the full
path and EAR file name where you want to export the enterprise application
project that is selected in the <span class="uicontrol">EAR application</span> field.</span></li>
<li class="stepexpand"><strong>Optional: </strong><span>To export source files, select the <span class="uicontrol">Export
source files</span> check box.</span></li>
<li class="stepexpand"><strong>Optional: </strong><span>If you are exporting to an existing EAR file
and you do not want to be warned about overwriting it, select <span class="uicontrol">Overwrite
existing files without warning</span></span></li>
<li class="stepexpand"><strong>Optional: </strong><span>Select <span class="uicontrol">Include project build paths
and meta-data files</span>.</span> This allows you to preserve the
original names of projects included in or referenced by the application project,
for re-importing the EAR in another workspace. </li>
<li class="stepexpand"><span>Click <span class="uicontrol">Finish</span>.</span></li>
</ol>
<div class="section">The wizard exports the contents of the EAR project to the specified
EAR file. Additionally, for each project that corresponds to a module or utility
JAR in the application, the project contents are exported into a nested module
or JAR file in the EAR file. If any unsaved changes exist on any of the files
in any of the referenced projects, you are prompted to save these files prior
to export.</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/ph-importexport.html" title="These topics cover how to import files and projects into the workbench and export files and projects to disk.">Importing and exporting projects and files</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../topics/cjarch.html" title="The Java 2 Platform, Enterprise Edition (J2EE) provides a standard for developing multitier, enterprise services.">J2EE architecture</a></div>
<div><a href="../topics/cjearproj.html" title="An enterprise application project contains the hierarchy of resources that are required to deploy a J2EE enterprise application, often referred to as an EAR file.">Enterprise application projects</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="../topics/tjimpear.html" title="Enterprise application projects are deployed into EAR files. You can import an enterprise application project by importing it from a deployed EAR file.">Importing an enterprise application EAR file</a></div>
</div>
</div></body>
</html>