maven-2

A code generator for java available for maven?

这一生的挚爱 提交于 2019-12-08 05:40:33
问题 I am developing a java project with maven which generates code files. I am looking for a good code generator that is available for maven. So far I tried <plugin> <groupId>com.tikal.maven</groupId> <artifactId>tikal-maven-jet-plugin</artifactId> <version>0.3.0</version> The advantage of this plugin is that it generates the generator during the build cycle and does not add any runtime dependencies. However, I could not test it because I could not find a maven repository to download it. So which

Combining Maven, SoapUi and HermesJMS

让人想犯罪 __ 提交于 2019-12-08 05:00:47
问题 I need to automate a SoapUI-project that uses HermesJMS with Maven2. The Problem I get is that SoapUI does fail on integrating the HermesJMS into its Classpath. 2012-09-20 15:48:21,340 ERROR [SoapUI] An error occured [java.lang.NullPointerException], see error log for details 2012-09-20 15:48:21,465 ERROR [errorlog] java.lang.NullPointerException java.lang.NullPointerException at com.eviware.soapui.impl.wsdl.submit.transports.jms.util.HermesUtils.addHermesJarsToClasspath(HermesUtils.java:120)

setting -source to 1.5, it is set to 1.3 apparently

喜夏-厌秋 提交于 2019-12-08 04:26:45
问题 I am using eclipse, with maven2 plugin. I am trying to setup a simple annotations based spring 3 mvc web application. So I went to RunAs and clicked on 'maven build', I set the goal as 'compile'. When it compiles, I get the error message: E:\dev\eclipse\springmvc2\src\main\java\web\HomeController.java:[5,1] annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations) @Controller so far I modified the eclipse.ini to use the jdk. I also made sure under

Does it make sense to deploy a WAR with a webapp to Maven central repository?

若如初见. 提交于 2019-12-08 02:15:37
问题 Does it make sense to do that? If yes, where can I find an example of doing that with a simple "Hello World from Web"? Do people run webapps with Jetty when they execute it from Maven? I imagine tomcat is too heavy for that. Any help will be appreciated! Thx! 回答1: I deploy .war files to our internal Archiva Maven repository so that I can pull them down to assembly things like RPMS without having to hand copy files around, same with building assemblies. It also is useful when the .war is

How can I see jboss console with maven

允我心安 提交于 2019-12-08 01:01:29
问题 I started jboss-5.1.0.GA server with maven2, is there a possibility that I can see what is happening in the console. I'm using eclipse plugin to run maven. Is it possible to see console in eclipse or elsewhere? Here is what I mean by console : Is it possible to see this output somewhere? I took this screen shot when manually running jboss. When I start the server with maven here is what I get : [INFO] [war:war] [INFO] Packaging webapp [INFO] Assembling webapp[snrf] in [C:\HOME\c0mrade

Maven archetypes not appearing in m2eclipse Nexus indexer

。_饼干妹妹 提交于 2019-12-08 00:29:30
问题 I'm setting up a new workstation for Java development in Eclipse. On my previous machine, I don't recall having to do anything special to see the standard collection of archetypes under ' New > Other > Maven project > select archetype ' with Nexus Indexer selected. On this machine, the list of archetypes is empty. I can create archetype-based projects from the command line, so it's not a show-stopper, but I just don't understand why the archetypes are missing (and it makes me wonder what else

Maven download files from one plugin from different repositories

你离开我真会死。 提交于 2019-12-08 00:29:30
问题 I have strange problem. I have own remote repository and upload their plugin. Then I try to download it while packaging project. Maven start to download from own_remote_repo but downloading 1 file start to search another files at repo1.maven.org/maven2 and of course could not found plugin and fails. I have used this repo many times before without problems. [edit] output: Downloading: http://repo1.maven.org/maven2/com/my/maven/plugin/maven-plugin/1.1.3/maven-plugin-1.1.3.pom [INFO] Unable to

Using JMeter + Maven with https protocol

时光怂恿深爱的人放手 提交于 2019-12-07 23:03:13
问题 I have been trying hard to make https request work with JMeter+Maven. Whole Scenarios is - Lauch app URL > login to app (this is https) > on Home page (this is http) I recorded these tests using HTTP Proxy of JMeter. And then as specified here changed the "HTTP request protocol" of sampler to "https" Now when I execute the test form Maven I encounter following exception JMeter log - 2010/09/08 16:25:38 ERROR - jmeter.util.JsseSSLManager: Exception occurred java.lang.NullPointerException at

Unable to resolve ${project.version} in child pom.xml from parent pom.xml

大憨熊 提交于 2019-12-07 22:58:40
问题 I have a project hierarchy as : A - pom.xml |__ B - pom.xml |__ C - pom.xml The property project.version is defined in pom.xml defined in A. Other two pom's specify the parent tag and the corresponding relative path to the respective parent pom's. <parent> <groupId>com.GRP.id</groupId> <artifactId>ARTIFACT_ID</artifactId> <version>${project.version}</version> <relativePath>../pom.xml</relativePath> </parent> The issue here is that maven is not able to resolve ${project.version} and is using

Maven Grails Plugin Environment

点点圈 提交于 2019-12-07 20:18:02
问题 how do I specify build goals like development, test or production environment in the maven grails plugin when packaging a war file for deployment? Thanks 回答1: You can also set it in the <configuration> section <plugin> <groupId>org.grails</groupId> <artifactId>grails-maven-plugin</artifactId> <version>1.3.7</version> <executions> <execution> <goals> <goal>maven-war</goal> </goals> <configuration> <env>prod</env> </configuration> </execution> </executions> </plugin> 回答2: Set grails.env when