Difference between revisions of "FR3403603 Mavenize"

From ADempiere
Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.
(Running the mavenized adempiere-server)
(Developming with the mavenized adempiere)
Line 252: Line 252:
  
 
*'''Note:''' We are still looking for better ways to work with the mavenized project(s) and modules
 
*'''Note:''' We are still looking for better ways to work with the mavenized project(s) and modules
 +
*Check out the branch from the adempiere repo
 +
*Make sure that you have maven-3.0.3 installed
 +
*Make sure that the following environment varialbe is set
 +
MAVEN_OPTS=-Xmx1024m
 +
*Go to the checked out base directory and run
 +
mvn install
 +
 +
This should build adempiere at
 +
/assembly/adempiere-dist/jboss/target
  
 
<!--
 
<!--

Revision as of 07:02, 27 November 2011

Technical Specifications

Introduction

Overview

  • Tasks:
    • Define time schedule together with TT and FT for organize the switch to maven build process
    • Prepare training for all developers who don't know about maven building philosophy and how it works in the ADempiere world


References

Feature Request
  1. 3403603 "Mavenize ADempiere" [1]
Related task that includes an analysis of the current ant-based build process
Feature: Cleanup of Ant build scripts
Forum thread about this task
http://sourceforge.net/projects/adempiere/forums/forum/611167/topic/4659270
Maven
home page: http://maven.apache.org/
Maven IDE for eclipse: http://mevenide.codehaus.org/
ADempiere Software development procedure
http://www.adempiere.com/Software_Development_Procedure
Mercurial home page
http://mercurial.selenic.com/
ADempiere HG repo
http://adempiere.hg.sourceforge.net:8000/hgroot/adempiere/adempiere
ADempiere Maven-Repo
http://nexus.adempiere.de/nexus
  • Tobi 08:28, 7 September 2011 (UTC) : feel free to contact me for a "deployer" account, meaning that you can deploy artifacts to this repo, if they are not found anywhere else

How to access the maven repo

  • Paste this into your local maven settings.xml to access the repository:
<repository>
	<releases>
		<enabled>true</enabled>
		<updatePolicy>always</updatePolicy>
		<checksumPolicy>fail</checksumPolicy>
	</releases>
	<snapshots>
		<enabled>true</enabled>
	</snapshots>
	<id>adempiere-public</id>
	<url>http://nexus.adempiere.de/nexus/content/groups/public/</url>
</repository>

Development

Directory Layout

common
contains the common code: base, patches-ecs (extracted from tools with a meaningful name)
desktop client
the desktop client
web-client
the various web clients and application, with code separated from webapp to ease dependency management of extensions
JasperReports
the jasper report library, ejb bean, and web application
lagacy
contains unused projects: looks and interface (both was empty), serverApps and serverRoot (what remains after the code and webapp has been extracted), tools, JasperReportsTools, sqlj and posterita
server
the server components, and installation
assembly
the ear assemblies, will contain the webstart client when its ready, and the final assemblies

As of now the ear and war assemblies have still to be finalized, because it will depends on how all of adempiere will be assembled. Webstart client has still to be done, and there are still some directory layout changes that could be done.


Developers

Please add you here if you want to help.

Testers

Sponsors

Tobi 06:28, 23 November 2011 (UTC) Other developers, testers and so on: feel free to add your company, if it donated time, money or infrastructure (or something else I forgot to mention :-) )

Branch code

  • Branch name is feature/FR3403603_mavenize

Roadmap Document

Use/Extend the table as required

Functionality / Feature Status Developer Priority Milestone Release Date Summary
Migration Steps
Migrate java code to compile with maven Done Freepath High Version No -- Draft
Install and setup maven mirror Done Tobi/Banym High Version No -- Draft
upload missing artifacts Done Freepath High Version No -- Draft
Finalize assemblies In progress Teo/Tobi High Version No -- Draft
Provide developer docs Pending Tobi High Version No -- Draft

Tracker

Migration Script

Oracle

/misc/src/main/resources/migration/370lts-release/oracle/820_FR3403603_drop_MyValidator.sql

PostgreSQL

/misc/src/main/resources/migration/370lts-release/postgresql/820_FR3403603_drop_MyValidator.sql

Install Step

Running the mavenized adempiere-server

  • Download and extract the latest snapshot from
http://nexus.adempiere.de/nexus/content/repositories/snapshots/org/adempiere/TODO
  • Execute RUN_Setup
    • IMPORTANT Currently, the setup will only work with JBoss
    • After making the settings, the setup process will finish very quickly. This is because most of the thing done by the old process ^have already been done during the maven build
  • Import the DB seed (Execute utils/)
  • Execute the migration script to get rid of the "MyModelValidator" sample GardenWorld validator
  • Start the server with /utils/RUN_Server2.sh

Developming with the mavenized adempiere

  • Note: We are still looking for better ways to work with the mavenized project(s) and modules
  • Check out the branch from the adempiere repo
  • Make sure that you have maven-3.0.3 installed
  • Make sure that the following environment varialbe is set
MAVEN_OPTS=-Xmx1024m
  • Go to the checked out base directory and run
mvn install

This should build adempiere at /assembly/adempiere-dist/jboss/target