4 Replies Latest reply on Jun 27, 2013 3:52 AM by Bartosz Majsak

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

    squidy Newbie

      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