You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Manfred Moser <ma...@mosabuam.com> on 2012/05/25 19:13:56 UTC

Re: How to upload this pdf plugin on to my internal company repository?

On Fri, May 25, 2012 10:09 am, hujirong wrote:
> Yes, we are using our own internal Nexus repository, not Maven central. I
> have the Nexus admin right and I did uploaded the pdf plugin already.
>
> Jirong

You should NOT be uploading artifacts that are available in external
repositories. Just proxy these repositories and add the proxy to your
public group.

manfred

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


RE: How to upload this pdf plugin on to my internal company repository?

Posted by hujirong <ji...@gmail.com>.
Yes, I have that.

I believe I fixed this issue by "mvn pdf:pdf -U".

Thanks
Jirong

--
View this message in context: http://maven.40175.n5.nabble.com/How-to-upload-this-pdf-plugin-on-to-my-internal-company-repository-tp5709832p5710325.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


RE: How to upload this pdf plugin on to my internal company repository?

Posted by Matt Walsh <mw...@chartwelltechnology.com>.
Have you defined your pluginRepository in your maven settings.xml file?
Something like:

<profiles>
                 <profile>
                        <id>nexus</id>
                        <!--Enable snapshots for the built in central
repo to direct -->
                        <!--all requests to nexus via the mirror -->
                        <repositories>
                                <repository>
                                        <id>central</id>
                                        <url>http://central</url>
 
<releases><enabled>true</enabled></releases>
 
<snapshots><enabled>true</enabled></snapshots>
                                </repository>
                        </repositories>
                        <pluginRepositories>
                                <pluginRepository>
                                        <id>central</id>
                                        <url>http://central</url>
 
<releases><enabled>true</enabled></releases>
 
<snapshots><enabled>true</enabled></snapshots>
                                </pluginRepository>
                        </pluginRepositories>
                </profile>
 </profiles>


> -----Original Message-----
> From: hujirong [mailto:jirong.hu@gmail.com]
> Sent: Tuesday, May 29, 2012 1:12 PM
> To: users@maven.apache.org
> Subject: Re: How to upload this pdf plugin on to my internal company
> repository?
> 
> Unfortunately I can't change what max-public has. I already explained
> why,
> because we have a internal central repo and everything is hosted there
> instead of using or proxying Maven central. This is not what I can
> change.
> 
> So my question remains the same: why I am getting this error and how
to
> fix
> this error? What I need to do to use pdf:pdf?
> 
> [ERROR] Error resolving version for plugin
> 'org.apache.maven.plugins:maven-pdf-plugin' from the repositories
> [local
> (C:\Users\c61271c5\.m2\repository), nexus
> (http://axddarep01.npr.bngf.local:8080/nexus/content/groups/mdm-
> public/)]:
> Plugin
> not found in any plugin repository -> [Help 1]
> 
> 
> In the settings.xml, I found this:
> 
>  <pluginGroups>
>     <pluginGroup>com.nbfg.fw.maven.plugins</pluginGroup>
>   </pluginGroups>
> 
> 
> 
> 
> 
> --
> View this message in context: http://maven.40175.n5.nabble.com/How-to-
> upload-this-pdf-plugin-on-to-my-internal-company-repository-
> tp5709832p5710314.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


______________________________________________________________________
This message, including any attachments, is confidential and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy.

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


Re: How to upload this pdf plugin on to my internal company repository?

Posted by hujirong <ji...@gmail.com>.
Unfortunately I can't change what max-public has. I already explained why,
because we have a internal central repo and everything is hosted there
instead of using or proxying Maven central. This is not what I can change.

So my question remains the same: why I am getting this error and how to fix
this error? What I need to do to use pdf:pdf?

[ERROR] Error resolving version for plugin
'org.apache.maven.plugins:maven-pdf-plugin' from the repositories [local
(C:\Users\c61271c5\.m2\repository), nexus
(http://axddarep01.npr.bngf.local:8080/nexus/content/groups/mdm-public/)]:
Plugin
not found in any plugin repository -> [Help 1]


In the settings.xml, I found this:

 <pluginGroups>
    <pluginGroup>com.nbfg.fw.maven.plugins</pluginGroup>
  </pluginGroups>





--
View this message in context: http://maven.40175.n5.nabble.com/How-to-upload-this-pdf-plugin-on-to-my-internal-company-repository-tp5709832p5710314.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: How to upload this pdf plugin on to my internal company repository?

Posted by Manfred Moser <ma...@mosabuam.com>.
On Fri, May 25, 2012 12:12 pm, hujirong wrote:
> First, our internal network is very slow, so everything we need is stored
> in
> our own internal Nexus. My question is what's the issue with my upload?
>
> Second, follow your suggestion, how can I setup a proxy tells Maven to
> retrieve everything from Maven central which is not in our internal
> repository? This is my current setting:
>
>
>  <mirrors>
>     <mirror>
>       <id>nexus</id>
>       <mirrorOf>*</mirrorOf>
>
>
> <url>http://localhost:8080/nexus-2.0.4-1/content/groups/max-public/</url>
>     </mirror>
>   </mirrors>
>

Check out

http://www.sonatype.com/books/nexus-book/reference/config.html

and if you want to use the max-public group make sure that central is part
of that group.

manfred
http://simpligility.com

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


Re: How to upload this pdf plugin on to my internal company repository?

Posted by Anders Hammar <an...@hammar.net>.
You should have your repository manager (be it Nexus or some other
brand) proxy the central repo. I would guess that a default setup
includes this already. I know that the Nexus ones does this. Then you
configure your settings.xml according to the one specified in the free
Nexus book:
http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-group.html

/Anders

On Fri, May 25, 2012 at 9:12 PM, hujirong <ji...@gmail.com> wrote:
> First, our internal network is very slow, so everything we need is stored in
> our own internal Nexus. My question is what's the issue with my upload?
>
> Second, follow your suggestion, how can I setup a proxy tells Maven to
> retrieve everything from Maven central which is not in our internal
> repository? This is my current setting:
>
>
>  <mirrors>
>    <mirror>
>      <id>nexus</id>
>      <mirrorOf>*</mirrorOf>
>
>
> <url>http://localhost:8080/nexus-2.0.4-1/content/groups/max-public/</url>
>    </mirror>
>  </mirrors>
>
> Thanks
> Jirong
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/How-to-upload-this-pdf-plugin-on-to-my-internal-company-repository-tp5709832p5709856.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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: How to upload this pdf plugin on to my internal company repository?

Posted by hujirong <ji...@gmail.com>.
First, our internal network is very slow, so everything we need is stored in
our own internal Nexus. My question is what's the issue with my upload?

Second, follow your suggestion, how can I setup a proxy tells Maven to
retrieve everything from Maven central which is not in our internal
repository? This is my current setting:


 <mirrors>
    <mirror>
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
      
     
<url>http://localhost:8080/nexus-2.0.4-1/content/groups/max-public/</url>
    </mirror>
  </mirrors>

Thanks
Jirong

--
View this message in context: http://maven.40175.n5.nabble.com/How-to-upload-this-pdf-plugin-on-to-my-internal-company-repository-tp5709832p5709856.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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