Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1728

There is always HTTP 404 Error Where I request the maven2 in workbench

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Blocker
    • None
    • 7.3.0.Final
    • tools
    • 8
    • Hide

      1. deploy the kie-drools-wb-7.3.0.Final-tomcat8.war with tomcat8
      2. modify the tomcat security setting and login workbench
      3. create a project and build/deploy it
      4.add the maven2 repo of workbench as remote maven repo in my maven project.
      5.I can't download the jar file in maven2 repo of workbench.

      Show
      1. deploy the kie-drools-wb-7.3.0.Final-tomcat8.war with tomcat8 2. modify the tomcat security setting and login workbench 3. create a project and build/deploy it 4.add the maven2 repo of workbench as remote maven repo in my maven project. 5.I can't download the jar file in maven2 repo of workbench.
    • Hide

      There is no workaround.

      Show
      There is no workaround.
    • High
    • NEW
    • NEW

    Description

      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>

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            zhouhuiyu HuiYu Zhou (Inactive)
            HuiYu Zhou HuiYu Zhou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: