You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Stevo Slavić <ss...@gmail.com> on 2009/12/07 14:16:48 UTC
Maven 3.0-alpha-5 and maven-archetype packaging
Hello Maven developers,
It seems 3.0-alpha-5 is not compatible with current 2.0-alpha-4 version of
maven-archetype-plugin - archetype:create-from-project mojo creates
archetype project with packaging maven-archetype, but that packaging seems
not to be supported by / valid for 3.0-alpha-5 (see
this<https://issues.sonatype.org/browse/MNGECLIPSE-1920?focusedCommentId=107179&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_107179>Igor
Fedorenko's comment to a m2eclipse issue, showing error 3.0-alpha-5
prints when building projects with maven-archetype packaging). Question is
whether this behavior is intentional for maven3. If yes it would be good to
have this listed in maven3 compatibility
notes<http://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html>,
otherwise ticket should be opened.
Regards,
Stevo.
Re: Maven 3.0-alpha-5 and maven-archetype packaging
Posted by Stevo Slavić <ss...@gmail.com>.
Thanks, fixed, build passes in both maven 2 and 3.
Regards,
Stevo.
On Mon, Dec 7, 2009 at 2:36 PM, Benjamin Bentmann <benjamin.bentmann@udo.edu
> wrote:
> Stevo Slavić wrote:
>
> It seems 3.0-alpha-5 is not compatible with current 2.0-alpha-4 version of
>> maven-archetype-plugin - archetype:create-from-project mojo creates
>> archetype project with packaging maven-archetype, but that packaging seems
>> not to be supported by / valid for 3.0-alpha-5
>>
>
> Try running "mvn install" on your example project with Maven 2.x and you'll
> get
>
> [INFO] Cannot find lifecycle mapping for packaging: 'maven-archetype'.
>
> i.e. the project itself is broken, this has nothing to do with Maven 3.
>
> If you want to use a custom packaging like "maven-archetype", you have to
> declare the extension that provides this packaging, none of your POMs in the
> example project does.
>
>
>
> Benjamin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
Re: Maven 3.0-alpha-5 and maven-archetype packaging
Posted by Benjamin Bentmann <be...@udo.edu>.
Stevo Slavić wrote:
> It seems 3.0-alpha-5 is not compatible with current 2.0-alpha-4 version of
> maven-archetype-plugin - archetype:create-from-project mojo creates
> archetype project with packaging maven-archetype, but that packaging seems
> not to be supported by / valid for 3.0-alpha-5
Try running "mvn install" on your example project with Maven 2.x and
you'll get
[INFO] Cannot find lifecycle mapping for packaging: 'maven-archetype'.
i.e. the project itself is broken, this has nothing to do with Maven 3.
If you want to use a custom packaging like "maven-archetype", you have
to declare the extension that provides this packaging, none of your POMs
in the example project does.
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org