首页 \ 问答 \ Merve在Tomcat的每次启动时都会构建Maven项目(Merve builds Maven project on every launch on Tomcat)

Merve在Tomcat的每次启动时都会构建Maven项目(Merve builds Maven project on every launch on Tomcat)

我正在使用Eclipse,Maven 2,Merve(Eclipse的Tomcat启动器插件),maven-eclipse插件和m2eclipse。

我的问题是,每次我使用Merve进行启动时,它都会调用Maven Project Builder,它似乎可以完全构建。 这需要很长时间才能完成我的项目(大约2-3分钟)。

在项目属性 - > Builders中,我同时启用了Java Builder和Maven Project Builder。

有什么办法可以缩短时间吗? 我猜我应该能够配置它来构建 - 只编译已更改的源,而不是整个项目。

我也对其他建议插件(如Jetty)持开放态度。 我想从eclipse运行并调试maven项目,并尽可能快地完成。


I am using Eclipse, Maven 2, Merve (Tomcat launcher plugin for Eclipse), maven-eclipse plugin and m2eclipse.

My problem is that every time I run a launch with Merve, it invokes the Maven Project Builder which seems to make a full build. This takes a very long time for my project (about 2-3 minutes).

In the project properties -> Builders i have both the Java Builder and Maven Project Builder enabled.

Is there anything i can do to shorten the time? I'm guessing i should be able to configure it to build-compile only the sources that changed, not the entire project.

I am also open to other suggestions pluggins (like Jetty). I want to run and debug the maven project from eclipse and do it as fast as possible.


原文:https://stackoverflow.com/questions/7879889
更新时间:2022-10-03 15:10

最满意答案

我得到它是我的结果,肯定有更好的方法,但无论如何,它的工作原理

    Dim months As List(Of Integer) = (From b In interventions Select b.DateHeureIntervention.Month).Distinct().ToList()
    Dim services As List(Of String) = (From c In interventions Select c.Service).Distinct().ToList()

    Dim q = (From s In services _
             From m In months _
             Select New ChartItem With {.Name = MonthName(m), _
                                        .Service = s, _
                                        .Quantite = (From i In AccesDonneesHelper.GetInterventionsDetails() _
                                                     Where i.Service = s And i.DateHeureIntervention.Month = m _
                                                     Select i.Quantite).Sum()}).ToList()

I got it here is my result, there surely is a better way, but anyhow, it works

    Dim months As List(Of Integer) = (From b In interventions Select b.DateHeureIntervention.Month).Distinct().ToList()
    Dim services As List(Of String) = (From c In interventions Select c.Service).Distinct().ToList()

    Dim q = (From s In services _
             From m In months _
             Select New ChartItem With {.Name = MonthName(m), _
                                        .Service = s, _
                                        .Quantite = (From i In AccesDonneesHelper.GetInterventionsDetails() _
                                                     Where i.Service = s And i.DateHeureIntervention.Month = m _
                                                     Select i.Quantite).Sum()}).ToList()

相关问答

更多
  • 不知道你的桌子是什么样的,但试一试。 此外,我确信堆栈上有很多答案可以说明VB中的分组。 这可能是一个重复的问题。 Dim artnrGroups = From a In table _ Group a By Key = a.artnr Into Group _ Where Group.Count() > 1 Select artnr = Key, numbersCount = Group ...
  • 如果您的第一段代码是您的预期行为,那么我认为这就足够了: Dim query = _ From sf In _SelectedFields _ From df In sf.DataFields _ From ag In _Aggregations _ Where Not ag.AggregatedExpr.Contains(df.FieldName) _ Where Not FieldInGroupBy.Contains(df.FieldName) _ Sel ...
  • 试试那个: Dim groupedPhotos = From photo In photos Order By photo.TimeStamp Group photo By Key = photo.TimeStamp.ToString("y") Into g = Group Select New KeyedList(Of String, Photo)(g) Try that one: ...
  • 在VB中,Into别名需要是“Group”而不是myOrders。 使用northwind,您可以按如下方式声明查询: Dim groupedOrders = From o On Orders Group Join od in Order_Details On o.OrderID Equals od.OrderID Into Group Select o.OrderID, Details = Group 如果要将组别名为别名,可以使用: Dim groupedOrders = ...
  • 在将大量直接SQL查询转换为LINQ后,我想我终于想出了分组。 所以在上面的问题中: SELECT i.Code, i.Name from Instruments i LEFT JOIN DocInstruments di on i.InstrumentId = di.InstrumentId group by i.Code, i.Name order by i.Code 会是这样的(只是在这里输入这个没有检查,但这应该是关闭): (FROM instrumentEntity in dbContext.I ...
  • 我得到它是我的结果,肯定有更好的方法,但无论如何,它的工作原理 Dim months As List(Of Integer) = (From b In interventions Select b.DateHeureIntervention.Month).Distinct().ToList() Dim services As List(Of String) = (From c In interventions Select c.Service).Distinct().ToList() ...
  • 好吧,合理直接的C#转换将是这样的: var validSerialNumbers = from a in dbContext.A join b in dbContext.B on a.ID equals b.ID group a.SerialNo by a.SubjectId into g select g.Max(); var query = from ...
  • 您可以在VB.NET中创建一个Object类型的数组,该数组可以包含任何类型的对象,包括匿名类型。 如果您保持相同的字段名称,类型和字段顺序,编译器将正确地推断出要使用相同的匿名类型。 我在LinqPad中运行此代码以获得您正在查找的结果 Dim items As Object() = { _ New With {.a="a",.b="a",.c=1}, _ New With {.a="a",.b="a",.c=2}, _ ...
  • 编辑:你需要检查c为null,特别是你的分组后的c 。 请参阅下面的更新。 您需要在select语句中对tClassCode c进行空检查。 什么类型是tClassCode ? 您应该能够对值 c进行空检查,如果它为null,则为相应类型转换为可为空的类并返回它,否则返回实际值。 因为我不确定tClassCode是什么让我们假设它是一个整数,在这种情况下, tClassCode是一个可以为空的整数( Integer? )。 考虑到这一点,你的select语句将在你到目前为止的最后添加,应该类似于: 由于tC ...
  • 这应该工作: - var rule4Summed = (from r in ArkleSelection1.ArkleMarket1.Rule4sList where r.Rule4ApplicationCode == "E" && r.DuductionEndTime > Bet.Betslip.DateScanned group r by r.ArkleMarket1.MarketI ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)