java - How to configure authentication for access of repository in pom.xml? -


when building project dependencies maven, tried download https://sweb.science.unitn.it/archiva/repository/internal/it/unitn/disi/sweb/sweb-utils/2.3-final/sweb-utils-2.3-final.pom. , access denied server. although have authentication access repository, don't know how configure pom.xml. in below put errors. in advance.

[info] scanning projects... [warning]  [warning] problems encountered while building effective model it.unitn.disi.sweb.ukc:ukc-dataimport-wordnet:jar:1.0-snapshot [warning] expression ${version} deprecated. please use ${project.version} instead. [warning]  [warning] highly recommended fix these problems because threaten stability of build. [warning]  [warning] reason, future maven versions might no longer support building such malformed projects. [warning]  [info]  [info] using builder org.apache.maven.lifecycle.internal.builder.singlethreaded.singlethreadedbuilder thread count of 1 [info]                                                                          [info] ------------------------------------------------------------------------ [info] building ukc-dataimport-wordnet 1.0-snapshot [info] ------------------------------------------------------------------------ [info] downloading: https://sweb.science.unitn.it/archiva/repository/internal/it/unitn/disi/sweb/sweb-utils/2.3-final/sweb-utils-2.3-final.pom [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 1.350 s [info] finished at: 2015-06-10t15:09:05+01:00 [info] final memory: 8m/155m [info] ------------------------------------------------------------------------ [error] failed execute goal on project ukc-dataimport-wordnet: not resolve dependencies project it.unitn.disi.sweb.ukc:ukc-dataimport-wordnet:jar:1.0-snapshot: failed collect dependencies @ it.unitn.disi.sweb:sweb-utils:jar:2.3-final: failed read artifact descriptor it.unitn.disi.sweb:sweb-utils:jar:2.3-final: not transfer artifact it.unitn.disi.sweb:sweb-utils:pom:2.3-final from/to sweb-internal (https://sweb.science.unitn.it/archiva/repository/internal): access denied https://sweb.science.unitn.it/archiva/repository/internal/it/unitn/disi/sweb/sweb-utils/2.3-final/sweb-utils-2.3-final.pom. error code 401, unauthorized -> [help 1] [error]  [error] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error]  [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/dependencyresolutionexception 

pom.xml follows:

<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>it.unitn.disi.sweb.ukc</groupid> <artifactid>ukc-dataimport-wordnet</artifactid> <packaging>jar</packaging> <version>1.0-snapshot</version>  <name>ukc-dataimport-wordnet</name> <url>http://disi.unitn.it/~knowdive</url>  <properties>     <maven.build.timestamp.format>yyyy-mm-dd</maven.build.timestamp.format>     <project.build.sourceencoding>utf-8</project.build.sourceencoding> </properties>  <dependencies>     <dependency>         <groupid>it.unitn.disi.sweb</groupid>         <artifactid>sweb-utils</artifactid>         <version>2.3-final</version>     </dependency> </dependencies>  <build>     <plugins>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-compiler-plugin</artifactid>             <version>2.3.1</version>             <configuration>                 <source>1.6</source>                 <target>1.6</target>             </configuration>         </plugin>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-jar-plugin</artifactid>             <version>2.3.1</version>             <configuration>                 <archive>                     <compress>false</compress>                     <manifestentries>                         <version>${version}</version>                     </manifestentries>                 </archive>             </configuration>         </plugin>         <plugin>             <artifactid>maven-assembly-plugin</artifactid>             <configuration>                 <descriptors>                     <descriptor>bin.xml</descriptor>                 </descriptors>             </configuration>             <executions>                 <execution>                     <id>make-assembly</id>                     <goals>                         <goal>attached</goal>                     </goals>                 </execution>             </executions>         </plugin>                </plugins> </build>  <repositories>     <repository>         <id>sweb-internal</id>         <layout>default</layout>         <name>archiva managed internal repository</name>         <url>https://sweb.science.unitn.it/archiva/repository/internal</url>         <releases>             <enabled>true</enabled>             <updatepolicy>always</updatepolicy>         </releases>         <snapshots>             <enabled>false</enabled>         </snapshots>     </repository>     <repository>         <id>sweb-snapshots</id>         <name>archiva managed snapshot repository</name>         <url>https://sweb.science.unitn.it/archiva/repository/snapshots</url>         <releases>             <enabled>false</enabled>         </releases>         <snapshots>             <enabled>true</enabled>             <updatepolicy>always</updatepolicy>         </snapshots>     </repository> </repositories>  <distributionmanagement>     <repository>         <id>sweb-internal</id>         <name>unitn maven 2 repository</name>         <url>https://sweb.science.unitn.it/archiva/repository/internal</url>     </repository>     <snapshotrepository>         <id>sweb-snapshots</id>         <name>unitn maven 2 repository</name>         <url>https://sweb.science.unitn.it/archiva/repository/snapshots</url>     </snapshotrepository> </distributionmanagement>  <scm>     <connection>scm:svn:https://sweb.science.unitn.it/svn/ukc/development/wordnet_importer/trunk</connection>     <developerconnection>scm:svn:https://sweb.science.unitn.it/svn/ukc/development/wordnet_importer/trunk</developerconnection> </scm> 


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -