Mirror p2 repository locally and use them with Tycho

I am new to p2 repo and Tycho, so maybe I am just missing some simple step.

I want to mirror a knime repository and use it in my build with maven/thyco.

To mirror the repository I used the following commands:

<eclipse-rcp-installation>/eclipse -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source <metadata-repo-url> -destination <dest>

<eclipse-rcp-installation>/eclipse -nosplash -verbose -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication -source <metadata-repo-url> -destination <dest>

I did it for the https://update.knime.com/analytics-platform/4.7, https://update.knime.com/community-contributions/trusted/4.7 and https://update.knime.com/partner/4.7.

I think everything is right, I got the binary, features and plugins folders as well as artifacts.jar and content.jar (that contain the xml).

First of all (even if this would be another question), I am a bit confused about the binary folder. Using other commands, as for example the one described here, the binary folder is skipped. I also did not found any reference to the binary folder in the documentation, usually they speak only about features and plugins.

Going back to the mirroring, I read that Tycho does not support local repositories, so I run a little http server with the command python3 -m http.server --bind 127.0.0.1 808x with ports 8080, 8081 and 8082, one for each repo.

Then, I inserted my repo in the pom file

        <repositories>
                <repository>
                        <id>knime.base.p2</id>
                        <layout>p2</layout>
                        <url>http://localhost:8080</url>
                </repository>
                <repository>
                        <id>knime.community.p2</id>
                        <layout>p2</layout>
                        <url>http://localhost:8081</url>
                </repository>
                <repository>
                        <id>knime.partner.p2</id>
                        <layout>p2</layout>
                        <url>http://localhost:8082</url>
                </repository>
        </repositories>

(of course if I use the real repo instead of localhost, the build works as expected).

I did not find any error in the log file related to the repositories, but then I found a debug line like the following:

[DEBUG] Repositories (dependencies): [knime.base.p2 (http://localhost:8080, p2, disabled), knime.community.p2 (http://localhost:8081, p2, disabled), knime.partner.p2 (http://localhost:8082, p2, disabled), central (https://repo.maven.apache.org/maven2, default, releases)]

I guess, this is the problem. The repositories are disabled. Anyway, I see some requests in my python server, so somehow Tycho is getting some info from the server.

How can I fix this problem? Am I missing some step?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật