Compiling XWiki enterprise with changes in Platform after changes in SVN

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling XWiki enterprise with changes in Platform after changes in SVN

Tiago Rinck Caveden
Hello all!

After the recent changes on the SVN directories, how can I compile the XWiki
Enterprise using the changes I have done on XWiki Platform?
When I execute the compile it downloads a pre-compiled build of XWiki
Platform.

Thank you,
--
Tiago Rinck Caveden
http://caveden.multiply.com
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Tiago Rinck Caveden
http://caveden.multiply.com
Reply | Threaded
Open this post in threaded view
|

Re: Compiling XWiki enterprise with changes in Platform after changes in SVN

vmassol
Administrator
Hi Tiago,

On Sep 4, 2008, at 10:18 AM, Tiago Rinck Caveden wrote:

> Hello all!
>
> After the recent changes on the SVN directories, how can I compile  
> the XWiki
> Enterprise using the changes I have done on XWiki Platform?
> When I execute the compile it downloads a pre-compiled build of XWiki
> Platform.

You need to build the modules to which you brought modifications to.  
If you made modifications to some modules in the platform then you  
need to build them.
You should thus build the whole platform and then enterprise.

See also http://dev.xwiki.org/xwiki/bin/view/Community/Building
note: if that page isn't clear it would be nice if you could help make  
it better :)

Thanks
-Vincent
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Reply | Threaded
Open this post in threaded view
|

Re: Compiling XWiki enterprise with changes in Platform after changes in SVN

Tiago Rinck Caveden
Hello!

On Thu, Sep 4, 2008 at 10:30 AM, Vincent Massol <[hidden email]> wrote:

> You need to build the modules to which you brought modifications to.
> If you made modifications to some modules in the platform then you
> need to build them.
> You should thus build the whole platform and then enterprise.



That I know, but if I simply build in the order you suggest, when I come to
the enterprise and make the build, it downloads the platform modules from
the official repository.
What I'd like to know is how to tell maven to get the module that I've
already built, or even better, to start the build of these modules
automatically.

Okay, I know that I can study all the POM's and Maven to figure out myself
how to do it, but on the other hand, I imagine some of you probably do it
already on your daily work, so you can quickly tell me how, that would save
me some hours of effort and would let at least here in the mailing list the
"documented answer". I could then go to the page you suggest and add the
info there...

Thanks,
--
Tiago Rinck Caveden
http://caveden.multiply.com
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Tiago Rinck Caveden
http://caveden.multiply.com
Reply | Threaded
Open this post in threaded view
|

Re: Compiling XWiki enterprise with changes in Platform after changes in SVN

vmassol
Administrator

On Sep 4, 2008, at 11:03 AM, Tiago Rinck Caveden wrote:

> Hello!
>
> On Thu, Sep 4, 2008 at 10:30 AM, Vincent Massol <[hidden email]>  
> wrote:
>
>> You need to build the modules to which you brought modifications to.
>> If you made modifications to some modules in the platform then you
>> need to build them.
>> You should thus build the whole platform and then enterprise.
>
>
>
> That I know, but if I simply build in the order you suggest, when I  
> come to
> the enterprise and make the build, it downloads the platform modules  
> from
> the official repository.
> What I'd like to know is how to tell maven to get the module that I've
> already built, or even better, to start the build of these modules
> automatically.

Maven uses the most recent dependencies, first looking in your local  
repository. So if you have built it this will be the most recent  
version. Unless our CI build has generated a more recent version.

So if you want to tell maven not to look in the remote repository you  
need to work in offline mode: maven -o

Thanks
-Vincent

>
>
> Okay, I know that I can study all the POM's and Maven to figure out  
> myself
> how to do it, but on the other hand, I imagine some of you probably  
> do it
> already on your daily work, so you can quickly tell me how, that  
> would save
> me some hours of effort and would let at least here in the mailing  
> list the
> "documented answer". I could then go to the page you suggest and add  
> the
> info there...
>
> Thanks,
> --
> Tiago Rinck Caveden
> http://caveden.multiply.com
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Reply | Threaded
Open this post in threaded view
|

Re: Compiling XWiki enterprise with changes in Platform after changes in SVN

Tiago Rinck Caveden
On Thu, Sep 4, 2008 at 11:10 AM, Vincent Massol <[hidden email]> wrote:

> Maven uses the most recent dependencies, first looking in your local
> repository. So if you have built it this will be the most recent


Well, then maybe what I'm expecting is not right anymore.
I changed the platform/pom/pom.xml, the goal was to change the generated
xwiki.cfg. I changed the xwikiCfgPlugins and the
xwikiCfgAdditionalProperties. But these changes are not propagating to the
final xwiki.cfg.

Should they propagate or it doesn't work like that anymore?

Thanks,
--
Tiago Rinck Caveden
http://caveden.multiply.com
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Tiago Rinck Caveden
http://caveden.multiply.com
Reply | Threaded
Open this post in threaded view
|

Re: Compiling XWiki enterprise with changes in Platform after changes in SVN

Sergiu Dumitriu-2
Tiago Rinck Caveden wrote:

> On Thu, Sep 4, 2008 at 11:10 AM, Vincent Massol <[hidden email]> wrote:
>
>> Maven uses the most recent dependencies, first looking in your local
>> repository. So if you have built it this will be the most recent
>
>
> Well, then maybe what I'm expecting is not right anymore.
> I changed the platform/pom/pom.xml, the goal was to change the generated
> xwiki.cfg. I changed the xwikiCfgPlugins and the
> xwikiCfgAdditionalProperties. But these changes are not propagating to the
> final xwiki.cfg.
>
> Should they propagate or it doesn't work like that anymore?

If you build only that module, then it won't be OK.

XE includes all other modules in the XE/web module.

XE/web depends on platform/web.

platform/web depends on the core.

The core depends on the parent pom.

So, if you don't build one of the items from this dependency chain, it
will be downloaded from the external repositories.

To make sure your changes are found in the final XE archive, you should
build the whole platform trunks, then build the enterprise project using
the -o maven parameter.

If it doesn't work, then somebody forgot to update some of the
dependency versions, and the wrong pom ends up in the build. You should
check the version in the modified pom and the one in the resulting archive.

--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Reply | Threaded
Open this post in threaded view
|

Re: Compiling XWiki enterprise with changes in Platform after changes in SVN

Tiago Rinck Caveden
On Thu, Sep 4, 2008 at 6:04 PM, Sergiu Dumitriu <[hidden email]> wrote:

> To make sure your changes are found in the final XE archive, you should
> build the whole platform trunks, then build the enterprise project using
> the -o maven parameter.


I was doing like that.
On the root of the platform dir (platform trunks):
mvn -Pwindows
On the root of the enterprise dir:
mvn -o -Pwindows,mysql

It's interesting to note that the problem is only with the POM->xwiki.cfg.
The source files I'm changing have their changes propagated to the final
build.



> If it doesn't work, then somebody forgot to update some of the
> dependency versions, and the wrong pom ends up in the build. You should
> check the version in the modified pom and the one in the resulting archive.


Resulting archive you mean maven repository?
What do you call "version"? The SVN revision? How would I check that for the
resulting archive?

--
Tiago Rinck Caveden
http://caveden.multiply.com
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Tiago Rinck Caveden
http://caveden.multiply.com