Maven Build Failure For JBoss AS 7 Hello world example

后端 未结 4 1141
悲&欢浪女
悲&欢浪女 2021-01-12 16:57

Im trying to follow this tutorial: https://docs.jboss.org/author/display/AS7/Helloworld+quickstart

But getting build error when following the simple instructions to

4条回答
  •  天命终不由人
    2021-01-12 17:42

    Removing of redHat "postfix" resolved the problem, just have actual jar name, instead of having redHat postfix.

    Have below dependencies in your pom.xml, then it will build successfully.

         
            
                
                    org.jboss.spec
                    jboss-javaee-6.0
                    3.0.2.Final
                    pom
                    import
                
            
        
    
        
            
                javax.enterprise
                cdi-api
                1.0-SP4
                provided
            
            
                org.jboss.spec.javax.annotation
                jboss-annotations-api_1.1_spec
                1.0.1.Final
                provided
            
            
                org.jboss.spec.javax.servlet
                jboss-servlet-api_3.0_spec
                1.0.2.Final
                provided
            
          
    

提交回复
热议问题