??xml version="1.0" encoding="utf-8" standalone="yes"?>91久久久久久久久久,久久国产精品一区二区,人成免费电影一二三区在线观看http://www.aygfsteel.com/caojianhua/category/47698.html你必L认,我们生存的这个世界取决于自n的能力而非别h的保?AW)zh-cnTue, 05 Nov 2013 10:45:49 GMTTue, 05 Nov 2013 10:45:49 GMT60package阶段跌testhttp://www.aygfsteel.com/caojianhua/archive/2013/11/05/maven.html初一七月初一七月Tue, 05 Nov 2013 09:21:00 GMThttp://www.aygfsteel.com/caojianhua/archive/2013/11/05/maven.htmlhttp://www.aygfsteel.com/caojianhua/comments/406022.htmlhttp://www.aygfsteel.com/caojianhua/archive/2013/11/05/maven.html#Feedback0http://www.aygfsteel.com/caojianhua/comments/commentRss/406022.htmlhttp://www.aygfsteel.com/caojianhua/services/trackbacks/406022.html跌试
1 mvn package -DskipTests
跌~译和测?br />
1 mvn package -Dmaven.test.skip=true

2.pom.xml配置文g方式
 1 <project>
 2   []
 3   <build>
 4     <plugins>
 5       <plugin>
 6         <groupId>org.apache.maven.plugins</groupId>
 7         <artifactId>maven-surefire-plugin</artifactId>
 8         <version>2.4.2</version>
 9         <configuration>
10           <skipTests>true</skipTests>
11         </configuration>
12       </plugin>
13     </plugins>
14   </build>
15   []
16 </project>
17 




初一七月 2013-11-05 17:21 发表评论
]]>
MyEclipse 6.5安装maven插ghttp://www.aygfsteel.com/caojianhua/archive/2013/11/05/406013.html初一七月初一七月Tue, 05 Nov 2013 08:19:00 GMThttp://www.aygfsteel.com/caojianhua/archive/2013/11/05/406013.htmlhttp://www.aygfsteel.com/caojianhua/comments/406013.htmlhttp://www.aygfsteel.com/caojianhua/archive/2013/11/05/406013.html#Feedback0http://www.aygfsteel.com/caojianhua/comments/commentRss/406013.htmlhttp://www.aygfsteel.com/caojianhua/services/trackbacks/406013.html一、卸载原有maven插gMyEclipse 6.5集成了Maven插gQ不q有不少bugQ用习惯了m2eclipseQ不惛_q上面浪Ҏ间。要安装m2eclipseQ需要先把自带的maven插g卸蝲掉,卸蝲步骤如下Q?br />1.删除/eclipse/features/com.genuitec.myeclipse.maven_6.5.1.zmyeclipse650200806目录
2.q入plugins目录Q删除以下目录及jar?br />
 1 com.genuitec.myeclipse.maven_6.5.1.zmyeclipse650200806
 2 org.maven.ide.components.archetype_common_2.0.0.20080331-1600
 3 org.maven.ide.components.maven_embedder_2.1.0.20080410-2200
 4 org.maven.ide.components.maven_model_edit_1.0.0.20080331-1600
 5 org.maven.ide.components.maven_scm_1.0.0.20080410-2200
 6 org.maven.ide.components.nexus_indexer_1.0.0.20080331-1600
 7 org.maven.ide.components.qname_1.0.0.20080331-1600
 8 com.genuitec.eclipse.maven_6.5.1.zmyeclipse650200806.jar
 9 org.maven.ide.eclipse.central_0.9.1.zmyeclipse650200806.jar 
10 org.maven.ide.eclipse.scm_0.9.2.zmyeclipse650200806.jar
11 org.maven.ide.eclipse_0.9.3.zmyeclipse650200806.jar

二、在U安装m2eclipse

1.Help -> Find and Install ->Search for new features to install->New Remote Site
1 nameQm2eclipse
2 urlQhttp://m2eclipse.sonatype.org/sites/m2e/0.10.0.20100209-0800/

2.点击FinishQ开始自动搜索。这个链接之前是好用的,不过今天再下载L提示错误Q直接访问也提示内容找不刎ͼ看来是挪地方了。最后在官网扑ֈq个帖子Where did http://m2eclipse.sonatype.org/sites/m2e go?Ҏ提示扑ֈ了最新地址http://repository.sonatype.org/content/sites/forge-sites/m2e/
帖子内容
As of June 2013, that site has been shut down because M2Eclipse was moved to the Eclipse Foundation years ago.

You can access the archived M2Eclipse sites (including 0.12) here:

https://repository.sonatype.org/content/sites/forge-sites/m2e/

For more information on how to access current m2e releases, see http://eclipse.org/m2e/download/.
所以上面的地址变成了这?br />
1 name:m2eclipse
2 url:http://repository.sonatype.org/content/sites/forge-sites/m2e/0.10.0/S/20100209-0800/
再安装就没有问题了?br />
3.讄maven
Window->preferencesQ搜索mavenQUser Settings中选择本地maven配置文gQUpdate Settings->Apply->OK

三、问?/h4>重启MyEclipse后,跛_异常
1 Eclipse is running in a JRE, but a JDK is required
2 Some Maven plugins may not work when importing projects or updating source folders.

具体的解x案见q个链接http://www.aygfsteel.com/itvincent/archive/2010/07/25/327101.html



初一七月 2013-11-05 16:19 发表评论
]]>Linux下安装mavenhttp://www.aygfsteel.com/caojianhua/archive/2011/04/02/347559.html初一七月初一七月Sat, 02 Apr 2011 10:34:00 GMThttp://www.aygfsteel.com/caojianhua/archive/2011/04/02/347559.htmlhttp://www.aygfsteel.com/caojianhua/comments/347559.htmlhttp://www.aygfsteel.com/caojianhua/archive/2011/04/02/347559.html#Feedback0http://www.aygfsteel.com/caojianhua/comments/commentRss/347559.htmlhttp://www.aygfsteel.com/caojianhua/services/trackbacks/347559.html下蝲安装文gQ目前最新版本ؓ3.0.3Q下载文件ؓapache-maven-3.0.3-bin.tar.gzQ下载可以用wget命oQ?br />
2.q入下蝲文g夹,扑ֈ下蝲的文Ӟq行如下命o解压
tar -xvf  apache-maven-2.2.1-bin.tar.gz

解压后的文g夹名为apache-maven-3.0.3

3.使用mv命oapache-maven-3.0.3文gҎ贝到自己指定的文件夹Q比?usr/local/?br />
mv -rf apache-maven-3.0.3 /usr/local/

4.配置环境变量Q编?etc/profile文gQ添加如下代?br />
MAVEN_HOME=/usr/local/apache-maven-3.0.3
export MAVEN_HOME
export PATH=${PATH}:${MAVEN_HOME}/bin

5.保存文gQƈq行如下命o使环境变量生?br />
source /etc/profile

6.在控制台输入如下命oQ如果能看到Maven相关版本信息Q则说明Maven已经安装成功
mvn -v








初一七月 2011-04-02 18:34 发表评论
]]>
Maven创徏一个web应用http://www.aygfsteel.com/caojianhua/archive/2011/01/27/343697.html初一七月初一七月Thu, 27 Jan 2011 12:29:00 GMThttp://www.aygfsteel.com/caojianhua/archive/2011/01/27/343697.htmlhttp://www.aygfsteel.com/caojianhua/comments/343697.htmlhttp://www.aygfsteel.com/caojianhua/archive/2011/01/27/343697.html#Feedback1http://www.aygfsteel.com/caojianhua/comments/commentRss/343697.htmlhttp://www.aygfsteel.com/caojianhua/services/trackbacks/343697.html
mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp

切换?span style="color: #000000;">my-webapp目录下,可以扑ֈ目对象模型pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation
="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  
<modelVersion>4.0.0</modelVersion>
  
<groupId>com.mycompany.app</groupId>
  
<artifactId>my-webapp</artifactId>
  
<packaging>war</packaging>
  
<version>1.0-SNAPSHOT</version>
  
<name>my-webapp Maven Webapp</name>
  
<url>http://maven.apache.org</url>
  
<dependencies>
    
<dependency>
      
<groupId>junit</groupId>
      
<artifactId>junit</artifactId>
      
<version>3.8.1</version>
      
<scope>test</scope>
    
</dependency>
  
</dependencies>
  
<build>
    
<finalName>my-webapp</finalName>
  
</build>
</project>

其中packaging标签的?/span>为warQ这U打包类型配|让Maven以war文g的Ş式生成一个web应用。一个打包类型ؓwar的项目,会在target/目录创徏一个war文gQ这个文件的默认名称是content-zh-webapp-0.6-SNAPSHOT.war。对于这个项目,默认的war文g是target/simple-webapp-1.0-SNAPSHOT.war。在q个目中,我们已经通过在项目的构徏配置中加入fileName元素来定义生成的war文g的名UͼҎq个讄Qpackage阶段生成的war文g为target/my-webapp.war。除此以外,q?span style="color: #000000;">可以看到src/main/webapp下生成了单的一个index.jsp以及WEB-INF下的web目配置文gweb.xml?br />
接下来我们打包程序,q行如下命o
mvn clean package

?span style="color: #000000;">my-webapp/target目录下,我们看到了生成的my-webapp.war?/span>

配置Jetty插g

在编译ƈ打包了我们的web应用之后Q我们想要将它部|到一个servlet容器中,然后试一下由Maven Archetype插g生成的index.jsp。一般我们发布webE序都需要下载Jetty或Tomcat{web容器Q解压分发包Q然后将我们打好的war包拷贝到webapps目录下,然后启动服务器。利用Maven的Jetty插g可以省去q些步骤Q在Maven中运行我们的web应用。ؓ此,我们需要在目的pom.xml文g中配|Jetty插gQ配|后的pom.xml如下
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation
="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  
<modelVersion>4.0.0</modelVersion>
  
<groupId>com.mycompany.app</groupId>
  
<artifactId>my-webapp</artifactId>
  
<packaging>war</packaging>
  
<version>1.0-SNAPSHOT</version>
  
<name>my-webapp Maven Webapp</name>
  
<url>http://maven.apache.org</url>
  
<dependencies>
    
<dependency>
      
<groupId>junit</groupId>
      
<artifactId>junit</artifactId>
      
<version>3.8.1</version>
      
<scope>test</scope>
    
</dependency>
  
</dependencies>
  
<build>
    
<finalName>my-webapp</finalName>
    
<plugins>
      
<plugin>
        
<groupId>org.mortbay.jetty</groupId>
        
<artifactId>maven-jetty-plugin</artifactId>
      
</plugin>
      
<plugin>
        
<artifactId>maven-compiler-plugin</artifactId>
        
<configuration>
          
<source>1.6</source>
          
<target>1.6</target>
        
</configuration>
      
</plugin>
    
</plugins>
  
</build>
</project>

上面的文仉了jetty外,q配|了maven-compiler-plugin~译插gQ此插g可以用来指定~译器版本,以及其他一些编译细节?br />
修改完成后,q行如下命oQ就可以启动jetty发布我们的web应用了?br />
mvn jetty:run

控制台打印显C服务已l启?br />
[INFO] Configuring Jetty for project: my-webapp Maven Webapp
[INFO] Webapp source directory = C:\Documents and Settings\caojh\my-webapp\src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = C:\Documents and Settings\caojh\my-webapp\target\classes
2011-01-27 19:46:21.028:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
[INFO] Context path = /my-webapp
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file = C:\Documents and Settings\caojh\my-webapp\src\main\webapp\WEB-INF\web.xml
[INFO] Webapp directory = C:\Documents and Settings\caojh\my-webapp\src\main\webapp
[INFO] Starting jetty 6.1.26 
2011-01-27 19:46:21.200:INFO::jetty-6.1.26
2011-01-27 19:46:21.450:INFO::No Transaction manager found - if your webapp requires one, please configure one.
2011-01-27 19:46:21.731:INFO::Started SelectChannelConnector@0.0.0.0:8080
[INFO] Started Jetty Server

在浏览器中输入http://localhost:8080/my-webapp/Q就可以看到index.jsp面的内容了?br />
启动与关闭Jetty

委托Jetty插g无限期运行的目标包括run、run-war和run-exploded。你可以在视H控制终端(如DOSH口Q?lt;ctrl-c>关闭它,或者在另一个视H控制终端用stop目标关闭。如果你希望能用mvn jetty:stop 执行关闭命oQ则需要你在插件中配置一个特D的端口和控刉。下面是一个例子配|?br />
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation
="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  
<modelVersion>4.0.0</modelVersion>
  
<groupId>com.mycompany.app</groupId>
  
<artifactId>my-webapp</artifactId>
  
<packaging>war</packaging>
  
<version>1.0-SNAPSHOT</version>
  
<name>my-webapp Maven Webapp</name>
  
<url>http://maven.apache.org</url>
  
<dependencies>
    
<dependency>
      
<groupId>junit</groupId>
      
<artifactId>junit</artifactId>
      
<version>3.8.1</version>
      
<scope>test</scope>
    
</dependency>
  
</dependencies>
  
<build>
    
<finalName>my-webapp</finalName>
    
<plugins>
      
<plugin>
        
<groupId>org.mortbay.jetty</groupId>
        
<artifactId>maven-jetty-plugin</artifactId>
        
<configuration>
          
<stopPort>9966</stopPort>
          
<stopKey>foo</stopKey>
        
</configuration>
      
</plugin>
      
<plugin>
        
<artifactId>maven-compiler-plugin</artifactId>
        
<configuration>
          
<source>1.6</source>
          
<target>1.6</target>
        
</configuration>
      
</plugin>
    
</plugins>
  
</build>
</project>

启动
mvn jetty:start

停止
mvn jetty:stop

x一个简单的web应用完成了Q你可以像其他web应用一样对它进行添加修改了Q而工E的调试q行q可以试用上面的jettyQ还是很方便的?br />
更详l的配置
http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin




初一七月 2011-01-27 20:29 发表评论
]]>
Maven安装及测?/title><link>http://www.aygfsteel.com/caojianhua/archive/2011/01/13/342945.html</link><dc:creator>初一七月</dc:creator><author>初一七月</author><pubDate>Thu, 13 Jan 2011 09:55:00 GMT</pubDate><guid>http://www.aygfsteel.com/caojianhua/archive/2011/01/13/342945.html</guid><wfw:comment>http://www.aygfsteel.com/caojianhua/comments/342945.html</wfw:comment><comments>http://www.aygfsteel.com/caojianhua/archive/2011/01/13/342945.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/caojianhua/comments/commentRss/342945.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/caojianhua/services/trackbacks/342945.html</trackback:ping><description><![CDATA[首先从http://maven.apache.org/download.html下蝲二进制安装包Q最新的版本?.0.2?br /> <br /> windows下安装:<br /> 1.二q制包apache-maven-3.0.2-bin.zip解压至Q意目录,比如C:\apache-maven-3.0.2<br /> 2.讄环境变量QM2_HOME=C:\apache-maven-3.0.2Qƈ且在PATH变量里添?M2_HOME%\bin<br /> 3.试配置是否生效Q控制台里输入mvn -v或mvn -versionQ显C如下信息,表示安装已经成功?br /> <div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 0);">Apache Maven 3.0.2 (r1056850; 2011-01-09 08:58:10+0800)<br /> Java version: 1.6.0_10-rc2, vendor: Sun Microsystems Inc.<br /> Java home: C:\Java\jdk1.6.0_10\jre<br /> Default locale: zh_CN, platform encoding: GBK<br /> OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"</span></div> <br /> Maven的插件是在第一ơ加载时从仓库下载的Q然后在本地保存一个副本,也就是说W一ơ需要联|到仓库M载,新安装的Maven只包含内核,q不包含其他插gQ我们可以用describe目标去试着获取help插g的信?br /> <div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 0);">mvn help:describe -Dplugin=help</span></div> <br /> 因ؓ是第一ơ加载,所以会看到很多下蝲信息Q在插g下蝲完成之后Q最后才打印出help插g的具体信?br /> <div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 0);">[INFO] Scanning for projects<img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /><br /> Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom<br /> Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom (5 KB at 2.3 KB/sec)<br /> Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom<br /> Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom (13 KB at 18.5 KB/sec)<br /> Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom<br /> Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom (23 KB at 33.0 KB/sec)<br /> Downloading: http://repo1.maven.org/maven2/org/apache/apache/7/apache-7.pom<br /> Downloaded: http://repo1.maven.org/maven2/org/apache/apache/7/apache-7.pom (15 KB at 20.5 KB/sec)<br /> <img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /><br /> [INFO] org.apache.maven.plugins:maven-help-plugin:2.1.1<br /> <br /> Name: Maven Help Plugin<br /> Description: The Maven Help plugin provides goals aimed at helping to make<br />   sense out of the build environment. It includes the ability to view the<br />   effective POM and settings files, after inheritance and active profiles have<br />   been applied, as well as a describe a particular plugin goal to give usage<br />   information.<br /> Group Id: org.apache.maven.plugins<br /> Artifact Id: maven-help-plugin<br /> Version: 2.1.1<br /> Goal Prefix: help<br /> <br /> This plugin has 9 goals:<br /> <br /> help:active-profiles<br />   Description: Displays a list of the profiles which are currently active for<br />     this build.<br /> <br /> help:all-profiles<br />   Description: Displays a list of available profiles under the current<br />     project.<br />     Note: it will list all profiles for a project. If a profile comes up with a<br />     status inactive then there might be a need to set profile activation<br />     switches/property.<br /> <br /> help:describe<br />   Description: Displays a list of the attributes for a Maven Plugin and/or<br />     goals (aka Mojo - Maven plain Old Java Object).<br /> <br /> help:effective-pom<br />   Description: Displays the effective POM as an XML for this build, with the<br />     active profiles factored in.<br /> <br /> help:effective-settings<br />   Description: Displays the calculated settings as XML for this project,<br />     given any profile enhancement and the inheritance of the global settings<br />     into the user-level settings.<br /> <br /> help:evaluate<br />   Description: Evaluates Maven expressions given by the user in an<br />     interactive mode.<br /> <br /> help:expressions<br />   Description: Displays the supported Plugin expressions used by Maven.<br /> <br /> help:help<br />   Description: Display help information on maven-help-plugin.<br />     Call<br />       mvn help:help -Ddetail=true -Dgoal=</span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">goal-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />     to display parameter details.<br /> <br /> help:system<br />   Description: Displays a list of the platform details like system properties<br />     and environment variables.<br /> <br /> For more information, run 'mvn help:describe [<img src="http://www.aygfsteel.com/Images/dot.gif" alt="" />] -Ddetail'<br /> <br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] BUILD SUCCESS<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] Total time: 2:29.749s<br /> [INFO] Finished at: Thu Jan 13 17:01:15 CST 2011<br /> [INFO] Final Memory: 3M/7M<br /> [INFO] ------------------------------------------------------------------------</span></div> <br /> 上面的输Zؓhelp插g的Maven坐标Q我们也可以看到新版本的Maven?个目标,每个目标都做了说明,同时q包括了该插件的一个简要介l、前~{,如果你想?Help 插g输出完整的带有参数的目标列表Q只要运行带有参数full的help:describe目标可以了<br /> <div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 0);">mvn help:describe -Dplugin=help -Dfull</span></div> <br /> 此时会输出非常详l的插g信息<br /> <div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 0);">[INFO] Scanning for projects<img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /><br /> [INFO]<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] Building Maven Stub Project (No POM) 1<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO]<br /> [INFO] --- maven-help-plugin:2.1.1:describe (default-cli) @ standalone-pom ---<br /> [INFO] org.apache.maven.plugins:maven-help-plugin:2.1.1<br /> <br /> Name: Maven Help Plugin<br /> Description: The Maven Help plugin provides goals aimed at helping to make<br />   sense out of the build environment. It includes the ability to view the<br />   effective POM and settings files, after inheritance and active profiles have<br />   been applied, as well as a describe a particular plugin goal to give usage<br />   information.<br /> Group Id: org.apache.maven.plugins<br /> Artifact Id: maven-help-plugin<br /> Version: 2.1.1<br /> Goal Prefix: help<br /> <br /> This plugin has 9 goals:<br /> <br /> help:active-profiles<br />   Description: Displays a list of the profiles which are currently active for<br />     this build.<br />   Implementation: org.apache.maven.plugins.help.ActiveProfilesMojo<br />   Language: java<br /> <br />   Available parameters:<br /> <br />     output<br />       Expression: ${output}<br />       Optional parameter to write the output of this help in a given file,<br />       instead of writing to the console.<br />       Note: Could be a relative path.<br /> <br /> help:all-profiles<br />   Description: Displays a list of available profiles under the current<br />     project.<br />     Note: it will list all profiles for a project. If a profile comes up with a<br />     status inactive then there might be a need to set profile activation<br />     switches/property.<br />   Implementation: org.apache.maven.plugins.help.AllProfilesMojo<br />   Language: java<br /> <br />   Available parameters:<br /> <br />     output<br />       Expression: ${output}<br />       Optional parameter to write the output of this help in a given file,<br />       instead of writing to the console.<br />       Note: Could be a relative path.<br /> <br /> help:describe<br />   Description: Displays a list of the attributes for a Maven Plugin and/or<br />     goals (aka Mojo - Maven plain Old Java Object).<br />   Implementation: org.apache.maven.plugins.help.DescribeMojo<br />   Language: java<br /> <br />   Available parameters:<br /> <br />     artifactId<br />       Expression: ${artifactId}<br />       The Maven Plugin artifactId to describe.<br />       Note: Should be used with groupId parameter.<br /> <br />     cmd<br />       Expression: ${cmd}<br />       A Maven command like a single goal or a single phase following the Maven<br />       command line:<br />       mvn [options] [</span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">goal</span><span style="color: rgb(255, 0, 0);">(s)</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">] [</span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">phase</span><span style="color: rgb(255, 0, 0);">(s)</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">]<br /> <br />     detail (Default: false)<br />       Expression: ${detail}<br />       This flag specifies that a detailed (verbose) list of goal (Mojo)<br />       information should be given.<br /> <br />     goal<br />       Expression: ${goal}<br />       The goal name of a Mojo to describe within the specified Maven Plugin. If<br />       this parameter is specified, only the corresponding goal (Mojo) will be<br />       described, rather than the whole Plugin.<br /> <br />     groupId<br />       Expression: ${groupId}<br />       The Maven Plugin groupId to describe.<br />       Note: Should be used with artifactId parameter.<br /> <br />     medium (Default: true)<br />       Expression: ${medium}<br />       This flag specifies that a medium list of goal (Mojo) information should<br />       be given.<br /> <br />     minimal (Default: false)<br />       Expression: ${minimal}<br />       This flag specifies that a minimal list of goal (Mojo) information should<br />       be given.<br /> <br />     output<br />       Expression: ${output}<br />       Optional parameter to write the output of this help in a given file,<br />       instead of writing to the console.<br />       Note: Could be a relative path.<br /> <br />     plugin<br />       Expression: ${plugin}<br />       The Maven Plugin to describe. This must be specified in one of three<br />       ways:<br /> <br />       1.  plugin-prefix, i.e. 'help'<br />       2.  groupId:artifactId, i.e. 'org.apache.maven.plugins:maven-help-plugin'<br />       3.  groupId:artifactId:version, i.e.<br />         'org.apache.maven.plugins:maven-help-plugin:2.0'<br /> <br />     version<br />       Expression: ${version}<br />       The Maven Plugin version to describe.<br />       Note: Should be used with groupId/artifactId parameters.<br /> <br /> help:effective-pom<br />   Description: Displays the effective POM as an XML for this build, with the<br />     active profiles factored in.<br />   Implementation: org.apache.maven.plugins.help.EffectivePomMojo<br />   Language: java<br /> <br />   Available parameters:<br /> <br />     output<br />       Expression: ${output}<br />       Optional parameter to write the output of this help in a given file,<br />       instead of writing to the console.<br />       Note: Could be a relative path.<br /> <br /> help:effective-settings<br />   Description: Displays the calculated settings as XML for this project,<br />     given any profile enhancement and the inheritance of the global settings<br />     into the user-level settings.<br />   Implementation: org.apache.maven.plugins.help.EffectiveSettingsMojo<br />   Language: java<br /> <br />   Available parameters:<br /> <br />     output<br />       Expression: ${output}<br />       Optional parameter to write the output of this help in a given file,<br />       instead of writing to the console.<br />       Note: Could be a relative path.<br /> <br />     showPasswords (Default: false)<br />       Expression: ${showPasswords}<br />       For security reasons, all passwords are hidden by default. Set this to<br />       true to show all passwords.<br /> <br /> help:evaluate<br />   Description: Evaluates Maven expressions given by the user in an<br />     interactive mode.<br />   Implementation: org.apache.maven.plugins.help.EvaluateMojo<br />   Language: java<br /> <br />   Available parameters:<br /> <br />     artifact<br />       Expression: ${artifact}<br />       An artifact for evaluating Maven expressions.<br />       Note: Should respect the Maven format, i.e.<br />       groupId:artifactId[:version][:classifier].<br /> <br />     expression<br />       Expression: ${expression}<br />       An expression to evaluate instead of prompting. Note that this must not<br />       include the surrounding ${<img src="http://www.aygfsteel.com/Images/dot.gif" alt="" />}.<br /> <br /> help:expressions<br />   Description: Displays the supported Plugin expressions used by Maven.<br />   Implementation: org.apache.maven.plugins.help.ExpressionsMojo<br />   Language: java<br /> <br />   Available parameters:<br /> <br />     output<br />       Expression: ${output}<br />       Optional parameter to write the output of this help in a given file,<br />       instead of writing to the console.<br />       Note: Could be a relative path.<br /> <br /> help:help<br />   Description: Display help information on maven-help-plugin.<br />     Call<br />       mvn help:help -Ddetail=true -Dgoal=</span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">goal-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />     to display parameter details.<br />   Implementation: org.apache.maven.plugins.help.HelpMojo<br />   Language: java<br /> <br />   Available parameters:<br /> <br />     detail (Default: false)<br />       Expression: ${detail}<br />       If true, display all settable properties for each goal.<br /> <br />     goal<br />       Expression: ${goal}<br />       The name of the goal for which to show help. If unspecified, all goals<br />       will be displayed.<br /> <br />     indentSize (Default: 2)<br />       Expression: ${indentSize}<br />       The number of spaces per indentation level, should be positive.<br /> <br />     lineLength (Default: 80)<br />       Expression: ${lineLength}<br />       The maximum length of a display line, should be positive.<br /> <br /> help:system<br />   Description: Displays a list of the platform details like system properties<br />     and environment variables.<br />   Implementation: org.apache.maven.plugins.help.SystemMojo<br />   Language: java<br /> <br />   Available parameters:<br /> <br />     output<br />       Expression: ${output}<br />       Optional parameter to write the output of this help in a given file,<br />       instead of writing to the console.<br />       Note: Could be a relative path.<br /> <br /> <br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] BUILD SUCCESS<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] Total time: 1.313s<br /> [INFO] Finished at: Thu Jan 13 17:38:55 CST 2011<br /> [INFO] Final Memory: 3M/7M<br /> [INFO] ------------------------------------------------------------------------</span></div> <br /> 该选项能让你查看插件所有的目标及相兛_数。但是有时候这些信息显得太多了。这时候你可以获取单个目标的信息,讄mojo参数和plugin参数。下面的命o列出了Compiler插g的compile目标的所有信?br /> <div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 0);">mvn help:describe -Dplugin=compiler -Dmojo=compile -Dfull</span></div> <br /> 在Maven里面Q一个插件目标也被认为是一个Mojo。比如上面我们看到help插g有system目标Q所以我们可以这h查看help:system下的output信息<br /> <div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 0);">mvn help:system -Dplugin=help -Dmojo=output -Dfull</span></div> <br /> <br /> <br /> <br /> <br /> <img src ="http://www.aygfsteel.com/caojianhua/aggbug/342945.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/caojianhua/" target="_blank">初一七月</a> 2011-01-13 17:55 <a href="http://www.aygfsteel.com/caojianhua/archive/2011/01/13/342945.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">¬</a>| <a href="http://" target="_blank">ͻȪ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ֶ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ҿ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">԰</a>| <a href="http://" target="_blank">Ѿ</a>| <a href="http://" target="_blank">캵</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">޵</a>| <a href="http://" target="_blank">³ľ</a>| <a href="http://" target="_blank">ǭ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ͼ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">־</a>| <a href="http://" target="_blank">׿</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">н</a>| <a href="http://" target="_blank">ʡ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̩</a>| <a href="http://" target="_blank">Ѯ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ӣ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>