Hi, Do not use the tags inside maven-resources-plugin, use project/build/outputDirectory instead and associates. IMO, you should never have to declare the maven-resources-plugin configuration. It takes its input directly from the pom standard tags.
Cheers 2009/5/11 <[email protected]> > 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] > ------------------------------------------------------------------------ > > > <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"> > > <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 > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
