[ 
http://jira.codehaus.org/browse/MNG-3373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_121062
 ] 

Markus KARG commented on MNG-3373:
----------------------------------

Then please explain why Maven is trying to download 
net.sourceforge.rafc:rafc:jar:1.1.1 from either central or the glassfish repo. 
I ask that question because actually what I currently try to do is to build 
exactly that RAFC jar. So Maven wants to download what it just is building? 
Weird.

Here is the complete pom, maybe there is fault in it?

<project>
        <modelVersion>4.0.0</modelVersion>
        <groupId>net.sourceforge.rafc</groupId>
        <artifactId>rafc</artifactId>
        <version>1.1.1</version>
        <name>RAFC</name>
        <url>http://rafc.sourceforge.net</url>
        <description>RA Foundation Classes is a framework that helps in 
implementing JCA 1.5 compliant resource adapters.</description>
        <licenses>
                <license>
                        <name>GNU General Public License Version 2</name>
                        
<url>http://www.gnu.org/licenses/old-licenses/gpl-2.0.html</url>
                        <distribution>repo</distribution>
                </license>
        </licenses>
        <scm>
                
<connection>scm:svn:https://rafc.svn.sourceforge.net/svnroot/rafc</connection>
                <url>http://rafc.svn.sourceforge.net/viewvc/rafc</url>
        </scm>

        <repositories>
                <repository>
                        <id>glassfish-repository.dev.java.net</id>
                        <name>Java.net Repository for Glassfish</name>
                        <url>http://download.java.net/maven/glassfish</url>
                </repository>
        </repositories>

        <dependencies>
                <dependency>
                        <groupId>javax.resource</groupId>
                        <artifactId>connector-api</artifactId>
                        <version>1.5</version>
                        <scope>provided</scope>
                </dependency>
        </dependencies>
</project>

So what to do now?

I did MVN CLEAN INSTALL and get this result:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building RAFC
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] snapshot org.glassfish.api:api:10.0-SNAPSHOT: checking for updates from g
lassfish-repository.dev.java.net
[WARNING] repository metadata for: 'snapshot org.glassfish.api:api:10.0-SNAPSHOT
' could not be retrieved from repository: glassfish-repository.dev.java.net due
to an error: Error transferring file
[INFO] Repository 'glassfish-repository.dev.java.net' will be blacklisted
[INFO] snapshot org.glassfish:glassfish-parent:10.0-SNAPSHOT: checking for updat
es from glassfish-repository
[WARNING] repository metadata for: 'snapshot org.glassfish:glassfish-parent:10.0
-SNAPSHOT' could not be retrieved from repository: glassfish-repository due to a
n error: Error transferring file
[INFO] Repository 'glassfish-repository' will be blacklisted
[INFO] [compiler:compile]
[INFO] Compiling 9 source files to C:\Dokumente und Einstellungen\Markus\workspa
ce\RAFC\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: C:\Dokumente und Einstellungen\Markus\workspace\RAFC\target
\rafc-1.1.1.jar
[INFO] [install:install]
[INFO] Installing C:\Dokumente und Einstellungen\Markus\workspace\RAFC\target\ra
fc-1.1.1.jar to C:\Dokumente und Einstellungen\Markus\.m2\repository\net\sourcef
orge\rafc\rafc\1.1.1\rafc-1.1.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Wed Jan 23 19:55:29 CET 2008
[INFO] Final Memory: 6M/12M
[INFO] ------------------------------------------------------------------------

Then one second late I did the same again and get THAT result:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building RAFC
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory C:\Dokumente und Einstellungen\Markus\workspace\RAFC\t
arget
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: javax.resource:connector-api:jar:1.5

Reason: Cannot find parent: org.glassfish.api:api for project: javax.resource:co
nnector-api:jar:1.5 for project javax.resource:connector-api:jar:1.5


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Jan 23 19:55:52 CET 2008
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------

If I NOW apply the -e switch I will get the exception I already posted in the 
original bug report.

Any ideas?

> Maven 2 says host in unavailable while in browser I can download from that 
> repository
> -------------------------------------------------------------------------------------
>
>                 Key: MNG-3373
>                 URL: http://jira.codehaus.org/browse/MNG-3373
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.8
>            Reporter: Markus KARG
>            Priority: Blocker
>
> I am using the offical Glassfish repository on java.net.
> Maven tells me that it cannot resolve one of the references pointing into 
> that repository. The stack trace tells me that the host is not available (see 
> below).
> In fact, when I go to that same URL in the browser, it downloads the artifact 
> without any problem!
> Also that worked for weeks and now is broken, but my POM didn't change!
> So I assume a bug in WAGON.
> Here is the POM excerpt, below the POM is the stack trace.
>       <repositories>
>               <repository>
>                       <id>glassfish-repository.dev.java.net</id>
>                       <name>Java.net Repository for Glassfish</name>
>                       <url>http://download.java.net/maven/glassfish</url>
>               </repository>
>       </repositories>
>       <dependencies>
>               <dependency>
>                       <groupId>javax.resource</groupId>
>                       <artifactId>connector-api</artifactId>
>                       <version>1.5</version>
>                       <scope>provided</scope>
>               </dependency>
>       </dependencies>
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get 
> dependency
>  information: Unable to read the metadata file for artifact 
> 'javax.resource:conn
> ector-api:jar': Cannot find parent: org.glassfish.api:api for project: 
> javax.res
> ource:connector-api:jar:1.5 for project javax.resource:connector-api:jar:1.5
>   javax.resource:connector-api:jar:1.5
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   glassfish-repository.dev.java.net (http://download.java.net/maven/glassfish)
> Path to dependency:
>         1) net.sourceforge.rafc:rafc:jar:1.1.1
> ...
> Caused by: java.net.UnknownHostException: download.java.net
>         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
>         at java.net.Socket.connect(Socket.java:519)
>         at java.net.Socket.connect(Socket.java:469)
>         at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>         at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>         at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>         at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>         at 
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
> onnection.java:788)
>         at 
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
> ction.java:729)
>         at 
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
> .java:654)
>         at 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
> nection.java:977)
>         at 
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
> ata(LightweightHttpWagon.java:83)
>         ... 33 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to