You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2008/02/28 07:50:17 UTC
[jira] Resolved: (SM-1253) checkstyle error in
servicemix-osworkflow
[ https://issues.apache.org/activemq/browse/SM-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang resolved SM-1253.
------------------------------
Fix Version/s: 3.2.2
3.3
Resolution: Fixed
commit fix
http://svn.apache.org/viewvc?rev=631872&view=rev for 3.3 branch
http://svn.apache.org/viewvc?rev=631873&view=rev for 3.2.2 branch
> checkstyle error in servicemix-osworkflow
> -----------------------------------------
>
> Key: SM-1253
> URL: https://issues.apache.org/activemq/browse/SM-1253
> Project: ServiceMix
> Issue Type: Improvement
> Components: servicemix-osworkflow
> Reporter: Freeman Fang
> Assignee: Freeman Fang
> Priority: Minor
> Fix For: 3.2.2, 3.3
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Resolved: (SM-1253) checkstyle error in servicemix-osworkflow
Posted by Lars Heinemann <la...@compart.net>.
Guillaume,
there is only the 2.1 folder and a bunch of xml and sha1 files in this
location.
Regards,
Lars
Guillaume Nodet schrieb:
> Can you check the version of checkstyle plugin in your local repo ?
> I only have 2.1 in
> ~/.m2/repository/org/apache/maven/plugins/maven-checkstyle-plugin/
>
> On Thu, Feb 28, 2008 at 10:43 AM, Lars Heinemann
> <la...@compart.net> wrote:
>
>> Guillaume,
>>
>> here you are :)
>>
>> Regards,
>> Lars
>>
>>
>> + Error stacktraces are turned on.
>>
>>
>> [INFO] Scanning for projects...
>> [INFO] Reactor build order:
>> [INFO] ServiceMix
>> [INFO] Servicemix :: Build
>> [INFO] ServiceMix :: Parent
>> [INFO] ServiceMix :: Core
>> [INFO] ServiceMix :: JBI
>> [INFO] ServiceMix :: Services
>> [INFO] ServiceMix :: Core
>> [INFO] ServiceMix :: Audit
>> [INFO] ServiceMix :: Common
>> [INFO] ServiceMix :: Common
>> [INFO] ServiceMix :: Components
>> [INFO] ServiceMix :: SOAP
>> [INFO] ServiceMix :: SOAP2
>> [INFO] ServiceMix :: BeanFlow
>> [INFO] ServiceMix :: Tooling
>> [INFO] ServiceMix :: Maven2 Resource Plugin
>> [INFO] ServiceMix :: Maven2 JBI Plugin
>> [INFO] ServiceMix :: Maven2 XFire Plugin
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building ServiceMix
>> [INFO] task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [site:attach-descriptor]
>> [INFO] [install:install]
>> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/pom.xml to
>> /home/lhe/.m2/repository/org/apache/servicemix/servicemix/3.3-SNAPSHOT/servicemix-3.3-SNAPSHOT.pom
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Servicemix :: Build
>> [INFO] task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [plugin:descriptor]
>> [INFO] Using 2 extractors.
>> [INFO] Applying extractor for language: java
>> [INFO] Extractor for language: java found 1 mojo descriptors.
>> [INFO] Applying extractor for language: bsh
>> [INFO] Extractor for language: bsh found 0 mojo descriptors.
>> [INFO] [antrun:run {execution: legal-files}]
>> [INFO] Executing tasks
>> [INFO] Executed tasks
>> [INFO] Registering compile source root
>> /home/lhe/workspace/asf/servicemix-trunk/build/target/legal
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:testCompile]
>> [INFO] Not compiling test sources
>> [INFO] [surefire:test]
>> [INFO] Tests are skipped.
>> [INFO] [jar:jar]
>> [INFO] Building jar:
>> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
>> [INFO] [plugin:addPluginArtifactMetadata]
>> [INFO] [install:install]
>> [INFO] Installing
>> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
>> to
>> /home/lhe/.m2/repository/org/apache/servicemix/build/3.3-SNAPSHOT/build-3.3-SNAPSHOT.jar
>> [INFO] [plugin:updateRegistry]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building ServiceMix :: Parent
>> [INFO] task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Setting property: classpath.resource.loader.class =>
>> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>> [INFO] Setting property: velocimacro.messages.on => 'false'.
>> [INFO] Setting property: resource.loader => 'classpath'.
>> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
>> [INFO] **************************************************************
>> [INFO] Starting Jakarta Velocity v1.4
>> [INFO] RuntimeInstance initializing.
>> [INFO] Default Properties File:
>> org/apache/velocity/runtime/defaults/velocity.properties
>> [INFO] Default ResourceManager initializing. (class
>> org.apache.velocity.runtime.resource.ResourceManagerImpl)
>> [INFO] Resource Loader Instantiated:
>> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
>> [INFO] ClasspathResourceLoader : initialization starting.
>> [INFO] ClasspathResourceLoader : initialization complete.
>> [INFO] ResourceCache : initialized. (class
>> org.apache.velocity.runtime.resource.ResourceCacheImpl)
>> [INFO] Default ResourceManager initialization complete.
>> [INFO] Loaded System Directive:
>> org.apache.velocity.runtime.directive.Literal
>> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
>> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
>> [INFO] Loaded System Directive:
>> org.apache.velocity.runtime.directive.Include
>> [INFO] Loaded System Directive:
>> org.apache.velocity.runtime.directive.Foreach
>> [INFO] Created: 20 parsers.
>> [INFO] Velocimacro : initialization starting.
>> [INFO] Velocimacro : adding VMs from VM library template :
>> VM_global_library.vm
>> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
>> in any resource loader.
>> [INFO] Velocimacro : error using VM library template
>> VM_global_library.vm :
>> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
>> resource 'VM_global_library.vm'
>> [INFO] Velocimacro : VM library template macro registration complete.
>> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in
>> templates
>> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
>> may NOT replace previous VM definitions
>> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
>> be global in scope if allowed.
>> [INFO] Velocimacro : initialization complete.
>> [INFO] Velocity successfully started.
>> [INFO] [checkstyle:checkstyle {execution: validate}]
>> [INFO] Source directory does not exist - skipping report.
>> [INFO] Preparing pmd:check
>> [INFO] [pmd:pmd]
>> [INFO] [pmd:check {execution: validate}]
>> [INFO] [site:attach-descriptor]
>> [INFO] [install:install]
>> [INFO] Installing
>> /home/lhe/workspace/asf/servicemix-trunk/parent/pom.xml to
>> /home/lhe/.m2/repository/org/apache/servicemix/parent/3.3-SNAPSHOT/parent-3.3-SNAPSHOT.pom
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building ServiceMix :: Core
>> [INFO] task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [checkstyle:checkstyle {execution: validate}]
>> [INFO] Source directory does not exist - skipping report.
>> [INFO] Preparing pmd:check
>> [INFO] [pmd:pmd]
>> [INFO] [pmd:check {execution: validate}]
>> [INFO] [build:copy {execution: default}]
>> [INFO] [site:attach-descriptor]
>> [INFO] [install:install]
>> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/core/pom.xml
>> to
>> /home/lhe/.m2/repository/org/apache/servicemix/core/3.3-SNAPSHOT/core-3.3-SNAPSHOT.pom
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building ServiceMix :: JBI
>> [INFO] task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [checkstyle:checkstyle {execution: validate}]
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] An error has occurred in Checkstyle report generation.
>>
>> Embedded error: Unable to process header location.
>> Unable to find location 'LICENSE.txt' as URL, File or Resource.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: An error has
>>
>> occurred in Checkstyle report generation.
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: An error has
>>
>> occurred in Checkstyle report generation.
>> at
>> org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:79)
>> at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>> ... 16 more
>> Caused by: org.apache.maven.reporting.MavenReportException: Unable to
>> process header location.
>> at
>> org.apache.maven.plugin.checkstyle.CheckstyleReport.getOverridingProperties(CheckstyleReport.java:881)
>> at
>> org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:467)
>> at
>> org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
>> at
>> org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
>> ... 18 more
>> Caused by: java.io.IOException: Unable to find location 'LICENSE.txt' as
>> URL, File or Resource.
>> at
>> org.apache.maven.plugin.checkstyle.Locator.resolveLocation(Locator.java:127)
>> at
>> org.apache.maven.plugin.checkstyle.CheckstyleReport.getOverridingProperties(CheckstyleReport.java:873)
>> ... 21 more
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 10 seconds
>> [INFO] Finished at: Thu Feb 28 10:42:03 CET 2008
>> [INFO] Final Memory: 22M/106M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>>
>>
>> Guillaume Nodet schrieb:
>>
>>
>>
>>> Yeah, right, me neither ;-) Sorry.
>>>
>> > Can you try with the -e flag to know who is throwing this error ?
>> >
>> >
>> > On Thu, Feb 28, 2008 at 10:19 AM, Lars Heinemann
>> > <la...@compart.net> wrote:
>> >
>> >> Guillaume,
>> >>
>> >> what LICENSE.txt file? I can't see any file like this.
>> >> In the root of the smx project there is only a LICENSE file without
>> >> the .txt extension.
>> >>
>> >> Regards,
>> >> Lars
>> >>
>> >>
>> >>
>> >>
>> >> Guillaume Nodet schrieb:
>> >>
>> >>
>> >>
>> >>> Do you have the LICENSE.txt file in the root directory ?
>> >>>
>> >> > I don't have this error ...
>> >> >
>> >> > On Thu, Feb 28, 2008 at 9:46 AM, Lars Heinemann
>> >> > <la...@compart.net> wrote:
>> >> >
>> >> >> Freeman,
>> >> >>
>> >> >> thank you for the answer.
>> >> >> After following your advices I am now able to see non-compliant
>> >> >> code passages with the checkstyle plugin.
>> >> >> But one thing is very strange to me. I am not able to build the smx
>> >> >> without using -Pnochecks. It otherwise always complains about a
>> >> >> missing LICENSE.txt file. (see output below)
>> >> >> Do you have an idea how to solve this?
>> >> >>
>> >> >> Regards,
>> >> >> Lars
>> >> >>
>> >> >>
>> >> >> mvn -Dmaven.test.skip=true -Pstep1 install
>> >> >>
>> >> >> [INFO] Scanning for projects...
>> >> >> [INFO] Reactor build order:
>> >> >> [INFO] ServiceMix
>> >> >> [INFO] Servicemix :: Build
>> >> >> [INFO] ServiceMix :: Parent
>> >> >> [INFO] ServiceMix :: Core
>> >> >> [INFO] ServiceMix :: JBI
>> >> >> [INFO] ServiceMix :: Services
>> >> >> [INFO] ServiceMix :: Core
>> >> >> [INFO] ServiceMix :: Audit
>> >> >> [INFO] ServiceMix :: Common
>> >> >> [INFO] ServiceMix :: Common
>> >> >> [INFO] ServiceMix :: Components
>> >> >> [INFO] ServiceMix :: SOAP
>> >> >> [INFO] ServiceMix :: SOAP2
>> >> >> [INFO] ServiceMix :: BeanFlow
>> >> >> [INFO] ServiceMix :: Tooling
>> >> >> [INFO] ServiceMix :: Maven2 Resource Plugin
>> >> >> [INFO] ServiceMix :: Maven2 JBI Plugin
>> >> >> [INFO] ServiceMix :: Maven2 XFire Plugin
>> >> >> [INFO]
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] Building ServiceMix
>> >> >> [INFO] task-segment: [install]
>> >> >> [INFO]
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] [site:attach-descriptor]
>> >> >> [INFO] [install:install]
>> >> >> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/pom.xml to
>> >> >> /home/lhe/.m2/repository/org/apache/servicemix/servicemix/3.3-SNAPSHOT/servicemix-3.3-SNAPSHOT.pom
>> >> >> [INFO]
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] Building Servicemix :: Build
>> >> >> [INFO] task-segment: [install]
>> >> >> [INFO]
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] [plugin:descriptor]
>> >> >> [INFO] Using 2 extractors.
>> >> >> [INFO] Applying extractor for language: java
>> >> >> [INFO] Extractor for language: java found 1 mojo descriptors.
>> >> >> [INFO] Applying extractor for language: bsh
>> >> >> [INFO] Extractor for language: bsh found 0 mojo descriptors.
>> >> >> [INFO] [antrun:run {execution: legal-files}]
>> >> >> [INFO] Executing tasks
>> >> >> [INFO] Executed tasks
>> >> >> [INFO] Registering compile source root
>> >> >> /home/lhe/workspace/asf/servicemix-trunk/build/target/legal
>> >> >> [INFO] [resources:resources]
>> >> >> [INFO] Using default encoding to copy filtered resources.
>> >> >> [INFO] [compiler:compile]
>> >> >> [INFO] Nothing to compile - all classes are up to date
>> >> >> [INFO] [resources:testResources]
>> >> >> [INFO] Using default encoding to copy filtered resources.
>> >> >> [INFO] [compiler:testCompile]
>> >> >> [INFO] Not compiling test sources
>> >> >> [INFO] [surefire:test]
>> >> >> [INFO] Tests are skipped.
>> >> >> [INFO] [jar:jar]
>> >> >> [INFO] Building jar:
>> >> >> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
>> >> >> [INFO] [plugin:addPluginArtifactMetadata]
>> >> >> [INFO] [install:install]
>> >> >> [INFO] Installing
>> >> >> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
>> >> >> to
>> >> >> /home/lhe/.m2/repository/org/apache/servicemix/build/3.3-SNAPSHOT/build-3.3-SNAPSHOT.jar
>> >> >> [INFO] [plugin:updateRegistry]
>> >> >> [INFO]
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] Building ServiceMix :: Parent
>> >> >> [INFO] task-segment: [install]
>> >> >> [INFO]
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] Setting property: classpath.resource.loader.class =>
>> >> >> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>> >> >> [INFO] Setting property: velocimacro.messages.on => 'false'.
>> >> >> [INFO] Setting property: resource.loader => 'classpath'.
>> >> >> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
>> >> >> [INFO] **************************************************************
>> >> >> [INFO] Starting Jakarta Velocity v1.4
>> >> >> [INFO] RuntimeInstance initializing.
>> >> >> [INFO] Default Properties File:
>> >> >> org/apache/velocity/runtime/defaults/velocity.properties
>> >> >> [INFO] Default ResourceManager initializing. (class
>> >> >> org.apache.velocity.runtime.resource.ResourceManagerImpl)
>> >> >> [INFO] Resource Loader Instantiated:
>> >> >> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
>> >> >> [INFO] ClasspathResourceLoader : initialization starting.
>> >> >> [INFO] ClasspathResourceLoader : initialization complete.
>> >> >> [INFO] ResourceCache : initialized. (class
>> >> >> org.apache.velocity.runtime.resource.ResourceCacheImpl)
>> >> >> [INFO] Default ResourceManager initialization complete.
>> >> >> [INFO] Loaded System Directive:
>> >> >> org.apache.velocity.runtime.directive.Literal
>> >> >> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
>> >> >> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
>> >> >> [INFO] Loaded System Directive:
>> >> >> org.apache.velocity.runtime.directive.Include
>> >> >> [INFO] Loaded System Directive:
>> >> >> org.apache.velocity.runtime.directive.Foreach
>> >> >> [INFO] Created: 20 parsers.
>> >> >> [INFO] Velocimacro : initialization starting.
>> >> >> [INFO] Velocimacro : adding VMs from VM library template :
>> >> >> VM_global_library.vm
>> >> >> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
>> >> >> in any resource loader.
>> >> >> [INFO] Velocimacro : error using VM library template
>> >> >> VM_global_library.vm :
>> >> >> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
>> >> >> resource 'VM_global_library.vm'
>> >> >> [INFO] Velocimacro : VM library template macro registration complete.
>> >> >> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in
>> >> >> templates
>> >> >> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
>> >> >> may NOT replace previous VM definitions
>> >> >> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
>> >> >> be global in scope if allowed.
>> >> >> [INFO] Velocimacro : initialization complete.
>> >> >> [INFO] Velocity successfully started.
>> >> >> [INFO] [checkstyle:checkstyle {execution: validate}]
>> >> >> [INFO] Source directory does not exist - skipping report.
>> >> >> [INFO] Preparing pmd:check
>> >> >> [INFO] [pmd:pmd]
>> >> >> [INFO] [pmd:check {execution: validate}]
>> >> >> [INFO] [site:attach-descriptor]
>> >> >> [INFO] [install:install]
>> >> >> [INFO] Installing
>> >> >> /home/lhe/workspace/asf/servicemix-trunk/parent/pom.xml to
>> >> >> /home/lhe/.m2/repository/org/apache/servicemix/parent/3.3-SNAPSHOT/parent-3.3-SNAPSHOT.pom
>> >> >> [INFO]
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] Building ServiceMix :: Core
>> >> >> [INFO] task-segment: [install]
>> >> >> [INFO]
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] [checkstyle:checkstyle {execution: validate}]
>> >> >> [INFO] Source directory does not exist - skipping report.
>> >> >> [INFO] Preparing pmd:check
>> >> >> [INFO] [pmd:pmd]
>> >> >> [INFO] [pmd:check {execution: validate}]
>> >> >> [INFO] [build:copy {execution: default}]
>> >> >> [INFO] [site:attach-descriptor]
>> >> >> [INFO] [install:install]
>> >> >> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/core/pom.xml
>> >> >> to
>> >> >> /home/lhe/.m2/repository/org/apache/servicemix/core/3.3-SNAPSHOT/core-3.3-SNAPSHOT.pom
>> >> >> [INFO]
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] Building ServiceMix :: JBI
>> >> >> [INFO] task-segment: [install]
>> >> >> [INFO]
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] [checkstyle:checkstyle {execution: validate}]
>> >> >> [INFO]
>> >> >> ------------------------------------------------------------------------
>> >> >> [ERROR] BUILD ERROR
>> >> >> [INFO]
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] An error has occurred in Checkstyle report generation.
>> >> >>
>> >> >> Embedded error: Unable to process header location.
>> >> >> Unable to find location 'LICENSE.txt' as URL, File or Resource.
>> >> >> [INFO]
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] For more information, run Maven with the -e switch
>> >> >> [INFO]
>> >> >> ------------------------------------------------------------------------
>> >> >> [INFO] Total time: 10 seconds
>> >> >> [INFO] Finished at: Thu Feb 28 09:44:30 CET 2008
>> >> >> [INFO] Final Memory: 22M/107M
>> >> >> [INFO]
>> >> >> ------------------------------------------------------------------------
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> Freeman Fang schrieb:
>> >> >>
>> >> >>
>> >> >>
>> >> >>> Hi Lars,
>> >> >>>
>> >> >> >
>> >> >> > use "mvn -Psetup.eclipse" you can see checkstyle-checker.xml under
>> >> >> > target folder.
>> >> >> > 1. import your servicemix-osworkflow project into eclipse
>> >> >> > 2. import checkstyle-checker.xml into eclipse (Window-> Preferences->
>> >> >> > check style)
>> >> >> > 3. set the checkstyle properties of servicemix-osworkflow as what you
>> >> >> > step 2 import
>> >> >> >
>> >> >> > Best Regards
>> >> >> >
>> >> >> > Freeman
>> >> >> >
>> >> >> > Lars Heinemann wrote:
>> >> >> >> Freeman,
>> >> >> >>
>> >> >> >> sorry for being not compliant to checkstyle.
>> >> >> >> Can you somehow describe what to set in Eclipse for having
>> >> >> >> the desired code style?
>> >> >> >> I used the files I found in the etc folder of smx.
>> >> >> >>
>> >> >> >> codetemplates.xml -> for "Code Templates" setting in Eclipse JDT
>> >> >> >> ServiceMix.importoder -> for the "Organize Imports" setting in
>> >> >> >> Eclipse JDT
>> >> >> >> ServiceMixCodeFormatter.xml -> for the "Formatter" setting in Eclipse
>> >> >> >> JDT
>> >> >> >>
>> >> >> >> Is there anything else to setup?
>> >> >> >> I downloaded now the checkstyle eclipse plugin, but configuration
>> >> >> >> file to use?
>> >> >> >>
>> >> >> >> Regards,
>> >> >> >> Lars
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> Freeman Fang (JIRA) schrieb:
>> >> >> >>> [
>> >> >> >>> https://issues.apache.org/activemq/browse/SM-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>> >> >> >>> ]
>> >> >> >>>
>> >> >> >>> Freeman Fang resolved SM-1253.
>> >> >> >>> ------------------------------
>> >> >> >>>
>> >> >> >>> Fix Version/s: 3.2.2
>> >> >> >>> 3.3
>> >> >> >>> Resolution: Fixed
>> >> >> >>>
>> >> >> >>> commit fix http://svn.apache.org/viewvc?rev=631872&view=rev for 3.3
>> >> >> >>> branch
>> >> >> >>> http://svn.apache.org/viewvc?rev=631873&view=rev for 3.2.2 branch
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>> checkstyle error in servicemix-osworkflow
>> >> >> >>>> -----------------------------------------
>> >> >> >>>>
>> >> >> >>>> Key: SM-1253
>> >> >> >>>> URL: https://issues.apache.org/activemq/browse/SM-1253
>> >> >> >>>> Project: ServiceMix
>> >> >> >>>> Issue Type: Improvement
>> >> >> >>>> Components: servicemix-osworkflow
>> >> >> >>>> Reporter: Freeman Fang
>> >> >> >>>> Assignee: Freeman Fang
>> >> >> >>>> Priority: Minor
>> >> >> >>>> Fix For: 3.2.2, 3.3
>> >> >> >>>>
>> >> >> >>>>
>> >> >> >>>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>
>> >> >> >
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>> >
>> >
>>
>>
>
>
>
>
Re: [jira] Resolved: (SM-1253) checkstyle error in servicemix-osworkflow
Posted by Guillaume Nodet <gn...@gmail.com>.
Can you check the version of checkstyle plugin in your local repo ?
I only have 2.1 in
~/.m2/repository/org/apache/maven/plugins/maven-checkstyle-plugin/
On Thu, Feb 28, 2008 at 10:43 AM, Lars Heinemann
<la...@compart.net> wrote:
> Guillaume,
>
> here you are :)
>
> Regards,
> Lars
>
>
> + Error stacktraces are turned on.
>
>
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO] ServiceMix
> [INFO] Servicemix :: Build
> [INFO] ServiceMix :: Parent
> [INFO] ServiceMix :: Core
> [INFO] ServiceMix :: JBI
> [INFO] ServiceMix :: Services
> [INFO] ServiceMix :: Core
> [INFO] ServiceMix :: Audit
> [INFO] ServiceMix :: Common
> [INFO] ServiceMix :: Common
> [INFO] ServiceMix :: Components
> [INFO] ServiceMix :: SOAP
> [INFO] ServiceMix :: SOAP2
> [INFO] ServiceMix :: BeanFlow
> [INFO] ServiceMix :: Tooling
> [INFO] ServiceMix :: Maven2 Resource Plugin
> [INFO] ServiceMix :: Maven2 JBI Plugin
> [INFO] ServiceMix :: Maven2 XFire Plugin
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ServiceMix
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [site:attach-descriptor]
> [INFO] [install:install]
> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/pom.xml to
> /home/lhe/.m2/repository/org/apache/servicemix/servicemix/3.3-SNAPSHOT/servicemix-3.3-SNAPSHOT.pom
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Servicemix :: Build
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 1 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] [antrun:run {execution: legal-files}]
> [INFO] Executing tasks
> [INFO] Executed tasks
> [INFO] Registering compile source root
> /home/lhe/workspace/asf/servicemix-trunk/build/target/legal
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] Not compiling test sources
> [INFO] [surefire:test]
> [INFO] Tests are skipped.
> [INFO] [jar:jar]
> [INFO] Building jar:
> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
> [INFO] [plugin:addPluginArtifactMetadata]
> [INFO] [install:install]
> [INFO] Installing
> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
> to
> /home/lhe/.m2/repository/org/apache/servicemix/build/3.3-SNAPSHOT/build-3.3-SNAPSHOT.jar
> [INFO] [plugin:updateRegistry]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ServiceMix :: Parent
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Setting property: classpath.resource.loader.class =>
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] **************************************************************
> [INFO] Starting Jakarta Velocity v1.4
> [INFO] RuntimeInstance initializing.
> [INFO] Default Properties File:
> org/apache/velocity/runtime/defaults/velocity.properties
> [INFO] Default ResourceManager initializing. (class
> org.apache.velocity.runtime.resource.ResourceManagerImpl)
> [INFO] Resource Loader Instantiated:
> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
> [INFO] ClasspathResourceLoader : initialization starting.
> [INFO] ClasspathResourceLoader : initialization complete.
> [INFO] ResourceCache : initialized. (class
> org.apache.velocity.runtime.resource.ResourceCacheImpl)
> [INFO] Default ResourceManager initialization complete.
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Literal
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Include
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Foreach
> [INFO] Created: 20 parsers.
> [INFO] Velocimacro : initialization starting.
> [INFO] Velocimacro : adding VMs from VM library template :
> VM_global_library.vm
> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
> in any resource loader.
> [INFO] Velocimacro : error using VM library template
> VM_global_library.vm :
> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
> resource 'VM_global_library.vm'
> [INFO] Velocimacro : VM library template macro registration complete.
> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in
> templates
> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
> may NOT replace previous VM definitions
> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
> be global in scope if allowed.
> [INFO] Velocimacro : initialization complete.
> [INFO] Velocity successfully started.
> [INFO] [checkstyle:checkstyle {execution: validate}]
> [INFO] Source directory does not exist - skipping report.
> [INFO] Preparing pmd:check
> [INFO] [pmd:pmd]
> [INFO] [pmd:check {execution: validate}]
> [INFO] [site:attach-descriptor]
> [INFO] [install:install]
> [INFO] Installing
> /home/lhe/workspace/asf/servicemix-trunk/parent/pom.xml to
> /home/lhe/.m2/repository/org/apache/servicemix/parent/3.3-SNAPSHOT/parent-3.3-SNAPSHOT.pom
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ServiceMix :: Core
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [checkstyle:checkstyle {execution: validate}]
> [INFO] Source directory does not exist - skipping report.
> [INFO] Preparing pmd:check
> [INFO] [pmd:pmd]
> [INFO] [pmd:check {execution: validate}]
> [INFO] [build:copy {execution: default}]
> [INFO] [site:attach-descriptor]
> [INFO] [install:install]
> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/core/pom.xml
> to
> /home/lhe/.m2/repository/org/apache/servicemix/core/3.3-SNAPSHOT/core-3.3-SNAPSHOT.pom
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ServiceMix :: JBI
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [checkstyle:checkstyle {execution: validate}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An error has occurred in Checkstyle report generation.
>
> Embedded error: Unable to process header location.
> Unable to find location 'LICENSE.txt' as URL, File or Resource.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: An error has
>
> occurred in Checkstyle report generation.
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: An error has
>
> occurred in Checkstyle report generation.
> at
> org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:79)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> ... 16 more
> Caused by: org.apache.maven.reporting.MavenReportException: Unable to
> process header location.
> at
> org.apache.maven.plugin.checkstyle.CheckstyleReport.getOverridingProperties(CheckstyleReport.java:881)
> at
> org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:467)
> at
> org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
> at
> org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
> ... 18 more
> Caused by: java.io.IOException: Unable to find location 'LICENSE.txt' as
> URL, File or Resource.
> at
> org.apache.maven.plugin.checkstyle.Locator.resolveLocation(Locator.java:127)
> at
> org.apache.maven.plugin.checkstyle.CheckstyleReport.getOverridingProperties(CheckstyleReport.java:873)
> ... 21 more
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 10 seconds
> [INFO] Finished at: Thu Feb 28 10:42:03 CET 2008
> [INFO] Final Memory: 22M/106M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
>
> Guillaume Nodet schrieb:
>
>
> > Yeah, right, me neither ;-) Sorry.
> > Can you try with the -e flag to know who is throwing this error ?
> >
> >
> > On Thu, Feb 28, 2008 at 10:19 AM, Lars Heinemann
> > <la...@compart.net> wrote:
> >
> >> Guillaume,
> >>
> >> what LICENSE.txt file? I can't see any file like this.
> >> In the root of the smx project there is only a LICENSE file without
> >> the .txt extension.
> >>
> >> Regards,
> >> Lars
> >>
> >>
> >>
> >>
> >> Guillaume Nodet schrieb:
> >>
> >>
> >>
> >>> Do you have the LICENSE.txt file in the root directory ?
> >>>
> >> > I don't have this error ...
> >> >
> >> > On Thu, Feb 28, 2008 at 9:46 AM, Lars Heinemann
> >> > <la...@compart.net> wrote:
> >> >
> >> >> Freeman,
> >> >>
> >> >> thank you for the answer.
> >> >> After following your advices I am now able to see non-compliant
> >> >> code passages with the checkstyle plugin.
> >> >> But one thing is very strange to me. I am not able to build the smx
> >> >> without using -Pnochecks. It otherwise always complains about a
> >> >> missing LICENSE.txt file. (see output below)
> >> >> Do you have an idea how to solve this?
> >> >>
> >> >> Regards,
> >> >> Lars
> >> >>
> >> >>
> >> >> mvn -Dmaven.test.skip=true -Pstep1 install
> >> >>
> >> >> [INFO] Scanning for projects...
> >> >> [INFO] Reactor build order:
> >> >> [INFO] ServiceMix
> >> >> [INFO] Servicemix :: Build
> >> >> [INFO] ServiceMix :: Parent
> >> >> [INFO] ServiceMix :: Core
> >> >> [INFO] ServiceMix :: JBI
> >> >> [INFO] ServiceMix :: Services
> >> >> [INFO] ServiceMix :: Core
> >> >> [INFO] ServiceMix :: Audit
> >> >> [INFO] ServiceMix :: Common
> >> >> [INFO] ServiceMix :: Common
> >> >> [INFO] ServiceMix :: Components
> >> >> [INFO] ServiceMix :: SOAP
> >> >> [INFO] ServiceMix :: SOAP2
> >> >> [INFO] ServiceMix :: BeanFlow
> >> >> [INFO] ServiceMix :: Tooling
> >> >> [INFO] ServiceMix :: Maven2 Resource Plugin
> >> >> [INFO] ServiceMix :: Maven2 JBI Plugin
> >> >> [INFO] ServiceMix :: Maven2 XFire Plugin
> >> >> [INFO]
> >> >> ------------------------------------------------------------------------
> >> >> [INFO] Building ServiceMix
> >> >> [INFO] task-segment: [install]
> >> >> [INFO]
> >> >> ------------------------------------------------------------------------
> >> >> [INFO] [site:attach-descriptor]
> >> >> [INFO] [install:install]
> >> >> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/pom.xml to
> >> >> /home/lhe/.m2/repository/org/apache/servicemix/servicemix/3.3-SNAPSHOT/servicemix-3.3-SNAPSHOT.pom
> >> >> [INFO]
> >> >> ------------------------------------------------------------------------
> >> >> [INFO] Building Servicemix :: Build
> >> >> [INFO] task-segment: [install]
> >> >> [INFO]
> >> >> ------------------------------------------------------------------------
> >> >> [INFO] [plugin:descriptor]
> >> >> [INFO] Using 2 extractors.
> >> >> [INFO] Applying extractor for language: java
> >> >> [INFO] Extractor for language: java found 1 mojo descriptors.
> >> >> [INFO] Applying extractor for language: bsh
> >> >> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> >> >> [INFO] [antrun:run {execution: legal-files}]
> >> >> [INFO] Executing tasks
> >> >> [INFO] Executed tasks
> >> >> [INFO] Registering compile source root
> >> >> /home/lhe/workspace/asf/servicemix-trunk/build/target/legal
> >> >> [INFO] [resources:resources]
> >> >> [INFO] Using default encoding to copy filtered resources.
> >> >> [INFO] [compiler:compile]
> >> >> [INFO] Nothing to compile - all classes are up to date
> >> >> [INFO] [resources:testResources]
> >> >> [INFO] Using default encoding to copy filtered resources.
> >> >> [INFO] [compiler:testCompile]
> >> >> [INFO] Not compiling test sources
> >> >> [INFO] [surefire:test]
> >> >> [INFO] Tests are skipped.
> >> >> [INFO] [jar:jar]
> >> >> [INFO] Building jar:
> >> >> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
> >> >> [INFO] [plugin:addPluginArtifactMetadata]
> >> >> [INFO] [install:install]
> >> >> [INFO] Installing
> >> >> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
> >> >> to
> >> >> /home/lhe/.m2/repository/org/apache/servicemix/build/3.3-SNAPSHOT/build-3.3-SNAPSHOT.jar
> >> >> [INFO] [plugin:updateRegistry]
> >> >> [INFO]
> >> >> ------------------------------------------------------------------------
> >> >> [INFO] Building ServiceMix :: Parent
> >> >> [INFO] task-segment: [install]
> >> >> [INFO]
> >> >> ------------------------------------------------------------------------
> >> >> [INFO] Setting property: classpath.resource.loader.class =>
> >> >> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> >> >> [INFO] Setting property: velocimacro.messages.on => 'false'.
> >> >> [INFO] Setting property: resource.loader => 'classpath'.
> >> >> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> >> >> [INFO] **************************************************************
> >> >> [INFO] Starting Jakarta Velocity v1.4
> >> >> [INFO] RuntimeInstance initializing.
> >> >> [INFO] Default Properties File:
> >> >> org/apache/velocity/runtime/defaults/velocity.properties
> >> >> [INFO] Default ResourceManager initializing. (class
> >> >> org.apache.velocity.runtime.resource.ResourceManagerImpl)
> >> >> [INFO] Resource Loader Instantiated:
> >> >> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
> >> >> [INFO] ClasspathResourceLoader : initialization starting.
> >> >> [INFO] ClasspathResourceLoader : initialization complete.
> >> >> [INFO] ResourceCache : initialized. (class
> >> >> org.apache.velocity.runtime.resource.ResourceCacheImpl)
> >> >> [INFO] Default ResourceManager initialization complete.
> >> >> [INFO] Loaded System Directive:
> >> >> org.apache.velocity.runtime.directive.Literal
> >> >> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
> >> >> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
> >> >> [INFO] Loaded System Directive:
> >> >> org.apache.velocity.runtime.directive.Include
> >> >> [INFO] Loaded System Directive:
> >> >> org.apache.velocity.runtime.directive.Foreach
> >> >> [INFO] Created: 20 parsers.
> >> >> [INFO] Velocimacro : initialization starting.
> >> >> [INFO] Velocimacro : adding VMs from VM library template :
> >> >> VM_global_library.vm
> >> >> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
> >> >> in any resource loader.
> >> >> [INFO] Velocimacro : error using VM library template
> >> >> VM_global_library.vm :
> >> >> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
> >> >> resource 'VM_global_library.vm'
> >> >> [INFO] Velocimacro : VM library template macro registration complete.
> >> >> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in
> >> >> templates
> >> >> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
> >> >> may NOT replace previous VM definitions
> >> >> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
> >> >> be global in scope if allowed.
> >> >> [INFO] Velocimacro : initialization complete.
> >> >> [INFO] Velocity successfully started.
> >> >> [INFO] [checkstyle:checkstyle {execution: validate}]
> >> >> [INFO] Source directory does not exist - skipping report.
> >> >> [INFO] Preparing pmd:check
> >> >> [INFO] [pmd:pmd]
> >> >> [INFO] [pmd:check {execution: validate}]
> >> >> [INFO] [site:attach-descriptor]
> >> >> [INFO] [install:install]
> >> >> [INFO] Installing
> >> >> /home/lhe/workspace/asf/servicemix-trunk/parent/pom.xml to
> >> >> /home/lhe/.m2/repository/org/apache/servicemix/parent/3.3-SNAPSHOT/parent-3.3-SNAPSHOT.pom
> >> >> [INFO]
> >> >> ------------------------------------------------------------------------
> >> >> [INFO] Building ServiceMix :: Core
> >> >> [INFO] task-segment: [install]
> >> >> [INFO]
> >> >> ------------------------------------------------------------------------
> >> >> [INFO] [checkstyle:checkstyle {execution: validate}]
> >> >> [INFO] Source directory does not exist - skipping report.
> >> >> [INFO] Preparing pmd:check
> >> >> [INFO] [pmd:pmd]
> >> >> [INFO] [pmd:check {execution: validate}]
> >> >> [INFO] [build:copy {execution: default}]
> >> >> [INFO] [site:attach-descriptor]
> >> >> [INFO] [install:install]
> >> >> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/core/pom.xml
> >> >> to
> >> >> /home/lhe/.m2/repository/org/apache/servicemix/core/3.3-SNAPSHOT/core-3.3-SNAPSHOT.pom
> >> >> [INFO]
> >> >> ------------------------------------------------------------------------
> >> >> [INFO] Building ServiceMix :: JBI
> >> >> [INFO] task-segment: [install]
> >> >> [INFO]
> >> >> ------------------------------------------------------------------------
> >> >> [INFO] [checkstyle:checkstyle {execution: validate}]
> >> >> [INFO]
> >> >> ------------------------------------------------------------------------
> >> >> [ERROR] BUILD ERROR
> >> >> [INFO]
> >> >> ------------------------------------------------------------------------
> >> >> [INFO] An error has occurred in Checkstyle report generation.
> >> >>
> >> >> Embedded error: Unable to process header location.
> >> >> Unable to find location 'LICENSE.txt' as URL, File or Resource.
> >> >> [INFO]
> >> >> ------------------------------------------------------------------------
> >> >> [INFO] For more information, run Maven with the -e switch
> >> >> [INFO]
> >> >> ------------------------------------------------------------------------
> >> >> [INFO] Total time: 10 seconds
> >> >> [INFO] Finished at: Thu Feb 28 09:44:30 CET 2008
> >> >> [INFO] Final Memory: 22M/107M
> >> >> [INFO]
> >> >> ------------------------------------------------------------------------
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> Freeman Fang schrieb:
> >> >>
> >> >>
> >> >>
> >> >>> Hi Lars,
> >> >>>
> >> >> >
> >> >> > use "mvn -Psetup.eclipse" you can see checkstyle-checker.xml under
> >> >> > target folder.
> >> >> > 1. import your servicemix-osworkflow project into eclipse
> >> >> > 2. import checkstyle-checker.xml into eclipse (Window-> Preferences->
> >> >> > check style)
> >> >> > 3. set the checkstyle properties of servicemix-osworkflow as what you
> >> >> > step 2 import
> >> >> >
> >> >> > Best Regards
> >> >> >
> >> >> > Freeman
> >> >> >
> >> >> > Lars Heinemann wrote:
> >> >> >> Freeman,
> >> >> >>
> >> >> >> sorry for being not compliant to checkstyle.
> >> >> >> Can you somehow describe what to set in Eclipse for having
> >> >> >> the desired code style?
> >> >> >> I used the files I found in the etc folder of smx.
> >> >> >>
> >> >> >> codetemplates.xml -> for "Code Templates" setting in Eclipse JDT
> >> >> >> ServiceMix.importoder -> for the "Organize Imports" setting in
> >> >> >> Eclipse JDT
> >> >> >> ServiceMixCodeFormatter.xml -> for the "Formatter" setting in Eclipse
> >> >> >> JDT
> >> >> >>
> >> >> >> Is there anything else to setup?
> >> >> >> I downloaded now the checkstyle eclipse plugin, but configuration
> >> >> >> file to use?
> >> >> >>
> >> >> >> Regards,
> >> >> >> Lars
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> Freeman Fang (JIRA) schrieb:
> >> >> >>> [
> >> >> >>> https://issues.apache.org/activemq/browse/SM-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> >> >> >>> ]
> >> >> >>>
> >> >> >>> Freeman Fang resolved SM-1253.
> >> >> >>> ------------------------------
> >> >> >>>
> >> >> >>> Fix Version/s: 3.2.2
> >> >> >>> 3.3
> >> >> >>> Resolution: Fixed
> >> >> >>>
> >> >> >>> commit fix http://svn.apache.org/viewvc?rev=631872&view=rev for 3.3
> >> >> >>> branch
> >> >> >>> http://svn.apache.org/viewvc?rev=631873&view=rev for 3.2.2 branch
> >> >> >>>
> >> >> >>>
> >> >> >>>> checkstyle error in servicemix-osworkflow
> >> >> >>>> -----------------------------------------
> >> >> >>>>
> >> >> >>>> Key: SM-1253
> >> >> >>>> URL: https://issues.apache.org/activemq/browse/SM-1253
> >> >> >>>> Project: ServiceMix
> >> >> >>>> Issue Type: Improvement
> >> >> >>>> Components: servicemix-osworkflow
> >> >> >>>> Reporter: Freeman Fang
> >> >> >>>> Assignee: Freeman Fang
> >> >> >>>> Priority: Minor
> >> >> >>>> Fix For: 3.2.2, 3.3
> >> >> >>>>
> >> >> >>>>
> >> >> >>>>
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >>
> >> >> >
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >
> >
> >
> >
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
Re: [jira] Resolved: (SM-1253) checkstyle error in servicemix-osworkflow
Posted by Lars Heinemann <la...@compart.net>.
Guillaume,
here you are :)
Regards,
Lars
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] ServiceMix
[INFO] Servicemix :: Build
[INFO] ServiceMix :: Parent
[INFO] ServiceMix :: Core
[INFO] ServiceMix :: JBI
[INFO] ServiceMix :: Services
[INFO] ServiceMix :: Core
[INFO] ServiceMix :: Audit
[INFO] ServiceMix :: Common
[INFO] ServiceMix :: Common
[INFO] ServiceMix :: Components
[INFO] ServiceMix :: SOAP
[INFO] ServiceMix :: SOAP2
[INFO] ServiceMix :: BeanFlow
[INFO] ServiceMix :: Tooling
[INFO] ServiceMix :: Maven2 Resource Plugin
[INFO] ServiceMix :: Maven2 JBI Plugin
[INFO] ServiceMix :: Maven2 XFire Plugin
[INFO]
------------------------------------------------------------------------
[INFO] Building ServiceMix
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/pom.xml to
/home/lhe/.m2/repository/org/apache/servicemix/servicemix/3.3-SNAPSHOT/servicemix-3.3-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
[INFO] Building Servicemix :: Build
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [plugin:descriptor]
[INFO] Using 2 extractors.
[INFO] Applying extractor for language: java
[INFO] Extractor for language: java found 1 mojo descriptors.
[INFO] Applying extractor for language: bsh
[INFO] Extractor for language: bsh found 0 mojo descriptors.
[INFO] [antrun:run {execution: legal-files}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] Registering compile source root
/home/lhe/workspace/asf/servicemix-trunk/build/target/legal
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [jar:jar]
[INFO] Building jar:
/home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
[INFO] [plugin:addPluginArtifactMetadata]
[INFO] [install:install]
[INFO] Installing
/home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
to
/home/lhe/.m2/repository/org/apache/servicemix/build/3.3-SNAPSHOT/build-3.3-SNAPSHOT.jar
[INFO] [plugin:updateRegistry]
[INFO]
------------------------------------------------------------------------
[INFO] Building ServiceMix :: Parent
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org/apache/velocity/runtime/defaults/velocity.properties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in any resource loader.
[INFO] Velocimacro : error using VM library template
VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
be global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [checkstyle:checkstyle {execution: validate}]
[INFO] Source directory does not exist - skipping report.
[INFO] Preparing pmd:check
[INFO] [pmd:pmd]
[INFO] [pmd:check {execution: validate}]
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing
/home/lhe/workspace/asf/servicemix-trunk/parent/pom.xml to
/home/lhe/.m2/repository/org/apache/servicemix/parent/3.3-SNAPSHOT/parent-3.3-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
[INFO] Building ServiceMix :: Core
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [checkstyle:checkstyle {execution: validate}]
[INFO] Source directory does not exist - skipping report.
[INFO] Preparing pmd:check
[INFO] [pmd:pmd]
[INFO] [pmd:check {execution: validate}]
[INFO] [build:copy {execution: default}]
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/core/pom.xml
to
/home/lhe/.m2/repository/org/apache/servicemix/core/3.3-SNAPSHOT/core-3.3-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
[INFO] Building ServiceMix :: JBI
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [checkstyle:checkstyle {execution: validate}]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An error has occurred in Checkstyle report generation.
Embedded error: Unable to process header location.
Unable to find location 'LICENSE.txt' as URL, File or Resource.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An error has
occurred in Checkstyle report generation.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: An error has
occurred in Checkstyle report generation.
at
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:79)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
... 16 more
Caused by: org.apache.maven.reporting.MavenReportException: Unable to
process header location.
at
org.apache.maven.plugin.checkstyle.CheckstyleReport.getOverridingProperties(CheckstyleReport.java:881)
at
org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:467)
at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
at
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
... 18 more
Caused by: java.io.IOException: Unable to find location 'LICENSE.txt' as
URL, File or Resource.
at
org.apache.maven.plugin.checkstyle.Locator.resolveLocation(Locator.java:127)
at
org.apache.maven.plugin.checkstyle.CheckstyleReport.getOverridingProperties(CheckstyleReport.java:873)
... 21 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Thu Feb 28 10:42:03 CET 2008
[INFO] Final Memory: 22M/106M
[INFO]
------------------------------------------------------------------------
Guillaume Nodet schrieb:
> Yeah, right, me neither ;-) Sorry.
> Can you try with the -e flag to know who is throwing this error ?
>
>
> On Thu, Feb 28, 2008 at 10:19 AM, Lars Heinemann
> <la...@compart.net> wrote:
>
>> Guillaume,
>>
>> what LICENSE.txt file? I can't see any file like this.
>> In the root of the smx project there is only a LICENSE file without
>> the .txt extension.
>>
>> Regards,
>> Lars
>>
>>
>>
>>
>> Guillaume Nodet schrieb:
>>
>>
>>
>>> Do you have the LICENSE.txt file in the root directory ?
>>>
>> > I don't have this error ...
>> >
>> > On Thu, Feb 28, 2008 at 9:46 AM, Lars Heinemann
>> > <la...@compart.net> wrote:
>> >
>> >> Freeman,
>> >>
>> >> thank you for the answer.
>> >> After following your advices I am now able to see non-compliant
>> >> code passages with the checkstyle plugin.
>> >> But one thing is very strange to me. I am not able to build the smx
>> >> without using -Pnochecks. It otherwise always complains about a
>> >> missing LICENSE.txt file. (see output below)
>> >> Do you have an idea how to solve this?
>> >>
>> >> Regards,
>> >> Lars
>> >>
>> >>
>> >> mvn -Dmaven.test.skip=true -Pstep1 install
>> >>
>> >> [INFO] Scanning for projects...
>> >> [INFO] Reactor build order:
>> >> [INFO] ServiceMix
>> >> [INFO] Servicemix :: Build
>> >> [INFO] ServiceMix :: Parent
>> >> [INFO] ServiceMix :: Core
>> >> [INFO] ServiceMix :: JBI
>> >> [INFO] ServiceMix :: Services
>> >> [INFO] ServiceMix :: Core
>> >> [INFO] ServiceMix :: Audit
>> >> [INFO] ServiceMix :: Common
>> >> [INFO] ServiceMix :: Common
>> >> [INFO] ServiceMix :: Components
>> >> [INFO] ServiceMix :: SOAP
>> >> [INFO] ServiceMix :: SOAP2
>> >> [INFO] ServiceMix :: BeanFlow
>> >> [INFO] ServiceMix :: Tooling
>> >> [INFO] ServiceMix :: Maven2 Resource Plugin
>> >> [INFO] ServiceMix :: Maven2 JBI Plugin
>> >> [INFO] ServiceMix :: Maven2 XFire Plugin
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] Building ServiceMix
>> >> [INFO] task-segment: [install]
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] [site:attach-descriptor]
>> >> [INFO] [install:install]
>> >> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/pom.xml to
>> >> /home/lhe/.m2/repository/org/apache/servicemix/servicemix/3.3-SNAPSHOT/servicemix-3.3-SNAPSHOT.pom
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] Building Servicemix :: Build
>> >> [INFO] task-segment: [install]
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] [plugin:descriptor]
>> >> [INFO] Using 2 extractors.
>> >> [INFO] Applying extractor for language: java
>> >> [INFO] Extractor for language: java found 1 mojo descriptors.
>> >> [INFO] Applying extractor for language: bsh
>> >> [INFO] Extractor for language: bsh found 0 mojo descriptors.
>> >> [INFO] [antrun:run {execution: legal-files}]
>> >> [INFO] Executing tasks
>> >> [INFO] Executed tasks
>> >> [INFO] Registering compile source root
>> >> /home/lhe/workspace/asf/servicemix-trunk/build/target/legal
>> >> [INFO] [resources:resources]
>> >> [INFO] Using default encoding to copy filtered resources.
>> >> [INFO] [compiler:compile]
>> >> [INFO] Nothing to compile - all classes are up to date
>> >> [INFO] [resources:testResources]
>> >> [INFO] Using default encoding to copy filtered resources.
>> >> [INFO] [compiler:testCompile]
>> >> [INFO] Not compiling test sources
>> >> [INFO] [surefire:test]
>> >> [INFO] Tests are skipped.
>> >> [INFO] [jar:jar]
>> >> [INFO] Building jar:
>> >> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
>> >> [INFO] [plugin:addPluginArtifactMetadata]
>> >> [INFO] [install:install]
>> >> [INFO] Installing
>> >> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
>> >> to
>> >> /home/lhe/.m2/repository/org/apache/servicemix/build/3.3-SNAPSHOT/build-3.3-SNAPSHOT.jar
>> >> [INFO] [plugin:updateRegistry]
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] Building ServiceMix :: Parent
>> >> [INFO] task-segment: [install]
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] Setting property: classpath.resource.loader.class =>
>> >> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>> >> [INFO] Setting property: velocimacro.messages.on => 'false'.
>> >> [INFO] Setting property: resource.loader => 'classpath'.
>> >> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
>> >> [INFO] **************************************************************
>> >> [INFO] Starting Jakarta Velocity v1.4
>> >> [INFO] RuntimeInstance initializing.
>> >> [INFO] Default Properties File:
>> >> org/apache/velocity/runtime/defaults/velocity.properties
>> >> [INFO] Default ResourceManager initializing. (class
>> >> org.apache.velocity.runtime.resource.ResourceManagerImpl)
>> >> [INFO] Resource Loader Instantiated:
>> >> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
>> >> [INFO] ClasspathResourceLoader : initialization starting.
>> >> [INFO] ClasspathResourceLoader : initialization complete.
>> >> [INFO] ResourceCache : initialized. (class
>> >> org.apache.velocity.runtime.resource.ResourceCacheImpl)
>> >> [INFO] Default ResourceManager initialization complete.
>> >> [INFO] Loaded System Directive:
>> >> org.apache.velocity.runtime.directive.Literal
>> >> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
>> >> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
>> >> [INFO] Loaded System Directive:
>> >> org.apache.velocity.runtime.directive.Include
>> >> [INFO] Loaded System Directive:
>> >> org.apache.velocity.runtime.directive.Foreach
>> >> [INFO] Created: 20 parsers.
>> >> [INFO] Velocimacro : initialization starting.
>> >> [INFO] Velocimacro : adding VMs from VM library template :
>> >> VM_global_library.vm
>> >> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
>> >> in any resource loader.
>> >> [INFO] Velocimacro : error using VM library template
>> >> VM_global_library.vm :
>> >> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
>> >> resource 'VM_global_library.vm'
>> >> [INFO] Velocimacro : VM library template macro registration complete.
>> >> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in
>> >> templates
>> >> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
>> >> may NOT replace previous VM definitions
>> >> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
>> >> be global in scope if allowed.
>> >> [INFO] Velocimacro : initialization complete.
>> >> [INFO] Velocity successfully started.
>> >> [INFO] [checkstyle:checkstyle {execution: validate}]
>> >> [INFO] Source directory does not exist - skipping report.
>> >> [INFO] Preparing pmd:check
>> >> [INFO] [pmd:pmd]
>> >> [INFO] [pmd:check {execution: validate}]
>> >> [INFO] [site:attach-descriptor]
>> >> [INFO] [install:install]
>> >> [INFO] Installing
>> >> /home/lhe/workspace/asf/servicemix-trunk/parent/pom.xml to
>> >> /home/lhe/.m2/repository/org/apache/servicemix/parent/3.3-SNAPSHOT/parent-3.3-SNAPSHOT.pom
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] Building ServiceMix :: Core
>> >> [INFO] task-segment: [install]
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] [checkstyle:checkstyle {execution: validate}]
>> >> [INFO] Source directory does not exist - skipping report.
>> >> [INFO] Preparing pmd:check
>> >> [INFO] [pmd:pmd]
>> >> [INFO] [pmd:check {execution: validate}]
>> >> [INFO] [build:copy {execution: default}]
>> >> [INFO] [site:attach-descriptor]
>> >> [INFO] [install:install]
>> >> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/core/pom.xml
>> >> to
>> >> /home/lhe/.m2/repository/org/apache/servicemix/core/3.3-SNAPSHOT/core-3.3-SNAPSHOT.pom
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] Building ServiceMix :: JBI
>> >> [INFO] task-segment: [install]
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] [checkstyle:checkstyle {execution: validate}]
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [ERROR] BUILD ERROR
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] An error has occurred in Checkstyle report generation.
>> >>
>> >> Embedded error: Unable to process header location.
>> >> Unable to find location 'LICENSE.txt' as URL, File or Resource.
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] For more information, run Maven with the -e switch
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] Total time: 10 seconds
>> >> [INFO] Finished at: Thu Feb 28 09:44:30 CET 2008
>> >> [INFO] Final Memory: 22M/107M
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >>
>> >>
>> >>
>> >>
>> >> Freeman Fang schrieb:
>> >>
>> >>
>> >>
>> >>> Hi Lars,
>> >>>
>> >> >
>> >> > use "mvn -Psetup.eclipse" you can see checkstyle-checker.xml under
>> >> > target folder.
>> >> > 1. import your servicemix-osworkflow project into eclipse
>> >> > 2. import checkstyle-checker.xml into eclipse (Window-> Preferences->
>> >> > check style)
>> >> > 3. set the checkstyle properties of servicemix-osworkflow as what you
>> >> > step 2 import
>> >> >
>> >> > Best Regards
>> >> >
>> >> > Freeman
>> >> >
>> >> > Lars Heinemann wrote:
>> >> >> Freeman,
>> >> >>
>> >> >> sorry for being not compliant to checkstyle.
>> >> >> Can you somehow describe what to set in Eclipse for having
>> >> >> the desired code style?
>> >> >> I used the files I found in the etc folder of smx.
>> >> >>
>> >> >> codetemplates.xml -> for "Code Templates" setting in Eclipse JDT
>> >> >> ServiceMix.importoder -> for the "Organize Imports" setting in
>> >> >> Eclipse JDT
>> >> >> ServiceMixCodeFormatter.xml -> for the "Formatter" setting in Eclipse
>> >> >> JDT
>> >> >>
>> >> >> Is there anything else to setup?
>> >> >> I downloaded now the checkstyle eclipse plugin, but configuration
>> >> >> file to use?
>> >> >>
>> >> >> Regards,
>> >> >> Lars
>> >> >>
>> >> >>
>> >> >>
>> >> >> Freeman Fang (JIRA) schrieb:
>> >> >>> [
>> >> >>> https://issues.apache.org/activemq/browse/SM-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>> >> >>> ]
>> >> >>>
>> >> >>> Freeman Fang resolved SM-1253.
>> >> >>> ------------------------------
>> >> >>>
>> >> >>> Fix Version/s: 3.2.2
>> >> >>> 3.3
>> >> >>> Resolution: Fixed
>> >> >>>
>> >> >>> commit fix http://svn.apache.org/viewvc?rev=631872&view=rev for 3.3
>> >> >>> branch
>> >> >>> http://svn.apache.org/viewvc?rev=631873&view=rev for 3.2.2 branch
>> >> >>>
>> >> >>>
>> >> >>>> checkstyle error in servicemix-osworkflow
>> >> >>>> -----------------------------------------
>> >> >>>>
>> >> >>>> Key: SM-1253
>> >> >>>> URL: https://issues.apache.org/activemq/browse/SM-1253
>> >> >>>> Project: ServiceMix
>> >> >>>> Issue Type: Improvement
>> >> >>>> Components: servicemix-osworkflow
>> >> >>>> Reporter: Freeman Fang
>> >> >>>> Assignee: Freeman Fang
>> >> >>>> Priority: Minor
>> >> >>>> Fix For: 3.2.2, 3.3
>> >> >>>>
>> >> >>>>
>> >> >>>>
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>
>> >> >
>> >>
>> >>
>> >
>> >
>> >
>> >
>>
>>
>
>
>
>
Re: [jira] Resolved: (SM-1253) checkstyle error in servicemix-osworkflow
Posted by Guillaume Nodet <gn...@gmail.com>.
Yeah, right, me neither ;-) Sorry.
Can you try with the -e flag to know who is throwing this error ?
On Thu, Feb 28, 2008 at 10:19 AM, Lars Heinemann
<la...@compart.net> wrote:
> Guillaume,
>
> what LICENSE.txt file? I can't see any file like this.
> In the root of the smx project there is only a LICENSE file without
> the .txt extension.
>
> Regards,
> Lars
>
>
>
>
> Guillaume Nodet schrieb:
>
>
> > Do you have the LICENSE.txt file in the root directory ?
> > I don't have this error ...
> >
> > On Thu, Feb 28, 2008 at 9:46 AM, Lars Heinemann
> > <la...@compart.net> wrote:
> >
> >> Freeman,
> >>
> >> thank you for the answer.
> >> After following your advices I am now able to see non-compliant
> >> code passages with the checkstyle plugin.
> >> But one thing is very strange to me. I am not able to build the smx
> >> without using -Pnochecks. It otherwise always complains about a
> >> missing LICENSE.txt file. (see output below)
> >> Do you have an idea how to solve this?
> >>
> >> Regards,
> >> Lars
> >>
> >>
> >> mvn -Dmaven.test.skip=true -Pstep1 install
> >>
> >> [INFO] Scanning for projects...
> >> [INFO] Reactor build order:
> >> [INFO] ServiceMix
> >> [INFO] Servicemix :: Build
> >> [INFO] ServiceMix :: Parent
> >> [INFO] ServiceMix :: Core
> >> [INFO] ServiceMix :: JBI
> >> [INFO] ServiceMix :: Services
> >> [INFO] ServiceMix :: Core
> >> [INFO] ServiceMix :: Audit
> >> [INFO] ServiceMix :: Common
> >> [INFO] ServiceMix :: Common
> >> [INFO] ServiceMix :: Components
> >> [INFO] ServiceMix :: SOAP
> >> [INFO] ServiceMix :: SOAP2
> >> [INFO] ServiceMix :: BeanFlow
> >> [INFO] ServiceMix :: Tooling
> >> [INFO] ServiceMix :: Maven2 Resource Plugin
> >> [INFO] ServiceMix :: Maven2 JBI Plugin
> >> [INFO] ServiceMix :: Maven2 XFire Plugin
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Building ServiceMix
> >> [INFO] task-segment: [install]
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] [site:attach-descriptor]
> >> [INFO] [install:install]
> >> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/pom.xml to
> >> /home/lhe/.m2/repository/org/apache/servicemix/servicemix/3.3-SNAPSHOT/servicemix-3.3-SNAPSHOT.pom
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Building Servicemix :: Build
> >> [INFO] task-segment: [install]
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] [plugin:descriptor]
> >> [INFO] Using 2 extractors.
> >> [INFO] Applying extractor for language: java
> >> [INFO] Extractor for language: java found 1 mojo descriptors.
> >> [INFO] Applying extractor for language: bsh
> >> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> >> [INFO] [antrun:run {execution: legal-files}]
> >> [INFO] Executing tasks
> >> [INFO] Executed tasks
> >> [INFO] Registering compile source root
> >> /home/lhe/workspace/asf/servicemix-trunk/build/target/legal
> >> [INFO] [resources:resources]
> >> [INFO] Using default encoding to copy filtered resources.
> >> [INFO] [compiler:compile]
> >> [INFO] Nothing to compile - all classes are up to date
> >> [INFO] [resources:testResources]
> >> [INFO] Using default encoding to copy filtered resources.
> >> [INFO] [compiler:testCompile]
> >> [INFO] Not compiling test sources
> >> [INFO] [surefire:test]
> >> [INFO] Tests are skipped.
> >> [INFO] [jar:jar]
> >> [INFO] Building jar:
> >> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
> >> [INFO] [plugin:addPluginArtifactMetadata]
> >> [INFO] [install:install]
> >> [INFO] Installing
> >> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
> >> to
> >> /home/lhe/.m2/repository/org/apache/servicemix/build/3.3-SNAPSHOT/build-3.3-SNAPSHOT.jar
> >> [INFO] [plugin:updateRegistry]
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Building ServiceMix :: Parent
> >> [INFO] task-segment: [install]
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Setting property: classpath.resource.loader.class =>
> >> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> >> [INFO] Setting property: velocimacro.messages.on => 'false'.
> >> [INFO] Setting property: resource.loader => 'classpath'.
> >> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> >> [INFO] **************************************************************
> >> [INFO] Starting Jakarta Velocity v1.4
> >> [INFO] RuntimeInstance initializing.
> >> [INFO] Default Properties File:
> >> org/apache/velocity/runtime/defaults/velocity.properties
> >> [INFO] Default ResourceManager initializing. (class
> >> org.apache.velocity.runtime.resource.ResourceManagerImpl)
> >> [INFO] Resource Loader Instantiated:
> >> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
> >> [INFO] ClasspathResourceLoader : initialization starting.
> >> [INFO] ClasspathResourceLoader : initialization complete.
> >> [INFO] ResourceCache : initialized. (class
> >> org.apache.velocity.runtime.resource.ResourceCacheImpl)
> >> [INFO] Default ResourceManager initialization complete.
> >> [INFO] Loaded System Directive:
> >> org.apache.velocity.runtime.directive.Literal
> >> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
> >> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
> >> [INFO] Loaded System Directive:
> >> org.apache.velocity.runtime.directive.Include
> >> [INFO] Loaded System Directive:
> >> org.apache.velocity.runtime.directive.Foreach
> >> [INFO] Created: 20 parsers.
> >> [INFO] Velocimacro : initialization starting.
> >> [INFO] Velocimacro : adding VMs from VM library template :
> >> VM_global_library.vm
> >> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
> >> in any resource loader.
> >> [INFO] Velocimacro : error using VM library template
> >> VM_global_library.vm :
> >> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
> >> resource 'VM_global_library.vm'
> >> [INFO] Velocimacro : VM library template macro registration complete.
> >> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in
> >> templates
> >> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
> >> may NOT replace previous VM definitions
> >> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
> >> be global in scope if allowed.
> >> [INFO] Velocimacro : initialization complete.
> >> [INFO] Velocity successfully started.
> >> [INFO] [checkstyle:checkstyle {execution: validate}]
> >> [INFO] Source directory does not exist - skipping report.
> >> [INFO] Preparing pmd:check
> >> [INFO] [pmd:pmd]
> >> [INFO] [pmd:check {execution: validate}]
> >> [INFO] [site:attach-descriptor]
> >> [INFO] [install:install]
> >> [INFO] Installing
> >> /home/lhe/workspace/asf/servicemix-trunk/parent/pom.xml to
> >> /home/lhe/.m2/repository/org/apache/servicemix/parent/3.3-SNAPSHOT/parent-3.3-SNAPSHOT.pom
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Building ServiceMix :: Core
> >> [INFO] task-segment: [install]
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] [checkstyle:checkstyle {execution: validate}]
> >> [INFO] Source directory does not exist - skipping report.
> >> [INFO] Preparing pmd:check
> >> [INFO] [pmd:pmd]
> >> [INFO] [pmd:check {execution: validate}]
> >> [INFO] [build:copy {execution: default}]
> >> [INFO] [site:attach-descriptor]
> >> [INFO] [install:install]
> >> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/core/pom.xml
> >> to
> >> /home/lhe/.m2/repository/org/apache/servicemix/core/3.3-SNAPSHOT/core-3.3-SNAPSHOT.pom
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Building ServiceMix :: JBI
> >> [INFO] task-segment: [install]
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] [checkstyle:checkstyle {execution: validate}]
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] An error has occurred in Checkstyle report generation.
> >>
> >> Embedded error: Unable to process header location.
> >> Unable to find location 'LICENSE.txt' as URL, File or Resource.
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] For more information, run Maven with the -e switch
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Total time: 10 seconds
> >> [INFO] Finished at: Thu Feb 28 09:44:30 CET 2008
> >> [INFO] Final Memory: 22M/107M
> >> [INFO]
> >> ------------------------------------------------------------------------
> >>
> >>
> >>
> >>
> >> Freeman Fang schrieb:
> >>
> >>
> >>
> >>> Hi Lars,
> >>>
> >> >
> >> > use "mvn -Psetup.eclipse" you can see checkstyle-checker.xml under
> >> > target folder.
> >> > 1. import your servicemix-osworkflow project into eclipse
> >> > 2. import checkstyle-checker.xml into eclipse (Window-> Preferences->
> >> > check style)
> >> > 3. set the checkstyle properties of servicemix-osworkflow as what you
> >> > step 2 import
> >> >
> >> > Best Regards
> >> >
> >> > Freeman
> >> >
> >> > Lars Heinemann wrote:
> >> >> Freeman,
> >> >>
> >> >> sorry for being not compliant to checkstyle.
> >> >> Can you somehow describe what to set in Eclipse for having
> >> >> the desired code style?
> >> >> I used the files I found in the etc folder of smx.
> >> >>
> >> >> codetemplates.xml -> for "Code Templates" setting in Eclipse JDT
> >> >> ServiceMix.importoder -> for the "Organize Imports" setting in
> >> >> Eclipse JDT
> >> >> ServiceMixCodeFormatter.xml -> for the "Formatter" setting in Eclipse
> >> >> JDT
> >> >>
> >> >> Is there anything else to setup?
> >> >> I downloaded now the checkstyle eclipse plugin, but configuration
> >> >> file to use?
> >> >>
> >> >> Regards,
> >> >> Lars
> >> >>
> >> >>
> >> >>
> >> >> Freeman Fang (JIRA) schrieb:
> >> >>> [
> >> >>> https://issues.apache.org/activemq/browse/SM-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> >> >>> ]
> >> >>>
> >> >>> Freeman Fang resolved SM-1253.
> >> >>> ------------------------------
> >> >>>
> >> >>> Fix Version/s: 3.2.2
> >> >>> 3.3
> >> >>> Resolution: Fixed
> >> >>>
> >> >>> commit fix http://svn.apache.org/viewvc?rev=631872&view=rev for 3.3
> >> >>> branch
> >> >>> http://svn.apache.org/viewvc?rev=631873&view=rev for 3.2.2 branch
> >> >>>
> >> >>>
> >> >>>> checkstyle error in servicemix-osworkflow
> >> >>>> -----------------------------------------
> >> >>>>
> >> >>>> Key: SM-1253
> >> >>>> URL: https://issues.apache.org/activemq/browse/SM-1253
> >> >>>> Project: ServiceMix
> >> >>>> Issue Type: Improvement
> >> >>>> Components: servicemix-osworkflow
> >> >>>> Reporter: Freeman Fang
> >> >>>> Assignee: Freeman Fang
> >> >>>> Priority: Minor
> >> >>>> Fix For: 3.2.2, 3.3
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>>
> >> >>>
> >> >>>
> >> >>
> >> >
> >>
> >>
> >
> >
> >
> >
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
Re: [jira] Resolved: (SM-1253) checkstyle error in servicemix-osworkflow
Posted by Lars Heinemann <la...@compart.net>.
Guillaume,
what LICENSE.txt file? I can't see any file like this.
In the root of the smx project there is only a LICENSE file without
the .txt extension.
Regards,
Lars
Guillaume Nodet schrieb:
> Do you have the LICENSE.txt file in the root directory ?
> I don't have this error ...
>
> On Thu, Feb 28, 2008 at 9:46 AM, Lars Heinemann
> <la...@compart.net> wrote:
>
>> Freeman,
>>
>> thank you for the answer.
>> After following your advices I am now able to see non-compliant
>> code passages with the checkstyle plugin.
>> But one thing is very strange to me. I am not able to build the smx
>> without using -Pnochecks. It otherwise always complains about a
>> missing LICENSE.txt file. (see output below)
>> Do you have an idea how to solve this?
>>
>> Regards,
>> Lars
>>
>>
>> mvn -Dmaven.test.skip=true -Pstep1 install
>>
>> [INFO] Scanning for projects...
>> [INFO] Reactor build order:
>> [INFO] ServiceMix
>> [INFO] Servicemix :: Build
>> [INFO] ServiceMix :: Parent
>> [INFO] ServiceMix :: Core
>> [INFO] ServiceMix :: JBI
>> [INFO] ServiceMix :: Services
>> [INFO] ServiceMix :: Core
>> [INFO] ServiceMix :: Audit
>> [INFO] ServiceMix :: Common
>> [INFO] ServiceMix :: Common
>> [INFO] ServiceMix :: Components
>> [INFO] ServiceMix :: SOAP
>> [INFO] ServiceMix :: SOAP2
>> [INFO] ServiceMix :: BeanFlow
>> [INFO] ServiceMix :: Tooling
>> [INFO] ServiceMix :: Maven2 Resource Plugin
>> [INFO] ServiceMix :: Maven2 JBI Plugin
>> [INFO] ServiceMix :: Maven2 XFire Plugin
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building ServiceMix
>> [INFO] task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [site:attach-descriptor]
>> [INFO] [install:install]
>> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/pom.xml to
>> /home/lhe/.m2/repository/org/apache/servicemix/servicemix/3.3-SNAPSHOT/servicemix-3.3-SNAPSHOT.pom
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Servicemix :: Build
>> [INFO] task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [plugin:descriptor]
>> [INFO] Using 2 extractors.
>> [INFO] Applying extractor for language: java
>> [INFO] Extractor for language: java found 1 mojo descriptors.
>> [INFO] Applying extractor for language: bsh
>> [INFO] Extractor for language: bsh found 0 mojo descriptors.
>> [INFO] [antrun:run {execution: legal-files}]
>> [INFO] Executing tasks
>> [INFO] Executed tasks
>> [INFO] Registering compile source root
>> /home/lhe/workspace/asf/servicemix-trunk/build/target/legal
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:testCompile]
>> [INFO] Not compiling test sources
>> [INFO] [surefire:test]
>> [INFO] Tests are skipped.
>> [INFO] [jar:jar]
>> [INFO] Building jar:
>> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
>> [INFO] [plugin:addPluginArtifactMetadata]
>> [INFO] [install:install]
>> [INFO] Installing
>> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
>> to
>> /home/lhe/.m2/repository/org/apache/servicemix/build/3.3-SNAPSHOT/build-3.3-SNAPSHOT.jar
>> [INFO] [plugin:updateRegistry]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building ServiceMix :: Parent
>> [INFO] task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Setting property: classpath.resource.loader.class =>
>> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>> [INFO] Setting property: velocimacro.messages.on => 'false'.
>> [INFO] Setting property: resource.loader => 'classpath'.
>> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
>> [INFO] **************************************************************
>> [INFO] Starting Jakarta Velocity v1.4
>> [INFO] RuntimeInstance initializing.
>> [INFO] Default Properties File:
>> org/apache/velocity/runtime/defaults/velocity.properties
>> [INFO] Default ResourceManager initializing. (class
>> org.apache.velocity.runtime.resource.ResourceManagerImpl)
>> [INFO] Resource Loader Instantiated:
>> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
>> [INFO] ClasspathResourceLoader : initialization starting.
>> [INFO] ClasspathResourceLoader : initialization complete.
>> [INFO] ResourceCache : initialized. (class
>> org.apache.velocity.runtime.resource.ResourceCacheImpl)
>> [INFO] Default ResourceManager initialization complete.
>> [INFO] Loaded System Directive:
>> org.apache.velocity.runtime.directive.Literal
>> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
>> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
>> [INFO] Loaded System Directive:
>> org.apache.velocity.runtime.directive.Include
>> [INFO] Loaded System Directive:
>> org.apache.velocity.runtime.directive.Foreach
>> [INFO] Created: 20 parsers.
>> [INFO] Velocimacro : initialization starting.
>> [INFO] Velocimacro : adding VMs from VM library template :
>> VM_global_library.vm
>> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
>> in any resource loader.
>> [INFO] Velocimacro : error using VM library template
>> VM_global_library.vm :
>> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
>> resource 'VM_global_library.vm'
>> [INFO] Velocimacro : VM library template macro registration complete.
>> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in
>> templates
>> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
>> may NOT replace previous VM definitions
>> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
>> be global in scope if allowed.
>> [INFO] Velocimacro : initialization complete.
>> [INFO] Velocity successfully started.
>> [INFO] [checkstyle:checkstyle {execution: validate}]
>> [INFO] Source directory does not exist - skipping report.
>> [INFO] Preparing pmd:check
>> [INFO] [pmd:pmd]
>> [INFO] [pmd:check {execution: validate}]
>> [INFO] [site:attach-descriptor]
>> [INFO] [install:install]
>> [INFO] Installing
>> /home/lhe/workspace/asf/servicemix-trunk/parent/pom.xml to
>> /home/lhe/.m2/repository/org/apache/servicemix/parent/3.3-SNAPSHOT/parent-3.3-SNAPSHOT.pom
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building ServiceMix :: Core
>> [INFO] task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [checkstyle:checkstyle {execution: validate}]
>> [INFO] Source directory does not exist - skipping report.
>> [INFO] Preparing pmd:check
>> [INFO] [pmd:pmd]
>> [INFO] [pmd:check {execution: validate}]
>> [INFO] [build:copy {execution: default}]
>> [INFO] [site:attach-descriptor]
>> [INFO] [install:install]
>> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/core/pom.xml
>> to
>> /home/lhe/.m2/repository/org/apache/servicemix/core/3.3-SNAPSHOT/core-3.3-SNAPSHOT.pom
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building ServiceMix :: JBI
>> [INFO] task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [checkstyle:checkstyle {execution: validate}]
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] An error has occurred in Checkstyle report generation.
>>
>> Embedded error: Unable to process header location.
>> Unable to find location 'LICENSE.txt' as URL, File or Resource.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 10 seconds
>> [INFO] Finished at: Thu Feb 28 09:44:30 CET 2008
>> [INFO] Final Memory: 22M/107M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>>
>>
>> Freeman Fang schrieb:
>>
>>
>>
>>> Hi Lars,
>>>
>> >
>> > use "mvn -Psetup.eclipse" you can see checkstyle-checker.xml under
>> > target folder.
>> > 1. import your servicemix-osworkflow project into eclipse
>> > 2. import checkstyle-checker.xml into eclipse (Window-> Preferences->
>> > check style)
>> > 3. set the checkstyle properties of servicemix-osworkflow as what you
>> > step 2 import
>> >
>> > Best Regards
>> >
>> > Freeman
>> >
>> > Lars Heinemann wrote:
>> >> Freeman,
>> >>
>> >> sorry for being not compliant to checkstyle.
>> >> Can you somehow describe what to set in Eclipse for having
>> >> the desired code style?
>> >> I used the files I found in the etc folder of smx.
>> >>
>> >> codetemplates.xml -> for "Code Templates" setting in Eclipse JDT
>> >> ServiceMix.importoder -> for the "Organize Imports" setting in
>> >> Eclipse JDT
>> >> ServiceMixCodeFormatter.xml -> for the "Formatter" setting in Eclipse
>> >> JDT
>> >>
>> >> Is there anything else to setup?
>> >> I downloaded now the checkstyle eclipse plugin, but configuration
>> >> file to use?
>> >>
>> >> Regards,
>> >> Lars
>> >>
>> >>
>> >>
>> >> Freeman Fang (JIRA) schrieb:
>> >>> [
>> >>> https://issues.apache.org/activemq/browse/SM-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>> >>> ]
>> >>>
>> >>> Freeman Fang resolved SM-1253.
>> >>> ------------------------------
>> >>>
>> >>> Fix Version/s: 3.2.2
>> >>> 3.3
>> >>> Resolution: Fixed
>> >>>
>> >>> commit fix http://svn.apache.org/viewvc?rev=631872&view=rev for 3.3
>> >>> branch
>> >>> http://svn.apache.org/viewvc?rev=631873&view=rev for 3.2.2 branch
>> >>>
>> >>>
>> >>>> checkstyle error in servicemix-osworkflow
>> >>>> -----------------------------------------
>> >>>>
>> >>>> Key: SM-1253
>> >>>> URL: https://issues.apache.org/activemq/browse/SM-1253
>> >>>> Project: ServiceMix
>> >>>> Issue Type: Improvement
>> >>>> Components: servicemix-osworkflow
>> >>>> Reporter: Freeman Fang
>> >>>> Assignee: Freeman Fang
>> >>>> Priority: Minor
>> >>>> Fix For: 3.2.2, 3.3
>> >>>>
>> >>>>
>> >>>>
>> >>>
>> >>>
>> >>>
>> >>
>> >
>>
>>
>
>
>
>
Re: [jira] Resolved: (SM-1253) checkstyle error in servicemix-osworkflow
Posted by Guillaume Nodet <gn...@gmail.com>.
Do you have the LICENSE.txt file in the root directory ?
I don't have this error ...
On Thu, Feb 28, 2008 at 9:46 AM, Lars Heinemann
<la...@compart.net> wrote:
> Freeman,
>
> thank you for the answer.
> After following your advices I am now able to see non-compliant
> code passages with the checkstyle plugin.
> But one thing is very strange to me. I am not able to build the smx
> without using -Pnochecks. It otherwise always complains about a
> missing LICENSE.txt file. (see output below)
> Do you have an idea how to solve this?
>
> Regards,
> Lars
>
>
> mvn -Dmaven.test.skip=true -Pstep1 install
>
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO] ServiceMix
> [INFO] Servicemix :: Build
> [INFO] ServiceMix :: Parent
> [INFO] ServiceMix :: Core
> [INFO] ServiceMix :: JBI
> [INFO] ServiceMix :: Services
> [INFO] ServiceMix :: Core
> [INFO] ServiceMix :: Audit
> [INFO] ServiceMix :: Common
> [INFO] ServiceMix :: Common
> [INFO] ServiceMix :: Components
> [INFO] ServiceMix :: SOAP
> [INFO] ServiceMix :: SOAP2
> [INFO] ServiceMix :: BeanFlow
> [INFO] ServiceMix :: Tooling
> [INFO] ServiceMix :: Maven2 Resource Plugin
> [INFO] ServiceMix :: Maven2 JBI Plugin
> [INFO] ServiceMix :: Maven2 XFire Plugin
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ServiceMix
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [site:attach-descriptor]
> [INFO] [install:install]
> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/pom.xml to
> /home/lhe/.m2/repository/org/apache/servicemix/servicemix/3.3-SNAPSHOT/servicemix-3.3-SNAPSHOT.pom
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Servicemix :: Build
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 1 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] [antrun:run {execution: legal-files}]
> [INFO] Executing tasks
> [INFO] Executed tasks
> [INFO] Registering compile source root
> /home/lhe/workspace/asf/servicemix-trunk/build/target/legal
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] Not compiling test sources
> [INFO] [surefire:test]
> [INFO] Tests are skipped.
> [INFO] [jar:jar]
> [INFO] Building jar:
> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
> [INFO] [plugin:addPluginArtifactMetadata]
> [INFO] [install:install]
> [INFO] Installing
> /home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
> to
> /home/lhe/.m2/repository/org/apache/servicemix/build/3.3-SNAPSHOT/build-3.3-SNAPSHOT.jar
> [INFO] [plugin:updateRegistry]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ServiceMix :: Parent
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Setting property: classpath.resource.loader.class =>
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] **************************************************************
> [INFO] Starting Jakarta Velocity v1.4
> [INFO] RuntimeInstance initializing.
> [INFO] Default Properties File:
> org/apache/velocity/runtime/defaults/velocity.properties
> [INFO] Default ResourceManager initializing. (class
> org.apache.velocity.runtime.resource.ResourceManagerImpl)
> [INFO] Resource Loader Instantiated:
> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
> [INFO] ClasspathResourceLoader : initialization starting.
> [INFO] ClasspathResourceLoader : initialization complete.
> [INFO] ResourceCache : initialized. (class
> org.apache.velocity.runtime.resource.ResourceCacheImpl)
> [INFO] Default ResourceManager initialization complete.
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Literal
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Include
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Foreach
> [INFO] Created: 20 parsers.
> [INFO] Velocimacro : initialization starting.
> [INFO] Velocimacro : adding VMs from VM library template :
> VM_global_library.vm
> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
> in any resource loader.
> [INFO] Velocimacro : error using VM library template
> VM_global_library.vm :
> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
> resource 'VM_global_library.vm'
> [INFO] Velocimacro : VM library template macro registration complete.
> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in
> templates
> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
> may NOT replace previous VM definitions
> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
> be global in scope if allowed.
> [INFO] Velocimacro : initialization complete.
> [INFO] Velocity successfully started.
> [INFO] [checkstyle:checkstyle {execution: validate}]
> [INFO] Source directory does not exist - skipping report.
> [INFO] Preparing pmd:check
> [INFO] [pmd:pmd]
> [INFO] [pmd:check {execution: validate}]
> [INFO] [site:attach-descriptor]
> [INFO] [install:install]
> [INFO] Installing
> /home/lhe/workspace/asf/servicemix-trunk/parent/pom.xml to
> /home/lhe/.m2/repository/org/apache/servicemix/parent/3.3-SNAPSHOT/parent-3.3-SNAPSHOT.pom
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ServiceMix :: Core
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [checkstyle:checkstyle {execution: validate}]
> [INFO] Source directory does not exist - skipping report.
> [INFO] Preparing pmd:check
> [INFO] [pmd:pmd]
> [INFO] [pmd:check {execution: validate}]
> [INFO] [build:copy {execution: default}]
> [INFO] [site:attach-descriptor]
> [INFO] [install:install]
> [INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/core/pom.xml
> to
> /home/lhe/.m2/repository/org/apache/servicemix/core/3.3-SNAPSHOT/core-3.3-SNAPSHOT.pom
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ServiceMix :: JBI
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [checkstyle:checkstyle {execution: validate}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An error has occurred in Checkstyle report generation.
>
> Embedded error: Unable to process header location.
> Unable to find location 'LICENSE.txt' as URL, File or Resource.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 10 seconds
> [INFO] Finished at: Thu Feb 28 09:44:30 CET 2008
> [INFO] Final Memory: 22M/107M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
>
> Freeman Fang schrieb:
>
>
> > Hi Lars,
> >
> > use "mvn -Psetup.eclipse" you can see checkstyle-checker.xml under
> > target folder.
> > 1. import your servicemix-osworkflow project into eclipse
> > 2. import checkstyle-checker.xml into eclipse (Window-> Preferences->
> > check style)
> > 3. set the checkstyle properties of servicemix-osworkflow as what you
> > step 2 import
> >
> > Best Regards
> >
> > Freeman
> >
> > Lars Heinemann wrote:
> >> Freeman,
> >>
> >> sorry for being not compliant to checkstyle.
> >> Can you somehow describe what to set in Eclipse for having
> >> the desired code style?
> >> I used the files I found in the etc folder of smx.
> >>
> >> codetemplates.xml -> for "Code Templates" setting in Eclipse JDT
> >> ServiceMix.importoder -> for the "Organize Imports" setting in
> >> Eclipse JDT
> >> ServiceMixCodeFormatter.xml -> for the "Formatter" setting in Eclipse
> >> JDT
> >>
> >> Is there anything else to setup?
> >> I downloaded now the checkstyle eclipse plugin, but configuration
> >> file to use?
> >>
> >> Regards,
> >> Lars
> >>
> >>
> >>
> >> Freeman Fang (JIRA) schrieb:
> >>> [
> >>> https://issues.apache.org/activemq/browse/SM-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> >>> ]
> >>>
> >>> Freeman Fang resolved SM-1253.
> >>> ------------------------------
> >>>
> >>> Fix Version/s: 3.2.2
> >>> 3.3
> >>> Resolution: Fixed
> >>>
> >>> commit fix http://svn.apache.org/viewvc?rev=631872&view=rev for 3.3
> >>> branch
> >>> http://svn.apache.org/viewvc?rev=631873&view=rev for 3.2.2 branch
> >>>
> >>>
> >>>> checkstyle error in servicemix-osworkflow
> >>>> -----------------------------------------
> >>>>
> >>>> Key: SM-1253
> >>>> URL: https://issues.apache.org/activemq/browse/SM-1253
> >>>> Project: ServiceMix
> >>>> Issue Type: Improvement
> >>>> Components: servicemix-osworkflow
> >>>> Reporter: Freeman Fang
> >>>> Assignee: Freeman Fang
> >>>> Priority: Minor
> >>>> Fix For: 3.2.2, 3.3
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>
> >
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
Re: [jira] Resolved: (SM-1253) checkstyle error in servicemix-osworkflow
Posted by Lars Heinemann <la...@compart.net>.
Freeman,
thank you for the answer.
After following your advices I am now able to see non-compliant
code passages with the checkstyle plugin.
But one thing is very strange to me. I am not able to build the smx
without using -Pnochecks. It otherwise always complains about a
missing LICENSE.txt file. (see output below)
Do you have an idea how to solve this?
Regards,
Lars
mvn -Dmaven.test.skip=true -Pstep1 install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] ServiceMix
[INFO] Servicemix :: Build
[INFO] ServiceMix :: Parent
[INFO] ServiceMix :: Core
[INFO] ServiceMix :: JBI
[INFO] ServiceMix :: Services
[INFO] ServiceMix :: Core
[INFO] ServiceMix :: Audit
[INFO] ServiceMix :: Common
[INFO] ServiceMix :: Common
[INFO] ServiceMix :: Components
[INFO] ServiceMix :: SOAP
[INFO] ServiceMix :: SOAP2
[INFO] ServiceMix :: BeanFlow
[INFO] ServiceMix :: Tooling
[INFO] ServiceMix :: Maven2 Resource Plugin
[INFO] ServiceMix :: Maven2 JBI Plugin
[INFO] ServiceMix :: Maven2 XFire Plugin
[INFO]
------------------------------------------------------------------------
[INFO] Building ServiceMix
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/pom.xml to
/home/lhe/.m2/repository/org/apache/servicemix/servicemix/3.3-SNAPSHOT/servicemix-3.3-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
[INFO] Building Servicemix :: Build
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [plugin:descriptor]
[INFO] Using 2 extractors.
[INFO] Applying extractor for language: java
[INFO] Extractor for language: java found 1 mojo descriptors.
[INFO] Applying extractor for language: bsh
[INFO] Extractor for language: bsh found 0 mojo descriptors.
[INFO] [antrun:run {execution: legal-files}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] Registering compile source root
/home/lhe/workspace/asf/servicemix-trunk/build/target/legal
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [jar:jar]
[INFO] Building jar:
/home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
[INFO] [plugin:addPluginArtifactMetadata]
[INFO] [install:install]
[INFO] Installing
/home/lhe/workspace/asf/servicemix-trunk/build/target/build-3.3-SNAPSHOT.jar
to
/home/lhe/.m2/repository/org/apache/servicemix/build/3.3-SNAPSHOT/build-3.3-SNAPSHOT.jar
[INFO] [plugin:updateRegistry]
[INFO]
------------------------------------------------------------------------
[INFO] Building ServiceMix :: Parent
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org/apache/velocity/runtime/defaults/velocity.properties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in any resource loader.
[INFO] Velocimacro : error using VM library template
VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
be global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [checkstyle:checkstyle {execution: validate}]
[INFO] Source directory does not exist - skipping report.
[INFO] Preparing pmd:check
[INFO] [pmd:pmd]
[INFO] [pmd:check {execution: validate}]
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing
/home/lhe/workspace/asf/servicemix-trunk/parent/pom.xml to
/home/lhe/.m2/repository/org/apache/servicemix/parent/3.3-SNAPSHOT/parent-3.3-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
[INFO] Building ServiceMix :: Core
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [checkstyle:checkstyle {execution: validate}]
[INFO] Source directory does not exist - skipping report.
[INFO] Preparing pmd:check
[INFO] [pmd:pmd]
[INFO] [pmd:check {execution: validate}]
[INFO] [build:copy {execution: default}]
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /home/lhe/workspace/asf/servicemix-trunk/core/pom.xml
to
/home/lhe/.m2/repository/org/apache/servicemix/core/3.3-SNAPSHOT/core-3.3-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
[INFO] Building ServiceMix :: JBI
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [checkstyle:checkstyle {execution: validate}]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An error has occurred in Checkstyle report generation.
Embedded error: Unable to process header location.
Unable to find location 'LICENSE.txt' as URL, File or Resource.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Thu Feb 28 09:44:30 CET 2008
[INFO] Final Memory: 22M/107M
[INFO]
------------------------------------------------------------------------
Freeman Fang schrieb:
> Hi Lars,
>
> use "mvn -Psetup.eclipse" you can see checkstyle-checker.xml under
> target folder.
> 1. import your servicemix-osworkflow project into eclipse
> 2. import checkstyle-checker.xml into eclipse (Window-> Preferences->
> check style)
> 3. set the checkstyle properties of servicemix-osworkflow as what you
> step 2 import
>
> Best Regards
>
> Freeman
>
> Lars Heinemann wrote:
>> Freeman,
>>
>> sorry for being not compliant to checkstyle.
>> Can you somehow describe what to set in Eclipse for having
>> the desired code style?
>> I used the files I found in the etc folder of smx.
>>
>> codetemplates.xml -> for "Code Templates" setting in Eclipse JDT
>> ServiceMix.importoder -> for the "Organize Imports" setting in
>> Eclipse JDT
>> ServiceMixCodeFormatter.xml -> for the "Formatter" setting in Eclipse
>> JDT
>>
>> Is there anything else to setup?
>> I downloaded now the checkstyle eclipse plugin, but configuration
>> file to use?
>>
>> Regards,
>> Lars
>>
>>
>>
>> Freeman Fang (JIRA) schrieb:
>>> [
>>> https://issues.apache.org/activemq/browse/SM-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>>> ]
>>>
>>> Freeman Fang resolved SM-1253.
>>> ------------------------------
>>>
>>> Fix Version/s: 3.2.2
>>> 3.3
>>> Resolution: Fixed
>>>
>>> commit fix http://svn.apache.org/viewvc?rev=631872&view=rev for 3.3
>>> branch
>>> http://svn.apache.org/viewvc?rev=631873&view=rev for 3.2.2 branch
>>>
>>>
>>>> checkstyle error in servicemix-osworkflow
>>>> -----------------------------------------
>>>>
>>>> Key: SM-1253
>>>> URL: https://issues.apache.org/activemq/browse/SM-1253
>>>> Project: ServiceMix
>>>> Issue Type: Improvement
>>>> Components: servicemix-osworkflow
>>>> Reporter: Freeman Fang
>>>> Assignee: Freeman Fang
>>>> Priority: Minor
>>>> Fix For: 3.2.2, 3.3
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>
Re: [jira] Resolved: (SM-1253) checkstyle error in servicemix-osworkflow
Posted by Freeman Fang <fr...@gmail.com>.
Hi Lars,
use "mvn -Psetup.eclipse" you can see checkstyle-checker.xml under
target folder.
1. import your servicemix-osworkflow project into eclipse
2. import checkstyle-checker.xml into eclipse (Window-> Preferences->
check style)
3. set the checkstyle properties of servicemix-osworkflow as what you
step 2 import
Best Regards
Freeman
Lars Heinemann wrote:
> Freeman,
>
> sorry for being not compliant to checkstyle.
> Can you somehow describe what to set in Eclipse for having
> the desired code style?
> I used the files I found in the etc folder of smx.
>
> codetemplates.xml -> for "Code Templates" setting in Eclipse JDT
> ServiceMix.importoder -> for the "Organize Imports" setting in Eclipse
> JDT
> ServiceMixCodeFormatter.xml -> for the "Formatter" setting in Eclipse JDT
>
> Is there anything else to setup?
> I downloaded now the checkstyle eclipse plugin, but configuration file
> to use?
>
> Regards,
> Lars
>
>
>
> Freeman Fang (JIRA) schrieb:
>> [
>> https://issues.apache.org/activemq/browse/SM-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>> ]
>>
>> Freeman Fang resolved SM-1253.
>> ------------------------------
>>
>> Fix Version/s: 3.2.2
>> 3.3
>> Resolution: Fixed
>>
>> commit fix http://svn.apache.org/viewvc?rev=631872&view=rev for 3.3
>> branch
>> http://svn.apache.org/viewvc?rev=631873&view=rev for 3.2.2 branch
>>
>>
>>> checkstyle error in servicemix-osworkflow
>>> -----------------------------------------
>>>
>>> Key: SM-1253
>>> URL: https://issues.apache.org/activemq/browse/SM-1253
>>> Project: ServiceMix
>>> Issue Type: Improvement
>>> Components: servicemix-osworkflow
>>> Reporter: Freeman Fang
>>> Assignee: Freeman Fang
>>> Priority: Minor
>>> Fix For: 3.2.2, 3.3
>>>
>>>
>>>
>>
>>
>>
>
Re: [jira] Resolved: (SM-1253) checkstyle error in servicemix-osworkflow
Posted by Lars Heinemann <la...@compart.net>.
Freeman,
sorry for being not compliant to checkstyle.
Can you somehow describe what to set in Eclipse for having
the desired code style?
I used the files I found in the etc folder of smx.
codetemplates.xml -> for "Code Templates" setting in Eclipse JDT
ServiceMix.importoder -> for the "Organize Imports" setting in Eclipse JDT
ServiceMixCodeFormatter.xml -> for the "Formatter" setting in Eclipse JDT
Is there anything else to setup?
I downloaded now the checkstyle eclipse plugin, but configuration file
to use?
Regards,
Lars
Freeman Fang (JIRA) schrieb:
> [ https://issues.apache.org/activemq/browse/SM-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Freeman Fang resolved SM-1253.
> ------------------------------
>
> Fix Version/s: 3.2.2
> 3.3
> Resolution: Fixed
>
> commit fix
> http://svn.apache.org/viewvc?rev=631872&view=rev for 3.3 branch
> http://svn.apache.org/viewvc?rev=631873&view=rev for 3.2.2 branch
>
>
>> checkstyle error in servicemix-osworkflow
>> -----------------------------------------
>>
>> Key: SM-1253
>> URL: https://issues.apache.org/activemq/browse/SM-1253
>> Project: ServiceMix
>> Issue Type: Improvement
>> Components: servicemix-osworkflow
>> Reporter: Freeman Fang
>> Assignee: Freeman Fang
>> Priority: Minor
>> Fix For: 3.2.2, 3.3
>>
>>
>>
>
>
>