Why doesn't NetBeans IDE see the generated sources?

后端 未结 6 2194
离开以前
离开以前 2021-02-07 02:55

I have a Maven-built web-app that uses JPA 2.0 at the back end. The JPA provider is EclipseLink 2.3.2.

When I build the project (and it deploys runs successfully) it bu

6条回答
  •  星月不相逢
    2021-02-07 03:07

    If you are using jaxws then make sure you add a node to the section of the jaxws plug-in "artifact" in the appropriate pom. For example:

            
                org.codehaus.mojo
                jaxws-maven-plugin
                
                    
                        
                            dojaxws
                        
                        
                            ${project.build.directory}/generated-sources/jaxws
                            ....
                        
                    
                
                
                    src/main/resources/com/mystuff/ws
                    src/jaxws/binding
                    2.0
                
            
    

    As explained above and as noted by netbeans, you must use the generate-sources path appended with the "plug-in" name. Hopefully the above clears up what "plug-in name" means and how exactly one is supposed to get jaxws to put the generated sources where netbeans need them to be. Clearly the "configuration" section will be different for each plugin... The node is needed for jaxws, other plugins may use something else.

提交回复
热议问题