Converting a Netbeans project to a Maven enabled project

后端 未结 5 1349
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-08 01:38

How can I transition a Netbeans generated project into accepting a Maven configuration? There are options to create Maven based projects, but there is nothing (that I\'ve fo

5条回答
  •  感动是毒
    2020-12-08 02:18

    If you are familial with maven, then you can always configure maven even in the later, however it is not recommended.

    the only reason behind people(including me ;) ) recommend to create a new maven project, is Maven has it's own directory structure. And that is standard. now if you want to enable maven for your project at a later stage, than you can configure the things in pom.xml, i.e. your source directory, target directory and web app directory(if applicable)

    I had a large project in SVN and was disallowed to create a new project. I did not want to support lib management and so I configured maven according to my directory structure.

    here's the part of my pom.xml

        
        src
        testpackages
        target/test-classes
        
            
                2.3.2
                maven-compiler-plugin
                
                    1.6
                    1.6
                
            
            
                org.apache.maven.plugins
                maven-war-plugin
                2.1.1
                
                    false
                    
                        
                            
                            web-root
                        
                    
                
            
    

提交回复
热议问题