I've installed a fresh copy of "eclipse-jee-helios-SR2-win32.zip" on a 32 bit win 7 machine. I'm running Java 6.
Then I installed JBoss Tools from http://download.jboss.org/jbosstools/updates/stable/helios/, by pasting the url in Help->Install New Software. I selected to install everything.
I created a sample 开发者_Python百科"Dynamic Web Project" for testing.
Now when I open the "Project Archives" ( Window > Show View > Other > JBoss Tools > Project archives), select my Dynamic Web Project and right click to create a WAR.
PROBLEM - I only get the JAR option. No other options like WAR, EAR are seen.
What is missing?
I have found the answer here: http://community.jboss.org/message/630475#630475
These menu items were removed during work for https://issues.jboss.org/browse/JBIDE-9009
The issue was initialization of some core underlying libraries during the convenience action. Unfortunately, after lots of investigation, the root causes were never discovered and the only solution was to remove the actions entirely, or, leave them in and allow some users to have broken projects or workspaces throwing errors everywhere.
The decision was made to remove them.
The "workaround", or, the new way to do it, is to simply use the .jar archive feature, and build out the structure you wish to see.
The convenience actions really were not as useful as we would have liked to begin with. Project archives is, typically, used for non WTP-style projects. Because of this, we really have no way at all to predict how the users project is structured. We did some simple guess-and-verify work, but it was often wrong. Users often found the guesses counterproductive, as they then had to go remove invalid filesets, and add in new ones themselves. Combining this with the initialization errors in JBIDE-9009, and it was not a difficult decision to remove the conveineice actions.
Try right-clicking the project on the package explorer and select "Export". There should be a "WAR" option. If not, check if the project's facets are configured correctly (open the project's preferences, search for "Facets". "Dynamic Web Project" should be ticked on the facet list)
try to re-install the plug-in with the eclipse marketplace, it's just to drag and drop the "install" icon in eclipse.
This is the plugin : http://marketplace.eclipse.org/content/jboss-tools-1
And i think if you folow these steps, all the options of this method work successfully.
精彩评论