Apache Camel Spring configuration error - Unable to locate Spring NamespaceHandler for XML schema namespace [http://camel.apache.org/schema/spring]

后端 未结 2 944
花落未央
花落未央 2021-01-17 09:20

I\'ve posted an excerpt from my spring.xml file and the stack trace I\'m getting.




        
2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-17 09:27

    If building a JAR with maven assembly plugin then try the shade plugin :)

    
        org.apache.maven.plugins
        maven-shade-plugin
        
            
                
                    *:*
                    
                        META-INF/*.SF
                        META-INF/*.DSA
                        META-INF/*.RSA
                    
                
            
        
        
            
                package
                
                    shade
                
                
                    
                        
                            META-INF/spring.handlers
                        
                        
                            META-INF/spring.schemas
                        
                        
                            com.mypackage.mainclass
                        
                    
                
            
        
    
    

提交回复
热议问题