Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Set eclipse.p2.mirrors within <properties>?

Hi Igor,

> 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>

Cool, now that you pointed my to the Tycho-understood equivalent of
eclipse.p2.mirrors, I was able to track it down in the Wiki. :-)

But for some strange reason, that property does not work when placed in
a profile; I had to place it on the command line. Does anyone know why?

Regarding the use of profiles vs. settings:

Our "build-server" profile is a bit special, as it describes both an
environment (our Hudson instance at eclipse.org) and an intention
(produce a release build). The latter implies that the build will be
signed, for example -- which works only on eclipse.org servers, thus
tying it to the former.

Other borderline options are tycho.localArtifacts=ignore, which does not
describe the environment, but very much states an intention (be
reproducible) and tycho.disableP2Mirrors. And, given the prevalence of
"gneerate-javadoc" or "generate-sources" profiles, which are all about
intention rather than environment, I think having a single
"release/build-server" profile in SCM does not stray that much from the
Maven Way.

Also, from a purely practical standpoint, we cannot edit the
settings.xml of our HIPP ourselves (which comes pre-filled with the
credentials to repo.eclipse.org). We can, however, edit our POM's profiles.

But the discussion about profiles in this case is moot as long as
neither eclipse.p2.mirrors nor tycho.disableP2Mirrors work in profiles.
(No idea why.)

Best wishes,

Andreas

-- 
Codetrails UG (haftungsbeschränkt)
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940


Back to the top