java - How to add some contents in pom.xml for "mvn install"? -


i have multiple java projects me. have 1 document build source code using maven. following , trying build project.

1) in document given have "mvn install" or "mvn -dmaven.test.skip=true install" @ root directory of project.

2) given if above steps generate error have add lines pom.xml file. lines are: add following entry last entry in list (you find entry id openxds new entry should follow one):

 <repository>     <id>sysnetint</id>     <url>http://sysnetintrepo.com/repository</url>  </repository> 

you need add repository plugin repositories section:

 <pluginrepositories>     <repository>        <id>sysnetint</id>        <url>http://sysnetintrepo.com/repository</url>     </repository>  </pluginrepositories> 

the build should successful @ point , should have targets ready deployment.

i add first lines in respective node not getting add second lines in pom.xml

because in pom.xml there node , if enter add again inside it, maven giving error related tag.

i want ask how add above lines in pom.xml?

sorry asking stupid question on don't know maven , pom.xml files.

thanks

updated: under pluginrepositories node child nodes as:

<pluginrepositories>               <pluginrepository>                       .....               </pluginrepository> </pluginrepositories> 

if enter repository node under pluginrepositories, getting errors related tag only

<pluginrepository> subtag of <pluginrepositories> , <repository> subtag of <repositories>. don't add <repository> under <pluginrepository>.

instead put content of <repository> tag (without tag itself) in<pluginrepository>

take @ this page there examples.

edit : should :

        <repositories>               <repository>                  <id>sysnetint</id>                  <url>http://sysnetintrepo.com/repository</url>               </repository>         </repositories>         <pluginrepositories>               <pluginrepository>                  <id>sysnetint</id>                  <url>http://sysnetintrepo.com/repository</url>               </pluginrepository>         </pluginrepositories> 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -