Re: [M2] Multiproject best practic and examples ?

2005-11-30 Thread Stephen Cowx

Hi

I don't think they have decided on best practices yet.

I think that this link is the state of the art

http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20build%20more%20than%20one%20project%20at%20once?

What is written there will help you to make a multimodule project but it 
doesn;t really provide any guidlines on the best practices





Marouane Amraoui wrote:


can you help me arround : Multiproject best practic and examples in maven 2

thx in advance

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



.

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Continuous Integration Tool

2005-11-28 Thread Stephen Cowx
I am also using Cruise Control with M2 by doing the same thing however 
the Build Results page does not show particularly detailed (or useful) 
information such as the type of info displayed for Maven 1 builds. 

Do you have the same problem or have you figured out how to integrate 
the Maven 2 build information into the cruise control Build Results page?


regards

Stephen

Pete wrote:


We have CruiseControl working fine with M2 wrapping the MVN command
using ant executable command.

On 25/11/05, Emmanuel Venisse [EMAIL PROTECTED] wrote:
 


This message is clear for me, you provide a wrong url.

Continuum isn't accessible only on localhost address, you can access to it over 
network. We have
some instance over the net.
For the webapp, it's planned for 1.1

Emmanuel

Blaise Gosselin a écrit :
   


I enter the URL of the POM of the Maven 1.x project in Subversion, and I have such a kind 
of error : The URL you provided is not a valid URL.
Moreover, I don't really like the fact that Continuum is only accessible by 
http://localhost:8080/continuum/
I would prefer a webapp, as for CruiseControl, where I can make a link to the 
results.

 _ _ _
bgOnline

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: vendredi 25 novembre 2005 15:49
To: Maven Users List
Subject: Re: Continuous Integration Tool




Blaise Gosselin a écrit :

 


Hello,

What is the best tool to use for Continuous Integration ?

I've already tested the following :
- CruiseControl : good tool but apparently, not yet supported in Maven 2
- Continuum : problem to add a Maven 1.x project, error messages not explicite 
enough, etc.
   


What are your error messages?

Emmanuel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




 



Re: [m2] Copy the dependencies of a project in a custom plugin

2005-11-21 Thread Stephen Cowx

Hi

I would like to take this one step further, I need to obtain the details 
for a single dependency declared in a pom and use it in my plugin:


My plugin, which runs SQL scripts, needs to reference the JDBC driver of 
the plugin users choice.


I need to be able to put the jar file containing this users chosen 
driver onto the classpath that my plugin is using at runtime. 
- I don't want to break the isolation that my plugin has from the other 
dependencies in the users pom, I just need the jdbc driver.
- I don't want to have to specify the jdbc driver as a dependency for my 
own plugin because I want lots of people to be able to use this with 
lots of different drivers.


The only way I can think of to do this is to follow the steps outlined 
in this thread for obtaining a list of artifacts for the pom using the 
plugin, iterate through the list until I find the one the user has 
specified to be their jdbc driver (through a property of some kind) and 
then add that to the classpath being used by my plugin.


Although possible, this is a little unwieldy and I can;t help feeling 
there must be an easy way to do this. 


So...

Is there an existing way to do this, something like my example below 
(note dependency property)


build
   plugins
 plugin
   groupIdmy.group.id/groupId
   artifactIdplugin-sqlrunner/artifactId
   version1.0.0-dev/version
   executions
 execution
   phasetest/phase
   configuration
 user${db-username}/user
  pass${db-password}/pass
  url${db-url}/url
  driveroracle.jdbc.OracleDriver/driver
  onerrorcontinue/onerror

  dependency
  groupIdojdbc/groupId
  artifactIdojdbc/artifactId
  version14/version
  dependency
  files
file${basedir}/src/main/oracle/BillImage.sql/file
file${basedir}/src/main/oracle/RunTimeControls.sql/file
file${basedir}/src/main/oracle/audit.sql/file
file${basedir}/src/main/oracle/CreateSequences.sql/file
  /files
   /configuration
   goals
 goalrunsql/goal
   /goals
 /execution
   /executions
 /plugin
   /plugins


regards

Stephen

Wim Deblauwe wrote:


ok, thanks! That was it.

2005/11/21, Allison, Bob [EMAIL PROTECTED]:
 


The tag @requiresDependencyResolution has to be on the class, not the
parameter.

-Original Message-
From: Wim Deblauwe [mailto:[EMAIL PROTECTED]
Sent: Monday, November 21, 2005 06:41
To: Maven Users List
Subject: Re: [m2] Copy the dependencies of a project in a custom plugin


The collection of artifacts is empty. When I was using dependencies, it
was
not empty. What am I doing wrong? This is my code:

/**
* @goal process-resources
* @description Copy the dependencies for the InstallShield Merge Module
*/
public class MsmProcessResourcesMojo extends AbstractMojo
{
/**
* @parameter expression=${project.artifacts}
* @requiresDependencyResolution
*/
private Collection artifacts;

/**
* @parameter expression=${project.build.directory}/resources
*/
private File targetDirectory;

public MsmProcessResourcesMojo()
{
}

public void execute() throws MojoExecutionException,
MojoFailureException
{
try
{
getLog().info( Process Resources for InstallShield Merge Module... );
Iterator iterator = artifacts.iterator();
while (iterator.hasNext())
{
Artifact artifact = (Artifact)iterator.next();
FileUtils.copyFileToDirectory( artifact.getFile(), new File(
targetDirectory, artifact.getType() + s ) );
}
}
catch (IOException e)
{
throw new MojoExecutionException( Error copying artifacts, e );
}
}
}

thank you,

Wim

2005/11/21, Brett Porter [EMAIL PROTECTED]:
   


maven-artifact and maven-project (though you may not need the project
dependency if you are just using the expression below as it is
runtime, and Mavne provides it).

- Brett

On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote:
 


What dependency do I need for the Artifact and Project classes in my
   


Mojo?
 


2005/11/21, Brett Porter [EMAIL PROTECTED]:
   


On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote:
 


Hi,

I'm writing a custom plugin and I need to copy the project's
   


dependencies
 


from the local repository to a certain directory. How can I do
   


this
   


best?

You should use ${project.artifacts} instead which includes all the
transitive artifacts, and for which you can call
 


artifact.getFile().
   


Make sure you include @requiresDependencyResolution

 


question 2:
When my plugin works, it will produce a different artifact
   


(.msm),
   


how
 


should I handle the 'instal' and 'deploy' of that artifact? Do I
   


need to
 


write my own custom mojo for that or can I re-use the plugins
   


already
 


written for .jar files?
 

Re: [M2] how to run a goal by specifying the plugin only - default goal?

2005-11-21 Thread Stephen Cowx

Hi

I saw some notes on how to do this in:  
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html


See the section on Shortening the Command Line

I haven't tried it so I don't know if it works but it seems to be what 
you are asking for


Regards

Stephen



puschteblume wrote:


I have created a plugin that can be run via buildnumber:create

Then I remembered that the clean plugin can be startet, by simply run 
clean. How I have to declare the plugin that there is a default goal?


Heiko

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Copy the dependencies of a project in a custom plugin

2005-11-21 Thread Stephen Cowx

Hi Brett

In regard to your second solution below:

I tried it out, but I get a parse error when reading the POM 
unrecognised tag: 'dependency'


I dont think the dependency tag is allowed within a plugin tag.

Have I misunderstood your solution?

Here is what I understood you to mean by include my dependency inside the plugin 
declaration

build
   plugins
 plugin
   groupIdcom.group.id/groupId
artifactIdplugin-sqlrunner/artifactId
version1.0.0-dev/version
dependency
  groupIdojdbc/groupId
  artifactIdojdbc/artifactId
  version14/version
/dependency
   executions
 execution
   phasetest/phase
   configuration
   user${db-username}/user
   pass${db-password}/pass
   url${db-url}/url
	   driveroracle.jdbc.OracleDriver/driver 
  onerrorcontinue/onerror

  files
 file${basedir}/src/main/oracle/BillImage.sql/file
 file${basedir}/src/main/oracle/RunTimeControls.sql/file
 file${basedir}/src/main/oracle/audit.sql/file
 file${basedir}/src/main/oracle/CreateSequences.sql/file
   /files
   /configuration
   goals
 goalrunsql/goal
   /goals
 /execution
   /executions
 /plugin
   /plugins
 /build 


Stephen



Brett Porter wrote:


Two ways to solve this:

- have the user specify which dependency to use via configuration:
plugin
 ...
configuration
 jdbcDrivercom.mysql:mysql-driver/jdbcDriver
/configuration
/plugin
...
dependency
 groupIdcom.mysql/groupId
 artifactIdmysql-driver/artifactId
 version5.0.0/version
/dependency

- add the dependency to the plugin declaration and just use the
current classloader (probably the best)
plugin
...
dependency
 groupIdcom.mysql/groupId
 artifactIdmysql-driver/artifactId
 version5.0.0/version
/dependency
/plugin

Cheers,
Brett

On 11/21/05, Stephen Cowx [EMAIL PROTECTED] wrote:
 


Hi

I would like to take this one step further, I need to obtain the details
for a single dependency declared in a pom and use it in my plugin:

My plugin, which runs SQL scripts, needs to reference the JDBC driver of
the plugin users choice.

I need to be able to put the jar file containing this users chosen
driver onto the classpath that my plugin is using at runtime.
- I don't want to break the isolation that my plugin has from the other
dependencies in the users pom, I just need the jdbc driver.
- I don't want to have to specify the jdbc driver as a dependency for my
own plugin because I want lots of people to be able to use this with
lots of different drivers.

The only way I can think of to do this is to follow the steps outlined
in this thread for obtaining a list of artifacts for the pom using the
plugin, iterate through the list until I find the one the user has
specified to be their jdbc driver (through a property of some kind) and
then add that to the classpath being used by my plugin.

Although possible, this is a little unwieldy and I can;t help feeling
there must be an easy way to do this.

So...

Is there an existing way to do this, something like my example below
(note dependency property)

build
   plugins
 plugin
   groupIdmy.group.id/groupId
   artifactIdplugin-sqlrunner/artifactId
   version1.0.0-dev/version
   executions
 execution
   phasetest/phase
   configuration
 user${db-username}/user
  pass${db-password}/pass
  url${db-url}/url
  driveroracle.jdbc.OracleDriver/driver
  onerrorcontinue/onerror
  dependency
  groupIdojdbc/groupId
  artifactIdojdbc/artifactId
  version14/version
  dependency
  files
file${basedir}/src/main/oracle/BillImage.sql/file
file${basedir}/src/main/oracle/RunTimeControls.sql/file
file${basedir}/src/main/oracle/audit.sql/file
file${basedir}/src/main/oracle/CreateSequences.sql/file
  /files
   /configuration
   goals
 goalrunsql/goal
   /goals
 /execution
   /executions
 /plugin
   /plugins


regards

Stephen

Wim Deblauwe wrote:

   


ok, thanks! That was it.

2005/11/21, Allison, Bob [EMAIL PROTECTED]:


 


The tag @requiresDependencyResolution has to be on the class, not the
parameter.

-Original Message-
From: Wim Deblauwe [mailto:[EMAIL PROTECTED]
Sent: Monday, November 21, 2005 06:41
To: Maven Users List
Subject: Re: [m2] Copy the dependencies of a project in a custom plugin


The collection of artifacts is empty. When I was using dependencies, it
was
not empty. What am I doing wrong? This is my code:

/**
* @goal process-resources
* @description Copy the dependencies for the InstallShield Merge Module
*/
public class

Re: [m2] Copy the dependencies of a project in a custom plugin

2005-11-21 Thread Stephen Cowx

Thanks Brett

That worked brilliantly.

regards

Stephen

Brett Porter wrote:


Sorry, it still needs an eclosing dependencies.

- Brett

On 11/22/05, Stephen Cowx [EMAIL PROTECTED] wrote:
 


Hi Brett

In regard to your second solution below:

I tried it out, but I get a parse error when reading the POM
unrecognised tag: 'dependency'

I dont think the dependency tag is allowed within a plugin tag.

Have I misunderstood your solution?

Here is what I understood you to mean by include my dependency inside the plugin 
declaration

build
   plugins
 plugin
   groupIdcom.group.id/groupId
   artifactIdplugin-sqlrunner/artifactId
   version1.0.0-dev/version
   dependency
 groupIdojdbc/groupId
 artifactIdojdbc/artifactId
 version14/version
   /dependency
   executions
 execution
   phasetest/phase
   configuration
  user${db-username}/user
  pass${db-password}/pass
  url${db-url}/url
  driveroracle.jdbc.OracleDriver/driver
  onerrorcontinue/onerror
  files
file${basedir}/src/main/oracle/BillImage.sql/file
file${basedir}/src/main/oracle/RunTimeControls.sql/file
file${basedir}/src/main/oracle/audit.sql/file
file${basedir}/src/main/oracle/CreateSequences.sql/file
  /files
   /configuration
   goals
 goalrunsql/goal
   /goals
 /execution
   /executions
 /plugin
   /plugins
 /build


Stephen



Brett Porter wrote:

   


Two ways to solve this:

- have the user specify which dependency to use via configuration:
plugin
...
configuration
jdbcDrivercom.mysql:mysql-driver/jdbcDriver
/configuration
/plugin
...
dependency
groupIdcom.mysql/groupId
artifactIdmysql-driver/artifactId
version5.0.0/version
/dependency

- add the dependency to the plugin declaration and just use the
current classloader (probably the best)
plugin
...
dependency
groupIdcom.mysql/groupId
artifactIdmysql-driver/artifactId
version5.0.0/version
/dependency
/plugin

Cheers,
Brett

On 11/21/05, Stephen Cowx [EMAIL PROTECTED] wrote:


 


Hi

I would like to take this one step further, I need to obtain the details
for a single dependency declared in a pom and use it in my plugin:

My plugin, which runs SQL scripts, needs to reference the JDBC driver of
the plugin users choice.

I need to be able to put the jar file containing this users chosen
driver onto the classpath that my plugin is using at runtime.
- I don't want to break the isolation that my plugin has from the other
dependencies in the users pom, I just need the jdbc driver.
- I don't want to have to specify the jdbc driver as a dependency for my
own plugin because I want lots of people to be able to use this with
lots of different drivers.

The only way I can think of to do this is to follow the steps outlined
in this thread for obtaining a list of artifacts for the pom using the
plugin, iterate through the list until I find the one the user has
specified to be their jdbc driver (through a property of some kind) and
then add that to the classpath being used by my plugin.

Although possible, this is a little unwieldy and I can;t help feeling
there must be an easy way to do this.

So...

Is there an existing way to do this, something like my example below
(note dependency property)

build
  plugins
plugin
  groupIdmy.group.id/groupId
  artifactIdplugin-sqlrunner/artifactId
  version1.0.0-dev/version
  executions
execution
  phasetest/phase
  configuration
user${db-username}/user
 pass${db-password}/pass
 url${db-url}/url
 driveroracle.jdbc.OracleDriver/driver
 onerrorcontinue/onerror
 dependency
 groupIdojdbc/groupId
 artifactIdojdbc/artifactId
 version14/version
 dependency
 files
   file${basedir}/src/main/oracle/BillImage.sql/file
   file${basedir}/src/main/oracle/RunTimeControls.sql/file
   file${basedir}/src/main/oracle/audit.sql/file
   file${basedir}/src/main/oracle/CreateSequences.sql/file
 /files
  /configuration
  goals
goalrunsql/goal
  /goals
/execution
  /executions
/plugin
  /plugins


regards

Stephen

Wim Deblauwe wrote:



   


ok, thanks! That was it.

2005/11/21, Allison, Bob [EMAIL PROTECTED]:




 


The tag @requiresDependencyResolution has to be on the class, not the
parameter.

-Original Message-
From: Wim Deblauwe [mailto:[EMAIL PROTECTED]
Sent: Monday, November 21, 2005 06:41
To: Maven Users List
Subject: Re: [m2] Copy the dependencies of a project in a custom plugin


The collection of artifacts is empty. When I was using dependencies, it
was
not empty. What am I doing wrong

Where can I get a list of the supported project packaging types

2005-11-14 Thread Stephen Cowx

I cannot find a list.

I know of the following

JAR
EAR
WAR
POM


thanks

Stephen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to create a site in maven 2

2005-11-11 Thread Stephen Cowx

Hi

run C:\TestMaven\amqxtrasmvn site

from the c:\TestMaven\amqxtras directory

the  archetype:create goal and its arguments just create the basic project 
structure.

the site goal creates the website

good luck





Maruf Aytekin wrote:


Hello All,
I am pretty new to maven just trying it for my company. I hve a problem
with creating site. I know that it'd be something so simple. Apologies
for taking your time. My problem is following;

I first created a maven project amqxtras with the following command
C:\TestMaven mvn archetype:create -DgroupId=com.idds.amqxtras
-DartifactId=amqxtras
This created a maven project under amqxtras directory.

When I ran the following to generate site documentation
C:\TestMavenmvn archetype:create -DgroupId=com.idds.amqxtras
-DartifactId=amqxtras -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-site 


I got the following error that amqxtras already exist. What do I do
wrong?


---
[ERROR] BUILD ERROR
[INFO]

-
---
[INFO] amqxtras already exists - please run from a clean directory
[INFO]

-
---
[INFO] For more information, run Maven with the -e switch
[INFO]

-
---
[INFO] Total time: 1 second
[INFO] Finished at: Fri Nov 11 10:52:47 EET 2005
[INFO] Final Memory: 3M/7M
[INFO]

-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: M2 Getting started guide

2005-11-09 Thread Stephen Cowx

Hi

I found the Getting Started guide in SVN and looked through the commit 
history but I couldn't a version which had the multi project info in 
it.  Admittedly I looked at the first and last entries and about 10 
random entries in between before I figured that it might never have been 
in there anyway.  If it was somewhere else in the source tree then there 
is almost no chance I will be able to find it.


If there is anyone on this list who can provide a very quick bullet list 
of how to implement multi projects in maven 2.0 it would help me a great 
deal.  I am familiar with Maven 1 so it can be fairly direct and to the 
point.


regards

Stephen

Brett Porter wrote:


Isn't the old guide still around somewhere?

- Brett

On 11/9/05, Jason van Zyl [EMAIL PROTECTED] wrote:
 


On Tue, 2005-11-08 at 08:51 -0700, [EMAIL PROTECTED] wrote:
   


Hi All

I am also looking for this information and I cannot find any guidance on the
correct structure for multiple projects.  This would be an extremely useful
guide.
 


It's in JIRA, you can vote on it:

http://jira.codehaus.org/browse/MNG-1366

It's pretty high on the list.

   


regards

Stephen

Quoting Mordo, Aviran (EXP N-NANNATEK) [EMAIL PROTECTED]:

 


I have just started to evaluate Maven  myself, and was looking for this
information of how to setup multiple projects.

Aviran
http://www.aviransplace.com

-Original Message-
From: Pete [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 08, 2005 7:23 AM
To: Maven Users List
Subject: M2 Getting started guide

The M2 getting starting guide used to go on to explain how to set up a
parent project and child projects with a simple example (parent etc) ,
this seems to have gone completely from the guide.

I have this working myself, but was pointing others in the this
direction for information.

The mini guides have nothing on multi project.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 


--
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

First, the taking in of scattered particulars under one Idea,
so that everyone understands what is being talked about ... Second,
the separation of the Idea into parts, by dividing it at the joints,
as nature directs, not breaking any limb in half as a bad carver might.

 -- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




 





Re: M2 Getting started guide

2005-11-09 Thread Stephen Cowx
Thank you Brett :) 


Having read the old guide, I now know I was going nowhere fast without it.

regards

Stephen

Brett Porter wrote:


The old one is:

http://maven.apache.org/maven2/getting-started.html

- Brett

On 11/9/05, Stephen Cowx [EMAIL PROTECTED] wrote:
 


Hi

I found the Getting Started guide in SVN and looked through the commit
history but I couldn't a version which had the multi project info in
it.  Admittedly I looked at the first and last entries and about 10
random entries in between before I figured that it might never have been
in there anyway.  If it was somewhere else in the source tree then there
is almost no chance I will be able to find it.

If there is anyone on this list who can provide a very quick bullet list
of how to implement multi projects in maven 2.0 it would help me a great
deal.  I am familiar with Maven 1 so it can be fairly direct and to the
point.

regards

Stephen

Brett Porter wrote:

   


Isn't the old guide still around somewhere?

- Brett

On 11/9/05, Jason van Zyl [EMAIL PROTECTED] wrote:


 


On Tue, 2005-11-08 at 08:51 -0700, [EMAIL PROTECTED] wrote:


   


Hi All

I am also looking for this information and I cannot find any guidance on the
correct structure for multiple projects.  This would be an extremely useful
guide.


 


It's in JIRA, you can vote on it:

http://jira.codehaus.org/browse/MNG-1366

It's pretty high on the list.



   


regards

Stephen

Quoting Mordo, Aviran (EXP N-NANNATEK) [EMAIL PROTECTED]:



 


I have just started to evaluate Maven  myself, and was looking for this
information of how to setup multiple projects.

Aviran
http://www.aviransplace.com

-Original Message-
From: Pete [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 08, 2005 7:23 AM
To: Maven Users List
Subject: M2 Getting started guide

The M2 getting starting guide used to go on to explain how to set up a
parent project and child projects with a simple example (parent etc) ,
this seems to have gone completely from the guide.

I have this working myself, but was pointing others in the this
direction for information.

The mini guides have nothing on multi project.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




 


--
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

First, the taking in of scattered particulars under one Idea,
so that everyone understands what is being talked about ... Second,
the separation of the Idea into parts, by dividing it at the joints,
as nature directs, not breaking any limb in half as a bad carver might.

-- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






 



   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




 





Re: M2 Getting started guide

2005-11-09 Thread Stephen Cowx

Hi Jason

I got the URL of the original guide from Brett this morning.  Using 
that, I have set up my project as a multi module build.


It is early days for me on my project so all I really needed was
1) A single point from where I can kick off a complete system wide build
2) A means of logically linking my artifacts into a coherent unit.
3) Project inheritance

It works and I am really pleased with the result.  I am liking M2

I know that you will have to sort out various best practices issues 
before writing documentation in some detail but I would like to suggest 
that you do at least publish a How to of some kind so that while you 
decide what the best practices are, people can still go ahead and use 
the feature in whatever way they think best for now.  The old docs were 
quite enough to get me going.


I did read yours and Jesse's comments in your links.  Without getting 
into too much detail, I think that I agree wholeheartedly with Jesse 
that a flat structure comprised of a set of artifacts of equal standing 
is a great way to do this. 


regards

Stephen

Following

Jason van Zyl wrote:


On Wed, 2005-11-09 at 08:54 +, Stephen Cowx wrote:
 


Hi

I found the Getting Started guide in SVN and looked through the commit 
history but I couldn't a version which had the multi project info in 
it.  Admittedly I looked at the first and last entries and about 10 
random entries in between before I figured that it might never have been 
in there anyway.  If it was somewhere else in the source tree then there 
is almost no chance I will be able to find it.


If there is anyone on this list who can provide a very quick bullet list 
of how to implement multi projects in maven 2.0 it would help me a great 
deal.  I am familiar with Maven 1 so it can be fairly direct and to the 
point.
   



It is specifically not in there until some issues regarding best
practices are resolved 


http://docs.codehaus.org/pages/viewpage.action?pageId=36790

Jesse also has some thoughts:

http://docs.codehaus.org/pages/viewpage.action?pageId=36796

What's there in the old guide will get you going and I can pop something
into the doco but things like version management and directory
structuring in multi project (really multi module) builds will crop up
as the first questions when setting up your own project so I was trying
to get some of these issues resolved before writing the guide for multi
project builds.