Maven compile: package does not exist

前端 未结 4 1694
轻奢々
轻奢々 2021-01-07 15:57

I have a (seemingly) simple maven problem I can not solve. In my POM I have specified a dependency to openrdf-sesame like this:


     

        
4条回答
  •  长情又很酷
    2021-01-07 16:54

    You do not include a tag in your dependency. If you add it, your dependency becomes something like:

    
         org.openrdf.sesame
         sesame-runtime
         2.7.2
          ... 
    
    

    The "scope" tag tells maven at which stage of the build your dependency is needed. Examples for the values to put inside are "test", "provided" or "runtime" (omit the quotes in your pom). I do not know your dependency so I cannot tell you what value to choose. Please consult the Maven documentation and the documentation of your dependency.

提交回复
热议问题