application url context change is it possible

View: New views
8 Messages — Rating Filter:   Alert me  

application url context change is it possible

by Paul G :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Running in stand alone mode is it possible to change the context root of the Archiva application. Currently it is set to archiva I would like to set it to repomanager. Any hint's on which config file controls this?

Re: application url context change is it possible

by Brett Porter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It should be apps/archiva/conf/application.xml, change <context/>

On 16/04/2008, Paul G <ps.grove@...> wrote:

>
>  Running in stand alone mode is it possible to change the context root of the
>  Archiva application. Currently it is set to archiva I would like to set it
>  to repomanager. Any hint's on which config file controls this?
>
> --
>  View this message in context: http://www.nabble.com/application-url-context-change-is-it-possible-tp16719758p16719758.html
>  Sent from the archiva-users mailing list archive at Nabble.com.
>
>


--
Brett Porter
Blog: http://blogs.exist.com/bporter/

Re: application url context change is it possible

by Paul G :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Cheers Brett
That worked a treat
Brett Porter wrote:
It should be apps/archiva/conf/application.xml, change <context/>

On 16/04/2008, Paul G <ps.grove@googlemail.com> wrote:
>
>  Running in stand alone mode is it possible to change the context root of the
>  Archiva application. Currently it is set to archiva I would like to set it
>  to repomanager. Any hint's on which config file controls this?
>
> --
>  View this message in context: http://www.nabble.com/application-url-context-change-is-it-possible-tp16719758p16719758.html
>  Sent from the archiva-users mailing list archive at Nabble.com.
>
>


--
Brett Porter
Blog: http://blogs.exist.com/bporter/

deploying third party artifacts: "Unsupported Protocol: 'dav'"

by Marc L :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We are having trouble to deploy 3rd party-artefacts using mvn
deploy-plugin.

I followed the instructions located here
http://maven.apache.org/archiva/guides/getting-started/maven-configurati
on.html

but the result is

[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error deploying artifact: Unsupported Protocol: 'dav': Cannot
find wagon which supports the requested protocol: dav

Component descriptor cannot be found in the component repository:
org.apache.maven.wagon.Wagondav.
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying
artifact: Unsupported Protocol: 'dav': Cannot find wagon which supports
the requested protocol: dav


here is the pom.xml used for upload:

<project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>com.example</groupId>
   <artifactId>webdav-deploy</artifactId>
   <packaging>pom</packaging>
   <version>1</version>
   <name>Webdav Deployment POM</name>
   
   
   <build>
      <extensions>
         <extension>
            <groupId>org.apache.maven.wagon</groupId>
            <artifactId>wagon-webdav</artifactId>
            <version>1.0-beta-2</version>
         </extension>
      </extensions>
   </build>
   
</project>

Re: deploying third party artifacts: "Unsupported Protocol: 'dav'"

by Brett Porter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What version of Maven are you using?

You may also try without "dav:" - just http:// is often fine.

- Brett

On 16/04/2008, Lustig, Marc (Allianz Deutschland AG)
<EXTERN.LUSTIG_MARC@...> wrote:

> We are having trouble to deploy 3rd party-artefacts using mvn
>  deploy-plugin.
>
>  I followed the instructions located here
>  http://maven.apache.org/archiva/guides/getting-started/maven-configurati
>  on.html
>
>  but the result is
>
>  [ERROR] BUILD ERROR
>  [INFO]
>  ------------------------------------------------------------------------
>  [INFO] Error deploying artifact: Unsupported Protocol: 'dav': Cannot
>  find wagon which supports the requested protocol: dav
>
>  Component descriptor cannot be found in the component repository:
>  org.apache.maven.wagon.Wagondav.
>  [INFO]
>  ------------------------------------------------------------------------
>  [DEBUG] Trace
>  org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying
>  artifact: Unsupported Protocol: 'dav': Cannot find wagon which supports
>  the requested protocol: dav
>
>
>  here is the pom.xml used for upload:
>
>  <project>
>    <modelVersion>4.0.0</modelVersion>
>    <groupId>com.example</groupId>
>    <artifactId>webdav-deploy</artifactId>
>    <packaging>pom</packaging>
>    <version>1</version>
>    <name>Webdav Deployment POM</name>
>
>
>    <build>
>       <extensions>
>          <extension>
>             <groupId>org.apache.maven.wagon</groupId>
>             <artifactId>wagon-webdav</artifactId>
>             <version>1.0-beta-2</version>
>          </extension>
>       </extensions>
>    </build>
>
>  </project>
>


--
Brett Porter
Blog: http://blogs.exist.com/bporter/

AW: deploying third party artifacts: "Unsupported Protocol: 'dav'"

by Marc L :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

thanks much, Brett.  
the file is being uploaded now, however another error occurs:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Failed to transfer file: ....... Return code is: 401

so it's an authentication issue.
on the local machine (where mvn deploy is called) in settings.xml is configured:
<server>
        <id>someid</id>
        <username>archiva-user-with-repo-manager-rights</username>
        <password>pw</password>
        </server>
        </servers>


any idea what might cause the 401?
Do I need to map the server-id to something?

M.

 

-----Ursprüngliche Nachricht-----
Von: Brett Porter [mailto:brett.porter@...]
Gesendet: Mittwoch, 16. April 2008 13:00
An: archiva-users@...
Betreff: Re: deploying third party artifacts: "Unsupported Protocol: 'dav'"

What version of Maven are you using?

You may also try without "dav:" - just http:// is often fine.

- Brett

On 16/04/2008, Lustig, Marc (Allianz Deutschland AG)
<EXTERN.LUSTIG_MARC@...> wrote:

> We are having trouble to deploy 3rd party-artefacts using mvn
>  deploy-plugin.
>
>  I followed the instructions located here
>  http://maven.apache.org/archiva/guides/getting-started/maven-configurati
>  on.html
>
>  but the result is
>
>  [ERROR] BUILD ERROR
>  [INFO]
>  ------------------------------------------------------------------------
>  [INFO] Error deploying artifact: Unsupported Protocol: 'dav': Cannot
>  find wagon which supports the requested protocol: dav
>
>  Component descriptor cannot be found in the component repository:
>  org.apache.maven.wagon.Wagondav.
>  [INFO]
>  ------------------------------------------------------------------------
>  [DEBUG] Trace
>  org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying
>  artifact: Unsupported Protocol: 'dav': Cannot find wagon which supports
>  the requested protocol: dav
>
>
>  here is the pom.xml used for upload:
>
>  <project>
>    <modelVersion>4.0.0</modelVersion>
>    <groupId>com.example</groupId>
>    <artifactId>webdav-deploy</artifactId>
>    <packaging>pom</packaging>
>    <version>1</version>
>    <name>Webdav Deployment POM</name>
>
>
>    <build>
>       <extensions>
>          <extension>
>             <groupId>org.apache.maven.wagon</groupId>
>             <artifactId>wagon-webdav</artifactId>
>             <version>1.0-beta-2</version>
>          </extension>
>       </extensions>
>    </build>
>
>  </project>
>


--
Brett Porter
Blog: http://blogs.exist.com/bporter/

AW: deploying third party artifacts: "Unsupported Protocol: 'dav'"

by Marc L :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

it works now, as assumed the server-id was not mapped correctly.
 

-----Ursprüngliche Nachricht-----
Von: Lustig, Marc (Allianz Deutschland AG)
Gesendet: Mittwoch, 16. April 2008 14:41
An: archiva-users@...
Betreff: AW: deploying third party artifacts: "Unsupported Protocol: 'dav'"

thanks much, Brett.  
the file is being uploaded now, however another error occurs:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Failed to transfer file: ....... Return code is: 401

so it's an authentication issue.
on the local machine (where mvn deploy is called) in settings.xml is configured:
<server>
        <id>someid</id>
        <username>archiva-user-with-repo-manager-rights</username>
        <password>pw</password>
        </server>
        </servers>


any idea what might cause the 401?
Do I need to map the server-id to something?

M.

 

-----Ursprüngliche Nachricht-----
Von: Brett Porter [mailto:brett.porter@...]
Gesendet: Mittwoch, 16. April 2008 13:00
An: archiva-users@...
Betreff: Re: deploying third party artifacts: "Unsupported Protocol: 'dav'"

What version of Maven are you using?

You may also try without "dav:" - just http:// is often fine.

- Brett

On 16/04/2008, Lustig, Marc (Allianz Deutschland AG)
<EXTERN.LUSTIG_MARC@...> wrote:

> We are having trouble to deploy 3rd party-artefacts using mvn
>  deploy-plugin.
>
>  I followed the instructions located here
>  http://maven.apache.org/archiva/guides/getting-started/maven-configurati
>  on.html
>
>  but the result is
>
>  [ERROR] BUILD ERROR
>  [INFO]
>  ------------------------------------------------------------------------
>  [INFO] Error deploying artifact: Unsupported Protocol: 'dav': Cannot
>  find wagon which supports the requested protocol: dav
>
>  Component descriptor cannot be found in the component repository:
>  org.apache.maven.wagon.Wagondav.
>  [INFO]
>  ------------------------------------------------------------------------
>  [DEBUG] Trace
>  org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying
>  artifact: Unsupported Protocol: 'dav': Cannot find wagon which supports
>  the requested protocol: dav
>
>
>  here is the pom.xml used for upload:
>
>  <project>
>    <modelVersion>4.0.0</modelVersion>
>    <groupId>com.example</groupId>
>    <artifactId>webdav-deploy</artifactId>
>    <packaging>pom</packaging>
>    <version>1</version>
>    <name>Webdav Deployment POM</name>
>
>
>    <build>
>       <extensions>
>          <extension>
>             <groupId>org.apache.maven.wagon</groupId>
>             <artifactId>wagon-webdav</artifactId>
>             <version>1.0-beta-2</version>
>          </extension>
>       </extensions>
>    </build>
>
>  </project>
>


--
Brett Porter
Blog: http://blogs.exist.com/bporter/

Re: application url context change is it possible

by Sergey Nikitin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Probably directory layout was changed, in version 1.2.1 there is no "conf" under "apps/archiva".
File with name "application.xml" is located under "apps/archiva/WEB-INF/classes/META-INF/plexus/" and there is no element "context".

For now i've just renamed directory from "apps/archiva" to "apps/newName".
That works fine, but maybe it is better to modify configuration file? Im not an expert with these things.

Thanks in advance

Brett Porter wrote:
It should be apps/archiva/conf/application.xml, change <context/>

On 16/04/2008, Paul G <ps.grove@googlemail.com> wrote:
>
>  Running in stand alone mode is it possible to change the context root of the
>  Archiva application. Currently it is set to archiva I would like to set it
>  to repomanager. Any hint's on which config file controls this?
>
> --
>  View this message in context: http://www.nabble.com/application-url-context-change-is-it-possible-tp16719758p16719758.html
>  Sent from the archiva-users mailing list archive at Nabble.com.
>
>


--
Brett Porter
Blog: http://blogs.exist.com/bporter/