尝试在Windows上执行jekyll on cygwin(x64),当我得到这个错误,尽管使用bundle exec前缀.
执行时,不应激活Gemfile中定义的依赖关系(即1.8.6)吗?
对这里出了什么问题的想法?我对Ruby宝石的世界全新.我看过其他"你已经激活.."帖子显示类似的消息,但那里的答案没有解决我的问题.
$ bundle exec jekyll serve
$ bundle exec jekyll serve
/cygdrive/c/Users/mochapenguin/.rvm/gems/ruby-2.4.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:40:in
`block in setup': You have already activated json 2.0.2, but your Gemfile requires json 1.8.6.
Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
Run Code Online (Sandbox Code Playgroud)
环境
Run Code Online (Sandbox Code Playgroud)$ rvm -v rvm 1.29.0 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io/] $ ruby -v ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-cygwin]
Gemfile - 用于jekyll项目
source 'https://rubygems.org' …Run Code Online (Sandbox Code Playgroud) 我希望建立一个可以很好地扩展的多模块maven项目(如下所述).我对这种方法有一些疑问,主要来自Sonatype示例.
我已经对maven多模块项目进行了一定程度的阅读,但找不到超出基本级别的示例.
模块化Spring,JSF2,Maven项目的良好项目结构,允许涉及选择模块及其依赖项的构建.
应该可以通过Maven配置(如jetty-maven-plugin)在像Tomcat/Jetty这样的轻量级容器上部署单个Web模块.这应该能够通过Maven引入必要的依赖关系.这使得在开发过程中很容易专注于正在处理的模块(不必运行完整的构建和部署),并且只在完整的构建中部署完整的应用程序.
设置应允许基于要在构建中包含的模块选择的多个分发.我认为这可以通过使用构建模块来实现,这些模块将拉动和打包相应的模块.
Core domain classes.
somapp.core (maven project)
|- someapp.core (maven module)
|- someapp.core.tests
Account Management Domain classes
someapp.accountmgmt
|- someapp.accountmgmt
|- someapp.accountmgmt.tests
component1 domain classes
someapp.component1
|- someapp.component1
|- someapp.component1.tests
Service 1 - # account management (User login)
someapp.accountmgmt
|- someapp.accountmgmt.api
|- someapp.accountmgmt.impl
|- someapp.accountmgmt.mocks
|- someapp.accountmgmt.tests
someapp.service2
|- someapp.service2.api
|- someapp.service2.impl
|- someapp.service2.mocks
|- someapp.service2.tests
|- someapp.service2.cli # CLI access for service2
someapp.service3
|- like above …Run Code Online (Sandbox Code Playgroud)