Rat build works fine now. Developers need to do the following to get a
good output from rat:

Make sure that there are no unwanted files in the local git directory.

For rat check, run the following command:

mvn --projects='org.apache.cloudstack:cloudstack'
org.apache.rat:apache-rat-plugin:0.8:check


If this results in failure check target/rat.txt for any pointers that the
new files you added are responsible for breaking it and fix it.

-abhi



On 07/03/13 2:08 PM, "Abhinandan Prateek" <abhinandan.prat...@citrix.com>
wrote:

>Prasanna, thanks for taking this up.
>
>On 07/03/13 2:04 PM, "prasanna" <t...@apache.org> wrote:
>
>>Stuff in **/WEB-INF/** directories needs to be excluded as they are
>>generated. I'll look into that.
>>
>>On 7 March 2013 13:59, Abhinandan Prateek <abhinandan.prat...@citrix.com>
>>wrote:
>>> --Attaching rat.txt.
>>>
>>> On 07/03/13 1:57 PM, "Abhinandan Prateek"
>>><abhinandan.prat...@citrix.com>
>>> wrote:
>>>
>>>>
>>>>I tried rat build on clean branch and got following error:
>>>>
>>>>de: patches/systemvm/debian/config/var/www/html/latest/.htaccess
>>>>[INFO] Exclude: patches/systemvm/debian/vpn/etc/ipsec.d/l2tp.conf
>>>>[INFO]
>>>>-----------------------------------------------------------------------
>>>>-
>>>>[INFO] BUILD FAILURE
>>>>[INFO]
>>>>-----------------------------------------------------------------------
>>>>-
>>>>[INFO] Total time: 9.794s
>>>>[INFO] Finished at: Thu Mar 07 13:54:44 IST 2013
>>>>[INFO] Final Memory: 19M/383M
>>>>[INFO]
>>>>-----------------------------------------------------------------------
>>>>-
>>>>[ERROR] Failed to execute goal
>>>>org.apache.rat:apache-rat-plugin:0.8:check
>>>>(default-cli) on project cloudstack: Too many unapproved licenses: 26
>>>>->
>>>>[Help 1]
>>>>org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>>>execute
>>>>goal org.apache.rat:apache-rat-plugin:0.8:check (default-cli) on
>>>>project
>>>>cloudstack: Too many unapproved licenses: 26
>>>>at
>>>>org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>>a
>>>>va
>>>>:213)
>>>>at
>>>>org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>>a
>>>>va
>>>>:153)
>>>>at
>>>>org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>>a
>>>>va
>>>>:145)
>>>>at
>>>>org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
>>>>(
>>>>Li
>>>>fecycleModuleBuilder.java:84)
>>>>at
>>>>org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
>>>>(
>>>>Li
>>>>fecycleModuleBuilder.java:59)
>>>>at
>>>>org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuil
>>>>d
>>>>(L
>>>>ifecycleStarter.java:183)
>>>>at
>>>>org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleS
>>>>t
>>>>ar
>>>>ter.java:161)
>>>>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>>>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>>>
>>>>
>>>>Anyone know if this is expected ?
>>>>
>>>>
>>>>-abhi
>>>
>

Reply via email to