[ovs-discuss] [controller-dev] build failure when 'mvn archetype:generate' using '-DarchetypeCatalog'

Sam batmanustc at gmail.com
Sat Apr 22 09:35:18 UTC 2017


Some one on stackoverflow tell me this way, does this work?

http://stackoverflow.com/questions/43513597/whats-this-bug-of-maven3-3-9-while-init-opendaylight-archetecture/43536552#43536552

change .m2/setting.xml as he said, and then use '-DarchetypeCatalog=remote'.


2017-04-21 21:03 GMT+08:00 Michael Vorburger <vorburger at redhat.com>:

> Sam,
>
> On Fri, Apr 21, 2017 at 10:35 AM, Sam <batmanustc at gmail.com> wrote:
>
>> I found in stable/boron pom.xml:
>>
>> <parent>
>>>     <groupId>org.opendaylight.odlparent</groupId>
>>>     <artifactId>odlparent-lite</artifactId>
>>>     <version>1.7.3-SNAPSHOT</version>
>>>     <relativePath/>
>>> </parent>
>>
>>
>> Is coretutorials' pom.xml wrong?
>>
>
> Yes. The truth is that we haven't actually had the time to maintain
> coretutorials and keep it up-to-date... :-( Sorry!
>
> That archetype in controller should be more up to date, but could
> currently be broken too.
>
> FYI all, I keep meaning to get back to and wrap up
> https://git.opendaylight.org/gerrit/#/c/39484/ ... of course if anyone
> wants to pick that up, you're more than welcome to.
>
> Other than those, you can, of course, just look at code of other existing
> active projects.
>
>
>
>> 2017-04-21 11:05 GMT+08:00 Sam <batmanustc at gmail.com>:
>>
>>> Add  coretutorials-dev at lists.opendaylight.org
>>> <https://lists.opendaylight.org/mailman/listinfo/coretutorials-dev>
>>>
>>> 2017-04-21 10:39 GMT+08:00 Sam <batmanustc at gmail.com>:
>>>
>>>> Hi all,
>>>>
>>>> I'm running coretutorials of ODL according
>>>> https://wiki.opendaylight.org/view/Controller_Core_Functiona
>>>> lity_Tutorials:Main
>>>>
>>>> In 'Part 1 - Build with a simple 'Example' module', I run command
>>>> exactly as document said as bellow:
>>>>
>>>> mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller
>>>>> -DarchetypeArtifactId=opendaylight-startup-archetype \
>>>>> -DarchetypeRepository=http://nexus.opendaylight.org/content/
>>>>> repositories/opendaylight.release/ \
>>>>> -DarchetypeCatalog=http://nexus.opendaylight.org/content/rep
>>>>> ositories/opendaylight.release/archetype-catalog.xml \
>>>>> -DarchetypeVersion=1.2.0-Boron
>>>>
>>>>
>>>> But I got failure:
>>>>
>>>> [ERROR] Failed to execute goal org.apache.maven.plugins:maven
>>>>> -archetype-plugin:3.0.1:generate (default-cli) on project
>>>>> standalone-pom: archetypeCatalog 'http://nexus.opendaylight.org
>>>>> /content/repositories/opendaylight.release/archetype-catalog.xml' is
>>>>> not supported anymore. Please read the plugin documentation for details. ->
>>>>> [Help 1]
>>>>
>>>>
>>>>
>>>> Some one said to remove '-DarchetypeCatalog', but the result remove
>>>> '-DarchetypeCatalog' is:
>>>>
>>>> pom.xml
>>>>> src
>>>>> tests
>>>>
>>>>
>>>> Which is not as expact:
>>>>
>>>> api/
>>>> artifacts/
>>>> features/
>>>> impl/
>>>> karaf/
>>>> pom.xml
>>>>
>>>>
>>>> So how to deal with this?
>>>>
>>>>
>>>
>>
>> _______________________________________________
>> controller-dev mailing list
>> controller-dev at lists.opendaylight.org
>> https://lists.opendaylight.org/mailman/listinfo/controller-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20170422/6f4d6ded/attachment-0001.html>


More information about the discuss mailing list