Hi Karthik,
Please switch to the Sonar user mailing list [1] in order to get the support
you need.

In few words, you can analyze a non-maven project which has multiple source
directories defined. But, as Kamlesh said, there is currently a limitation :
this mode is not compatible with findbugs, so you can't activate findbugs
rules on those projects.

Hope it helps,
Freddy

[1] - http://sonar.codehaus.org/support/

----------------------------------------
Freddy Mallet
www.SonarSource.com
Sonar.codehaus.org
http://twitter.com/FreddyMallet
----------------------------------------


On Tue, May 12, 2009 at 8:30 AM, <[email protected]> wrote:

> Hi Kamlesh,
>
> But the link below claims that the support for multiple source dir
> projects(non maven) has been enabled recently. Any thoughts?
>
> http://docs.codehaus.org/display/SONAR/Analyzing+Java+Projects
>
> Thanks
> Karthik
>
>
>
>
>
> -----Original Message-----
> From: Kamlesh Sangani [mailto:[email protected]]
> Sent: Tuesday, May 12, 2009 11:54 AM
> To: Maven Users List
> Subject: Re: Using multiple source dirs
>
> multiple source directories configuration does not work with non-maven
> project. see http://jira.codehaus.org/browse/SONAR-623
>
>
>
> ________________________________
> From: "[email protected]"
> <[email protected]>
> To: [email protected]
> Sent: Monday, May 11, 2009 11:01:53 PM
> Subject: Using multiple source dirs
>
> Hi all,
>
> I'm trying to use sonar light with my non maven project. When I do a mvn
> clean install, I get the following error. I've pasted my pom.xml after
> the error. I'm using mvn 2.1.0, java 1.5 and sonar 1.7. Any help is
> highly appreciated
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building OME_SM
> [INFO]    task-segment: [clean, install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error configuring:
> org.apache.maven.plugins:maven-resources-plugin. Reas
> n: ERROR: Cannot override read-only parameter: resources in goal:
> resources:res
> urces
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Mon May 11 17:58:31 IST 2009 [INFO] Final Memory:
> 7M/13M [INFO]
> ------------------------------------------------------------------------
>
>
>
>
> 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";>
>
> <modelVersion>4.0.0</modelVersion>
>
> <groupId>WiproTechnologies</groupId>
>
> <artifactId>OME_SM</artifactId>
>
> <name>OME_SM</name>
>
> <version>6.0</version>
>
> <build>
>
> <sourceDirectory>${basedir}/target/sources</sourceDirectory>
>
> <plugins>
>
> <plugin>
>
> <groupId>org.apache.maven.plugins</groupId>
>
> <artifactId>maven-compiler-plugin</artifactId>
>
> <configuration>
>
> <source>1.5</source>
>
> <target>1.5</target>
>
> <excludes>
>
> <exclude>**/*.*</exclude>
>
> </excludes>
>
> </configuration>
>
> </plugin>
>
> <plugin>
>
> <groupId>org.apache.maven.plugins</groupId>
>
> <artifactId>maven-resources-plugin</artifactId>
>
> <version>2.3</version>
>
> <configuration>
>
> <outputDirectory>${basedir}/target/sources</outputDirectory>
>
> <resources>
>
> <resource>
>
> <directory>${basedir}/sm_viking/src_release</directory>
>
> </resource>
>
> <!-- <resource>
>
> <directory>${basedir}/sm_viking/src_common</directory>
>
> </resource> -->
>
> </resources>
>
> </configuration>
>
> </plugin>
>
> </plugins>
>
> </build>
>
> <properties>
>
> <sonar.light>true</sonar.light>
>
> </properties>
>
> </project>
>
>
>
> thanks!!!!!
>
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s)
> and may contain proprietary, confidential or privileged information. If
> you are not the intended recipient, you should not disseminate,
> distribute or copy this e-mail. Please notify the sender immediately and
> destroy all copies of this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>
> www.wipro.com
>
>
>
>
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any attachments to
> this message are intended for the exclusive use of the addressee(s) and may
> contain proprietary, confidential or privileged information. If you are not
> the intended recipient, you should not disseminate, distribute or copy this
> e-mail. Please notify the sender immediately and destroy all copies of this
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses. The
> company accepts no liability for any damage caused by any virus transmitted
> by this email.
>
> www.wipro.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to