[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Set eclipse.p2.mirrors within <properties>?
|
Whether to use proxy or not is environment-specific configuration and as
such does not belong project source tree. Use user/global settings.xml
file is more appropriate place to capture such environment
configuration. Here is settings.xml snippet you can use
<profiles>
...
<profile>
<id>p2</id>
<properties>
<tycho.disableP2Mirrors>true</tycho.disableP2Mirrors>
</properties>
</profile>
</profiles>
<activeProfiles>
...
<activeProfile>p2</activeProfile>
</activeProfiles>
--
Regards,
Igor
On 1/17/2014, 6:57, Andreas Sewe wrote:
Hi all,
when building our software with Tycho on an eclipse.org server, I'd like
to avoid hitting outside p2 mirrors, i.e., I want to build with
-Declipse.p2.mirrors=false.
Now, of course I can set this parameter on the command-line when I
invoke "mvn", but adding this to ten Hudson configs is tedious and
error-prone. Also, given that we have a build-server profile already, I
would like to set this property automatically whenever the build-server
profile is active.
Unfortunately, <properties> defined in the pom.xml are not the same as
properties set on the command line through "-D". Hence, I am wondering
whether there exists a configuration option somewhere that controls the
use of mirrors (and whose default value is probably the expression
${eclipse.p2.mirrors}). Does such an option exist?
Best wishes,
Andreas