小编Dan*_*ngs的帖子

Maven Artifact Search始终为空

使用Alt-Insert将依赖项插入POM时,无论我搜索什么,工件搜索始终都是空白.

我尝试将repo1添加到Settings-> Maven-> Repository Services,它说"找不到存储库".我觉得很难相信.

我也尝试"更新"我的本地存储库,但这会导致错误.

仅供参考我正在使用Community Edition Snapshot.

谢谢!

intellij-idea maven

28
推荐指数
2
解决办法
2万
查看次数

如何定义新的解析器?

我定义了几个额外的解析器,它们显示为resolvers

[clearspan]> show resolvers
[info] List(bt: http://maven.[redacted].com/artifactory/repo/, Local Maven Repository: file:///home/dan/.m2/repository, Oracle: http://download.java.net/maven/2, localMaven: file:///home/dan/.m2/repository)
Run Code Online (Sandbox Code Playgroud)

但是,当我运行时update,它只会尝试Maven Central. 知道为什么吗?

> update
[info] Updating {file:/home/dan/l/clearspan/}cs-trading-processor...
[warn]  [NOT FOUND  ] javax.resource#connector;1.0!connector.jar (44ms)
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/javax/resource/connector/1.0/connector-1.0.jar
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::              FAILED DOWNLOADS            ::
[warn]  :: ^ see resolution messages for details  ^ ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: javax.resource#connector;1.0!connector.jar
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[info] 
[warn] :: problems summary ::
[warn] :::: WARNINGS
[warn]      [NOT FOUND  ] javax.resource#connector;1.0!connector.jar (44ms) …
Run Code Online (Sandbox Code Playgroud)

sbt

4
推荐指数
1
解决办法
3692
查看次数

为vim自动完成递归包含一个目录

我从源代码的基目录中使用vim.在编辑单个文件时,我希望自动完成考虑此目录(和子目录)中每个文件的每个单词.

vim

4
推荐指数
2
解决办法
1136
查看次数

在Real World Haskell示例中编译错误

我正在写一段来自"Real World Haskell"的代码:

 ghc --make ch04/InteractWith.hs 
[1 of 1] Compiling Main             ( ch04/InteractWith.hs, ch04/InteractWith.o )

ch04/InteractWith.hs:9:5: parse error on input `args'
Run Code Online (Sandbox Code Playgroud)

dan @dbmint~/testHaskell $ cat ch04/InteractWith.hs

import System.Environment (getArgs)

interactWith function inputFile outputFile = do
  input <- readFile inputFile
  writeFile outputFile (function input)

main = mainWith myFunction
  where mainWith function = do
    args <- getArgs
    case args of 
      [input, output] -> interactWith function input output
      _ -> putStrLn "error: exactly two arguments needed"

myFunction = id
Run Code Online (Sandbox Code Playgroud)

haskell

2
推荐指数
1
解决办法
345
查看次数

标签 统计

haskell ×1

intellij-idea ×1

maven ×1

sbt ×1

vim ×1