首页
开源软件
问答
动弹
博客
翻译
资讯
Gitee
众包
活动
专区
源创会
求职/招聘
高手问答
开源访谈
周刊
公司开源导航页
登录
注册
首页
资讯
专区
问答
活动
软件库
发现
博客
动弹
Gitee
首页
资讯
专区
问答
活动
软件库
发现
博客
动弹
Gitee
登录
注册
开源问答
开源问答
技术问答
正文
myeclipse10发布maven项目总是不发布classes
gondor
发布于 2015/09/28 17:41
阅读 1K+
收藏
1
答案
2
Apache Maven
MyEclipse
我的问题类似于这个贴子http://bbs.csdn.net/topics/390098011中的问题。也是只想用maven来管理jar包,用myeclipse来完成部署和调试。现在的问题是:
如果用run as->maven install的方法能够生成完整的项目文件,但需要拷贝到我所指定的tomcat发布目录中,这样的话,每做一点改动都需要重新install及拷贝,很麻烦。
我想要的是象非maven项目那样,在myeclipse的servers节点用custom location生成一个发布,然后每次改动都会自动更新发布到指定目录。maven项目用这种方法总是不能生成和更新classes目录下的文件。
应该如何解决?
收藏 (
1
)
分享
微博
QQ
微信
举报
加载中
最多投票
最新
0
gondor
2015/09/28 17:42
自己顶一下,搜索的结果,似乎要用到cargo,按照示例写了一个自己的:
在pom.xml文件中加入:
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.16</version>
<configuration>
<container>
<containerId>tomcat7x</containerId>
<home>F:\kupan\tomcat-7.0.62</home>
</container>
<configuration>
<type>existing</type>
<home>F:\kupan\tomcat-7.0.62</home>
<!-- <properies>
<cargo.servlet.port>80</cargo.servlet.port>
</properies> -->
<!--
<type>standalone</type>
<home>${project.build.directory}/tomcat7x</home>
-->
</configuration>
</configuration>
</plugin>
</plugins>
再在run configuration中用deploy运行,得到如下错误提示:
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project case: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1]
评论 (
0
)
引用此答案
举报
0
alexgaoyh
2015/09/29 08:49
build path 修改 output file 为 target/classes 这个的意思??
评论 (
0
)
引用此答案
举报
我要回答
gondor
最近登录:04/06 15:49
全部
gondor的其他提问
如何将一个oracle生成的sql文件转换为mysql用的sql文件?
3 回答
933 阅读
关于web.xml中配置listener的问题
4 回答
4K+ 阅读
No bean named 'sessionFactory' is defined错误求解
2 回答
1K+ 阅读
类似问题
MyEclipse maven 项目部署到tomcat,web下面的页面怎么没部署上去?
0 回答
2264 阅读
MyEclipse如何添加activiti designer 插件??
1 回答
3286 阅读
我觉得最好用的工控控件当属 Iocomp 和 ProEssentials。但是如果真的来开发的话那个比较好呢?
0 回答
444 阅读
myeclipse 查看、调试SSH框架源码的步骤
15 回答
2303 阅读
myeclipse链接mysql总出错
3 回答
162 阅读
注册用户的验证代码,直接用单独的html可以验证,放在MyEclipse中就无法验证了???
11 回答
810 阅读
myeclipse下的maven项目怎么运行?jar包都没拷贝到lib下
7 回答
18052 阅读
能提供下ProcessEngineConfiguration类的源码吗?
2 回答
438 阅读
Myeclipse中怎么自动追踪调用的方法
1 回答
1240 阅读
《myeclipse 根据数据库生成实体类 继承关系》
0 回答
117 阅读
登录后可查看更多优质内容
使用微信快捷登录
©OSCHINA(OSChina.NET)
工信部
开源软件推进联盟
指定官方社区
深圳市奥思网络科技有限公司版权所有
粤ICP备12009483号
顶部
在pom.xml文件中加入:
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.16</version>
<configuration>
<container>
<containerId>tomcat7x</containerId>
<home>F:\kupan\tomcat-7.0.62</home>
</container>
<configuration>
<type>existing</type>
<home>F:\kupan\tomcat-7.0.62</home>
<!-- <properies>
<cargo.servlet.port>80</cargo.servlet.port>
</properies> -->
<!--
<type>standalone</type>
<home>${project.build.directory}/tomcat7x</home>
-->
</configuration>
</configuration>
</plugin>
</plugins>
再在run configuration中用deploy运行,得到如下错误提示:
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project case: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1]