{"action":"created","issue":{"url":"https://api.github.com/repos/mojohaus/nbm-maven-plugin/issues/30","repository_url":"https://api.github.com/repos/mojohaus/nbm-maven-plugin","labels_url":"https://api.github.com/repos/mojohaus/nbm-maven-plugin/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/mojohaus/nbm-maven-plugin/issues/30/comments","events_url":"https://api.github.com/repos/mojohaus/nbm-maven-plugin/issues/30/events","html_url":"https://github.com/mojohaus/nbm-maven-plugin/issues/30","id":270274099,"node_id":"MDU6SXNzdWUyNzAyNzQwOTk=","number":30,"title":"nbm-maven-plugin 4.1 failing build when including newest build of log4j2 (2.9.1)","user":{"login":"lpiet","id":25503791,"node_id":"MDQ6VXNlcjI1NTAzNzkx","avatar_url":"https://avatars0.githubusercontent.com/u/25503791?v=4","gravatar_id":"","url":"https://api.github.com/users/lpiet","html_url":"https://github.com/lpiet","followers_url":"https://api.github.com/users/lpiet/followers","following_url":"https://api.github.com/users/lpiet/following{/other_user}","gists_url":"https://api.github.com/users/lpiet/gists{/gist_id}","starred_url":"https://api.github.com/users/lpiet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpiet/subscriptions","organizations_url":"https://api.github.com/users/lpiet/orgs","repos_url":"https://api.github.com/users/lpiet/repos","events_url":"https://api.github.com/users/lpiet/events{/privacy}","received_events_url":"https://api.github.com/users/lpiet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-11-01T11:08:34Z","updated_at":"2018-09-15T08:56:07Z","closed_at":"2017-11-11T07:27:22Z","author_association":"NONE","body":"<Edited: To fix a unrelated config mistake in the example pom>\r\n\r\nNot entirely sure why. I;ve included a stripped pom which fails when building. As well as the received stack trace. It does build when either the nbm-maven plugin is downgraded to 3.* or the version of log4j2 is downgraded to 2.8.*  \r\n\r\n```\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\r\n    <modelVersion>4.0.0</modelVersion>\r\n    <groupId>test</groupId>\r\n    <artifactId>nbmtest</artifactId>\r\n    <version>1.0-SNAPSHOT</version>\r\n    <packaging>nbm</packaging>\r\n    <build>\r\n        <plugins>\r\n            <plugin>\r\n                <groupId>org.codehaus.mojo</groupId>\r\n                <artifactId>nbm-maven-plugin</artifactId>\r\n                <extensions>true</extensions>\r\n                <version>4.1</version>\r\n            </plugin>\r\n        <plugin>\r\n                <groupId>org.apache.maven.plugins</groupId>\r\n                <artifactId>maven-jar-plugin</artifactId>               \r\n                <version>3.0.2</version>\r\n                <configuration>\r\n                    <archive>\r\n                        <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>\r\n                    </archive>\r\n                </configuration>\r\n            </plugin>\r\n            <plugin>\r\n                <groupId>org.apache.maven.plugins</groupId>\r\n                <artifactId>maven-compiler-plugin</artifactId>\r\n                <version>2.3.2</version>\r\n                <configuration>\r\n                    <source>1.8</source>\r\n                    <target>1.8</target>\r\n                </configuration>\r\n            </plugin>\r\n        </plugins>\r\n    </build>\r\n    \r\n        <dependencies>\r\n             <dependency>\r\n            <groupId>org.apache.logging.log4j</groupId>\r\n            <artifactId>log4j-jul</artifactId>\r\n            <version>2.9.1</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>org.apache.logging.log4j</groupId>\r\n            <artifactId>log4j-slf4j-impl</artifactId>\r\n            <version>2.9.1</version>\r\n        </dependency>\r\n        \r\n          <dependency>\r\n            <groupId>org.apache.logging.log4j</groupId>\r\n            <artifactId>log4j-core</artifactId>\r\n            <version>2.9.1</version>\r\n            <type>jar</type>\r\n        </dependency>\r\n           \r\n        <dependency>\r\n            <groupId>org.apache.logging.log4j</groupId>\r\n            <artifactId>log4j-api</artifactId>\r\n            <version>2.9.1</version>\r\n        </dependency>\r\n    </dependencies>\r\n    <properties>\r\n        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r\n        <maven.compiler.source>1.8</maven.compiler.source>\r\n        <maven.compiler.target>1.8</maven.compiler.target>\r\n    </properties>\r\n</project>\r\n\r\n```\r\n\r\nstacktrace:\r\n```\r\nFailed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest) on project nbmtest: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed. IllegalArgumentException -> [Help 1]\r\norg.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest) on project nbmtest: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)\r\n\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)\r\n\tat org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)\r\n\tat org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)\r\n\tat org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)\r\n\tat org.apache.maven.cli.MavenCli.main(MavenCli.java:141)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)\r\nCaused by: org.apache.maven.plugin.PluginExecutionException: Execution default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.\r\n\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)\r\n\t... 19 more\r\nCaused by: java.lang.IllegalArgumentException\r\n\tat org.objectweb.asm.ClassReader.<init>(Unknown Source)\r\n\tat org.objectweb.asm.ClassReader.<init>(Unknown Source)\r\n\tat org.objectweb.asm.ClassReader.<init>(Unknown Source)\r\n\tat org.apache.maven.shared.dependency.analyzer.asm.DependencyClassFileVisitor.visitClass(DependencyClassFileVisitor.java:65)\r\n\tat org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.visitClass(ClassFileVisitorUtils.java:163)\r\n\tat org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.acceptJar(ClassFileVisitorUtils.java:107)\r\n\tat org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.accept(ClassFileVisitorUtils.java:61)\r\n\tat org.apache.maven.shared.dependency.analyzer.asm.ASMDependencyAnalyzer.analyze(ASMDependencyAnalyzer.java:50)\r\n\tat org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.buildDependencyClasses(NetBeansManifestUpdateMojo.java:920)\r\n\tat org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.buildProjectDependencyClasses(NetBeansManifestUpdateMojo.java:763)\r\n\tat org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.checkModuleClassPath(NetBeansManifestUpdateMojo.java:667)\r\n\tat org.codehaus.mojo.nbm.NetBeansManifestUpdateMojo.execute(NetBeansManifestUpdateMojo.java:530)\r\n\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)\r\n\t... 20 more\r\n```\r\n\r\nMight be that this needs to reported elsewhere as well in which case any advice on wihch team to approach would be appreciated.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mojohaus/nbm-maven-plugin/issues/comments/421542439","html_url":"https://github.com/mojohaus/nbm-maven-plugin/issues/30#issuecomment-421542439","issue_url":"https://api.github.com/repos/mojohaus/nbm-maven-plugin/issues/30","id":421542439,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTU0MjQzOQ==","user":{"login":"jessiwyne","id":29126778,"node_id":"MDQ6VXNlcjI5MTI2Nzc4","avatar_url":"https://avatars2.githubusercontent.com/u/29126778?v=4","gravatar_id":"","url":"https://api.github.com/users/jessiwyne","html_url":"https://github.com/jessiwyne","followers_url":"https://api.github.com/users/jessiwyne/followers","following_url":"https://api.github.com/users/jessiwyne/following{/other_user}","gists_url":"https://api.github.com/users/jessiwyne/gists{/gist_id}","starred_url":"https://api.github.com/users/jessiwyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessiwyne/subscriptions","organizations_url":"https://api.github.com/users/jessiwyne/orgs","repos_url":"https://api.github.com/users/jessiwyne/repos","events_url":"https://api.github.com/users/jessiwyne/events{/privacy}","received_events_url":"https://api.github.com/users/jessiwyne/received_events","type":"User","site_admin":false},"created_at":"2018-09-15T08:56:07Z","updated_at":"2018-09-15T08:56:07Z","author_association":"NONE","body":"hi i am having the same issue, any suggestions?"}}
{"actor":{"display_login":"jessiwyne"}}