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: <validate>org.apache.maven.plugins:maven-enforcer-plugin:enforce</package> > 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 <rfscho...@apache.org> 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 >> <mfriedenha...@gmail.com>: >> >>> 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-unsubscr...@maven.apache.org >>> For additional commands, e-mail: users-h...@maven.apache.org >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org