Chciałbym stworzyć nowy projekt Maven w Eclipse przy użyciu archetypu za pomocą kreatora New Maven Project. W kroku "Wybierz Archetyp" mam trzy katalogi do wyboru: Nexus Indexer
, Internal
i Default Local
. Nie rozumiem, skąd pochodzą treści z tych katalogów. Jeśli kliknę przycisk "Konfiguruj", wszystkie są wyszarzone i nie mogę ich modyfikować.Wybór Archetypu przy użyciu m2eclipse
Tylko katalog Internal
zawiera wszystkie wymienione w nim archetypy. Skąd pochodzą te archetypy? Nie pochodzi z mojego lokalnego repozytorium Maven, ponieważ grupa/artefakty nie są w nim (a archetypy w repo nie są wymienione).
Dlaczego lista Nexus Indexer
jest pusta? Czytałem niektóre posty, które wymagają aktualizacji indeksu Nexusa, ale nie w jaki sposób to zrobić. Czy to różni się od indeksów repozytorium (które są aktualizowane codziennie).
Jak widać, jestem trochę zdezorientowany całym biznesem katalogowym i jak Maven, m2eclipse i Nexus wchodzą ze sobą w interakcje. Wszelkie wyjaśnienia są mile widziane!
Moja konfiguracja:
- Eclipse: Helios Service Release 2 (Build id: 20110218-0911)
- Apache Maven 3.0.3
- m2eclipse: 0.12.1.20110112-1712 (skonfigurowane do korzystania Maven zainstalować zewnętrzny)
- Sonatype Nexus ™ Open Source Edition, wersja: 1.9.0.2
Mój lokalny settings.xml Maven wygląda następująco:
<settings>
<mirrors>
<mirror>
<!--This sends everything else to /public -->
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://myserver:8080/nexus/content/groups/public</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>nexus</id>
<!--Enable snapshots for the built in central repo to direct -->
<!--all requests to nexus via the mirror -->
<repositories>
<repository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<!--make the profile active all the time -->
<activeProfile>nexus</activeProfile>
</activeProfiles>
<servers>
<server>
<id>my-snapshots</id>
<username>user</username>
<password>password</password>
</server>
<server>
<id>my-releases</id>
<username>user</username>
<password>password</password>
</server>
</servers>
</settings>
Hmm, "Chciałbym zobaczyć odpowiedź na to pytanie, ponieważ mam problem z utworzeniem projektu Tapestry, powinien on być wymieniony, ale nie jest i nie mam pojęcia, jak to naprawić, bummer! –