You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by sekaijin <je...@aphp.fr> on 2016/05/13 16:31:45 UTC

mvn site [ERROR] Unable to determine if resource

I'm runnig mvn 3.3.9
i'm using a nexus repository as a miror (not internet acces)

I've somes erros on mvn site command


I've added each repositories in mirror settings 
but mvn continue to try to connect on internet

A+JYT



--
View this message in context: http://maven.40175.n5.nabble.com/mvn-site-ERROR-Unable-to-determine-if-resource-tp5868018.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: mvn site [ERROR] Unable to determine if resource

Posted by Bernd Eckenfels <ec...@zusammenkunft.net>.
Hello,

the download URLs must be different if you use a mirror. If nothing
changes your settings file is most likely not honored.

Try specifying it explicitely with -s option and turn on debug
logging, it will print what settings are loaded and in effect.

1492 [DEBUG] Reading global settings from C:\devenv\apache-maven-3.2.5\conf\settings.xml
1492 [DEBUG] Reading user settings from ...\settings.xml
1527 [DEBUG] Using local repository at ...\repository
1556 [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for ...repository
1567 [INFO] Scanning for projects...
2032 [DEBUG] Using mirror xmirror (.../repository/seeburger/) for central (https://repo.maven.apache.org/maven2).

You might also want to share a debug output with us if you cant make
progress. 

I would start with a small simple maven project and then move to your
troubled pom.

Gruss
Bernd


 Am Fri, 20 May
2016 06:19:52 -0700 (MST) schrieb sekaijin <je...@aphp.fr>:

> I tried somes settings.xml
> without a declaration of mirrors
> with a statement for all mirrors (*)
> with an individual statement by mirror
> 
> I always get the same result. exactly the same logs.
> 
> A+JYT
> 
> 
> 
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/mvn-site-ERROR-Unable-to-determine-if-resource-tp5868018p5868855.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: mvn site [ERROR] Unable to determine if resource

Posted by sekaijin <je...@aphp.fr>.
I tried somes settings.xml
without a declaration of mirrors
with a statement for all mirrors (*)
with an individual statement by mirror

I always get the same result. exactly the same logs.

A+JYT



--
View this message in context: http://maven.40175.n5.nabble.com/mvn-site-ERROR-Unable-to-determine-if-resource-tp5868018p5868855.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: mvn site [ERROR] Unable to determine if resource

Posted by Adam Mitchell <Ad...@playtech.com>.
Hi,
Do you have a mirror set up for your nexus so that maven knows to only use your configured repository?

i.e. in your settings.xml

    <mirrors>
        <mirror>
            <id>my-nexus-server</id>
            <name>internal nexus</name>
            <url>http://my-nexus-server/mirror-repository</url>
            <mirrorOf>*</mirrorOf>
        </mirror>
    </mirrors>

Central is inherited from the maven super-pom, declaring your repo as mirroring * makes it use it instead of any other configured <repository>

Adam




| Adam Mitchell | Java Software Architect | Tel: +44 (0)207 633 3570 | Mobile:  | Skype:  | www.playtech.com

This communication contains information which is privileged and confidential and is exclusively intended only for the individual or entity named above (recipient(s)). If you are not the intended recipient(s) or the person responsible for delivering it to the intended recipient(s), you are hereby notified that any review, disclosure, dissemination, distribution or reproduction of this communication message in any way or act is prohibited. If you receive this communication by mistake please notify the sender immediately and then destroy any copies of it. Please note that the sender monitors e-mails sent or received. Thank you.
-----Original Message-----
From: sekaijin [mailto:jean-yves.terrien@aphp.fr]
Sent: 17 May 2016 08:28
To: users@maven.apache.org
Subject: Re: mvn site [ERROR] Unable to determine if resource

Hi,


I use nexus. it contains all my artifacts and also the mirrors of the Internet repostories.
my settings.xml reference only my nexus server.

for all maven commands, all except , maven use my Nexus server to download the jar sources.jar tar.gz zip etc.

but when I execute  maven tries to upload my artifacts from repository.apache.org, mvnrepository.com, maven.java.net, etc.

it would not be a problem if it produced the site. but it puts enormously time trying all internet repositories while I have no internet access. and ultimately failed in creating the site after more than an hour.



A+JYT



--
View this message in context: http://maven.40175.n5.nabble.com/mvn-site-ERROR-Unable-to-determine-if-resource-tp5868018p5868525.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: mvn site [ERROR] Unable to determine if resource

Posted by sekaijin <je...@aphp.fr>.
Hi,


I use nexus. it contains all my artifacts and also the mirrors of the
Internet repostories.
my settings.xml reference only my nexus server.

for all maven commands, all except , maven use my Nexus server to download
the jar sources.jar tar.gz zip etc.

but when I execute  maven tries to upload my artifacts from
repository.apache.org, mvnrepository.com, maven.java.net, etc.

it would not be a problem if it produced the site. but it puts enormously
time trying all internet repositories while I have no internet access. and
ultimately failed in creating the site after more than an hour.



A+JYT



--
View this message in context: http://maven.40175.n5.nabble.com/mvn-site-ERROR-Unable-to-determine-if-resource-tp5868018p5868525.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: mvn site [ERROR] Unable to determine if resource

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi,

can you show exactly what you have tried and show the error messages you 
get? Best would be an example project which causes the problems...

And how your settings.xml looks like?

Kind regards
Karl Heinz Marbaise

On 5/13/16 6:31 PM, sekaijin wrote:
> I'm runnig mvn 3.3.9
> i'm using a nexus repository as a miror (not internet acces)
>
> I've somes erros on mvn site command
>
>
> I've added each repositories in mirror settings
> but mvn continue to try to connect on internet
>
> A+JYT
>
>

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