title: quarkus-arc Unsatisfied dependency problem
body: <p>This is my resource  class: with repository injection.</p>
  <pre><code>@Path(&quot;/posts&quot;)
  @Produces(MediaType.APPLICATION_JSON)
  @Consumes(MediaType.APPLICATION_JSON)
  public class PostsResource {
  
  
      @Context
      UriInfo uriInfo;
  
      @Inject
      PostRepository posts;
  
      @GET
      public Response getAllPosts(
          @QueryParam(&quot;q&quot;) String q,
          @QueryParam(&quot;limit&quot;) @DefaultValue(&quot;10&quot;) int limit,
          @QueryParam(&quot;offset&quot;) @DefaultValue(&quot;0&quot;) int offset
      ) {
          return Response.ok(this.posts.findByKeyword(q, limit, offset)).build();
      }
  
      @GET
      @Path(&quot;/count&quot;)
      public Response getAllPosts(@QueryParam(&quot;q&quot;) String q) {
          return Response.ok(
              Count.builder().count(this.posts.countByKeyword(q))
          ).build();
      }
  
      @POST
      public Response savePost(PostForm post) {
          Post entity = Post.builder()
              .title(post.getTitle())
              .content(post.getContent())
              .build();
          Post saved = this.posts.save(entity);
          return Response.created(uriInfo.getBaseUriBuilder().path(&quot;/posts/{slug}&quot;).build(saved.getSlug())).build();
      }
  
  }
  </code></pre>
  <p>and repository class</p>
  <pre><code>public class PostRepository extends AbstractRepository&lt;Post, Long&gt; {
  
      @Inject
      private EntityManager em;
  
      @Transactional
      public List&lt;Post&gt; findByKeyword(String keyword, long limit, long offset) {
          return this.stream()
                  .filter(p -&gt; Optional.ofNullable(keyword)
                          .map(k -&gt; p.getTitle().contains(k) || p.getContent().contains(k)).orElse(true))
          
                  .limit(limit).skip(offset).collect(toList());
      }
  
      @Transactional
      public long countByKeyword(String keyword) {
          return this.stream().filter(p -&gt; Optional.ofNullable(keyword)
                  .map(k -&gt; p.getTitle().contains(k) || p.getContent().contains(k)).orElse(true)).count();
      }
  
      @Transactional
      public List&lt;Post&gt; findByCreatedBy(String username) {
          Objects.requireNonNull(username, &quot;username can not be null&quot;);
  
          return this.stream().filter(p -&gt; username.equals(p.getCreatedBy().getUsername()))
                  .sorted(Post.DEFAULT_COMPARATOR).collect(toList());
      }
  
      @Transactional
      public Optional&lt;Post&gt; findBySlug(String slug) {
          Objects.requireNonNull(slug, &quot;Slug can not be null&quot;);
          return this.stream().filter(p -&gt; p.getSlug().equals(slug)).findFirst();
      }
  
      public List&lt;Post&gt; findAll() {
          return em.createNamedQuery(&quot;Post.findAll&quot;, Post.class).getResultList();
  
      }
  
      public Post findPostById(Long id) {
  
          Post post = em.find(Post.class, id);
  
          if (post == null) {
              throw new WebApplicationException(&quot;Post with id of &quot; + id + &quot; does not exist.&quot;, 404);
          }
          return post;
      }
  
      @Transactional
      public void updatePost(Post post) {
  
          Post postToUpdate = findPostById(post.getId());
          postToUpdate.setTitle(post.getTitle());
          postToUpdate.setContent(post.getContent());
      }
  
      @Transactional
      public void createPost(Post post) {
  
          em.persist(post);
  
      }
  
      @Transactional
      public void deletePost(Long postId) {
  
          Post p = findPostById(postId);
          em.remove(p);
  
      }
  
      @Override
      protected EntityManager entityManager() {
          return this.em;
      }
  
  }
  </code></pre>
  <p>My pm.xml conatin these dependencies:</p>
  <pre><code>&lt;dependencyManagement&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
              &lt;artifactId&gt;quarkus-bom&lt;/artifactId&gt;
              &lt;version&gt;${quarkus.version}&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/dependencyManagement&gt;
  &lt;dependencies&gt;
      &lt;!-- &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-arc&lt;/artifactId&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt; --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-resteasy&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-resteasy-jsonb&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.rest-assured&lt;/groupId&gt;
          &lt;artifactId&gt;rest-assured&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-rest-client&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.jsonwebtoken&lt;/groupId&gt;
          &lt;artifactId&gt;jjwt-api&lt;/artifactId&gt;
          &lt;version&gt;0.10.7&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.jsonwebtoken&lt;/groupId&gt;
          &lt;artifactId&gt;jjwt-impl&lt;/artifactId&gt;
          &lt;version&gt;0.10.7&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.jsonwebtoken&lt;/groupId&gt;
          &lt;artifactId&gt;jjwt-jackson&lt;/artifactId&gt;
          &lt;version&gt;0.10.7&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.nimbusds&lt;/groupId&gt;
          &lt;artifactId&gt;nimbus-jose-jwt&lt;/artifactId&gt;
          &lt;version&gt;${nimbus-jose.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-junit5&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
          &lt;artifactId&gt;junit-jupiter-engine&lt;/artifactId&gt;
      &lt;/dependency&gt;
  &lt;!--    &lt;dependency&gt;
          &lt;groupId&gt;org.junit.platform&lt;/groupId&gt;
          &lt;artifactId&gt;junit-platform-launcher&lt;/artifactId&gt;
      &lt;/dependency&gt; --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.mockito&lt;/groupId&gt;
          &lt;artifactId&gt;mockito-junit-jupiter&lt;/artifactId&gt;
          &lt;version&gt;${mockito.version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.assertj&lt;/groupId&gt;
          &lt;artifactId&gt;assertj-core&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-jdbc-postgresql&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/io.quarkus/quarkus-jdbc-h2 --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-jdbc-h2&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/io.quarkus/quarkus-jdbc-h2 --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-test-h2&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-hibernate-orm-panache&lt;/artifactId&gt;
      &lt;/dependency&gt;
       &lt;dependency&gt;
       &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
       &lt;artifactId&gt;quarkus-hibernate-orm&lt;/artifactId&gt;
     &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-security&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-smallrye-openapi&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-smallrye-metrics&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-smallrye-health&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
          &lt;artifactId&gt;lombok&lt;/artifactId&gt;
          &lt;version&gt;1.18.4&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-spring-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-undertow&lt;/artifactId&gt;
      &lt;/dependency&gt; --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.quarkus&lt;/groupId&gt;
          &lt;artifactId&gt;quarkus-spring-di&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- &lt;dependency&gt;
          &lt;groupId&gt;io.vertx&lt;/groupId&gt;
          &lt;artifactId&gt;vertx-web-client&lt;/artifactId&gt;
      &lt;/dependency&gt; --&gt;
  &lt;/dependencies&gt;  
  </code></pre>
  <p>I cannot build this beacause  the build return :</p>
  <blockquote>
  <pre><code>Unsatisfied dependency for type com.ciwara.kalanSowApp.repository.PostRepository and qualifiers [@Default]
  
         - java member: com.ciwara.kalanSowApp.rest.post.PostsResource#posts
  
         - declared on CLASS bean [types=[com.ciwara.kalanSowApp.rest.post.PostsResource], qualifiers=[@Default, @Any], target=com.ciwara.kalanSowApp.rest.post.PostsResource]
  </code></pre>
  </blockquote>