I may be a little ignorant (since I use NetBeans instead of Visual
Studio), but it sounds like you need something in VS to run just before
invoking Maven.  I know that NetBeans has the ability to add modules
which alter the default behavior (the Maven 2 integration module is an
example).  You might need to do something like that for VS.

The other alternative is something like I have seen for Eclipse (which
builds Eclipse projects from Maven projects) but in reverse; a mojo that
builds a POM from the .csproj files.  The problem is that this goal
would probably have to run in a separate Maven invocation from actual
builds, even for single projects.

-----Original Message-----
From: Mark Koops [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 08, 2006 07:32
To: 'Maven Developers List'
Subject: RE: How to execute a plugin prior to the reactor sorting?


Kenney,

Thanks for you response. I understand that in the ideal case all meta
data needed to perform a build is stored in the pom files. This sounds
logic looking from a Maven persective. But I think this will not work
for our team, as Maven has no native integration with the Visual Studio
IDE. 

We like to provide a build solution that is centered around the .csproj
files instead of the pom files. This would allow our developers to
create their C# software projects (including the definition of both
external-dll-references and project-references) in their IDE without a
need to bother about the pom files. From the developers perspective a
very important requirement about the build infrastructure is that he/she
can use the IDE to build and debug the project directly.

In the ideal case we are able to let Maven adapt its build order
automatically to the content c# projects through a plugin that is aware
of the content of solution files and csproj-files.

So again the question: Is there a way to perform my mojo prior to
sorting the reactor? Or should I write some sort of event handler that
listens to a build event to extend the project definition while the pom
file is loaded and analyzed?

Thanks in advance for any suggestions,

Mark Koops
GE Healthcare




-----Original Message-----
From: Kenney Westerhof [mailto:[EMAIL PROTECTED] 
Sent: maandag 7 augustus 2006 15:50
To: Maven Developers List
Subject: Re: How to execute a plugin prior to the reactor sorting?




Mark Koops wrote:
> Hi all,
>  
> I have been creating a plugin that extends the dependencies in the 
> Maven projects in the reactor programmatically based on the references

> found is associated C# project files (.csproj files). This is all 
> working fine but I am wondering how I can get the references injected 
> as dependencies before the reactor is being sorted. I need this to get

> the artifacts builds before they are resolved as build dependencies.
>   
The idea is that the pom.xml is fully describing the needed
dependencies, so if you're missing the .csproj files in the repository
then you can't 
build.
So I think you're going about this the wrong way.

What you could do is write a plugin that updates the pom using the 
information
in the .csproj files. Ideally the pom is the basis of all project
metadata, so if you need other deps/refs in the .csproj, you should
update the pom and then re-run the plugin that created the .csproj (if
there is one out 
there..)

-- Kenney
>  
> Is there a way to force mojo executions to be done prior to the 
> reactor being sorted? I've tried the validate phase but found this to 
> be executed after reactor sorting. Does anyone know about another 
> plugin that deals with this or a similar problem?
>  
> Or is there a mechanism to force resorting of the build reactor after 
> changing project definition within a plugin?
>  
> Hope anyone can give me clue.
>  
> Thanks in advance,
>  
> Mark Koops
> GE Healthcare
>
>   

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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.7/410 - Release Date: 5-8-2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.7/410 - Release Date: 5-8-2006
 


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


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.

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

Reply via email to