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

Update FindBugs annotation library and maven plugin #1487

Merged
merged 1 commit into from Jun 10, 2015

Conversation

KostyaSha
Copy link
Member

I tried follow version 1.0.0 version and found that it replaced with other library. But it fails because of bytecode. Investigating it, will keep it open here.

@@ -869,7 +869,7 @@ THE SOFTWARE.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.2</version>
<version>3.0.0</version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably want to specify the version just once, in root pom.xml.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, will try

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But you could override that in this PR in (root) pom.xml.

@KostyaSha
Copy link
Member Author

annotations-3.0.0.jar created with 1.7.0_51(Oracle Corporation) Can this class be excluded for enforcer check?

@jglick
Copy link
Member

jglick commented Dec 16, 2014

Can this class be excluded for enforcer check?

Yes, it could be excluded, since it is using provided scope. EnforceBytecodeVersion.ignoredScopes (MOJO-1988) lets you do that automatically, rather than hardcoding this artifact name. Update extra-enforcer-rules to 1.0-beta-3 to take advantage of that feature.

@KostyaSha
Copy link
Member Author

There is "metrics" profile for findbugs in pom.xml and "findbugs" profile in core/pom.xml

@KostyaSha
Copy link
Member Author

Will back when jenkins migrate on java7 :)

@KostyaSha KostyaSha closed this Jun 2, 2015
@KostyaSha KostyaSha reopened this Jun 2, 2015
@KostyaSha
Copy link
Member Author

Now with java7 it much easier to do update :)

@KostyaSha
Copy link
Member Author

@KostyaSha KostyaSha closed this Jun 8, 2015
@KostyaSha KostyaSha reopened this Jun 8, 2015
@jglick
Copy link
Member

jglick commented Jun 8, 2015

This got clobbered by your update:

But you could override [findbugs-maven-plugin.version] in this PR in (root) pom.xml.

@jglick
Copy link
Member

jglick commented Jun 8, 2015

Other than the duplication, 👍

@KostyaSha
Copy link
Member Author

@jglick maybe remove reporting at all? Or somebody using it?

@KostyaSha
Copy link
Member Author

maven-site is not updated https://github.com/jenkinsci/maven-site

@KostyaSha
Copy link
Member Author

@jglick set with variable, but can't test because

[ERROR] Failed to execute goal on project jenkins-core: Could not resolve dependencies for project org.jenkins-ci.main:jenkins-core:jar:1.618-SNAPSHOT: Could not find artifact org.jenkins-ci.main:cli:jar:1.618-SNAPSHOT in repo.jenkins-ci.org (http://repo.jenkins-ci.org/public/) -> [Help 1]

I think nobody uses mvn site and better add build execution for metrics/findbugs profiles.

@jglick
Copy link
Member

jglick commented Jun 9, 2015

I do not think mvn site is used.

@@ -501,7 +501,7 @@ THE SOFTWARE.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.1</version>
<version>3.3</version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could probably be reverted.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, either mvn site will fail with absent classes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.1:site (default-site) on project pom: Execution default-site of goal org.apache.maven.plugins:maven-site-plugin:3.1:site failed: A required class was missing while executing org.apache.maven.plugins:maven-site-plugin:3.1:site: org/sonatype/aether/graph/DependencyFilter
[ERROR] -----------------------------------------------------

@jglick
Copy link
Member

jglick commented Jun 9, 2015

👍; is this still supposed to WiP?

@KostyaSha KostyaSha changed the title [WIP] Update FindBugs annotation library and maven plugin Update FindBugs annotation library and maven plugin Jun 9, 2015
@KostyaSha
Copy link
Member Author

@jglick well i not sure that anybody using this reporting at all. I can suggest move findbugs execution from reporting to some build goal.

@KostyaSha
Copy link
Member Author

As update for current versions this PR done.

@oleg-nenashev
Copy link
Member

👍

jglick added a commit that referenced this pull request Jun 10, 2015
Update FindBugs annotation library and maven plugin
@jglick jglick merged commit 9b7d8e9 into jenkinsci:master Jun 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants