repository element was not specified in the POM inside distributionManagement element or in -DaltDep loymentRepository=id::layout::url parameter

前端 未结 3 1665
我寻月下人不归
我寻月下人不归 2020-12-01 05:09

I\'m having a problem while deploying and here is the error message I get:

[INFO]
[INFO] --- maven-deploy-plugin:2.7         


        
3条回答
  •  难免孤独
    2020-12-01 05:28

    In your pom.xml you should add distributionManagement configuration to where to deploy.

    In the following example I have used file system as the locations.

    
           
             internal.repo
             Internal repo
             file:///home/thara/testesb/in
           
       
    

    you can add another location while deployment by using the following command (but to avoid above error you should have at least 1 repository configured) :

    mvn deploy -DaltDeploymentRepository=internal.repo::default::file:///home/thara/testesb/in
    

提交回复
热议问题