'framework&tools/maven'에 해당되는 글 3건

  1. 2013.05.06 javadoc plugin
  2. 2012.03.15 maven - repository 설정
  3. 2012.03.06 Maven- run java class


maven에서 javadoc plugin을 이용하여 javadoc을 만들어보자.

기본 goal은 javadoc:javadoc.

module로 나뉘어져 있다면 javadoc:aggregate를 이용하여 한 곳에 모아서 뽑아낼 수 있다.

  • javadoc:javadoc generates the Javadoc files for the project. It executes the standard Javadoc tool and supports the parameters used by the tool.
  • javadoc:aggregate generates the Javadoc files for an aggregator project. It executes the standard Javadoc tool and supports the parameters used by the tool.

http://maven.apache.org/plugins/maven-javadoc-plugin/

'framework&tools > maven' 카테고리의 다른 글

maven - repository 설정  (0) 2012.03.15
Maven- run java class  (0) 2012.03.06
Posted by 뚜벅이조
,
* add repository in pom file

<repositories>
        <repository>
            <id>DataNucleus_Repos2</id>
            <name>DataNucleus Repository</name>
            <url>http://www.datanucleus.org/downloads/maven2</url>
        </repository>
        <repository> <!-- Required for transaction-api transitive dep -->
            <id>Java_Net_LEGACY</id>
            <name>Java.Net legacy</name>
            <url>http://download.java.net/maven/1/</url>
            <layout>legacy</layout>
        </repository>
    </repositories>


* add plugin repository in pom file

    <pluginRepositories>
        <pluginRepository>
            <id>DataNucleus_2</id>
            <url>http://www.datanucleus.org/downloads/maven2/</url>
        </pluginRepository>
    </pluginRepositories>

* change local reopsitory in setting.xml  (directory: MAVEN_HOME/conf )

<localRepository>D:/Repositories/MavenRepository</localRepository>


 ref:
http://www.javajigi.net/pages/viewpage.action?pageId=82673674 
http://www.datanucleus.org/products/datanucleus/guides/jdo/tutorial_mongodb.html  

'framework&tools > maven' 카테고리의 다른 글

javadoc plugin  (0) 2013.05.06
Maven- run java class  (0) 2012.03.06
Posted by 뚜벅이조
,
특정한 class 만 실행시켜 보려면 어떻게 해야할까?

exec:java plugin 을 찾았다.

세가지 방식으로 실행할 수 있다.

mvn exec:java -Dexec.mainClass="com.vineetmanohar.module.Main"  

mvn exec:java -Dexec.mainClass="com.vineetmanohar.module.Main" -Dexec.args="arg0 arg1 arg2" 

mvn exec:java -Dexec.mainClass="com.vineetmanohar.module.Main" -Dexec.classpathScope=runtime   


ref:
http://mojo.codehaus.org/exec-maven-plugin/java-mojo.html
http://www.vineetmanohar.com/2009/11/3-ways-to-run-java-main-from-maven/ 

'framework&tools > maven' 카테고리의 다른 글

javadoc plugin  (0) 2013.05.06
maven - repository 설정  (0) 2012.03.15
Posted by 뚜벅이조
,