java.lang.IllegalStateException: endPosTable already defined

Trying to build an alexa (amazon:echo) skills set. At the same time, trying to use this experience as a learning testbed for dependency injection through dagger 2. However, building the package using maven-2 cmd: mvn assembly:assembly -DdescriptorId=

java.lang.NoSuchMethodException when running jar in code

I've got a problem when trying to execute specific jar files in code. My objective was to create GUI application (wizard) in which user selects various xml files, selects a jar file to execute and provide it with input xml. To execute jar, I use this

Maven addiction is not in pom.xml

I have a project which uses spring. It uses version 3.1.1 but, for some reason I really don't know, some spring artifacts are duplicated with two different versions. I look for the those dependencies in all pom.xml files from my project. I also use t

mvn release: prepare does not work using maven 3

My JAVA_HOME is properly set up to /usr/local/java/jdk1.7.0_01 $echo $JAVA_HOME /usr/local/java/jdk1.7.0_01 $sudo update-alternatives --config java There are 3 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status

Calling Ant targets via Maven

I can do this run ANT build.xml from Maven using ant run plugin. My pom.xml <target> <property name="src.dir" location="my_project_folder_location"/> <subant> <fileset dir="${src.dir}" includes="**/b

Maven dependencies for JSF 2 and IceFaces 2

i have a Spring JSF 2 project which is using IceFaces 2, and i made the project use JSF and IceFaces libraries from properties>project facets, and added jsf capabilities to the project, then used a user library JSF 2.1 Mojara, then added icefaces cap

Enabling the maven profile based on multiple properties

I am creating a maven 2 build for a project and I came up with profiles since the build has to be created for both different locations (say Berlin, Paris, North Pole) and different environment (Development, Production). Those are specified via proper

search for updates Maven outbuildings / rest

this far i've been working on projects without using any build manager, i've used Maven just once before and found it pretty useful, so i'd like to start implementing it on my new projects. I'm starting a Web application that uses Hibernate, JPA, Str

Use the maven public repository with ivy

I have an ivy.xml containing <dependencies> <dependency org="commons-lang" name="commons-lang" rev="2.4"/> <dependency org="foo-bar" name="superwidgets" rev="1.5"/> </depende

Develop a Scala / Lift web application using Eclipse and Tomcat

So I have spent the past 11 hours now trying to get even the simplest Scala/Lift app to run on Tomcat through Eclipse. Apparently no one is trying to do this or it is the easiest thing in the world so no one has documented how they did it. Creating t

log4j.properties being ignored

I have a Java EE 6 Wicket application deployed with maven using IntelliJ IDEA 9.0.3 on glassfish v3.0.1. I use slf4j-log4j12-1.5.6 with slf4j-api-1.5.8 and log4j-1.2.16 for logging. It was previously working fine when I deployed through netbeans or e

what is wrong with my profiles.xml?

This is a portion of my profiles.xml for mvn: <profilesXml> <profiles> <profile> <id>production</id> <build> <plugins> .. </plugins> </build> </profile> </profiles> </profilesXml> Thi

Exporting Maven properties from Ant code

I've embedded the following code within my POM: <plugin name="test"> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>validat

Common test data for several independent Maven projects

I have a maven project that converts text files of a specific format to another format. For testing I have put in src/test/resources a large amount of test files. I also have another project that uses the first one to do the conversion and then do so

Maven shows some modules labeled as & ldquo; unnamed & quot;

I'm working with maven in a multi module project and it works fine. But when it starts it refers to some projects as unnamed. Why does this happen, and how can I solve it?In every sub module, simply specify a <name>: <project> ... <name>

How can I exclude the source file in mvn deploy?

When I run "mvn deploy:deploy", maven deploys 4 jar files to my internal remote repository. They are: [module-name]-1.jar [module-name]-1.pom [module-name]-1-sources.jar [module-name]-1-tests.jar There are actually more files, such as md5 and sh

Deleting the version number of the file name with Maven

I have a project with 5 modules in maven. Right now, when I do a "mvn clean install", it generates an ear containing the two jars, one war and one sar from the other modules. All the file names contain the version, e.g., projectx-ear-2.0.0.ear,

How to check access to project boundaries in Maven projects

I have a set of Maven projects and I'd like to define access rules. For example, projects Database and Cache may only be accessed by project DataLayer, but not from project UiLayer. I'm speaking in terms of maven projects, but a package level access

Best practices for formatting code on large projects

I maintain the build for a large Java EE/Maven/Hudson/Perforce project with about 20 developers spread across the world. The solution in-place for code formatting is to format the codebase using Jalopy when the developer runs the build, thereby ensur

Deploying an assembly on an FTP server using Maven 2

I have a project divided into several sub-modules (each of them are jar libraries): myapp myapp-commons myapp-client myapp-server I've configured my pom.xml in order to create 3 assemblies (client.zip, oracle.tar.gz and server.tar.gz) that are finall

Maven Exec Plugin does not read the configuration

I'm trying to execute my project using the Maven exec:exec goal and I've tried to configure it with this snippet: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.1.1&l

Differences between Ant and Maven

Could someone tell me the differences between Ant and Maven? I have never used either. I understand that they are used to automate the building of Java projects, but I do not know where to start from.In Maven: The Definitive Guide, I wrote about the

How can I speed up my maven2 build?

I'm using a local artifactory to proxy the request, but the build and test phases are still a bit slow. It's not the actual compile and tests that are slow, it's the "warmup" of the maven2 framework. Any ideas?There are some possibilities to opt