Skip to content

Tag: maven

Selecting class by Maven build profile

I am quite new to Maven and Java EE programming all-together. I would like to create a stub class for authentication testing which should be activated in the default Maven build profile. Currently I have two classes with same name but in different packages. Is it possible to somehow select the correct class t…

JAXB generating JAXBElement instead of String

I am using Apache CXF cxf-codegen-plugin Maven plugin to generate sources from WSDL file. Problem is that I get JAXBElement<String> generated instead of String. I have added the jaxb-bindings.xml file which looks like this: This should prevent JAXB to generate JAXBElement<String>. But it is not wo…

How do you “Mavenize” a project using Intellij?

I have seen many posts about using eclipse to Mavenize a project. Is there a easy way to do that in IntelliJ? From what I understand about “Mavenize”, it’s just add some xml in pom.xml and the directory structure is in src/main/java, src/main/test …. Answer For those that benefit from …

How to download sources for a jar with Maven?

In my project I am using a JAR file provided via Maven. But what Maven gives me is only this jar – no javadocs and no sources. Pressing “Download Sources” has no effect: Eclipse still does not find the sources of the jar. What this depends on? Should repository provide sources automatically?…

How to add Java JAR files to Grails project?

I have a few Java/Maven projects that I want to use in a Grails 2.0.4 project. I have tried various approaches, such as: Installing the JAR files in my local maven repository, and executing grails install-dependency com.foo:my-project:0.0.1-SNAPSHOT Copying the JAR files into the lib folder of grails. Adding …