If they are only "deploying on their own machines" then it can hardly
be called a "deployment" in the Maven-sense of the word. Is there a
reason you cannot simply use "install"?

If you absolutely insist on going down this road (though its a bit
like driving everywhere backwards IMO), I would have a standard
settings.xml file that defines a repo which actually exists on
everyone's local machines in a common place in their filesystem. Then
I would use <mirrorOf>* to specify that this repo is a mirrorOf
Central, and all other repos.

Then you should be able to run "online" which would clear up the
issues that generated this email thread. But again, if this is how
you're using Maven, you're (probably) doing it wrong.

Wayne

On Tue, Sep 16, 2008 at 6:27 AM, John Brady <[EMAIL PROTECTED]> wrote:
> I have looked into option three, but the team is only deploying to their own
> machines.  Therefore, I want everyone developer to have their own full
> repository so they do not have to download anything and can work fully
> offline with the ability to deploy a war file to their own machine.  Does
> that make more sense?
>
> Option 2 seems feasible and clean.  I will look into that.
>
> On Mon, Sep 15, 2008 at 4:36 PM, Baptiste MATHUS <[EMAIL PROTECTED]> wrote:
>
>> Well, before doing that, did you study a bit how maven works by default?
>>
>> You're speaking about designing an "internal" repository so that things run
>> faster.
>> * First, do you know that maven already maintains a cached version of what
>> was downloaded?
>> * Second, if you really really want to proceed this way, though it still
>> seems weird to me, why don't you just run mvn so that it would reactivate
>> online bevahiour just to be able to deploy? I guess it'd be far cleaner that
>> dealing with ant call to maven to whatever?!?
>> * Third (last but not least), what you seem to be speaking about: improving
>> downloading time, bandwidth and so on is already a very common use cas for
>> maven. To do that, you usually put a "corporate" maven repository between
>> you (and your team) and the public ones. To know more about that, just crawl
>> google for words like "maven repository manager", "maven archiva", "maven
>> nexus"... I guess this is rather what you should look into, even more if you
>> plan to deploy what you're doing to other machines than yours.
>>
>> HTH.
>>
>> Cheers.
>>
>> 2008/9/15 John Brady <[EMAIL PROTECTED]>
>>
>>> I want to setup an internal repository that each developer will have on
>>> their own repository on their machine so that builds will be faster.  So
>>> basically I ran mvn offline to get all my dependencies and put them in a
>>> repository.  this repository will be able to be checked into svn if any
>>> developer updates and files.  But the problem I face is not being able to
>>> deploy in offline mode, which leads back to whether or not using ant is the
>>> way to go or is there a way to make maven allow the deploy plugin to run in
>>> offline mode
>>>
>>>
>>> On Mon, Sep 15, 2008 at 4:09 PM, Baptiste MATHUS <[EMAIL PROTECTED]> wrote:
>>>
>>>> The answer to your question is no. You obviously don't have to run ant to
>>>> be able to use the deploy plugin...
>>>>
>>>> The real question is: why do you have maven configured to run offline
>>>> (see http://maven.apache.org/settings.html#Simple_Values to check the
>>>> documentation if necessary) or why you run mvn -o instead of simply mvn.
>>>> Check your settings.xml file to see if running offline is really what you
>>>> want.
>>>>
>>>> I guess you should explain why you run offline and how you configured the
>>>> offline mode.
>>>>
>>>> Cheers.
>>>>
>>>> 2008/9/15 John Brady <[EMAIL PROTECTED]>
>>>>
>>>> I want to be able to run a deploy goal while offline, however since this
>>>>> is an online task I cannot achieve this.  I am wondering if I can use an 
>>>>> ant
>>>>> plugin in for maven to achieve this goal
>>>>>
>>>>>
>>>>> On Mon, Sep 15, 2008 at 3:34 PM, Baptiste MATHUS <[EMAIL PROTECTED]> 
>>>>> wrote:
>>>>>
>>>>>> Could you please explain what you're trying to achieve?
>>>>>>
>>>>>> If you followed some tutorial, please explain at least where it fails
>>>>>> for you and what *you* expected it to do.
>>>>>> Maven WILL run offline as long as you don't ask for an online
>>>>>> feature... This is what was already answered.
>>>>>>
>>>>>> Cheers.
>>>>>>
>>>>>> 2008/9/15 jbrady3324 <[EMAIL PROTECTED]>
>>>>>>
>>>>>>>
>>>>>>> <Moved from different list>
>>>>>>>
>>>>>>> can I use ant to get around this issue?
>>>>>>>
>>>>>>> ------------------------------------------------------------
>>>>>>>
>>>>>>> You're telling Maven that you are offline. Deploying is an Online
>>>>>>> behavior, therefore they are mutually exclusive. Also, this is a user
>>>>>>> list question as it doesn't relate to the development of Maven itself.
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: jbrady3324 [mailto:[EMAIL PROTECTED]
>>>>>>> Sent: Monday, September 15, 2008 11:15 AM
>>>>>>> To: [EMAIL PROTECTED]
>>>>>>> Subject: Cannot run in offline mode -- problem with
>>>>>>> maven-deploy-plugin
>>>>>>> ?
>>>>>>>
>>>>>>>
>>>>>>> This is the error I get:
>>>>>>>
>>>>>>> [INFO] Installing C:\dev\eclipse\mops2.0\mops\pom.xml to C:\Documents
>>>>>>> and
>>>>>>>
>>>>>>> Settings\jxbrady\.m2\repository\com\putnam\mops\mops\2.0-SNAPSHOT\mops-2
>>>>>>> .0-SNAPSHOT.pom
>>>>>>> altDeploymentRepository = null
>>>>>>> [ERROR]
>>>>>>>
>>>>>>> The following mojo encountered an error while executing:
>>>>>>> Group-Id: org.apache.maven.plugins
>>>>>>> Artifact-Id: maven-deploy-plugin
>>>>>>> Version: 2.3
>>>>>>> Mojo: deploy
>>>>>>> brought in via: packaging: pom
>>>>>>>
>>>>>>> While building project:
>>>>>>> Group-Id: com.putnam.mops
>>>>>>> Artifact-Id: mops
>>>>>>> Version: 2.0-SNAPSHOT
>>>>>>> From file: C:\dev\eclipse\mops2.0\mops\pom.xml
>>>>>>> Reason: System is offline. Cannot deploy artifact:
>>>>>>> com.putnam.mops:mops:pom:2.0-SNAPSHOT.
>>>>>>>
>>>>>>> I am trying to set up an internal repository and I have followed this
>>>>>>> sites
>>>>>>> reccomendations:
>>>>>>>
>>>>>>> http://stubbisms.wordpress.com/2008/08/28/maven-is-to-ant-as-a-nail-gun-
>>>>>>> is-to-hammer-and-nails-you-need-to-move-on/<http://stubbisms.wordpress.com/2008/08/28/maven-is-to-ant-as-a-nail-gun-is-to-hammer-and-nails-you-need-to-move-on/>
>>>>>>>
>>>>>>> Any help would be appreciated
>>>>>>> Thanks
>>>>>>> John
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://www.nabble.com/Maven-won%27t-run-offline-%28maven-deploy-plugin%29.-Can-I-use-ant-for-deploy-phase--tp19499524p19499524.html
>>>>>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Baptiste <Batmat> MATHUS - http://batmat.net
>>>>>> Sauvez un arbre,
>>>>>> Mangez un castor !
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Baptiste <Batmat> MATHUS - http://batmat.net
>>>> Sauvez un arbre,
>>>> Mangez un castor !
>>>>
>>>
>>>
>>
>>
>> --
>> Baptiste <Batmat> MATHUS - http://batmat.net
>> Sauvez un arbre,
>> Mangez un castor !
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to