To start the discussion we utilize properties files in maven 1.0.2 to
set global properties (so we don't have to use multiple
-Dproperty.value=x with each call to maven) to provide total project
properties to everyone working on subprojects. But since maven 2.0 does
not read properties files any more I am trying to solve the problem
below.
We are currently using Maven 1.0.2 for a large project. It has a
hierarchy similar to the following:
base project/
subproject 1/
service
subproject 2/
service
model
subproject 3/
service
subproject 4/
service
model
web
ear
subproject 5/
service
model
web
ear
With in the system we have generic scripts that build individual
subprojects using multiproject goals. Note not all subprojects are
built at the same time. But many refer to artifacts of other projects.
Additionally we utilize the scm plugin to tag the latest version of code
automatically. Build on a central server are done in the form:
maven multiproject:install
if successful loop on subdirectories service, model, web, ear, etc
maven scm:prepare-release # to set new version of all
artifacts
update base project/project.properties file with new version
of this artifact
maven multiproject:deploy
Individual service/project.xml files extend two levels up and have
entries that refer to generic current.version properties to be sure they
utilize the most current version of these artifacts.
<?xml version="1.0" encoding="UTF-8"?>
<project>
<extend>${basedir}/../../project.xml</extend>
<pomVersion>1</pomVersion>
<name>Assembly Service</name>
<id>Assembly-services</id>
<groupId>Assembly</groupId>
<artifactId>Assembly-services</artifactId>
<currentVersion>1.22</currentVersion>
<dependencies>
<dependency>
<groupId>jboss</groupId>
<artifactId>jboss-j2ee</artifactId>
<version>3.2.3</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>LocalUtilities</groupId>
<artifactId>utilities</artifactId>
<version>${OurProject.utilities.service.current.version}</version>
</dependency>
</project>
Any ideas on how to set a global project level file to set these values
for multiple subprojects such that each individual subproject
project.xml does not need to be hand modified when a centralized build
is performed?
Gordon Watson
System Architect
RLPTechnologies
248 991 1021
www.rlpt.com
*****************************************************************
This message has originated from RLPTechnologies,
26955 Northwestern Highway, Southfield, MI 48034.
RLPTechnologies sends various types of email
communications. If this email message concerns the
potential licensing of an RLPT product or service, and
you do not wish to receive further emails regarding Polk
products, forward this email to [EMAIL PROTECTED]
with the word "remove" in the subject line.
The email and any files transmitted with it are confidential
and intended solely for the individual or entity to whom they
are addressed.
If you have received this email in error, please delete this
message and notify the Polk System Administrator at
[EMAIL PROTECTED]
*****************************************************************