[Design of JBoss Build System] - Maven home being overridden in AS?
by jaikiran
Looks like the AS builds (Branch_5_x and trunk) use their own Maven home? While building i see this:
maven-init:
| [echo] Maven Home set to /blah/blah/JBoss_Branch_5_x/tools/maven
|
On my system, i have configured Maven to use a non-default local repo (so my repo is at /opt/maven/repository instead of the default /home/me/.m2/repository). But now since Maven home is being overridden in the build, the settings.xml of "my" Maven home are ignored and as a result, during the build Maven starts downloading the entire world into the default /home/me/.m2/repository.
Any specific reason why the Maven is being shipped within AS and Maven home being pointed to that? And how do we take care of this issue? Copy my settings.xml to the local workspace of AS tools/maven?
On a related note, looking at the settings.xml in the AS/tools/maven/conf folder, i don't see any JBoss specific repositories or other configuration. I wonder how it's able to download the JBoss artifacts.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242969#4242969
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242969
16 years, 9 months
[Design of JBoss Build System] - Re: Overriding the default pom.xml during AS build
by jaikiran
"pgier" wrote : Just to clarify, the code that you referenced is in build/build.xml and now also in testsuite/build.xml.
|
Correct.
"pgier" wrote :
| The one in build/build.xml generates the properties and filesets that are used to gather all the jars into the distribution. You could certainly parameterize this just by changing
| <pom file="../thirdparty/pom.xml"/>
| |
| To something like:
| <pom file="${thirdparty.pom}"/>
| |
|
That would be helpful.
"pgier" wrote :
| But changing this wouldn't affect the module builds, so I'm not sure if it would accomplish what you are asking for.
|
Right. But i will be ensuring that i will use the same overriden pom file during the module builds too.
anonymous wrote :
| And there isn't any way that I know of to tell maven to use a different file for that module because the -f option only affects the current directory. I looked into something similar to this a while back (MNG-3150)
That's interesting. Infact i was going to try using the -f option for multi-module project.
The usecase that i am working on involves a custom plugin which will trigger the Maven build for a given project. So if the thirdparty pom file name could be configurable then i could use that param through my plugin to trigger the build.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242947#4242947
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242947
16 years, 9 months
[Design of JBoss Build System] - Re: Overriding the default pom.xml during AS build
by pgier
Just to clarify, the code that you referenced is in build/build.xml and now also in testsuite/build.xml.
The one in build/build.xml generates the properties and filesets that are used to gather all the jars into the distribution. You could certainly parameterize this just by changing
<pom file="../thirdparty/pom.xml"/>
|
To something like:
<pom file="${thirdparty.pom}"/>
|
But changing this wouldn't affect the module builds, so I'm not sure if it would accomplish what you are asking for.
If the goal is to build against various versions of dependencies then what would have to change is component-matrix/pom.xml. And there isn't any way that I know of to tell maven to use a different file for that module because the -f option only affects the current directory. I looked into something similar to this a while back (MNG-3150)
So when building the whole app server from the root directory, I'm kind of stuck with whatever is in component-matrix/pom.xml.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242941#4242941
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242941
16 years, 9 months