You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Arnaud HERITIER <ah...@gmail.com> on 2006/08/02 10:30:44 UTC

Re: Unable to deploy to remote repository

Sharmishta

  I you want to use ftp to deploy locally your settings must be :

maven.repo.list=R1
maven.repo.R1=ftp://localhost
maven.repo.R1.directory=/ROOT/repository
maven.repo.R1.username=sharmishta
maven.repo.R1.password=hrhk

http://maven.apache.org/maven-1.x/plugins/artifact/examples.html

Arnaud

On 8/2/06, sharmishta.kaul <sh...@daffodildb.com> wrote:
>
> I'm using maven1.0. I want to deploy to the remote repository.
> I have used the following code in project.properties
>
> maven.repo.list=R1
> maven.repo.R1 = ftp://localhost:21/ROOT/repository
> maven.repo.R1.directory=http://localhost:8080/ROOT/repository
> maven.repo.R1.username=sharmishta
> maven.repo.R1.password=hrhk
>
> When i give the command maven jar:deploy, i get thr following exception
>
> jar:deploy:
>     [echo] maven.repo.list is set - using artifact deploy mode
> Will deploy to 1 repository(ies): R1
> Deploying to repository: R1
> Failed to deploy to: R1 Reason: Could not connect to server.
>
> BUILD FAILED
> File...... C:\Documents and Settings\Administrator\.maven\cache\maven-
> artifact-plugin-1.4.1\plugin.jelly
> Element... artifact:artifact-deploy
> Line...... 94
> Column.... 13
> Unable to deploy to any repositories
>
> Please tell me what I'm missing. Do I have to use some plugin for that. If
> yes then how.Please help. I've not worked in maven before
>
>
>
>
>

Re: Re: Eclipse tomcat maven upgrade

Posted by Stefan Magnus Landrø <st...@gjensidige.no>.
I've used this approach myself. It works perfectly.

Denis McCarthy <dm...@annadaletech.com> skrev 02.08.2006 15:10:39:

> Stefan - I was actually in the process of investigating the approach 
> you've recommended. Thanks for confirming this is sensible.
> Denis
> 
> Stefan Magnus Landrø wrote:
> > Hi there,
> > 
> > I recommend using eclipse with wtp (seb tools platform). Setup tomcat 
as a 
> > server in eclipse, and add the maven project to the server 
configuration.
> > The libs will be deployed automaticallly.
> > 
> > Remember adding wtp support to your pom (config setting in the 
> > maven-eclipse-plugin) - see earlier post on this matter from today.
> > 
> > You don't need a particular tomcat plugin.
> > 
> > HTH
> > 
> > Denis McCarthy <dm...@annadaletech.com> skrev 02.08.2006 10:37:48:
> > 
> >> Hi,
> >> I'm looking at moving an ant based tomcat project to maven. I'm using 

> >> eclipse as the IDE. Currently I use the eclipse tomcat plugin to get 
the 
> > 
> >> project running in tomcat (I have a web/ dir in the project that 
holds 
> >> WEB-INF/ and all jsp's etc). I'd like to know how to handle this 
common 
> >> scenario using maven.
> >>
> >> As maven keeps jars in its own repository, how should I deploy the 
jars 
> >> required for the project to web/WEB-INF/lib? What's the recommended 
way 
> >> to manage such a project in maven? Should I use maven to manage the 
> >> tomcat integration entirely, and forget about the eclipse tomcat 
plugin? 
> > 
> >> (I've just moved to eclipse 3.2, so I'd have to reinstall the tomcat 
> >> plugin if I were to use it anyway)
> >> Thanks
> >> Denis
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

Re: Eclipse tomcat maven upgrade

Posted by Denis McCarthy <dm...@annadaletech.com>.
Stefan - I was actually in the process of investigating the approach 
you've recommended. Thanks for confirming this is sensible.
Denis

Stefan Magnus Landrø wrote:
> Hi there,
> 
> I recommend using eclipse with wtp (seb tools platform). Setup tomcat as a 
> server in eclipse, and add the maven project to the server configuration.
> The libs will be deployed automaticallly.
> 
> Remember adding wtp support to your pom (config setting in the 
> maven-eclipse-plugin) - see earlier post on this matter from today.
> 
> You don't need a particular tomcat plugin.
> 
> HTH
> 
> Denis McCarthy <dm...@annadaletech.com> skrev 02.08.2006 10:37:48:
> 
>> Hi,
>> I'm looking at moving an ant based tomcat project to maven. I'm using 
>> eclipse as the IDE. Currently I use the eclipse tomcat plugin to get the 
> 
>> project running in tomcat (I have a web/ dir in the project that holds 
>> WEB-INF/ and all jsp's etc). I'd like to know how to handle this common 
>> scenario using maven.
>>
>> As maven keeps jars in its own repository, how should I deploy the jars 
>> required for the project to web/WEB-INF/lib? What's the recommended way 
>> to manage such a project in maven? Should I use maven to manage the 
>> tomcat integration entirely, and forget about the eclipse tomcat plugin? 
> 
>> (I've just moved to eclipse 3.2, so I'd have to reinstall the tomcat 
>> plugin if I were to use it anyway)
>> Thanks
>> Denis
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Eclipse tomcat maven upgrade

Posted by Stefan Magnus Landrø <st...@gjensidige.no>.
Hi there,

I recommend using eclipse with wtp (seb tools platform). Setup tomcat as a 
server in eclipse, and add the maven project to the server configuration.
The libs will be deployed automaticallly.

Remember adding wtp support to your pom (config setting in the 
maven-eclipse-plugin) - see earlier post on this matter from today.

You don't need a particular tomcat plugin.

HTH

Denis McCarthy <dm...@annadaletech.com> skrev 02.08.2006 10:37:48:

> Hi,
> I'm looking at moving an ant based tomcat project to maven. I'm using 
> eclipse as the IDE. Currently I use the eclipse tomcat plugin to get the 

> project running in tomcat (I have a web/ dir in the project that holds 
> WEB-INF/ and all jsp's etc). I'd like to know how to handle this common 
> scenario using maven.
> 
> As maven keeps jars in its own repository, how should I deploy the jars 
> required for the project to web/WEB-INF/lib? What's the recommended way 
> to manage such a project in maven? Should I use maven to manage the 
> tomcat integration entirely, and forget about the eclipse tomcat plugin? 

> (I've just moved to eclipse 3.2, so I'd have to reinstall the tomcat 
> plugin if I were to use it anyway)
> Thanks
> Denis
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

Eclipse tomcat maven upgrade

Posted by Denis McCarthy <dm...@annadaletech.com>.
Hi,
I'm looking at moving an ant based tomcat project to maven. I'm using 
eclipse as the IDE. Currently I use the eclipse tomcat plugin to get the 
project running in tomcat (I have a web/ dir in the project that holds 
WEB-INF/ and all jsp's etc). I'd like to know how to handle this common 
scenario using maven.

As maven keeps jars in its own repository, how should I deploy the jars 
required for the project to web/WEB-INF/lib? What's the recommended way 
to manage such a project in maven? Should I use maven to manage the 
tomcat integration entirely, and forget about the eclipse tomcat plugin? 
(I've just moved to eclipse 3.2, so I'd have to reinstall the tomcat 
plugin if I were to use it anyway)
Thanks
Denis

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Unable to deploy to remote repository

Posted by Arnaud HERITIER <ah...@gmail.com>.
These plugins are used to deploy web applications in these containers.
But it can't be used to manage a repository on them.
A project called Maven Repository Manager is coming to allow you to do this
sort of things

Arnaud

On 8/2/06, neeraj daffodil <ne...@gmail.com> wrote:
>
> we also understand that we canot deploy directly in webapps but i want to
> know than why tomcat and jboss plugin is there?
>
> On 8/2/06, Arnaud HERITIER <ah...@gmail.com> wrote:
> >
> > Even if it's urgent for you, it's not the case for me. And it's the
> > problem
> > of the OSS.
> > In theory you'll have a better support if you join the users on the list
> > instead of me directly.
> >
> > For your reply :
> > You can't deploy directly to a web application. In HTTP you can only
> read
> > data.
> > You have to install on your remote server a ftp server, a ssh server, a
> > webdav server, ... something that will allow you to push your artefacts
> on
> > it.
> >
> > Arnaud
> >
> >
> > On 8/2/06, sharmishta.kaul <sh...@daffodildb.com> wrote:
> > >
> > > Thanks for your help. I have been able to upload to the repository. I
> > had
> > > missed out the maven-artifact-plugin. Now I want to deploy remotely to
> > the
> > > tomcat's webapps. What plugin should I use. This is required urgently
> > >
> > > Arnaud HERITIER wrote ..
> > > > Sharmishta
> > > >
> > > >   I you want to use ftp to deploy locally your settings must be :
> > > >
> > > > maven.repo.list=R1
> > > > maven.repo.R1=ftp://localhost
> > > > maven.repo.R1.directory=/ROOT/repository
> > > > maven.repo.R1.username=sharmishta
> > > > maven.repo.R1.password=hrhk
> > > >
> > > > http://maven.apache.org/maven-1.x/plugins/artifact/examples.html
> > > >
> > > > Arnaud
> > > >
> > > > On 8/2/06, sharmishta.kaul <sh...@daffodildb.com> wrote:
> > > > >
> > > > > I'm using maven1.0. I want to deploy to the remote repository.
> > > > > I have used the following code in project.properties
> > > > >
> > > > > maven.repo.list=R1
> > > > > maven.repo.R1 = ftp://localhost:21/ROOT/repository
> > > > > maven.repo.R1.directory=http://localhost:8080/ROOT/repository
> > > > > maven.repo.R1.username=sharmishta
> > > > > maven.repo.R1.password=hrhk
> > > > >
> > > > > When i give the command maven jar:deploy, i get thr following
> > > exception
> > > > >
> > > > > jar:deploy:
> > > > >     [echo] maven.repo.list is set - using artifact deploy mode
> > > > > Will deploy to 1 repository(ies): R1
> > > > > Deploying to repository: R1
> > > > > Failed to deploy to: R1 Reason: Could not connect to server.
> > > > >
> > > > > BUILD FAILED
> > > > > File...... C:\Documents and
> > Settings\Administrator\.maven\cache\maven-
> > > > > artifact-plugin-1.4.1\plugin.jelly
> > > > > Element... artifact:artifact-deploy
> > > > > Line...... 94
> > > > > Column.... 13
> > > > > Unable to deploy to any repositories
> > > > >
> > > > > Please tell me what I'm missing. Do I have to use some plugin for
> > > that.
> > > > If
> > > > > yes then how.Please help. I've not worked in maven before
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> > >
> >
> >
>
>

Re: Unable to deploy to remote repository

Posted by neeraj daffodil <ne...@gmail.com>.
we also understand that we canot deploy directly in webapps but i want to
know than why tomcat and jboss plugin is there?

On 8/2/06, Arnaud HERITIER <ah...@gmail.com> wrote:
>
> Even if it's urgent for you, it's not the case for me. And it's the
> problem
> of the OSS.
> In theory you'll have a better support if you join the users on the list
> instead of me directly.
>
> For your reply :
> You can't deploy directly to a web application. In HTTP you can only read
> data.
> You have to install on your remote server a ftp server, a ssh server, a
> webdav server, ... something that will allow you to push your artefacts on
> it.
>
> Arnaud
>
>
> On 8/2/06, sharmishta.kaul <sh...@daffodildb.com> wrote:
> >
> > Thanks for your help. I have been able to upload to the repository. I
> had
> > missed out the maven-artifact-plugin. Now I want to deploy remotely to
> the
> > tomcat's webapps. What plugin should I use. This is required urgently
> >
> > Arnaud HERITIER wrote ..
> > > Sharmishta
> > >
> > >   I you want to use ftp to deploy locally your settings must be :
> > >
> > > maven.repo.list=R1
> > > maven.repo.R1=ftp://localhost
> > > maven.repo.R1.directory=/ROOT/repository
> > > maven.repo.R1.username=sharmishta
> > > maven.repo.R1.password=hrhk
> > >
> > > http://maven.apache.org/maven-1.x/plugins/artifact/examples.html
> > >
> > > Arnaud
> > >
> > > On 8/2/06, sharmishta.kaul <sh...@daffodildb.com> wrote:
> > > >
> > > > I'm using maven1.0. I want to deploy to the remote repository.
> > > > I have used the following code in project.properties
> > > >
> > > > maven.repo.list=R1
> > > > maven.repo.R1 = ftp://localhost:21/ROOT/repository
> > > > maven.repo.R1.directory=http://localhost:8080/ROOT/repository
> > > > maven.repo.R1.username=sharmishta
> > > > maven.repo.R1.password=hrhk
> > > >
> > > > When i give the command maven jar:deploy, i get thr following
> > exception
> > > >
> > > > jar:deploy:
> > > >     [echo] maven.repo.list is set - using artifact deploy mode
> > > > Will deploy to 1 repository(ies): R1
> > > > Deploying to repository: R1
> > > > Failed to deploy to: R1 Reason: Could not connect to server.
> > > >
> > > > BUILD FAILED
> > > > File...... C:\Documents and
> Settings\Administrator\.maven\cache\maven-
> > > > artifact-plugin-1.4.1\plugin.jelly
> > > > Element... artifact:artifact-deploy
> > > > Line...... 94
> > > > Column.... 13
> > > > Unable to deploy to any repositories
> > > >
> > > > Please tell me what I'm missing. Do I have to use some plugin for
> > that.
> > > If
> > > > yes then how.Please help. I've not worked in maven before
> > > >
> > > >
> > > >
> > > >
> > > >
> >
> >
>
>

Re: Unable to deploy to remote repository

Posted by Arnaud HERITIER <ah...@gmail.com>.
Even if it's urgent for you, it's not the case for me. And it's the problem
of the OSS.
In theory you'll have a better support if you join the users on the list
instead of me directly.

For your reply :
You can't deploy directly to a web application. In HTTP you can only read
data.
You have to install on your remote server a ftp server, a ssh server, a
webdav server, ... something that will allow you to push your artefacts on
it.

Arnaud


On 8/2/06, sharmishta.kaul <sh...@daffodildb.com> wrote:
>
> Thanks for your help. I have been able to upload to the repository. I had
> missed out the maven-artifact-plugin. Now I want to deploy remotely to the
> tomcat's webapps. What plugin should I use. This is required urgently
>
> Arnaud HERITIER wrote ..
> > Sharmishta
> >
> >   I you want to use ftp to deploy locally your settings must be :
> >
> > maven.repo.list=R1
> > maven.repo.R1=ftp://localhost
> > maven.repo.R1.directory=/ROOT/repository
> > maven.repo.R1.username=sharmishta
> > maven.repo.R1.password=hrhk
> >
> > http://maven.apache.org/maven-1.x/plugins/artifact/examples.html
> >
> > Arnaud
> >
> > On 8/2/06, sharmishta.kaul <sh...@daffodildb.com> wrote:
> > >
> > > I'm using maven1.0. I want to deploy to the remote repository.
> > > I have used the following code in project.properties
> > >
> > > maven.repo.list=R1
> > > maven.repo.R1 = ftp://localhost:21/ROOT/repository
> > > maven.repo.R1.directory=http://localhost:8080/ROOT/repository
> > > maven.repo.R1.username=sharmishta
> > > maven.repo.R1.password=hrhk
> > >
> > > When i give the command maven jar:deploy, i get thr following
> exception
> > >
> > > jar:deploy:
> > >     [echo] maven.repo.list is set - using artifact deploy mode
> > > Will deploy to 1 repository(ies): R1
> > > Deploying to repository: R1
> > > Failed to deploy to: R1 Reason: Could not connect to server.
> > >
> > > BUILD FAILED
> > > File...... C:\Documents and Settings\Administrator\.maven\cache\maven-
> > > artifact-plugin-1.4.1\plugin.jelly
> > > Element... artifact:artifact-deploy
> > > Line...... 94
> > > Column.... 13
> > > Unable to deploy to any repositories
> > >
> > > Please tell me what I'm missing. Do I have to use some plugin for
> that.
> > If
> > > yes then how.Please help. I've not worked in maven before
> > >
> > >
> > >
> > >
> > >
>
>