0
votes
0answers
2 views

Error while deploying Uberfire webapp

I am using Jboss 7.1 to deploy the uberfire webapp project. To start with using Uberfire. I am able to build the war using the uberfire showcase source code, while trying to deploy the same on jboss ...
0
votes
0answers
7 views

Extract all classes under in “model” packages to a separate Maven module

I have a maven module with a src directory that looks like this: src/ main/ foo/ model/ ModelA.java bar/ model/ ModelB.java What is the easiest way to extract all ...
0
votes
1answer
6 views

Sharing model classes in a maven module between apps

I have a webapp with model classes containing Hibernate annotation which defines the database properties (e.g. @Column, @Entity, etc). I'm creating a new app that writes to the same database. Is it a ...
0
votes
0answers
11 views

Installing Maven Plugins

I have an instruction manual with just the following picture. I figured it required the following plugin after searching which is a maven plugin. I have already installed maven ...
0
votes
0answers
4 views

How to use Perf4J with Profiled annotation in Gradle project?

I have a Java Gradle project for which I am trying to use Perf4J. I found some examples of Perf4J only Maven. So, I modified one and ran it. Here is the Java class and Maven build file that works. ...
0
votes
1answer
23 views

Java maven build failure with source 1.7 (or 7)

I am upgrading my java 6 code to java 7. Have updated JAVA_HOME to point to JDK 1.7 on OS X 10.9. The code is not using any Java 7 features yet. When I run the build "mvn clean install" the build ...
-1
votes
0answers
10 views

How to verify transitive dependencies of different versions?

You're probably familiar with this problem: library A depends on library X-1.0, and library B depends on library X-1.1. Depending on the conflict manager, one of the two versions will be selected. ...
0
votes
0answers
10 views

how to install maven plugin for Jboss Developer Studio 4

I could not find the option to create to Maven project in my Jboss EAP 4.1 server. I am guessing, I should install the maven plugin to work with this. Please let me know how to install the maven ...
-1
votes
0answers
11 views

Hadoop: Set up and run Hadoop environment from source code? [on hold]

Im looking to make changes to the Hadoop source code. I have downloaded the code, built it for eclipse using mvn and imported all the projects in to eclipse where I have them building without any ...
1
vote
1answer
7 views

What Maven Dependencies to use Swagger with DropWizard 0.7.0

I have an existing dropwizard 0.7.0 service which I would like to document using Swagger. I am using the followind dependency for swagger from ...
1
vote
1answer
25 views

Make Maven child poms have same version number as parent?

I have a multi-module (aggregator) Maven project that also inherits properties from the parent pom. So in my parent pom.xml I have this: <groupId>com.something.project</groupId> ...
0
votes
0answers
40 views

Why do I get `java.lang.NoClassDefFoundError: scala/Function1` when I run my code in ScalaIDE?

Here is a simple test I'm using to invoke a Scala method from Java: public static void main(String args[]) { java.util.Map<String, java.util.List<String>> rec = ...
2
votes
1answer
22 views

Unable to shade jar with maven (INVOKESPECIAL/STATIC)

The full error message: Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.3:shade (default) on project --: Error creating shaded jar: INVOKESPECIAL/STATIC on interfaces require ...
0
votes
1answer
10 views

Exception org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class

I have been struggling with this error for quite few days. I have a maven based project in eclipse. I am trying to deploy the application in Tomcat. My versions are : Java : JDK 1.7.0_55 Eclipse : ...
1
vote
0answers
12 views

clear text password issues with Jenkins m2 release plugin or maven release plugin

while doing a maven-release using Jenkins-m2-release plugin the build job is creating a release.properties file which displays SCM connection information like URL to connect to, location of the tags ...
0
votes
0answers
13 views

Maven can't download scribe 1.3.6 in a project with multiple repositories

I created a simple maven project with a scribe 1.3.6 dependency, in order for that to work I followed intstructions at https://github.com/fernandezpablo85/scribe-java and added following to my pom.xml ...
0
votes
1answer
16 views

What classpath does maven set for different goals?

To what does Maven set the classpath for different goals? My issue: I have a project that I am building in Jenkins. It gets checked out form SVN. As the next thing, a different file is checked out ...
1
vote
1answer
13 views

What's (by default) on the classpath when you run a Jenkins job?

When you kick off a maven test in Jenkins, what is Jenkins putting onto the Java classpath by default?
0
votes
0answers
17 views

Validating Maven pom.xml when boolean is a property

If I have a pom.xml like <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 ...
1
vote
1answer
21 views

Maven: OutOfMemoryError - heap space

Problem: I run mvn clean install -DskipTest and get [ERROR] The system is out of resources. [ERROR] Consult the following stack trace for details. [ERROR] java.lang.OutOfMemoryError: Java heap space ...
-2
votes
1answer
20 views

How to deploy the war file generated by maven on tomcat using eclipse?

I have got a war file generated using Maven and it works perfectly fine when i manually deploy it on the tomcat server. However, the war file was generated using Maven on eclipse and when i try ...
0
votes
1answer
7 views

Automatic build of GAE maven project from eclipse

I have a google app engine project with java using maven, and every time I want to see the changes I made even to a simple jsp or html, I have to run clean install then run the server. I want to know ...
1
vote
1answer
15 views

How to setup Maven POM file with System Properties to inpurt parameters in Java?

I am trying to get input parameters from system properties that I set in maven POM file. my POM look like <systemProperties> <property> <name>number 1</name> ...
0
votes
1answer
15 views

Eclipse does not copy correct jar to server deployment folder with classifier

I'm using latest Eclipse (Kepler, build: 20140224-0627) and a simple jar project. One jar have classifier and another not - like project1-SNAPSHOT0.1.jar and project1-SNAPSHOT0.1-no-cdi.jar. ...
0
votes
1answer
19 views

Spark : java.lang.NoSuchMethodError: com.google.common.collect.Ordering.leastOf(Ljava/util/Iterator;I)Ljava/util/List

I use spark 1.0.0. I execute this code and then get the following exception. I have figured out the exception is caused by takeOrdered(int num, Comparator) method of JavaPairRDD. How can i solve this ...
1
vote
1answer
24 views

Sharing static content and mvc controllers on same path

Apologies if this feels repetitive, I gather alot of people ask about this but I haven't been able to find an answer that works. I have a web-app, built using maven. I use Spring 4 MVC to deliver a ...
0
votes
1answer
12 views

maven compiler error with javac at release:prepare

i am having this issue. I saw many posts like this but i still can't solve this problem. This error appears when i put mvn release:prepare at the shell [INFO] [ERROR] Failed to execute goal ...
0
votes
0answers
18 views

The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files

While trying to compile some project from GitHub, I met the following error The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files If I am not ...
0
votes
0answers
10 views

Project doesn't create pom file though I'm setting maven as project nature

I'm trying to create a java maven project programmatically. I'm setting natures as maven. Code : IProjectDescription description = project.getDescription(); description.setNatureIds(new ...
0
votes
0answers
17 views

conflict in dependencies using Maven for 3rd party library

I'm using Maven in my project and I have a 3rd party library that uses Xerces. In my project there are some other Maven modules which has in their dependencies some others XML libraries. So my problem ...
0
votes
0answers
14 views

Generating classes in eclipse Maven project

I have an existing project and I have imported it to a maven project in Eclipse Juno. The classes are to be generated into the folder target->classes by default settings But i see the java files in ...
0
votes
0answers
12 views

War not running on AWS server

I have created war and tested it on local Apache server. It is running fine on my local server,(Windows system). But when deployed the same war on AWS server which is ubuntu.Then it is throwing some ...
0
votes
0answers
10 views

How see all non threadsafe plugins in maven?

I have read about maven parallel build configuration in this. So how I can display all non thread safe plugins? Is there something like "plugin-not-safe-list" command in maven? REM something like ...
0
votes
2answers
22 views

Maven - No plugin found for prefix 'wildfly' in the current project

Am using Wildfly 8 and I need to use the java batch processor from JSR 352. I downloaded the examples from https://github.com/javaee-samples/javaee7-samples but can't get them to work. On the batch ...
0
votes
1answer
18 views

can't resolve dependency versions conflict (NoSuchMethodError's)

I has a problem with (NoSuchMethodError) using commons-codec lib there are my pom: `http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 <groupId>com.playtika</groupId> ...
0
votes
2answers
32 views

Is writing a library with a dependency on Groovy a good idea?

I am writing a Java library right now that I publish as a Maven artifact and use in a different Java/Groovy project. I was wondering whether in general it is a good idea to write a library that ...
-1
votes
0answers
21 views

Run SSH command from RedHat 5 to Ubuntu 12.04 failed when using remote environment variable

I have 2 Redhat machines and 2 Ubuntu machines . Assume that I have already Maven installed on all machines (Maven install as specifice user , not system-wide),so I can run command which mvn to show ...
0
votes
1answer
12 views

Using Maven Archetype Generate in the same Directory

Is there a way to run mvn archetype:generate and target the current directory instead of creating a directory from the artifactId? The plugin supposedly takes a basedir parameter, but passing in ...
0
votes
3answers
11 views

Error “cannot find symbol” for Class Connection and Class Statement

I'm using GlassFish, Maven and Commmand Line to host my Project. I created a JDBC database in Glassfish and now I'm trying to create a Table in it with this Java-EE file: package edu.ndnu.arivera; ...
0
votes
1answer
22 views

issue with maven dependency?

Trying to execute twilio Java api fails as follows: 18:17:35.270 [main] DEBUG o.a.h.c.protocol.RequestAddCookies - CookieSpec selected: best-match 18:17:35.296 [main] DEBUG ...
1
vote
1answer
18 views

Memory error when running unit tests in SonarQube — forked VM terminated without saying properly goodbye

We are consistently getting out of memory errors when running our sonar analysis. It is intermittent across machines, but seems once you get it, it persists. [ERROR] Failed to execute goal ...
0
votes
1answer
37 views

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2. 3.2:compile (default-compile) on project aopencommon

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2. 3.2:compile (default-compile) on project aopencommon: Execution default-compi le of goal ...
0
votes
0answers
24 views

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2

I know this is due to the fact that one or more jar files are corrupted in my ~/.m2/ repository but i cant actually figure out which jar file(s) has been corrupted or which jars, I am required to ...
1
vote
1answer
21 views

How to build a project that builds into a plugin dependency?

Does someone has a view of what is the right pom “model”, to work on a “jar” artifact that is supposed to be used as a dependency on the execution plugin ? The real case: I want to develop a ...
0
votes
0answers
16 views

ClassNotFoundException: org.jsoup.Jsoup

I use maven to manage my dependencies. My pom.xml clearly contains issued dependency: <dependency> <groupId>org.jsoup</groupId> ...
0
votes
1answer
20 views

Maven Assembly plugin parent descriptor sharing

I have a project, with a parent module. Parent and child both using maven-assembly-plugin. Parent uses it's own descriptor (zip.xml): <?xml version="1.0" encoding="UTF-8"?> <assembly ...
0
votes
0answers
23 views

spring security related jar with maven dependencies

provided in pom.xml spring related security jars. <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-core</artifactId> ...
0
votes
1answer
19 views

Absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application error in tomcat

I just deleted the tomcat server and added it back in Eclipse Kepler and then I am getting this error when I run my project.Before deleting the server there was no issues. Part of my POM contains : ...
0
votes
1answer
22 views

Struts validation error

I am using struts validation for my project.I use maven dependency.I add plug-in for struts validation in struts-config.xml file. When I add value='/org/apache/struts/validator/validator-rules.xml', ...
0
votes
0answers
17 views

Not able to find simple-weather project in sonatype repo

I have learning Maven by going through Maven By Example. In the 4th chapter its asks to generate a Maven project using archetype plugin (Find it here). I have been trying to download the project using ...