Maybe it would help to get more of a conceptual description of your network
setup. What are you trying to accomplish with your mirror/proxy, and what
software do you have running out there doing the proxying?

-john

On 4/12/06, EJ Ciramella <[EMAIL PROTECTED]> wrote:
>
> Ok, I tried:
>
> <settings>
>     <mirrors>
>         <mirror>
>             <id>ibibio-mirror</id>
>             <name>Local proxy of http://repo1.maven.org/maven2/</name>
>             <url>http://build.corp.upromise.com/mavenrepository</url>
>             <mirrorOf>central</mirrorOf>
>         </mirror>
>     </mirrors>
> <activeProfiles>
>   <activeProfile>foxboro</activeProfile>
>   <activeProfile>model-base</activeProfile>
> </activeProfiles>
>   <profiles>
>     <profile>
>      <id>foxboro</id>
>       <activation>
>         <activeByDefault/>
>       </activation>
>       <properties>
>        <db.port>9999</db.port>
>        <root.dir>E:/work</root.dir>
>       </properties>
>     </profile>
>   </profiles>
> </settings>
>
>
> And got:
>
> E:\work\foxboro\model>mvn  process-resources
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building LtyModel
> [INFO]    task-segment: [process-resources]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
> for updates from local-central
> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
> for updates from central
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does
> not exist or no valid version could be found
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Wed Apr 12 16:42:18 EDT 2006
> [INFO] Final Memory: 1M/3M
> [INFO]
> ------------------------------------------------------------------------
>
>
> I deleted the .m2/repository directory then ran.  What's weird is, if I
> remove this mirror entry from settings.xml, I still get this error.  The
> error will only go away when I remove the repository directory again and let
> maven download everything from scratch (where it grabs a few pom files
> remotely before it starts pulling from my local server).
>
> Thanks for the help guys by the way - this IS helping!!!
>
> I've been making advances all week!
>
> -----Original Message-----
> From: John Casey [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 12, 2006 4:23 PM
> To: Maven Users List
> Subject: Re: use of proxies
>
> if you don't want it to look at repo1.maven.org, maybe what you're
> actually
> looking for is a <mirror/> setup, not a <proxy/>.
>
> The proxy works just like your web browser's proxy setting would...it asks
> a
> proxy server to make a HTTP request on behalf of your local machine. Which
> means it would still look for things on repo1.
>
> If you want to use a maven-proxy, that's a different animal...it's a proxy
> server implementation made for maven repositories. You have to configure
> the
> maven-proxy, then point a <mirror/> section at it...it looks like a mirror
> of the repo1 maven repository, if you set it up to do so, but it will
> retrieve and cache artifacts and POMs for you.
>
> HTH,
>
> -john
>
> On 4/12/06, EJ Ciramella <[EMAIL PROTECTED]> wrote:
> >
> > Try as I might, I just can't get this working.
> >
> > I have the following in my settings.xml:
> >
> > <settings>
> >
> >   <proxies>
> >    <proxy>
> >       <active>true</active>
> >       <protocol>http</protocol>
> >       <host>build.corp.upromise.com</host>
> >     </proxy>
> >   </proxies>
> >
> > <activeProfiles>
> >   <activeProfile>foxboro</activeProfile>
> >   <activeProfile>model-base</activeProfile>
> > </activeProfiles>
> >   <profiles>
> >     <profile>
> >      <id>foxboro</id>
> >       <activation>
> >         <activeByDefault/>
> >       </activation>
> >       <properties>
> >        <db.port>9999</db.port>
> >        <root.dir>E:/work</root.dir>
> >       </properties>
> >     </profile>
> >   </profiles>
> > </settings>
> >
> > Why is it still looking to repo1.maven.org for anything?
> >
> > E:\work\foxboro\model>mvn  process-resources
> > [INFO] Scanning for projects...
> > [INFO]
> >
> ----------------------------------------------------------------------------
> > [INFO] Building LtyModel
> > [INFO]    task-segment: [process-resources]
> > [INFO]
> >
> ----------------------------------------------------------------------------
> > [INFO] artifact org.apache.maven.plugins:maven-resources-plugin:checking
> > for updates from local-central
> > [INFO] artifact org.apache.maven.plugins:maven-resources-plugin:checking
> > for updates from central
> > Downloading:
> >
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.pom
> > 888b downloaded
> > Downloading:
> >
> http://build.corp.upromise.com/mavenrepository/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom
> > 6K downloaded
> > Downloading:
> >
> http://build.corp.upromise.com/mavenrepository/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.jar
> > 10K downloaded
> > [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking
> > for updates from local-central
> > [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking
> > for updates from central
> > Downloading:
> >
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.1/maven-compiler-plugin-2.0.1.pom
> > 1K downloaded
> > Downloading:
> >
> http://build.corp.upromise.com/mavenrepository/org/apache/maven/plugins/maven-plugins/1/maven-plugins-1.pom
> > 3K downloaded
> > Downloading:
> >
> http://build.corp.upromise.com/mavenrepository/org/apache/maven/maven-parent/1/maven-parent-1.pom
> > 6K downloaded
> > Downloading:
> >
> http://build.corp.upromise.com/mavenrepository/org/apache/apache/1/apache-1.pom
> > 3K downloaded
> > Downloading:
> >
> http://build.corp.upromise.com/mavenrepository/org/apache/maven/plugins/maven-compiler-plugin/2.0.1/maven-compiler-plugin-2.0.1.jar
> > 14K downloaded
> >
> > -----Original Message-----
> > From: EJ Ciramella [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, April 12, 2006 1:06 PM
> > To: Maven Users List
> > Subject: RE: use of proxies
> >
> > Nope, still bombs -
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, April 12, 2006 12:54 PM
> > To: Maven Users List
> > Subject: Re: use of proxies
> >
> > No space after the -P??
> >
> > mvn process-resources -Pfoxboro,model-base
> >
> > -j
> >
> > ---------------------------------------------------
> > Justin Fung
> > [EMAIL PROTECTED]
> > Sr. Analyst, Business Systems
> > IT Banking Systems, e-Business
> > HSBC Bank Canada
> > http://www.hsbc.ca
> > p: (604) 643-6605
> > f: (604) 643-6727
> >
> >
> >
> >
> >
> >
> >
> >
> > "EJ Ciramella" <[EMAIL PROTECTED]>
> > 04/12/2006 08:57 AM
> > Please respond to "Maven Users List"
> >
> >
> >         To:     "Maven Users List" <[email protected]>
> >         cc:
> >         Subject:        use of proxies
> >
> >       Our Ref:
> >             Your Ref:
> >
> >
> > So I've added the following to my settings.xml (to test the proxy
> > settings):
> >
> > <settings>
> >   <proxies>
> >    <proxy>
> >       <active>true</active>
> >       <protocol>http</protocol>
> >       <host>build.corp.upromise.com</host>
> >       <port>80</port>
> >       <nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts>
> >     </proxy>
> >   </proxies>
> > <activeProfiles>
> >   <activeProfile>foxboro</activeProfile>
> > </activeProfiles>
> >   <profiles>
> >     <profile>
> >      <id>foxboro</id>
> >       <activation>
> >         <activeByDefault/>
> >       </activation>
> >       <properties>
> >        <db.port>9999</db.port>
> >        <root.dir>E:/work</root.dir>
> >       </properties>
> >     </profile>
> >   </profiles>
> > </settings>
> >
> > Then I deleted the .m2/repository directory.
> >
> > Now I see:
> >
> > E:\work\foxboro\model>mvn process-resources -P foxboro,model-base
> > [INFO] Scanning for projects...
> > [INFO]
> > ------------------------------------------------------------------------
> > ----
> > [INFO] Building LtyModel
> > [INFO]    task-segment: [process-resources]
> > [INFO]
> > ------------------------------------------------------------------------
> > ----
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does
> > not exist or no valid version could be found
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: < 1 second
> > [INFO] Finished at: Wed Apr 12 11:54:20 EDT 2006
> > [INFO] Final Memory: 1M/2M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > Is there any more information I can get?  This works just fine if I
> > remove that proxy setting...
> >
> >
> >
> > ***************************************************************
> > This email may contain confidential information, and is intended only
> for
> > the named recipient and may be privileged.  Distribution or copying of
> > this email by anyone other than the named recipient is prohibited. If
> you
> > are not the named recipient, please notify us immediately and
> permanently
> > destroy this email and all copies of it.  Internet email is not private,
> > secure, or reliable.  No member of the HSBC Group is liable for any
> errors
> > or omissions in the content or transmission of this email. Any opinions
> > contained in this email are solely those of the author and, unless
> clearly
> > indicated otherwise in writing, are not endorsed by any member of the
> HSBC
> > Group.
> > ***************************************************************
> > Ce courriel peut renfermer des renseignements confidentiels et
> privilégiés
> > et s'adresse au destinataire désigné seulement.   La distribution ou la
> > copie de ce courriel par toute personne autre que le destinataire
> désigné
> > est interdite.  Si vous n'êtes pas le destinataire désigné, veuillez
> nous
> > en aviser immédiatement et détruire de façon permanente ce courriel
> ainsi
> > que toute copie de celui-ci. La transmission de courriel par Internet ne
> > constitue pas un mode de transmission confidentiel, sécuritaire ou
> fiable.
> > Aucun membre du Groupe HSBC ne sera responsable des erreurs ou des
> > omissions relatives au contenu ou à la transmission de ce courriel.
> > L'auteur de ce courriel est seul responsable des opinions émises dans ce
> > courriel, lesquelles, à moins  d'un avis contraire fourni par écrit, ne
> > sont pas endossées par aucun membre du Groupe HSBC.
> > ***************************************************************
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to