Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-21075

canonical form is required(project=arquillian-test) (NEON)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 4.4.0.Alpha1
    • None
    • arquillian
    • None

      This code:

      @RunWith(Arquillian.class)
      public class SimpleTestCase {
      
          @Deployment
          public static WebArchive test() {
              return ShrinkWrap.create(WebArchive.class)
                      .addAsLibraries(Maven.resolver().resolve("").withoutTransitivity().asFile());
          }
          
          @Test
          public void shouldX() {}
      }
      

      produce the following warning:

      null
      org.jboss.tools.arquillian.core
      Warning
      Wed Sep 23 23:16:17 CEST 2015
      canonical form is required(project=arquillian-test)
      

      On top of my head I have no idea what that means. The warning contains no stack trace so hard to tell where it comes from.

      With a little digging it's due to the resolve("") failing since the String input is not in the correct format.

      The warning is marked on the Method line, not on the line where the Resolver is called.

      Would it be possible to re position this somehow? At least get a stack trace or something in the warning?

            snjeza_jira Snjezana Peco (Inactive)
            aslak@redhat.com Aslak Knutsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: