You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Antonio Bemfica <an...@bemfi.ca> on 2004/05/31 21:50:47 UTC

Adding artifacts to local repository - how?

Hello - I'm new to Maven and am having some difficulty with what I
thought would be a simple task. I would like to add a few artifacts (jar
files) to my local repository. I have tried to use artifact:install
(http://maven.apache.org/reference/plugins/artifact/tags.html#artifact%3Ainstall) with the command below:

%maven -Dmaven.home.local=/red/home/maven artifact:install
-Dartifact=mymail.api -Dtype=jar

but I get the following result:

> BUILD FAILED
> Goal "artifact:install" does not exist in this project.

Is there a better way to add my own artifacts to the local repository?
What would that be? Or if the artifact:install method is the way to do
it, what am I missing? Any help would be most appreciated.

Thanks

Antonio







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


Re: Adding artifacts to local repository - how?

Posted by Brill Pappin <br...@stabilia.com>.
Ahh... I understand.

I've done it manually once or twice, however see my other thread with 
the subject "Re: Dependencies without repositories. Was: Re: Dependencies".

There is a description of how I personally handle that situation -- 
which is only one way out of several that I've seen people talk about in 
this group.

- Brill Pappin

Antonio Bemfica wrote:

>I do not have the source to create the jars. These are 3rd party
>libraries. From the docs on the plugin it appears that the jar:install
>goal would trigger the jar:jar goal to create the jar from source (which
>I don't have...).
>
>A.
>
>On Tue, 2004-06-01 at 08:49, Brill Pappin wrote:
>
>  
>
>>whats wrong with jar:install?
>>
>>- Brill Pappin
>>
>>Antonio Bemfica wrote:
>>
>>    
>>
>>>Hello - I'm new to Maven and am having some difficulty with what I
>>>thought would be a simple task. I would like to add a few artifacts (jar
>>>files) to my local repository. I have tried to use artifact:install
>>>(http://maven.apache.org/reference/plugins/artifact/tags.html#artifact%3Ainstall) with the command below:
>>>
>>>%maven -Dmaven.home.local=/red/home/maven artifact:install
>>>-Dartifact=mymail.api -Dtype=jar
>>>
>>>but I get the following result:
>>>
>>> 
>>>
>>>      
>>>
>>>>BUILD FAILED
>>>>Goal "artifact:install" does not exist in this project.
>>>>   
>>>>
>>>>        
>>>>
>>>Is there a better way to add my own artifacts to the local repository?
>>>What would that be? Or if the artifact:install method is the way to do
>>>it, what am I missing? Any help would be most appreciated.
>>>
>>>Thanks
>>>
>>>Antonio
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>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
>
>  
>


-- 
"I love deadlines. I like the whooshing sound they make as they fly by"
                                                        - Douglas Adams


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


Re: Adding artifacts to local repository - how?

Posted by Antonio Bemfica <an...@bemfi.ca>.
I do not have the source to create the jars. These are 3rd party
libraries. From the docs on the plugin it appears that the jar:install
goal would trigger the jar:jar goal to create the jar from source (which
I don't have...).

A.

On Tue, 2004-06-01 at 08:49, Brill Pappin wrote:

> whats wrong with jar:install?
> 
> - Brill Pappin
> 
> Antonio Bemfica wrote:
> 
> >Hello - I'm new to Maven and am having some difficulty with what I
> >thought would be a simple task. I would like to add a few artifacts (jar
> >files) to my local repository. I have tried to use artifact:install
> >(http://maven.apache.org/reference/plugins/artifact/tags.html#artifact%3Ainstall) with the command below:
> >
> >%maven -Dmaven.home.local=/red/home/maven artifact:install
> >-Dartifact=mymail.api -Dtype=jar
> >
> >but I get the following result:
> >
> >  
> >
> >>BUILD FAILED
> >>Goal "artifact:install" does not exist in this project.
> >>    
> >>
> >
> >Is there a better way to add my own artifacts to the local repository?
> >What would that be? Or if the artifact:install method is the way to do
> >it, what am I missing? Any help would be most appreciated.
> >
> >Thanks
> >
> >Antonio
> >
> >
> >
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >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: Adding artifacts to local repository - how?

Posted by Brill Pappin <br...@stabilia.com>.
whats wrong with jar:install?

- Brill Pappin

Antonio Bemfica wrote:

>Hello - I'm new to Maven and am having some difficulty with what I
>thought would be a simple task. I would like to add a few artifacts (jar
>files) to my local repository. I have tried to use artifact:install
>(http://maven.apache.org/reference/plugins/artifact/tags.html#artifact%3Ainstall) with the command below:
>
>%maven -Dmaven.home.local=/red/home/maven artifact:install
>-Dartifact=mymail.api -Dtype=jar
>
>but I get the following result:
>
>  
>
>>BUILD FAILED
>>Goal "artifact:install" does not exist in this project.
>>    
>>
>
>Is there a better way to add my own artifacts to the local repository?
>What would that be? Or if the artifact:install method is the way to do
>it, what am I missing? Any help would be most appreciated.
>
>Thanks
>
>Antonio
>
>
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>  
>


-- 
"I love deadlines. I like the whooshing sound they make as they fly by"
                                                        - Douglas Adams


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


RE: Adding artifacts to local repository - how?

Posted by Antonio Bemfica <an...@bemfi.ca>.
Thanks again for the information. I did read the docs for the artifact
plugin ahead of my very first post. Given my background, eagerness to
"get it to work" fast and the fact that at the time I had spent only a
minimal amount of time using maven (less than two hours...), I both
didn't understand and didn't appreciate the importance of the
information on the docs for the plugin - I probably still don't...

I have only a projec.xml file - no maven.xml. I am trying to bite only
as much as I can chew... I have not set any goals and am only using what
is already there. If you tell me that artifact:install is the RIGHT way
of accomplish what I am trying to do (and from both the docs and your
note below, it appears to be), then I will go about learning how to set
my own goals. Expect some more clueless posts!

Thanks for the help.

A.

PS: The "Dependancies without repositories" thread has some info that
addresses the underlying need at my organisation - I found some answers
there.


On Mon, 2004-05-31 at 18:05, Chuck Daniels wrote:

> As I said, see the documentation on the artifact plugin
> (http://maven.apache.org/reference/plugins/artifact/index.html).  If you
> read the documentation on the artifact:install tag (see
> http://maven.apache.org/reference/plugins/artifact/tags.html), it explains
> why you should use it.  Of course, you are free to use whatever works for
> you, such as the example you show using the repository:copy-jar goal.
> 
> > -----Original Message-----
> > From: Antonio Bemfica [mailto:antonio@bemfi.ca]
> > Sent: Monday, May 31, 2004 5:40 PM
> > To: Maven Users List
> > Subject: RE: Adding artifacts to local repository - how?
> >
> >
> > Thanks for the reply. It tells me the reason for the "BUILD FAILED"
> > message. Perhaps I should rephrase my question:
> >
> >         Is there a sanctioned/accepted/"right" way of adding local
> >         artifacts to a local repository?
> >
> > I had a look at the repository plugin and found that the command below
> > works well:
> >
> >         maven repository:copy-jar
> >         -Dartifact=mymail.jar
> >         -DgroupId=myown
> >         -Dmaven.repo.central=localhost
> >         -Dmaven.repo.central.directory=/red/home/maven/repository
> >         -Dmaven.username=maven
> >
> > I have no qualms admitting my ignorance on the matter, so any
> > clarification here would be welcomed.
> >
> > A.
> >
> > On Mon, 2004-05-31 at 16:10, Chuck Daniels wrote:
> >
> > > The artifact plugin does not define any goals.  It defines
> > tags.  See the
> > > docs: http://maven.apache.org/reference/plugins/artifact/index.html.
> > >
> > > > -----Original Message-----
> > > > From: Antonio Bemfica [mailto:antonio@bemfi.ca]
> > > > Sent: Monday, May 31, 2004 3:51 PM
> > > > To: users@maven.apache.org
> > > > Subject: Adding artifacts to local repository - how?
> > > >
> > > >
> > > > Hello - I'm new to Maven and am having some difficulty with what I
> > > > thought would be a simple task. I would like to add a few
> > artifacts (jar
> > > > files) to my local repository. I have tried to use artifact:install
> > > > (http://maven.apache.org/reference/plugins/artifact/tags.html#arti
> > > > fact%3Ainstall) with the command below:
> > > >
> > > > %maven -Dmaven.home.local=/red/home/maven artifact:install
> > > > -Dartifact=mymail.api -Dtype=jar
> > > >
> > > > but I get the following result:
> > > >
> > > > > BUILD FAILED
> > > > > Goal "artifact:install" does not exist in this project.
> > > >
> > > > Is there a better way to add my own artifacts to the local repository?
> > > > What would that be? Or if the artifact:install method is the way to do
> > > > it, what am I missing? Any help would be most appreciated.
> > > >
> > > > Thanks
> > > >
> > > > Antonio
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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
> >
> > ---------------------------------------------------------------------
> > 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

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


RE: Adding artifacts to local repository - how?

Posted by Chuck Daniels <cj...@yahoo.com>.
As I said, see the documentation on the artifact plugin
(http://maven.apache.org/reference/plugins/artifact/index.html).  If you
read the documentation on the artifact:install tag (see
http://maven.apache.org/reference/plugins/artifact/tags.html), it explains
why you should use it.  Of course, you are free to use whatever works for
you, such as the example you show using the repository:copy-jar goal.

> -----Original Message-----
> From: Antonio Bemfica [mailto:antonio@bemfi.ca]
> Sent: Monday, May 31, 2004 5:40 PM
> To: Maven Users List
> Subject: RE: Adding artifacts to local repository - how?
>
>
> Thanks for the reply. It tells me the reason for the "BUILD FAILED"
> message. Perhaps I should rephrase my question:
>
>         Is there a sanctioned/accepted/"right" way of adding local
>         artifacts to a local repository?
>
> I had a look at the repository plugin and found that the command below
> works well:
>
>         maven repository:copy-jar
>         -Dartifact=mymail.jar
>         -DgroupId=myown
>         -Dmaven.repo.central=localhost
>         -Dmaven.repo.central.directory=/red/home/maven/repository
>         -Dmaven.username=maven
>
> I have no qualms admitting my ignorance on the matter, so any
> clarification here would be welcomed.
>
> A.
>
> On Mon, 2004-05-31 at 16:10, Chuck Daniels wrote:
>
> > The artifact plugin does not define any goals.  It defines
> tags.  See the
> > docs: http://maven.apache.org/reference/plugins/artifact/index.html.
> >
> > > -----Original Message-----
> > > From: Antonio Bemfica [mailto:antonio@bemfi.ca]
> > > Sent: Monday, May 31, 2004 3:51 PM
> > > To: users@maven.apache.org
> > > Subject: Adding artifacts to local repository - how?
> > >
> > >
> > > Hello - I'm new to Maven and am having some difficulty with what I
> > > thought would be a simple task. I would like to add a few
> artifacts (jar
> > > files) to my local repository. I have tried to use artifact:install
> > > (http://maven.apache.org/reference/plugins/artifact/tags.html#arti
> > > fact%3Ainstall) with the command below:
> > >
> > > %maven -Dmaven.home.local=/red/home/maven artifact:install
> > > -Dartifact=mymail.api -Dtype=jar
> > >
> > > but I get the following result:
> > >
> > > > BUILD FAILED
> > > > Goal "artifact:install" does not exist in this project.
> > >
> > > Is there a better way to add my own artifacts to the local repository?
> > > What would that be? Or if the artifact:install method is the way to do
> > > it, what am I missing? Any help would be most appreciated.
> > >
> > > Thanks
> > >
> > > Antonio
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
>
> ---------------------------------------------------------------------
> 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: Adding artifacts to local repository - how?

Posted by Antonio Bemfica <an...@bemfi.ca>.
Thanks for the reply. It tells me the reason for the "BUILD FAILED"
message. Perhaps I should rephrase my question:

        Is there a sanctioned/accepted/"right" way of adding local
        artifacts to a local repository?

I had a look at the repository plugin and found that the command below
works well:
        
        maven repository:copy-jar
        -Dartifact=mymail.jar
        -DgroupId=myown
        -Dmaven.repo.central=localhost
        -Dmaven.repo.central.directory=/red/home/maven/repository
        -Dmaven.username=maven
        
I have no qualms admitting my ignorance on the matter, so any
clarification here would be welcomed.

A.

On Mon, 2004-05-31 at 16:10, Chuck Daniels wrote:

> The artifact plugin does not define any goals.  It defines tags.  See the
> docs: http://maven.apache.org/reference/plugins/artifact/index.html.
> 
> > -----Original Message-----
> > From: Antonio Bemfica [mailto:antonio@bemfi.ca]
> > Sent: Monday, May 31, 2004 3:51 PM
> > To: users@maven.apache.org
> > Subject: Adding artifacts to local repository - how?
> >
> >
> > Hello - I'm new to Maven and am having some difficulty with what I
> > thought would be a simple task. I would like to add a few artifacts (jar
> > files) to my local repository. I have tried to use artifact:install
> > (http://maven.apache.org/reference/plugins/artifact/tags.html#arti
> > fact%3Ainstall) with the command below:
> >
> > %maven -Dmaven.home.local=/red/home/maven artifact:install
> > -Dartifact=mymail.api -Dtype=jar
> >
> > but I get the following result:
> >
> > > BUILD FAILED
> > > Goal "artifact:install" does not exist in this project.
> >
> > Is there a better way to add my own artifacts to the local repository?
> > What would that be? Or if the artifact:install method is the way to do
> > it, what am I missing? Any help would be most appreciated.
> >
> > Thanks
> >
> > Antonio
> >
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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

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


RE: Adding artifacts to local repository - how?

Posted by Chuck Daniels <cj...@yahoo.com>.
The artifact plugin does not define any goals.  It defines tags.  See the
docs: http://maven.apache.org/reference/plugins/artifact/index.html.

> -----Original Message-----
> From: Antonio Bemfica [mailto:antonio@bemfi.ca]
> Sent: Monday, May 31, 2004 3:51 PM
> To: users@maven.apache.org
> Subject: Adding artifacts to local repository - how?
>
>
> Hello - I'm new to Maven and am having some difficulty with what I
> thought would be a simple task. I would like to add a few artifacts (jar
> files) to my local repository. I have tried to use artifact:install
> (http://maven.apache.org/reference/plugins/artifact/tags.html#arti
> fact%3Ainstall) with the command below:
>
> %maven -Dmaven.home.local=/red/home/maven artifact:install
> -Dartifact=mymail.api -Dtype=jar
>
> but I get the following result:
>
> > BUILD FAILED
> > Goal "artifact:install" does not exist in this project.
>
> Is there a better way to add my own artifacts to the local repository?
> What would that be? Or if the artifact:install method is the way to do
> it, what am I missing? Any help would be most appreciated.
>
> Thanks
>
> Antonio
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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