Using maven android archetype with eclipse

后端 未结 2 1393
清酒与你
清酒与你 2021-01-31 22:04

I am trying to use the following archetype. https://github.com/akquinet/android-archetypes/wiki/Android-release-archetype

I can follow the instructions on the page fine

2条回答
  •  长发绾君心
    2021-01-31 22:53

    1. Install m2eclipse plugin
    2. create new maven project
    3. next button takes you to archetype selection
    4. optionally configure archetype catalogues, shouldn't be necessary for this archetype (android-release), as the latest version 1.0.5 is in the central maven repo.
    5. next, next, next ...

    Update:

    To get it working I did the following:

    1. download http://repo1.maven.org/maven2/archetype-catalog.xml save it as user-home/.m2/central-archetype-catalog.xml
    2. in eclipse create new maven project
    3. next button
    4. configure catalogs, add new local catalog point to file created in step 1.
    5. after closing the catalog configuration dialog, make sure that the drop-down catalog selector is on all catalogs or on the new local catalog that you just defined
    6. in the filter type 'android-release'
    7. select the android-release archetype and click next
    8. enter your selected group-id and artifact-id

    I did notice a problem reported that the project directory could not be renamed.
    The project had been created on disk, so I imported it into eclipse using
    Import > Maven > Existing maven projects

提交回复
热议问题