NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

How to convert from Ant project to maven project?

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
jiapei100



Joined: 05 Jul 2009
Posts: 6
Location: Richmond, BC, Canada

PostPosted: Wed Jun 08, 2011 8:37 am    Post subject: How to convert from Ant project to maven project? Reply with quote

Hi, all:

Sorry for my entry-level question. Is it possible for me to convert from an Ant project to A Maven project from within NetBeans IDE?

Or, is there any method to convert from an Ant project to a Maven project using some command line method? Or, any standard method to do so?

Best Regards
Pei
Back to top
Brad Cox
Posted via mailing list.





PostPosted: Thu Jun 09, 2011 12:52 am    Post subject: How to convert from Ant project to maven project? Reply with quote

No conversions AFAIK. Some folks run ant from inside maven like this:

     <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>verify</phase>
            <configuration>
              <tasks>
                <property
                  name="compile_classpath"
                  refid="maven.compile.classpath" />
                <property
                  name="runtime_classpath"
                  refid="maven.runtime.classpath" />
                <property
                  name="test_classpath"
                  refid="maven.test.classpath" />
                <property
                  name="plugin_classpath"
                  refid="maven.plugin.classpath" />
                <ant antfile="${basedir}/build.xml">
                  <target name="default" />
                </ant>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>ant</groupId>
            <artifactId>ant-nodeps</artifactId>
            <version>1.6.5</version>
          </dependency>
        </dependencies>
      </plugin>



On Wed, Jun 8, 2011 at 4:38 AM, jiapei100 <address-removed ([email]address-removed[/email])> wrote:
Quote:
Hi, all:

Sorry for my entry-level question. Is it possible for me to convert from an Ant project to A Maven project from within NetBeans IDE?

Or, is there any method to convert from an Ant project to a Maven project using some command line method? Or, any standard method to do so?

Best Regards
Pei







--
Cell: 703-594-1883
Blog: http://bradjcox.blogspot.com
Web: http://virtualschool.edu
Manassas VA 20111
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo