Invalid value for sonar.binaries - Maven module only containing test classes

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Invalid value for sonar.binaries - Maven module only containing test classes

mattadamson

Team,

 

Since the upgrade of the Java plug in to 2.8 we appear to get error on one module which only contains test classes

 

[INFO] [03:55:42.888] Load module settings

[ERROR] [03:55:43.111] Invalid value for sonar.binaries

[ERROR] No files nor directories matching '/home/builder/.jenkins/jobs/Sonar/workspace/source/Core/coretest/target/classes'

 

Has anyone else experienced this or know a workaround / solution?

 

Many thanks

 

Matt

Reply | Threaded
Open this post in threaded view
|

RE: Invalid value for sonar.binaries - Maven module only containing test classes

mattadamson

Sorry this appears to be a duplicate of this issue I just noticed

 

http://sonarqube.15.x6.nabble.com/sonar-binaries-error-when-no-Java-sources-in-Java-plugin-2-6-with-a-Maven-project-tp5030221p5032111.html

 

We can close and discuss on the other thread if easier / related.

 

From: Adamson, Matthew [mailto:[hidden email]]
Sent: 02 February 2015 10:45
To: [hidden email]
Subject: [sonar-user] Invalid value for sonar.binaries - Maven module only containing test classes

 

Team,

 

Since the upgrade of the Java plug in to 2.8 we appear to get error on one module which only contains test classes

 

[INFO] [03:55:42.888] Load module settings

[ERROR] [03:55:43.111] Invalid value for sonar.binaries

[ERROR] No files nor directories matching '/home/builder/.jenkins/jobs/Sonar/workspace/source/Core/coretest/target/classes'

 

Has anyone else experienced this or know a workaround / solution?

 

Many thanks

 

Matt

Reply | Threaded
Open this post in threaded view
|

RE: Invalid value for sonar.binaries - Maven module only containing test classes

Nicolas Peru
Hi Matt, 

You are right it seems related so I am gonna link this answer to this thread. 
It appears that this is a regression during fix of : http://jira.codehaus.org/browse/SONARJAVA-754 which indeed relaxed the validation of sonar.java.libraries but enforced by mistake validation of sonar.java.binaries (which should not be enforced to support properly multimodule projects). (I use the new name of the properties but it is the same for the old sonar.libraries and sonar.binaries).


Cheers,

Nicolas PERU | SonarSource
Senior Developer
http://sonarsource.com


On 2 February 2015 at 11:48, Adamson, Matthew <[hidden email]> wrote:

Sorry this appears to be a duplicate of this issue I just noticed

 

http://sonarqube.15.x6.nabble.com/sonar-binaries-error-when-no-Java-sources-in-Java-plugin-2-6-with-a-Maven-project-tp5030221p5032111.html

 

We can close and discuss on the other thread if easier / related.

 

From: Adamson, Matthew [mailto:[hidden email]]
Sent: 02 February 2015 10:45
To: [hidden email]
Subject: [sonar-user] Invalid value for sonar.binaries - Maven module only containing test classes

 

Team,

 

Since the upgrade of the Java plug in to 2.8 we appear to get error on one module which only contains test classes

 

[INFO] [03:55:42.888] Load module settings

[ERROR] [03:55:43.111] Invalid value for sonar.binaries

[ERROR] No files nor directories matching '/home/builder/.jenkins/jobs/Sonar/workspace/source/Core/coretest/target/classes'

 

Has anyone else experienced this or know a workaround / solution?

 

Many thanks

 

Matt


Reply | Threaded
Open this post in threaded view
|

RE: Invalid value for sonar.binaries - Maven module only containing test classes

mattadamson

Perfect thanks Nicolas,  and judging by the affects version you stated 2.8 so I’ll down grade to 2.7

 

From: Nicolas Peru [mailto:[hidden email]]
Sent: 02 February 2015 11:14
To: [hidden email]
Subject: Re: [sonar-user] RE: Invalid value for sonar.binaries - Maven module only containing test classes

 

Hi Matt, 

 

You are right it seems related so I am gonna link this answer to this thread. 

It appears that this is a regression during fix of : http://jira.codehaus.org/browse/SONARJAVA-754 which indeed relaxed the validation of sonar.java.libraries but enforced by mistake validation of sonar.java.binaries (which should not be enforced to support properly multimodule projects). (I use the new name of the properties but it is the same for the old sonar.libraries and sonar.binaries).

 

 

Cheers,


Nicolas PERU | SonarSource

Senior Developer
http://sonarsource.com

 

 

On 2 February 2015 at 11:48, Adamson, Matthew <[hidden email]> wrote:

Sorry this appears to be a duplicate of this issue I just noticed

 

http://sonarqube.15.x6.nabble.com/sonar-binaries-error-when-no-Java-sources-in-Java-plugin-2-6-with-a-Maven-project-tp5030221p5032111.html

 

We can close and discuss on the other thread if easier / related.

 

From: Adamson, Matthew [mailto:[hidden email]]
Sent: 02 February 2015 10:45
To: [hidden email]
Subject: [sonar-user] Invalid value for sonar.binaries - Maven module only containing test classes

 

Team,

 

Since the upgrade of the Java plug in to 2.8 we appear to get error on one module which only contains test classes

 

[INFO] [03:55:42.888] Load module settings

[ERROR] [03:55:43.111] Invalid value for sonar.binaries

[ERROR] No files nor directories matching '/home/builder/.jenkins/jobs/Sonar/workspace/source/Core/coretest/target/classes'

 

Has anyone else experienced this or know a workaround / solution?

 

Many thanks

 

Matt

 

Reply | Threaded
Open this post in threaded view
|

RE: Invalid value for sonar.binaries - Maven module only containing test classes

Malli
Hello,

To be fair this affects version 2.6 (and 2.7?) as well. On my side I had to downgrade to 2.5.1 to not have the issue.

Regards

Antoine Malliarakis

2015-02-02 12:32 GMT+01:00 Adamson, Matthew <[hidden email]>:

Perfect thanks Nicolas,  and judging by the affects version you stated 2.8 so I’ll down grade to 2.7

 

From: Nicolas Peru [mailto:[hidden email]]
Sent: 02 February 2015 11:14
To: [hidden email]
Subject: Re: [sonar-user] RE: Invalid value for sonar.binaries - Maven module only containing test classes

 

Hi Matt, 

 

You are right it seems related so I am gonna link this answer to this thread. 

It appears that this is a regression during fix of : http://jira.codehaus.org/browse/SONARJAVA-754 which indeed relaxed the validation of sonar.java.libraries but enforced by mistake validation of sonar.java.binaries (which should not be enforced to support properly multimodule projects). (I use the new name of the properties but it is the same for the old sonar.libraries and sonar.binaries).

 

 

Cheers,


Nicolas PERU | SonarSource

Senior Developer
http://sonarsource.com

 

 

On 2 February 2015 at 11:48, Adamson, Matthew <[hidden email]> wrote:

Sorry this appears to be a duplicate of this issue I just noticed

 

http://sonarqube.15.x6.nabble.com/sonar-binaries-error-when-no-Java-sources-in-Java-plugin-2-6-with-a-Maven-project-tp5030221p5032111.html

 

We can close and discuss on the other thread if easier / related.

 

From: Adamson, Matthew [mailto:[hidden email]]
Sent: 02 February 2015 10:45
To: [hidden email]
Subject: [sonar-user] Invalid value for sonar.binaries - Maven module only containing test classes

 

Team,

 

Since the upgrade of the Java plug in to 2.8 we appear to get error on one module which only contains test classes

 

[INFO] [03:55:42.888] Load module settings

[ERROR] [03:55:43.111] Invalid value for sonar.binaries

[ERROR] No files nor directories matching '/home/builder/.jenkins/jobs/Sonar/workspace/source/Core/coretest/target/classes'

 

Has anyone else experienced this or know a workaround / solution?

 

Many thanks

 

Matt

 


Reply | Threaded
Open this post in threaded view
|

RE: Invalid value for sonar.binaries - Maven module only containing test classes

Nicolas Peru
I updated affected version on the ticket. 

Nicolas PERU | SonarSource
Senior Developer
http://sonarsource.com


On 2 February 2015 at 12:46, Antoine Malliarakis <[hidden email]> wrote:
Hello,

To be fair this affects version 2.6 (and 2.7?) as well. On my side I had to downgrade to 2.5.1 to not have the issue.

Regards

Antoine Malliarakis

2015-02-02 12:32 GMT+01:00 Adamson, Matthew <[hidden email]>:

Perfect thanks Nicolas,  and judging by the affects version you stated 2.8 so I’ll down grade to 2.7

 

From: Nicolas Peru [mailto:[hidden email]]
Sent: 02 February 2015 11:14
To: [hidden email]
Subject: Re: [sonar-user] RE: Invalid value for sonar.binaries - Maven module only containing test classes

 

Hi Matt, 

 

You are right it seems related so I am gonna link this answer to this thread. 

It appears that this is a regression during fix of : http://jira.codehaus.org/browse/SONARJAVA-754 which indeed relaxed the validation of sonar.java.libraries but enforced by mistake validation of sonar.java.binaries (which should not be enforced to support properly multimodule projects). (I use the new name of the properties but it is the same for the old sonar.libraries and sonar.binaries).

 

 

Cheers,


Nicolas PERU | SonarSource

Senior Developer
http://sonarsource.com

 

 

On 2 February 2015 at 11:48, Adamson, Matthew <[hidden email]> wrote:

Sorry this appears to be a duplicate of this issue I just noticed

 

http://sonarqube.15.x6.nabble.com/sonar-binaries-error-when-no-Java-sources-in-Java-plugin-2-6-with-a-Maven-project-tp5030221p5032111.html

 

We can close and discuss on the other thread if easier / related.

 

From: Adamson, Matthew [mailto:[hidden email]]
Sent: 02 February 2015 10:45
To: [hidden email]
Subject: [sonar-user] Invalid value for sonar.binaries - Maven module only containing test classes

 

Team,

 

Since the upgrade of the Java plug in to 2.8 we appear to get error on one module which only contains test classes

 

[INFO] [03:55:42.888] Load module settings

[ERROR] [03:55:43.111] Invalid value for sonar.binaries

[ERROR] No files nor directories matching '/home/builder/.jenkins/jobs/Sonar/workspace/source/Core/coretest/target/classes'

 

Has anyone else experienced this or know a workaround / solution?

 

Many thanks

 

Matt

 



Reply | Threaded
Open this post in threaded view
|

RE: Invalid value for sonar.binaries - Maven module only containing test classes

Nicolas Peru
Matt, 

I am really struggling to reproduce correctly the issue, would you be able to share the structure of your project with some details on pom (especially, properties, modules and type of packaging). 
Another question : which version of maven are you using to do the analysis and which version of the sonar-maven-plugin ? would you be able to share the log of the analysis in details ?

Thanks.

Nicolas PERU | SonarSource
Senior Developer
http://sonarsource.com


On 2 February 2015 at 13:59, Nicolas Peru <[hidden email]> wrote:
I updated affected version on the ticket. 

Nicolas PERU | SonarSource
Senior Developer
http://sonarsource.com


On 2 February 2015 at 12:46, Antoine Malliarakis <[hidden email]> wrote:
Hello,

To be fair this affects version 2.6 (and 2.7?) as well. On my side I had to downgrade to 2.5.1 to not have the issue.

Regards

Antoine Malliarakis

2015-02-02 12:32 GMT+01:00 Adamson, Matthew <[hidden email]>:

Perfect thanks Nicolas,  and judging by the affects version you stated 2.8 so I’ll down grade to 2.7

 

From: Nicolas Peru [mailto:[hidden email]]
Sent: 02 February 2015 11:14
To: [hidden email]
Subject: Re: [sonar-user] RE: Invalid value for sonar.binaries - Maven module only containing test classes

 

Hi Matt, 

 

You are right it seems related so I am gonna link this answer to this thread. 

It appears that this is a regression during fix of : http://jira.codehaus.org/browse/SONARJAVA-754 which indeed relaxed the validation of sonar.java.libraries but enforced by mistake validation of sonar.java.binaries (which should not be enforced to support properly multimodule projects). (I use the new name of the properties but it is the same for the old sonar.libraries and sonar.binaries).

 

 

Cheers,


Nicolas PERU | SonarSource

Senior Developer
http://sonarsource.com

 

 

On 2 February 2015 at 11:48, Adamson, Matthew <[hidden email]> wrote:

Sorry this appears to be a duplicate of this issue I just noticed

 

http://sonarqube.15.x6.nabble.com/sonar-binaries-error-when-no-Java-sources-in-Java-plugin-2-6-with-a-Maven-project-tp5030221p5032111.html

 

We can close and discuss on the other thread if easier / related.

 

From: Adamson, Matthew [mailto:[hidden email]]
Sent: 02 February 2015 10:45
To: [hidden email]
Subject: [sonar-user] Invalid value for sonar.binaries - Maven module only containing test classes

 

Team,

 

Since the upgrade of the Java plug in to 2.8 we appear to get error on one module which only contains test classes

 

[INFO] [03:55:42.888] Load module settings

[ERROR] [03:55:43.111] Invalid value for sonar.binaries

[ERROR] No files nor directories matching '/home/builder/.jenkins/jobs/Sonar/workspace/source/Core/coretest/target/classes'

 

Has anyone else experienced this or know a workaround / solution?

 

Many thanks

 

Matt