You have to use a classifier to attach supplemental artifacts to the project instead of replacing th

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/wljk506/article/details/97940874

Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.1.2:jar (default-jar) on project afm-starter-common: You have to use a classifier to attach supplemental artifacts to the project instead of replacing them. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

缘由: mvn 建立 公共模块,这个公共模块里面有各种 常用依赖包,其他模块只要 引入 这个公共模块,就不需要 再设置依赖了。
模块内没有任何代码,只有 pom.xml

编译时发现报错。

fox.风

解决方法:模块下建立src/main/java/readme.rdsrc/main/resources/readme.rd文件,这个文件内容 直接为空,这里的作用是 占位作用,
建立完成后,重新编译 就不再报错了

展开阅读全文

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in

12-01

<%! ResultSet rs=null;%>rnrn <%rn int type=-1;//定义一个标志变量rn tryrn type=Integer.parseInt(request.getParameter("do"));//取得参数do的值,这个值决定了用户对数据库的操作类型rn catch(Exception eee)rn type=0;//如果没有这个参数或者其他原因发生异常,则默认为0rn rn tryrn Statement st=getStatement();//取得Statement对象,getStatement()函数将在步骤8中定义rn String name=request.getParameter("name");//取得参数name的值rnswitch(type)rn//如果为0,表示用户没有操作,则把所有数据库中的所有记录提取出来rn case 0:rn rs=st.executeQuery("select * from friends");//查询全部rn break;rn//如果为1,表示用户执行的是查询操作,则把符合要求的结果提取出来rn case 1:rn name=new String(name.getBytes("ISO-8859-1"));//改变字符编码,否则会出现中文乱码问题rn rs=st.executeQuery("select * from friends where name like '%"+name+"%'");//特定查询rn break;rn //如果为2,表示用户执行的是删除操作,则执行删除后再把控制权转向本页面rn case 2:rn name=new String(name.getBytes("ISO-8859-1"));rn st.executeUpdate("delete from friends where name ='"+name+"'");//删除rn response.sendRedirect("db1.jsp");rn break;rn//如果为3,表示用户执行的是插入操作,则执行插入后再把控制权转向本页面rncase 3:rn name=new String(name.getBytes("ISO-8859-1"));rn String tel=request.getParameter("tel");rn st.executeUpdate("insert into friends values('0','"+name+"','"+tel+"’)");//添加rn response.sendRedirect("db1.jsp");rn break;rn//如果为4,表示用户执行的是修改操作,则执行插入后再把控制权转向本页面rnrncase 4:rn name=new String(name.getBytes("ISO-8859-1"));rn tel=request.getParameter("tel");rn String sql="update friends set tel=’"+tel+"’ where name=’"+name+"'";rn st.executeUpdate(sql);//修改rn response.sendRedirect("db1.jsp");rn break;rnrn%>rnrnsql语句哪错了啊,大神求指教啊 论坛

webbrows控件打包的问题:you must have a license to use the activex control

03-10

我的winform应用程序中用了webbrows控件.现在的问题是做安装程序到客户的电脑上去,运行出现错误,我的开发电脑上没有错误.rn错误是:rnUnhandled excepetion has occurred in a componet in your application .if you click continue,the application will ignore this error and attempt to continuernyou must have a license to use the activex control.rnrn点Details出来以下内容:rnrnrnSee the end of this message for details on invoking rnjust-in-time (JIT) debugging instead of this dialog box.rnrn************** Exception Text **************rnSystem.ComponentModel.LicenseException: You must have a license to use this ActiveX control.rn at System.Windows.Forms.AxHost.CreateInstance()rn at System.Windows.Forms.AxHost.GetOcxCreate()rn at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)rn at System.Windows.Forms.AxHost.CreateHandle()rn at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)rn at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)rn at System.Windows.Forms.Control.CreateControl()rn at System.Windows.Forms.Control.WmShowWindow(Message& m)rn at System.Windows.Forms.Control.WndProc(Message& m)rn at System.Windows.Forms.ScrollableControl.WndProc(Message& m)rn at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)rn at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)rn at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)rnrnrn************** Loaded Assemblies **************rnmscorlibrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dllrnrnrnrn我觉得是和webbrows控件有关,我程序去掉webbrows ,安装就没有问题,我想可能是我用了webbrows控件后,少打包了关联的ocxrn但是我不知道应该是哪个文件,而且我用vs新建安装部署项目,安装也出同样的问题.所以请问大家, 我是不是少打包了哪个文件,具体又是哪个文件呢?rn 论坛

没有更多推荐了,返回首页