Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

weld-se used in multi-module project fails to find beans

$
0
0

hi,

I am using Intellij 12 but I guess it is general problem. My project is made of few smaller maven projects, where each maven generates a jar. one of those jars (module A) is creating weld-se container and starts the application.

 

like this

\project

-\subprojectA

|-\moduleA

   |-\src\main\resources\META-INF\beans.xml

   |-\pom.xml

|-\moduleB

   |-\src\main\resources\META-INF\beans.xml

   |-\pom.xml

|-\pom.xml

-\subprojectC

|-\moduleC

   |-\src\main\resources\META-INF\beans.xml

   |-\pom.xml

 

module A depends on B and C. on the classpath idea adds moduleX/target/classes and weld-se gets crazy and fails to load beans from module B and C.

a workaround is to tell  (project structure->modules->moduleA->dependencies) module A to depend on concrete moduleB.jar and moduleC.jar and everything works fine but I lose proper development experience.

 

is this Intellij problem or is this an issue with weld?

 

I hope my explanation makes sense and thanks for help!


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>