我正在使用" org.wso2.carbon.databridge.agent.thrift-4.2.0"并遇到关于两个家属包的版本冲突" xercesImpl-2.6.2"和" slf4j"
作为临时解决方案,我必须排除orignal版本,(见下面的pom.xml)
<dependency>
<groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.databridge.agent.thrift</artifactId>
<version>4.2.0</version>
<!-- xercesImpl-2.6.2 had caused error with
com.thoughtworks.xstream.io.xml.DomDriver.createDocumentBuilderFactory()
<exclusions>
<exclusion>
<artifactId>xercesImpl</artifactId>
<groupId>xerces</groupId>
</exclusion>
</exclusions>
-->
</dependency>
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/wjz/.m2/repository/slf4j/wso2/slf4j/1.5.10.wso2v1/slf4j-1.5.10.wso2v1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/wjz/.m2/repository/org/slf4j/slf4j-log4j12/1.7.2/slf4j-log4j12-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
SLF4J: The requested version 1.5.10 by your slf4j binding is not compatible with [1.6, 1.7]
我注意到WSO2 AS 5.3.0已经使用&#34; org.wso2.carbon.databridge.agent.thrift-4.4.7&#34;在它的发布图像。
我还尝试通过在pom.xml中将版本号更改为4.4.7来升级到4.4.7(见下文)
<dependency>
<groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.databridge.agent.thrift</artifactId>
<version>4.4.7</version>
</dependency>
我得到一个错误说&#34;缺少工件org.wso2.carbon:org.wso2.carbon.databridge.agent.thrift:jar:4.4.7&#34;
我搜索了maven repo和wso2 nexus并没有发现任何东西。所以我的问题是,我可以获取新的WSO2包的最新maven repo链接在哪里
感谢
答案 0 :(得分:1)
4.4.x罐中的组ID不同。你指的那个应该像这样改变。
using System;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using System.Xml.Linq;
namespace WindowsFormsApplication_DynamicGUIFromXML
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
XDocument guiConfig = XDocument.Load(@"../../Gui.xml");
foreach (XElement item in from y in guiConfig.Descendants("Item") select y)
{
Control tmp = new Control();
switch (item.Attribute("type").Value)
{
case "Button":
tmp = new Button();
break;
case "TextBox":
tmp = new TextBox();
break;
}
tmp.Name = item.Attribute("name").Value;
tmp.Text = item.Attribute("text").Value;
tmp.Location = new Point(Int32.Parse(item.Attribute("x").Value), Int32.Parse(item.Attribute("y").Value));
Controls.Add(tmp);
}
}
}
}
// ***********************************************
// Contents of Gui.xml
// ***********************************************
//<?xml version="1.0" encoding="utf-8" ?>
//<Gui>
// <Item type="Button" name="foo" text="bar" x="100" y="100" />
// <Item type="TextBox" name="foo2" text="bar2" x="200" y="200" />
//</Gui>
// ***********************************************