[ARCHETYPE-528] Archetype:generate from repos besides central does not work

Đang mở
#810 8 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java
Lĩnh vực
build-system

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lệnh maven-archetype-plugin:generate với -DarchetypeCatalog=remote và settings.xml đính kèm. Theo dõi cách catalog từ xa và các ID của repository/server được chọn, sau đó so sánh hành vi với ARCHETYPE-519 và ARCHETYPE-654. Hoàn thành khi catalog từ xa bên ngoài Central được tìm kiếm và bộ lọc org.camunda.bpm.archetype tìm thấy archetype của nó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug priority:critical

João Cabrita opened ARCHETYPE-528 and commented

mvn -X -P camunda -DarchetypeCatalog=remote  org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate -Dfilter=org.camunda.bpm.archetype:

Results in the following:

[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate' with basic configurator -->
[DEBUG]   (f) archetypeCatalog = remote
[DEBUG]   (f) basedir = C:\Users\joao.cabrita\projects\bpm
[DEBUG]   (f) filter = org.camunda.bpm.archetype:
[DEBUG]   (f) interactiveMode = true
[DEBUG]   (f) localRepository =       id: local
      url: file:///C:/Users/joao.cabrita/.m2/repository/
   layout: default
snapshots: [enabled => true, update => always]
 releases: [enabled => true, update => always]

[DEBUG]   (f) remoteArtifactRepositories = [      id: central
      url: https://app.camunda.com/nexus/content/repositories/camunda-bpm
   layout: default
    proxy: proxy.brisa.pt:3128
snapshots: [enabled => true, update => daily]
 releases: [enabled => true, update => daily]
,       id: archetype
      url: https://app.camunda.com/nexus/content/repositories/camunda-bpm
   layout: default
    proxy: proxy.brisa.pt:3128
snapshots: [enabled => true, update => daily]
 releases: [enabled => true, update => daily]
]
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@325f7fa9
[DEBUG] -- end configuration --
[INFO] Generating project in Interactive mode
[DEBUG] Searching for remote catalog: https://repo.maven.apache.org/maven2/archetype-catalog.xml
[WARNING] No archetype found in remote catalog. Defaulting to internal catalog
[INFO] Your filter doesn't match any archetype, so try again with another value.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

I've attached my settings.xml file.


Affects: 3.0.1

Attachments:

Issue Links:

  • ARCHETYPE-654 Clarify repository/server id used for custom repository catalog

  • ARCHETYPE-519 archetype:generate with specified remote archetypeCatalog falls back to internal catalog

4 votes, 11 watchers

Ngôn ngữ chính
Java
Star
147
Fork
186
Merge trung bình
11 giờ 43 phút
Pull request đã merge (30 ngày)
35

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/maven-archetype

Tất cả issue của apache/maven-archetype

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.