TopHatenar はてなでの順位がわかるサイト・続1

2008-05-27 - suusuke@Hatenaの続きです。

1.TophatenarをEcliseからsvnプラグイン使ってインポート。
2.ライブラリが無いので、mavenでライブラリをダウンロード。
3.まだ、ライブラリが足りない。
4.kaiseh-webservicesとkaiseh-miscが必要らしい。
5.まず、kaiseh-webservicesから、1と同様にeclipseにインポート
6.デフォルトで入ってる、pom.xmlでjarを作成。
→うまくいかない...

jarを作るためにやった事

$ mvn archetype:create -DgroupId=com.kaiseh -DartifactId=kaiseh-webservices -Dversion=0.5.0 -DarchetypeArtifactId=maven-archetype-quickstart
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] Ignoring available plugin update: 2.0-alpha-3 as it requires Maven version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-2 as it requires Maven version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-1 as it requires Maven version 2.0.7
[INFO] ----------------------------------------------------------------------------
[INFO] Building kaiseh-webservices
[INFO] task-segment: [archetype:create] (aggregator-style)
[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] [archetype:create]
[INFO] Defaulting package to group ID: com.kaiseh
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating Archetype: maven-archetype-quickstart:RELEASE
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.kaiseh
[INFO] Parameter: packageName, Value: com.kaiseh
[INFO] Parameter: basedir, Value: /Users/suusuke/java/project/test-work/kaiseh-webservices
[INFO] Parameter: package, Value: com.kaiseh
[INFO] Parameter: version, Value: 0.5.0
[INFO] Parameter: artifactId, Value: kaiseh-webservices
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error creating from archetype

Embedded error: Unable to add module to the current project as it is not of packaging type 'pom'
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri May 30 01:30:03 JST 2008
[INFO] Final Memory: 5M/10M
[INFO] ------------------------------------------------------------------------


ん〜、わからん。