maven-2

Cannot run Maven command

血红的双手。 提交于 2019-12-13 09:34:30
问题 I am not a professional programmer.i am getting this error when running "mvn clean install". If anyone can explain me to correct this error that would be great. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building erp-web Maven Webapp [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file

Absent Code attribute in method that is not native or abstract in class file javax/persistence/InheritanceType

夙愿已清 提交于 2019-12-13 08:36:25
问题 Hi i try to write a pomfile wich supports running unittests + running on server in eclipse. But m2eclipse ignores the scopes and always deployes everything to the server. either i get java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException because i've not included the "javaee-web-api" with code or i get Caused by: java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el

Why does this autorun-cmd registry hack affect a java/maven process?

若如初见. 提交于 2019-12-13 06:20:41
问题 The presence of an HKEY_CURRENT_USER\Software\Microsoft\Command Processor\Autorun causes a java test to fail. Github repo to test this out : https://github.com/ajorpheus/final-frontier This is a follow-up question after this happened. Summary : Apparently a registry hack which allows a command to be run every time the cmd prompt is opened, adversely affects the Java process. To begin with I thought, that perhaps it was the fact that 'mvn clean test' actually resolves to 'mvn.bat clean test'.

Using a variable obtained using a pre-build shell command to set an option for the Maven build in Hudson

穿精又带淫゛_ 提交于 2019-12-13 05:16:31
问题 I have a Hudson job that runs a maven goal. Before this maven goal is executed I have added a step to run before the build starts, it is a shell script that obtains the version number that I want to use in the 'Goals and options' field. So in my job configuration, under Build Environment I have checked the Configure M2 Extra Build Steps box and added a shell script before the build. The script looks like this: export RELEASE={command to extract release version} echo $RELEASE And then under

Maven tomcat plugin

北城以北 提交于 2019-12-13 05:13:34
问题 is it possible to run spring mvc application on tomcat(with this plugin http://mojo.codehaus.org/tomcat-maven-plugin/) if yes, where is the application log and deploy web app directory located ? Let me rephrase the question. I'm asking for some way to start my web app(spring mvc application) from a command line, either with maven or with something inside application that creates web server. What would you recommend? I found this tomcat maven plugin while googling, no special reason to use it

I am using -repackageclasses 'my.pdt.z' option of proguard plugin, but obfuscated files still exist in other folders as well

半腔热情 提交于 2019-12-13 04:31:47
问题 I am using following options with proguard plugin. I expect all obfuscated class to be in 'com.xProject.z' folder but I find them spread in other folders as well. Does somebody know why? <options> <option>-repackageclasses 'com.xProject.z'</option> <option>-dontshrink</option> <option>-dontoptimize</option> <option>-dontskipnonpubliclibraryclassmembers</option> <option>-dontskipnonpubliclibraryclasses</option> <option>-keepattributes</option> <option>-keepclasseswithmembers public class *

404 with j_spring_security_check on deploying with maven

情到浓时终转凉″ 提交于 2019-12-13 03:57:08
问题 I am working on a project that has spring and maven , When i run it using eclipse run on server everything works fine. But when I do maven install and deploy the application on tomcat . It shows the login page which i right, but when i submit the login form. I get 404 with url myWebApp/j_spring_security_check . I have tried every thing i could find on the topic, that has been of no help. I am adding my web.xml , applicationContext.xml , spring-security.xml , login-page.jsp and pom.xml with

Migration from ant to Maven producing 100+ jars

試著忘記壹切 提交于 2019-12-13 02:57:54
问题 We are trying to migrate our builds from ant to maven . Project I am working for is using ant since ages. Scripts are real complex where build artifact is a zip file having a definite directory structure. Build creates about 108 unique jars and packages them to this zip file along with many config files and other 3rd party jars. We need this zip file to be same as now even after migration to Maven. I am just a learner on Maven as of now. My question to you guys is that if there is a way using

Maven - Replace property in project.pom file when installing in repository

北城以北 提交于 2019-12-13 02:16:25
问题 I have a parent project that defines a property, for example: <properties> <myproject-version>1.0</myproject-version> </properties> In a 'child' project I use <parent> <groupId>com.home</groupId> <artifactId>my-modules</artifactId> <version>${myproject-version}</version> </parent> Everything works nice, but when Maven installs jar in repository, it creates pom like <parent> <groupId>com.home</groupId> <artifactId>my-modules</artifactId> <version>${myproject-version}</version> </parent> And I

Maven mojo plugin, how to define phases that must be triggered before this goal?

╄→гoц情女王★ 提交于 2019-12-13 02:14:39
问题 hey, I have a deploy pojo plugin (deploying a war to a remote server). I have the remote-deploy plugin in the build section of pom definition, I need package phase to be triggered before deploy-remote goal, for it the war be already created before I secure-copy it to a remote server. With the execution elements (according to a documentation), I can attach my goal to a particular phase, for instance bind it to the phase after, so in my case, install phase ...but that's just a workaround.