Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin fails if maven version is < 3.1.0 #794

Closed
alex-semenyuk opened this issue Aug 5, 2016 · 19 comments
Closed

Plugin fails if maven version is < 3.1.0 #794

alex-semenyuk opened this issue Aug 5, 2016 · 19 comments
Assignees

Comments

@alex-semenyuk
Copy link

alex-semenyuk commented Aug 5, 2016

When I try to exclude some class from findbugs checking like this:

           <plugin>
                <groupId>com.qulice</groupId>
                <artifactId>qulice-maven-plugin</artifactId>
                <version>0.17</version>
                <configuration>
                    <license>file:${basedir}/LICENSE.txt</license>
                    <excludes>
                        <exclude>findbugs:com.test.Test</exclude>
                    </excludes>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

I have the following exception:

Caused by: java.lang.NullPointerException
    at org.codehaus.plexus.component.configurator.converters.composite.CollectionConverter.fromChildren(CollectionConverter.java:157)
    at org.codehaus.plexus.component.configurator.converters.composite.CollectionConverter.fromConfiguration(CollectionConverter.java:112)
    at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:289)
    at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:161)
    at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:567)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:529)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

When I remove this section than everything is ok.

           <executions>
               <execution>
                    <goals>
                        <goal>check</goal>
                    </goals>
                </execution>
           </executions>

Without <excludes> and with <executions> it works too.

I use maven version 3.0.5

@krzyk
Copy link
Collaborator

krzyk commented Aug 7, 2016

@alex-semenyuk Is this really realted to qulice? I don't see any qulice class in the stack trace

@alex-semenyuk
Copy link
Author

@krzyk suppose it's a maven problem which mentioned here #514 . I used maven with the version < 3.1.0. After upgrading version to the latest it works in all configuration which was mentioned above. Suppose it can be closed, but can you specify Maven's version requirements http://www.qulice.com/qulice-maven-plugin/usage.html and here https://github.com/teamed/qulice not only in contribution part?

@krzyk
Copy link
Collaborator

krzyk commented Aug 8, 2016

@alex-semenyuk OK, please either change the title/description of this issue or create a new one for the mvn version

@alex-semenyuk alex-semenyuk changed the title Issue with executions section in plugin Plugin fails if maven version is < 3.1.0 Aug 8, 2016
@alex-semenyuk
Copy link
Author

@krzyk Done. Does it look OK now?

@krzyk
Copy link
Collaborator

krzyk commented Aug 8, 2016

@davvd valid bug

@davvd
Copy link

davvd commented Aug 8, 2016

@davvd valid bug

@krzyk tagged this issue with "bug"

@krzyk
Copy link
Collaborator

krzyk commented Aug 13, 2016

@davvd this is postponed

@davvd
Copy link

davvd commented Aug 15, 2016

@davvd this is postponed

@krzyk sure, thanks, I added "postponed" label to it

@davvd
Copy link

davvd commented Aug 15, 2016

@davvd this is postponed

@krzyk I will ask somebody else to pick this up

@krzyk
Copy link
Collaborator

krzyk commented Jul 13, 2018

@0crat assign me

@0crat
Copy link
Collaborator

0crat commented Jul 13, 2018

@0crat assign me (here)

@krzyk The job #794 assigned to @krzyk/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be no monetary reward for this job

@0crat
Copy link
Collaborator

0crat commented Jul 13, 2018

Bug was reported, see §29: +15 point(s) just awarded to @alex-semenyuk/z

@0crat
Copy link
Collaborator

0crat commented Jul 13, 2018

Manual assignment of issues is discouraged, see §19: -5 point(s) just awarded to @krzyk/z

@0crat
Copy link
Collaborator

0crat commented Jul 18, 2018

@krzyk/z this job was assigned to you 5days ago. It will be taken away from you soon, unless you close it, see §8. Read this and this, please.

@krzyk
Copy link
Collaborator

krzyk commented Jul 23, 2018

@0crat waiting (busy with other tasks)

@0crat
Copy link
Collaborator

0crat commented Jul 23, 2018

@0crat waiting (busy with other tasks) (here)

@krzyk The impediment for #794 was registered successfully by @krzyk/z

krzyk added a commit to krzyk/qulice that referenced this issue Jul 26, 2018
@krzyk
Copy link
Collaborator

krzyk commented Jul 26, 2018

@alex-semenyuk min maven version has been added to README and to the usage pages in #912, please close this issue

@0crat
Copy link
Collaborator

0crat commented Jul 26, 2018

Order was finished: +30 point(s) just awarded to @krzyk/z

@0crat
Copy link
Collaborator

0crat commented Jul 26, 2018

The job #794 is now out of scope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants