0 Replies Latest reply on Mar 15, 2013 10:05 AM by squidy

    Include package in src/main/java but exclude package in src/test/java

    squidy

      Hello

       

      I have a normal maven project in which I run some Arquillian Tests.

       

      src/main/java/

           com.example.SampleClass

      src/test/java/

           com.example.SampleClassTestWithInjectAnnotation

           com.example.SampleClassTestWithInjectAnnotation2

       

      I created an archive with

       

      ShrinkWrap.create(JavaArchive.class).addPackage(SampleClass.class.getPackage())

       

      The problem is now that all the classes in the package com.example in the archive, all under src/test/java too.

       

      How can I exclude all the classes in the src/test/java directory?

       

      Regards