Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1822910AE9 for ; Wed, 3 Jul 2013 21:53:56 +0000 (UTC) Received: (qmail 19569 invoked by uid 500); 3 Jul 2013 21:53:54 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 19503 invoked by uid 500); 3 Jul 2013 21:53:54 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 19494 invoked by uid 99); 3 Jul 2013 21:53:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jul 2013 21:53:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mfriedenhagen@gmail.com designates 209.85.219.49 as permitted sender) Received: from [209.85.219.49] (HELO mail-oa0-f49.google.com) (209.85.219.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jul 2013 21:53:50 +0000 Received: by mail-oa0-f49.google.com with SMTP id n9so941280oag.36 for ; Wed, 03 Jul 2013 14:53:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=i9Topcj3i2WbJLrXHMqs17dyOwQI26vDlUtjuQPdwVA=; b=E2UTrvQ1wIbKtrbP64d2hLdaQ6Xt0yRydxsCuTKv5k+SC1LJph7A0VyNMjbotOi9xk hfpTV012JHTThXDj+5cGNIMa98Q/jotrAxSUqMuRU83nzgchcbrr5VI6GrVgxoti+l9U QQe347OiayNbew71ymWKP09oxnrSF+jK3JBKQO87E5qARpooP/q1RAoFMpU5ugBaUxaP kpInywhfVkWKrwQb1/UUBj8qM+hlso4dejHAVCdeREFTwzus77eKRHxAHo3jvZS+kFmE stCxlEoqkJA7MJBygS6uShMw6CdZykPo7eLLlbZXcOzwxQISXrrZsR42nhSK460wVb4w EiRQ== X-Received: by 10.60.55.196 with SMTP id u4mr2913221oep.57.1372888409655; Wed, 03 Jul 2013 14:53:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.236.130 with HTTP; Wed, 3 Jul 2013 14:53:09 -0700 (PDT) In-Reply-To: <1B130DE9-BF80-4FE6-A297-52AA41B95856@gmail.com> References: <1B130DE9-BF80-4FE6-A297-52AA41B95856@gmail.com> From: Mirko Friedenhagen Date: Wed, 3 Jul 2013 23:53:09 +0200 Message-ID: Subject: Re: Problems setting up a custom package type To: Maven Users List Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hello Stuart, thanks! That did the trick. I do not know why Netbeans did not mark the XML as invalid :-(. Now the IT still fails because rules are missing for enforcer, but this is a trivial problem to tackle. Thx again Mirko Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Wed, Jul 3, 2013 at 11:37 PM, Stuart McCulloch wrote: > On 3 Jul 2013, at 22:05, Mirko Friedenhagen wrote: > >> Hello Robert, >> >> thanks for the quick answer, however I still get the same error :-(. > > It looks like you have mismatched tags on line 27 of your components.xml: > > org.apache.maven.plugins:maven-enforcer-plugin:enforce > >> Regards Mirko >> -- >> http://illegalstateexception.blogspot.com/ >> https://github.com/mfriedenhagen/ >> https://bitbucket.org/mfriedenhagen/ >> >> >> On Wed, Jul 3, 2013 at 10:50 PM, Robert Scholte wrote: >>> Hi Mirko, >>> >>> you're missing an org.apache.maven.artifact.handler.ArtifactHandler, which >>> you can find in [2] >>> >>> Robert >>> >>> Op Wed, 03 Jul 2013 22:46:04 +0200 schreef Mirko Friedenhagen >>> : >>> >>>> Hello, >>>> >>>> I am playing with a custom package type[0], mainly to enforce >>>> execution of check goals. >>>> I read in the mvnref[1] and looked at some samples [2,3]. >>>> >>>> Now every time I run my integration test[4], the build fails because >>>> the packaging type is not found. >>>> >>>> --- snip --- >>>> [DEBUG] Populating class realm >>>> extension>net.oneandone.maven.plugins:foss-jar-maven-plugin:1.0-SNAPSHOT >>>> [DEBUG] Included: >>>> net.oneandone.maven.plugins:foss-jar-maven-plugin:jar:1.0-SNAPSHOT >>>> [DEBUG] Included: org.sonatype.sisu:sisu-inject-bean:jar:2.3.0 >>>> [DEBUG] Included: org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0 >>>> [DEBUG] Included: org.sonatype.aether:aether-util:jar:1.13.1 >>>> [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.14 >>>> [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0.10 >>>> [DEBUG] Included: >>>> org.codehaus.plexus:plexus-component-annotations:jar:1.5.5 >>>> [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 >>>> [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4 >>>> [DEBUG] Included: >>>> org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.2 >>>> [DEBUG] Included: com.google.guava:guava:jar:14.0.1 >>>> [DEBUG] Extension realms for project >>>> >>>> net.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:foss-jar:1.0-SNAPSHOT: >>>> >>>> [ClassRealm[extension>net.oneandone.maven.plugins:foss-jar-maven-plugin:1.0-SNAPSHOT, >>>> parent: sun.misc.Launcher$AppClassLoader@2ed4a1d3]] >>>> [DEBUG] Created new class realm >>>> >>>> project>net.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT >>>> [DEBUG] Populating class realm >>>> >>>> project>net.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT >>>> [DEBUG] Looking up lifecyle mappings for packaging foss-jar from >>>> >>>> ClassRealm[project>net.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT, >>>> parent: ClassRealm[maven.api, parent: null]] >>>> [ERROR] The build could not read 1 project -> [Help 1] >>>> org.apache.maven.project.ProjectBuildingException: Some problems were >>>> encountered while processing the POMs: >>>> [ERROR] Unknown packaging: foss-jar @ line 7, column 16 >>>> >>>> at >>>> org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363) >>>> at >>>> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636) >>>> at >>>> org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585) >>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234) >>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) >>>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) >>>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) >>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>> at >>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>>> at >>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>>> at java.lang.reflect.Method.invoke(Method.java:606) >>>> at >>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) >>>> at >>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) >>>> at >>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) >>>> at >>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) >>>> [ERROR] >>>> [ERROR] The project >>>> >>>> net.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT >>>> (/Users/mirko/workspace/foss/foss-jar/target/it/test-foss-jar/pom.xml) >>>> has 1 error >>>> [ERROR] Unknown packaging: foss-jar @ line 7, column 16 >>>> [ERROR] >>>> [ERROR] >>>> [ERROR] For more information about the errors and possible solutions, >>>> please read the following articles: >>>> [ERROR] [Help 1] >>>> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException >>>> --- snap --- >>>> >>>> I do not understand what I am doing wrong here. Any hints welcome :-). >>>> >>>> Regards Mirko >>>> [0] >>>> https://github.com/mfriedenhagen/foss-jar-maven-plugin/blob/master/src/main/resources/META-INF/plexus/components.xml >>>> [1] >>>> http://books.sonatype.com/mvnref-book/reference/writing-plugins-sect-plugins-lifecycle.html#ex-override-lifecycle >>>> [2] >>>> https://github.com/jayway/maven-android-plugin/blob/master/src/main/resources/META-INF/plexus/components.xml >>>> [3] >>>> https://code.google.com/p/israfil-mojo/source/browse/trunk/maven-flex2-plugin/src/main/resources/META-INF/plexus/components.xml >>>> [4] >>>> https://github.com/mfriedenhagen/foss-jar-maven-plugin/blob/master/src/it/test-foss-jar/pom.xml >>>> -- >>>> http://illegalstateexception.blogspot.com/ >>>> https://github.com/mfriedenhagen/ >>>> https://bitbucket.org/mfriedenhagen/ >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >>>> For additional commands, e-mail: users-help@maven.apache.org >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >>> For additional commands, e-mail: users-help@maven.apache.org >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> For additional commands, e-mail: users-help@maven.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org