天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

 找回密码
 注册成为天翎用户
查看: 5620|回复: 5

[界面] myapps平台打包发布的问题

[复制链接]
lejuo 发表于 2011-4-22 11:24:18 | 显示全部楼层 |阅读模式
我的myeclipse下面导入了maven工程(myapps2.4),之后tomcat的server.xml文件指定了webapp:
  1.       <Host name="localhost"  appBase="webapps"
  2.             unpackWARs="true" autoDeploy="true"
  3.             xmlValidation="false" xmlNamespaceAware="false">
  4.       <!--Context path="/vos" docBase="D:\Program Files\apache\webapps" debug="0" reloadable="false"/-->
  5.       <Context path="/vos" docBase="G:\myapps2.4\sp2\myapps\src\main\webapp" debug="0" reloadable="false"/>
复制代码
然后下载了maven安装文件,指定在:D:\Program Files\apache-maven-2.2.1路径下面,配置了maven的环境变量。

请问,然后怎么操作,对myapps进行打包发布的?
shary 发表于 2011-4-22 11:42:04 | 显示全部楼层
回复 1# lejuo


    您好,如果您确定您的maven插件配置好了。跟新下图中画红圈的两个。第一个是更新jar包。第二个是更新工程配置。
    hhh.png
 楼主| lejuo 发表于 2011-4-22 15:03:12 | 显示全部楼层
回复 2# shary


    这一步已经ok了

接下来右击项目,run as->maven package,出现如下错误:
  1. [INFO] Scanning for projects...
  2. [WARNING]
  3. [WARNING] Some problems were encountered while building the effective model for come.itc:myapps:war:1.0-SNAPSHOT
  4. [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
  5. [WARNING] 'build.plugins.plugin.version' is missing for org.codehaus.mojo:tomcat-maven-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
  6. [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-project-info-reports-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
  7. [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-javadoc-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
  8. [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:jxr-maven-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
  9. [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:surefire-report-maven-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
  10. [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:cobertura-maven-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
  11. [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-pmd-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
  12. [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:changes-maven-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
  13. [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:changelog-maven-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
  14. [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:taglist-maven-plugin @ come.itc:myapps:1.0-SNAPSHOT, G:\myapps2.4\sp2\myapps\pom.xml
  15. [WARNING]
  16. [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
  17. [WARNING]
  18. [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
  19. [WARNING]
  20. [INFO]                                                                        
  21. [INFO] ------------------------------------------------------------------------
  22. [INFO] Building vos 1.0-SNAPSHOT
  23. [INFO] ------------------------------------------------------------------------
  24. [WARNING] Missing POM for org.mortbay.jetty:org.mortbay.jetty:jar:5.1.9
  25. [WARNING] While downloading poi:poi:3.0.2-FINAL
  26.   This artifact has been relocated to org.apache.poi:poi:3.0.2-FINAL.


  27. [WARNING] While downloading jstl:jstl:1.1.2
  28.   This artifact has been relocated to javax.servlet:jstl:1.1.2.


  29. [WARNING] While downloading javamail:javamail:1.3.3
  30.   This artifact has been relocated to javax.mail:mail:1.3.3.


  31. [INFO]
  32. [INFO] --- maven-resources-plugin:2.4.1:resources (default-resources) @ myapps ---
  33. [WARNING] File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent!
  34. [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
  35. [INFO] Copying 31 resources
  36. [INFO]
  37. [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ myapps ---
  38. [INFO] Nothing to compile - all classes are up to date
  39. [INFO]
  40. [INFO] --- maven-resources-plugin:2.4.1:testResources (default-testResources) @ myapps ---
  41. [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
  42. [INFO] Copying 2 resources
  43. [INFO]
  44. [INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ myapps ---
  45. [INFO] Nothing to compile - all classes are up to date
  46. [INFO]
  47. [INFO] --- maven-surefire-plugin:2.4.2:test (default-test) @ myapps ---
  48. [WARNING] Missing POM for org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.4.2
  49. [INFO] ------------------------------------------------------------------------
  50. [INFO] BUILD FAILURE
  51. [INFO] ------------------------------------------------------------------------
  52. [INFO] Total time: 9.563s
  53. [INFO] Finished at: Fri Apr 22 15:01:51 CST 2011
  54. [INFO] Final Memory: 2M/5M
  55. [INFO] ------------------------------------------------------------------------
  56. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test (default-test) on project myapps: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.4.2 or one of its dependencies could not be resolved: The repository system is offline and the requested artifact is not locally available at C:\Documents and Settings\user\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar
  57.   org.codehaus.plexus:plexus-utils:jar:1.1

  58. from the specified remote repositories:
  59.   teemlink-plugin (http://teemlink.com/artifactory/repo, releases=true, snapshots=false),
  60.   central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
  61. -> [Help 1]
  62. [ERROR]
  63. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  64. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  65. [ERROR]
  66. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  67. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
复制代码
shary 发表于 2011-4-22 15:08:31 | 显示全部楼层
MS是你maven插件的问题。你将工程部署到tomcat可以启动成功吗
 楼主| lejuo 发表于 2011-4-22 15:17:59 | 显示全部楼层
回复 4# shary


    在tomcat下,自己建立一个webapp,拷贝工程文件到其下面是可以的。

不过,maven安装到自己电脑上后,没有做任何配置,只设置了环境变量
shary 发表于 2011-4-22 15:32:47 | 显示全部楼层
您好,你的意思是说利用源码启动tomcat可以正常运行平台吗?你刷新下工程,再试一下。如果还有问题去网上查一下。可能是maven还需要做什么配置。有问题我们再沟通。

本版积分规则

QQ|手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-12 13:17

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表