很长一段时间以来,我已经在mvnrepository中看到过gradle这样的代码行
org.hibernate:hibernate-entitymanager:4.1.7.Final我从来没让那条线起作用。它能正常工作吗?我有点厌倦了不能从mvnrepository中剪切和粘贴,那么有什么方法可以使用这一行吗?
我现在使用的是:
compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '4.1.7.Final'只是厌倦了每次都修改它。
发布于 2012-10-25 00:40:19
只需用引号将这一行括起来,它就会工作。例如,compile 'org.hibernate:hibernate-entitymanager:4.1.7.Final'。或者,使用http://search.maven.org中的"Grails“表示法。
https://stackoverflow.com/questions/13053297
复制相似问题