|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
[m2][archiva1] Issue deploying to ArchivaI can deploy my site docs to my remote server just fine, but when I try to
deploy a module to my archiva REP, I get a 401 error. *pom.xml:* <!-- use the following if you're not using a snapshot version. --> <repository> <id>dap.internal</id> <name>Internal Release Repository</name> <url>dav: http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/internal/</url> </repository> <!-- use the following if you ARE using a snapshot version. --> <snapshotRepository> <id>dap.snapshots</id> <name>Internal Snapshot Repository</name> <url>dav: http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/snapshots/</url> </snapshotRepository> </distributionManagement> <repositories> <repository> <id>dap.internal</id> <name>Archiva Managed Internal Repository</name> <url> http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/internal/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>dap.snapshots</id> <name>Archiva Managed Snapshot Repository</name> <url> http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/snapshots/</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>dap.internal</id> <name>Archiva Managed Internal Repository</name> <url> http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/internal/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>dap.snapshots</id> <name>Archiva Managed Snapshot Repository</name> <url> http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/snapshots/</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> *settings.xml:* <servers> <server> <id>rc_sun66e-site</id> <username>xxx</username> <password>xxx</password> <passphrase>xxx</passphrase> <privateKey>c:/ssh/rc-sun66e-private.ppk</privateKey> <filePermissions>664</filePermissions> <directoryPermissions>775</directoryPermissions> <configuration> <sshExecutable>putty</sshExecutable> <scpExecutable>pscp</scpExecutable> </configuration> </server> <server> <id>rc_sun66e-repository</id> <username>xxx</username> <password>xxx</password> <passphrase>xxx</passphrase> <privateKey>c:/ssh/rc-sun66e-private.ppk</privateKey> <filePermissions>664</filePermissions> <directoryPermissions>775</directoryPermissions> <configuration> <sshExecutable>plink</sshExecutable> <scpExecutable>pscp</scpExecutable> </configuration> </server> <server> <id>dap2.internal</id> <username>xxx</username> <password>xxx</password> <passphrase>xxx</passphrase> <privateKey>c:/ssh/rc-sun66e-private.ppk</privateKey> <filePermissions>664</filePermissions> <directoryPermissions>775</directoryPermissions> <configuration> <sshExecutable>plink</sshExecutable> <scpExecutable>pscp</scpExecutable> </configuration> </server> <server> <id>deployment.webdav</id> <username>xxx</username> <password>xxx</password> <passphrase>xxx</passphrase> <privateKey>c:/ssh/rc-sun66e-private.ppk</privateKey> <filePermissions>664</filePermissions> <directoryPermissions>775</directoryPermissions> <configuration> <sshExecutable>plink</sshExecutable> <scpExecutable>pscp</scpExecutable> </configuration> </server> <!--I also tried this instead of the above server but no change:--> <!--<server> <id>deployment.webdav</id> <username>[archiva-username]</username> <password>xxxx</password> </server>--> ... <mirror> <id>dap.internal</id> <url> http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/internal/</url> <mirrorOf>*</mirrorOf> </mirror> -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com --- |
|
|
Re: [m2][archiva1] Issue deploying to ArchivaHere is the error I get:
[INFO] [deploy:deploy] altDeploymentRepository = null Uploading: http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/internal//org/delta/esp/dap/1.0.1/dap-1.0.1.pom Jan 14, 2008 10:33:10 AM org.apache.commons.httpclient.HttpMethodBaseprocessRedirectResponse INFO: Redirect requested but followRedirects is disabled Jan 14, 2008 10:33:10 AM org.apache.commons.httpclient.HttpMethodBaseprocessAuthenticationResponse WARNING: No credentials available for the 'Repository Archiva Managed Internal Repository' authentication realm at rc-sun66e.ut.dentegra.lab Jan 14, 2008 10:33:10 AM org.apache.commons.httpclient.HttpMethodBaseprocessAuthenticationResponse WARNING: No credentials available for the 'Repository Archiva Managed Internal Repository' authentication realm at rc-sun66e.ut.dentegra.lab Jan 14, 2008 10:33:10 AM org.apache.commons.httpclient.HttpMethodBaseprocessAuthenticationResponse WARNING: No credentials available for the 'Repository Archiva Managed Internal Repository' authentication realm at rc-sun66e.ut.dentegra.lab Jan 14, 2008 10:33:10 AM org.apache.commons.httpclient.HttpMethodBaseprocessAuthenticationResponse WARNING: No credentials available for the 'Repository Archiva Managed Internal Repository' authentication realm at rc-sun66e.ut.dentegra.lab Jan 14, 2008 10:33:10 AM org.apache.commons.httpclient.HttpMethodBaseprocessAuthenticationResponse WARNING: No credentials available for the 'Repository Archiva Managed Internal Repository' authentication realm at rc-sun66e.ut.dentegra.lab Jan 14, 2008 10:33:10 AM org.apache.commons.httpclient.HttpMethodBaseprocessAuthenticationResponse WARNING: No credentials available for the 'Repository Archiva Managed Internal Repository' authentication realm at rc-sun66e.ut.dentegra.lab Jan 14, 2008 10:33:10 AM org.apache.commons.httpclient.HttpMethodBaseprocessAuthenticationResponse WARNING: No credentials available for the 'Repository Archiva Managed Internal Repository' authentication realm at rc-sun66e.ut.dentegra.lab [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error deploying artifact: Failed to transfer file: http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/internal/org/delta/esp/dap/1.0.1/dap-1.0 .1.pom. Return code is: 401 Unauthorized [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Failed to transfer file: http://rc-sun66e.ut.dentegra.lab:8080/archiva/re pository/internal/org/delta/esp/dap/1.0.1/dap-1.0.1.pom. Return code is: 401 Unauthorized at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artifact: Failed to transfer file: http://rc-sun66e.ut.dentegra.lab:8080/archiva /repository/internal/org/delta/esp/dap/1.0.1/dap-1.0.1.pom. Return code is: 401 Unauthorized at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java :174) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:539) ... 16 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Failed to transfer file: http://rc-sun66e.ut.dentegra. lab:8080/archiva/repository/internal/org/delta/esp/dap/1.0.1/dap-1.0.1.pom. Return code is: 401 Unauthorized at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy (DefaultArtifactDeployer.java:94) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java :152) ... 18 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/internal/org/d elta/esp/dap/1.0.1/dap-1.0.1.pom. Return code is: 401 Unauthorized at org.apache.maven.wagon.providers.webdav.WebDavWagon.put( WebDavWagon.java:311) at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile( DefaultWagonManager.java:237) at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact (DefaultWagonManager.java:153) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy (DefaultArtifactDeployer.java:80) ... 19 more [INFO] ------------------------------------------------------------------------ On Jan 14, 2008 10:27 AM, Mick Knutson <mickknutson@...> wrote: > I can deploy my site docs to my remote server just fine, but when I try to > deploy a module to my archiva REP, I get a 401 error. > > *pom.xml:* > > <!-- use the following if you're not using a snapshot version. --> > > <repository> > <id>dap.internal</id> > <name>Internal Release Repository</name> > <url>dav:http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/internal/ > </url> > </repository> > > <!-- use the following if you ARE using a snapshot version. --> > <snapshotRepository> > <id>dap.snapshots</id> > <name>Internal Snapshot Repository</name> > <url>dav:http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/snapshots/ > </url> > </snapshotRepository> > > </distributionManagement> > > <repositories> > <repository> > <id>dap.internal</id> > <name>Archiva Managed Internal Repository</name> > <url>http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/internal/ > </url> > <releases> > <enabled>true</enabled> > </releases> > <snapshots> > <enabled>false</enabled> > </snapshots> > </repository> > > <repository> > <id>dap.snapshots</id> > <name>Archiva Managed Snapshot Repository</name> > <url> > http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/snapshots/</url> > <releases> > <enabled>false</enabled> > </releases> > <snapshots> > <enabled>true</enabled> > </snapshots> > </repository> > > </repositories> > > <pluginRepositories> > <pluginRepository> > <id>dap.internal</id> > <name>Archiva Managed Internal Repository</name> > <url> > http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/internal/</url> > <releases> > <enabled>true</enabled> > </releases> > <snapshots> > <enabled>false</enabled> > </snapshots> > </pluginRepository> > > <pluginRepository> > <id>dap.snapshots</id> > <name>Archiva Managed Snapshot Repository</name> > <url>http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/snapshots/ > </url> > <releases> > <enabled>false</enabled> > </releases> > <snapshots> > <enabled>true</enabled> > </snapshots> > </pluginRepository> > </pluginRepositories> > > > > > *settings.xml:* > > <servers> > <server> > <id>rc_sun66e-site</id> > <username>xxx</username> > <password>xxx</password> > <passphrase>xxx</passphrase> > <privateKey>c:/ssh/rc-sun66e-private.ppk</privateKey> > <filePermissions>664</filePermissions> > <directoryPermissions>775</directoryPermissions> > <configuration> > <sshExecutable>putty</sshExecutable> > <scpExecutable>pscp</scpExecutable> > </configuration> > </server> > > <server> > <id>rc_sun66e-repository</id> > <username>xxx</username> > <password>xxx</password> > <passphrase>xxx</passphrase> > <privateKey>c:/ssh/rc-sun66e-private.ppk</privateKey> > <filePermissions>664</filePermissions> > <directoryPermissions>775</directoryPermissions> > <configuration> > <sshExecutable>plink</sshExecutable> > <scpExecutable>pscp</scpExecutable> > </configuration> > </server> > > <server> > <id>dap2.internal</id> > <username>xxx</username> > <password>xxx</password> > <passphrase>xxx</passphrase> > <privateKey>c:/ssh/rc-sun66e-private.ppk</privateKey> > <filePermissions>664</filePermissions> > <directoryPermissions>775</directoryPermissions> > <configuration> > <sshExecutable>plink</sshExecutable> > <scpExecutable>pscp</scpExecutable> > </configuration> > </server> > > <server> > <id>deployment.webdav</id> > <username>xxx</username> > <password>xxx</password> > <passphrase>xxx</passphrase> > <privateKey>c:/ssh/rc-sun66e-private.ppk</privateKey> > <filePermissions>664</filePermissions> > <directoryPermissions>775</directoryPermissions> > <configuration> > <sshExecutable>plink</sshExecutable> > <scpExecutable>pscp</scpExecutable> > </configuration> > </server> > > <!--I also tried this instead of the above server but no change:--> > <!--<server> > <id>deployment.webdav</id> > <username>[archiva-username]</username> > <password>xxxx</password> > </server>--> > > ... > > <mirror> > <id>dap.internal</id> > <url>http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/internal/ > </url> > <mirrorOf>*</mirrorOf> > </mirror> > > > > -- > Thanks, > Mick Knutson > > http://www.baselogic.com > http://www.blincmagazine.com > http://www.djmick.com > http://www.myspace.com/mickknutson > http://www.myspace.com/BLiNCMagazine > http://tahoe.baselogic.com > --- -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com --- |
|
|
Re: [m2][archiva1] Issue deploying to ArchivaOn Jan 14, 2008 11:27 AM, Mick Knutson <mickknutson@...> wrote:
> I can deploy my site docs to my remote server just fine, but when I try to > deploy a module to my archiva REP, I get a 401 error. Please choose *one* list and ask your question there. Someone will tell you if you're in the wrong place. Many of the people who can help are already reading both lists, and cross-posting just causes duplicate traffic, as well as splitting a conversation so it's hard to follow in the archives. In this case it doesn't look like a problem with Archiva, just a problem with configuration, so I'm replying on users@maven. You have: > *pom.xml:* > > <!-- use the following if you're not using a snapshot version. --> > <repository> > <id>dap.internal</id> ... > <snapshotRepository> > <id>dap.snapshots</id> > </distributionManagement> and > *settings.xml:* ... > <id>rc_sun66e-site</id> > <id>rc_sun66e-repository</id> > <id>dap2.internal</id> > <id>deployment.webdav</id> > <id>deployment.webdav</id> In order for Maven to figure out what credentials to send to the server, the ids need to match in the pom.xml distributionManagement section, and settings.xml servers section. You're probably getting the 401 because Maven isn't supplying any credentials. -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: [m2][archiva1] Issue deploying to ArchivaRelated question - Is this a case sensitive match?
Thanks! On 1/14/08, Wendy Smoak <wsmoak@...> wrote: > On Jan 14, 2008 11:27 AM, Mick Knutson <mickknutson@...> wrote: > > > I can deploy my site docs to my remote server just fine, but when I try to > > deploy a module to my archiva REP, I get a 401 error. > > Please choose *one* list and ask your question there. Someone will > tell you if you're in the wrong place. Many of the people who can > help are already reading both lists, and cross-posting just causes > duplicate traffic, as well as splitting a conversation so it's hard to > follow in the archives. > > In this case it doesn't look like a problem with Archiva, just a > problem with configuration, so I'm replying on users@maven. You have: > > > *pom.xml:* > > > > <!-- use the following if you're not using a snapshot version. --> > > <repository> > > <id>dap.internal</id> > ... > > <snapshotRepository> > > <id>dap.snapshots</id> > > </distributionManagement> > > and > > > *settings.xml:* > ... > > <id>rc_sun66e-site</id> > > <id>rc_sun66e-repository</id> > > <id>dap2.internal</id> > > <id>deployment.webdav</id> > > <id>deployment.webdav</id> > > In order for Maven to figure out what credentials to send to the > server, the ids need to match in the pom.xml distributionManagement > section, and settings.xml servers section. > > You're probably getting the 401 because Maven isn't supplying any credentials. > > -- > Wendy > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: [m2][archiva1] Issue deploying to ArchivaWendy,
I have the same issue, and I followed your suggestion of matching up the id's, but I still get the 401 error. settings.xml: <server> <id>dev.repo</id> <username>xxxxx</username> <password>xxxxx</password> </server> pom.xml: <distributionManagement> <repository> <id>dev.repo</id> <name>Internal Release Repository</name> <url>dav:http://ng00003570:8080/archiva/repository/internal/</url> </repository> <snapshotRepository> <id>dev.repo</id> <name>Internal Snapshot Repository</name> <url>dav:http://ng00003570:8080/archiva/repository/snapshots/</url> </snapshotRepository> </distributionManagement> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> </plugins> <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-webdav</artifactId> <version>1.0-beta-2</version> </extension> </extensions> </build> Is there anything else missing? Thanks, Chris
|
|
|
Re: [m2][archiva1] Issue deploying to ArchivaOn Jan 24, 2008 12:20 PM, Christopher Lumpkin <clumpkin@...> wrote:
> I have the same issue, and I followed your suggestion of matching up the > id's, but I still get the 401 error. How was the user account created? Can you log in with the userid/password you have in settings.xml? If the user was admin-created (vs. self-registered) you might be running into http://jira.codehaus.org/browse/MRM-584 . (There are more hints on working around that on the similar Continuum issue, http://jira.codehaus.org/browse/CONTINUUM-1611 .) Please follow up on the Archiva user list if you're still having trouble. http://maven.apache.org/archiva/mail-lists.html -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |