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
最满意答案
我得到它是我的结果,肯定有更好的方法,但无论如何,它的工作原理
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 ...
-
linq任何函数vb.net(linq any function vb.net)[2022-12-08]
如果您的第一段代码是您的预期行为,那么我认为这就足够了: 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 ... -
Linq C#到VB.net(Linq C# to VB.net)[2022-04-21]
试试那个: 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 linq分组到对象(how to group by over anonymous type with vb.net linq to object)[2022-05-18]
您可以在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 ...