geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Geronimo Wiki] Update of "EclipseDeployment" by Sachin Patel
Date Wed, 13 Jul 2005 19:29:23 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Geronimo Wiki" for change notification.

The following page has been changed by Sachin Patel:
http://wiki.apache.org/geronimo/EclipseDeployment

------------------------------------------------------------------------------
  
  == Creating Maven and Server Launch Configurations (Under construction) ==
  
- This section will explain configuring your Eclipse workspace to provide intergated Maven
support.  We will create a set of configurations need to assist in building and launching
Geronimo. 
+ This section will explain configuring your Eclipse workspace to provide intergated Maven
support.  We will create a set of configurations that will assist in building and launching
Geronimo. 
  
- To install Mevenide through the Eclipse Update Manager, create an Update Site pointing to
the following site and follow the directions remembering to select both features, Maven and
Mevnide.
+ To install Mevenide through the Eclipse Update Manager, create an Update Site pointing to
the following site and follow the directions remembering to select both the Maven and Mevenide
features.
  {{{
  http://mevenide.codehaus.org/release/eclipse/update/site.xml
  }}}
  
- Next, to avoid manually creating a set of Maven and Geronimo launch configurations by hand,
you can import the following set of configurations and modify them for your customization.
+ Next, to avoid manually creating a set of Maven and Geronimo launch configurations by hand,
you can import the a set of configurations and modify them for your customization.  Download
an extract '''{{{eclipselaunchconfigs.zip}}}''' into your '''{{{$WORKSPACE\.metadata\.plugins\org.eclipse.debug.core\.launches
folder}}}''' and restart eclipse.  You will then automatically have the neccessary configurations
needed to develop and debug Geronimo with eclipse.  You can know skip ahead to the section
entitled '''Debugging Geronimo (Local)'''
  
- Download an extract '''{{{eclipselaunchconfigs.zip}}}''' into your '''{{{$WORKSPACE\.metadata\.plugins\org.eclipse.debug.core\.launches
folder}}}''' and restart eclipse.  You will then automatically have the neccessary configurations
needed to develop and debug Geronimo with eclipse.
- 
- Those who which to create the configurations' by hand, the steps to create these configurations
are...
+ However, those who which to better understand and create the configurations' by hand, the
steps to create these configurations are...
  
  After installing the Maven and Mevenide features, create a new Maven Configuration by going
to '''{{{Project-->Maven-->Manage Configuration}}}''' as shown below.
  
@@ -177, +175 @@

  
  [image2]
  
- On the '''{{{Patterns}}}''' tab define a new File Pattern of '''{{{**/*.java}}}'''.
+ Select the '''{{{Patterns}}}''' tab define a new File Pattern of '''{{{**/*.java}}}'''.
 At the bottom, make sure that '''{{{Auto Build}}}''' is selected.
  
  [image3]
  
- Close the wizard after you are done.  You have now created a maven configuration that will
run automatically through the Eclipse build process whenever a java source file is changed.
 The specified goal will create the updated snapshot jar for one or more projects and will
install them to you maven repository.
+ Close the wizard. You have now created a maven configuration that will run automatically
through the Eclipse build process whenever a java source file is changed.  The specified goal
will create the updated snapshot jar for one or more projects and will install them to you
maven repository.
  
- This maven configuration will be applied to all Geronimo projects since they contain the
maven builder that was automatically added to the .project files with the maven m:eclipse
goal run earlier.  However, we want to disable this for the “Geronimo-assembly” project.
 Right click on the ‘geronimo-assembly’ project and choose '''{{{Maven-->Remove Maven
nature}}}'''.  This will prevent creating a full install snapshot with every build.
+ This maven configuration will be applied to all Geronimo projects since they contain the
maven builder that was automatically added to the .project files with the maven m:eclipse
goal run earlier.  However, we want to disable this for the '''{{{geronimo-assembly}}}'''
project.  Right click on the '''{{{geronimo-assembly}}}''' project and choose '''{{{Maven-->Remove
Maven nature}}}'''.  This will prevent creating a full install snapshot with every build.
Instead for '''{{{geronimo-assembly}}}''', we will create a different launch configuration
specicially for this project.  Since building the '''{{{geronimo-assembly}}}''' is relativaly
time consuming, it will not be configured to be invoked as part of the eclipse auto-build
process.
+ 
+ From the menu, select '''{{{Run --> External Tools --> External Tools... }}}'''
+ 
+ In the wizard, select '''{{{Run Maven}}}''' and hit '''{{{New}}}''' to create a custom configuration
named '''{{{Assemble Geronimo}}}'''. Select the '''{{{Build is happening offline}}}''' option.
 And for the goal to run choose:
+ 
+ {{{
+ assemble
+ }}}
+ 
+ Select the '''{{{Main}}}''' tab and specify the base directory of:
+ 
+ {{{
+ ${workspace_loc:/geronimo-assembly}
+ }}}
+ 
+ Close the wizard.
  
  [image4]
  

Mime
View raw message