[jboss-jira] [JBoss JIRA] (DROOLS-1728) There is always HTTP 404 Error Where I request the maven2 in workbench

HuiYu Zhou (JIRA) issues at jboss.org
Fri Sep 15 01:22:00 EDT 2017


    [ https://issues.jboss.org/browse/DROOLS-1728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13464373#comment-13464373 ] 

HuiYu Zhou edited comment on DROOLS-1728 at 9/15/17 1:21 AM:
-------------------------------------------------------------

The KieScanner doesn't request the maven2 repo of WB by HTTP protocol, I also use wireshark to check the http request, but nothing appear. 
I try to open the debug log the check, I just found it request the center repo of apache.

BTW: I deployed the latest version is 2.0.0, my local repo is 1.0.4





was (Author: zhouhuiyu):
The KieScanner doesn't request the maven2 repo of WB by HTTP protocol, I also use wireshark to check the http request, but nothing appear. 
I try to open the debug log the check, I just found it request the center repo of apache.

BTW: I deployed the latest version is 2.0.0, my local repo is 1.0.4

The following is debug log.

2017-09-15 09:37:54 DEBUG [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] KieModule Lookup. ReleaseId com.myteam:Project1:LATEST was not in cache, checking classpath
2017-09-15 09:37:54 DEBUG [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] KieModule Lookup. ReleaseId com.myteam:Project1:LATEST was not in cache, checking maven repository
2017-09-15 09:37:54 DEBUG [org.appformer.maven.integration.embedder.MavenEmbedderUtils] Not in OSGi: using plexus based maven parser
2017-09-15 09:37:55 DEBUG [org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /Users/zhouhuiyu/.m2/repository
2017-09-15 09:37:55 DEBUG [org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /Users/zhouhuiyu/.m2/repository
2017-09-15 09:37:55 DEBUG [org.eclipse.aether.internal.impl.DefaultRemoteRepositoryManager] Using mirror guvnor-m2-repo (http://192.168.56.101:8080/kie-drools-wb/maven2/) for guvnor-m2-repo (http://192.168.56.101:8080/kie-drools-wb/maven2/).
2017-09-15 09:37:55 DEBUG [org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /Users/zhouhuiyu/.m2/repository
2017-09-15 09:37:55 DEBUG [org.eclipse.aether.internal.impl.DefaultUpdateCheckManager] Skipped remote request for com.myteam:Project1/maven-metadata.xml, locally cached metadata up-to-date.
2017-09-15 09:37:56 DEBUG [org.eclipse.aether.internal.impl.DefaultTransporterProvider] Using transporter HttpTransporter with priority 5.0 for https://repo.maven.apache.org/maven2
2017-09-15 09:37:56 DEBUG [org.eclipse.aether.internal.impl.DefaultTransporterProvider] Using transporter HttpTransporter with priority 5.0 for http://repo1.maven.org/maven2/
2017-09-15 09:37:56 DEBUG [org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
2017-09-15 09:37:56 DEBUG [org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider] Using connector BasicRepositoryConnector with priority 0.0 for http://repo1.maven.org/maven2/
2017-09-15 09:37:56 DEBUG [org.apache.http.impl.conn.PoolingClientConnectionManager] Connection request: [route: {s}->https://repo.maven.apache.org][total kept alive: 0; route allocated: 0 of 50; total allocated: 0 of 100]
2017-09-15 09:37:56 DEBUG [org.apache.http.impl.conn.PoolingClientConnectionManager] Connection request: [route: {}->http://repo1.maven.org][total kept alive: 0; route allocated: 0 of 50; total allocated: 0 of 100]
2017-09-15 09:37:56 DEBUG [org.apache.http.impl.conn.PoolingClientConnectionManager] Connection leased: [id: 1][route: {}->http://repo1.maven.org][total kept alive: 0; route allocated: 1 of 50; total allocated: 1 of 100]
2017-09-15 09:37:56 DEBUG [org.apache.http.impl.conn.PoolingClientConnectionManager] Connection leased: [id: 0][route: {s}->https://repo.maven.apache.org][total kept alive: 0; route allocated: 1 of 50; total allocated: 1 of 100]
2017-09-15 09:37:56 DEBUG [org.apache.http.impl.conn.DefaultClientConnectionOperator] Connecting to repo1.maven.org:80
2017-09-15 09:37:56 DEBUG [org.apache.http.client.protocol.RequestAddCookies] CookieSpec selected: best-match
2017-09-15 09:37:56 DEBUG [org.apache.http.client.protocol.RequestTargetAuthentication] Target auth state: UNCHALLENGED
2017-09-15 09:37:56 DEBUG [org.apache.http.client.protocol.RequestProxyAuthentication] Proxy auth state: UNCHALLENGED
2017-09-15 09:37:56 DEBUG [org.apache.http.impl.client.DefaultHttpClient] Attempt 1 to execute request
2017-09-15 09:37:56 DEBUG [org.apache.http.impl.conn.DefaultClientConnection] Sending request: GET /maven2/com/myteam/Project1/maven-metadata.xml HTTP/1.1
2017-09-15 09:37:56 DEBUG [org.apache.http.wire] >> "GET /maven2/com/myteam/Project1/maven-metadata.xml HTTP/1.1[\r][\n]"
.....
2017-09-15 09:37:57 DEBUG [org.eclipse.aether.internal.impl.DefaultDependencyCollector] Dependency collection stats: {ConflictMarker.analyzeTime=1, ConflictMarker.markTime=0, ConflictMarker.nodeCount=1, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=1, ConflictIdSorter.conflictIdCount=1, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=3, ConflictResolver.conflictItemCount=1, DefaultDependencyCollector.collectTime=7, DefaultDependencyCollector.transformTime=6}
2017-09-15 09:37:57 DEBUG [org.appformer.maven.integration.embedder.MavenEmbedderUtils] Not in OSGi: using plexus based maven parser
2017-09-15 09:37:57 DEBUG [org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /Users/zhouhuiyu/.m2/repository
2017-09-15 09:37:57 DEBUG [org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /Users/zhouhuiyu/.m2/repository
2017-09-15 09:37:57 DEBUG [org.eclipse.aether.internal.impl.DefaultRemoteRepositoryManager] Using mirror guvnor-m2-repo (http://192.168.56.101:8080/kie-drools-wb/maven2/) for guvnor-m2-repo (http://192.168.56.101:8080/kie-drools-wb/maven2/).
2017-09-15 09:37:57 DEBUG [org.eclipse.aether.internal.impl.DefaultDependencyCollector] Dependency collection stats: {ConflictMarker.analyzeTime=0, ConflictMarker.markTime=0, ConflictMarker.nodeCount=1, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=0, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=0, ConflictResolver.conflictItemCount=0, DefaultDependencyCollector.collectTime=0, DefaultDependencyCollector.transformTime=0}
2017-09-15 09:37:58 INFO [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] KieModule was added: ZipKieModule[releaseId=com.myteam:Project1:1.0.4,file=/Users/zhouhuiyu/.m2/repository/com/myteam/Project1/1.0.4/Project1-1.0.4.jar]
2017-09-15 09:37:58 DEBUG [org.appformer.maven.integration.embedder.MavenEmbedderUtils] Not in OSGi: using plexus based maven parser



> There is always HTTP 404 Error Where I request the maven2 in workbench
> ----------------------------------------------------------------------
>
>                 Key: DROOLS-1728
>                 URL: https://issues.jboss.org/browse/DROOLS-1728
>             Project: Drools
>          Issue Type: Bug
>          Components: tools
>    Affects Versions: 7.3.0.Final
>         Environment: CentOS 6.8 
> Virtual Box 5.x
> Tomcat 8.5.20
> kie-drools-wb-7.3.0.Final-tomcat8.war
> MySQL 5.6.x
>            Reporter: HuiYu Zhou
>            Assignee: Michael Anstis
>            Priority: Blocker
>              Labels: reported-by-qe
>
> I want to try KieScanner for the remote maven repo. So I setup the workbench and create "Project1" as a sample, I also build and deploy it successfully. I can see the jar named "Project1-1.0.0.jar" with GAV "com.myteam:Project1:1.0.0"  exist in “Admin” -> "Artifacts".
> So I add the repository into my development pom.xml and the jar as dependency, but the jar can't been downloaded by Maven Project.
> I also try to open the url: http://192.168.56.101:8080/kie-drools-wb/maven2, but there is always HTTP Status 404 – Not Found  happened with description " The origin server did not find a current representation for the target resource or is not willing to disclose that one exists." 
> The most funny thing is I can open the url: http://192.168.56.101:8080/kie-drools-wb/maven2/com/myteam/Project1/maven-metadata.xml, the content is shown in my webpage as following:
> This XML file does not appear to have any style information associated with it. The document tree is shown below.
> <metadata>
> <groupId>com.myteam</groupId>
> <artifactId>Project1</artifactId>
> <versioning>
> <release>1.0.0</release>
> <versions>
> <version>1.0.0</version>
> </versions>
> <lastUpdated>20170913142741</lastUpdated>
> </versioning>
> </metadata>
> As remote maven repo of workbench, why not like my private nexus maven that I can open the link even if it 's a folder?
>  
> my pom.xml as following:
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>drools</groupId>
>     <artifactId>drools</artifactId>
>     <version>1.0-SNAPSHOT</version>
>     <properties>
>         <drools.version>7.3.0.Final</drools.version>
>     </properties>
>     <repositories>
>         <repository>
>             <id>guvnor-m2-repo</id>
>             <name>Guvnor M2 Repo</name>
>             <url>http://192.168.56.101:8080/kie-drools-wb/maven2/</url>
>         </repository>
>     </repositories>
>     <dependencies>
>         <dependency>
>             <groupId>com.myteam</groupId>
>             <artifactId>Project1</artifactId>
>             <version>1.0.0</version>
>         </dependency>
>         <!--drools dependencies -->
>     </dependencies>
> </project>



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jboss-jira mailing list