problem about pom.xml-Collection of common programming errors


  • MariuszS
    gradle release publish pom.xml bintray
    I have configured Gradle to publish project artifact using new Maven Publisher Plugin, unfortunately this plugin has problem with dependency in generated pom.xml – dependencies has scope runtime instead of compile.My configuration is like this:apply plugin: ‘maven-publish’publishing {publications {mavenCustom(MavenPublication) {from components.java}}repositories {maven {url “https://api.bintray.com/maven/codearte/public/fairyland”credentials {username = bintrayUserpassword = bintrayKey}}} }Publi

  • Dave Jarvis
    java maven build compilation pom.xml
    BackgroundTrying to add a Java library to the local Maven repository using a clean install of Apache Maven 3.1.0, with Java 1.7. Here is how the Java archive file was added:mvn install:install-file \-DgroupId=net.sourceforge.ant4x \-DartifactId=ant4x \-Dversion=0.3.0 \-Dfile=ant4x-0.3.0.jar \-Dpackaging=jarThis created the following directory structure:$HOME/.m2/repository/net/sourceforge/ant4x/ ??? 0.3.0 ? ??? ant4x-0.3.0.jar.lastUpdated ? ??? ant4x-0.3.0.pom.lastUpdated ??? ant4x??? 0.3.0?

  • shikarishambu

  • Sandiip Patil
    java maven pom.xml
    I am trying to get application’s version and name/artifact-id from server at runtime for the plugin I am developing. I know I can get the details from pom.properties that is generated on the server, using below code java.io.InputStream inputStream = getServletContext().getResourceAsStream(“/META-INF/maven/<application-directory-structure>/pom.properties”); Properties mavenProperties= new Properties(); mavenProperties.load(inputStream ); String version = (String) mavenProperties.get(“vers

  • Andrew Thompson
    java spring maven servlets pom.xml
    I have created a new Spring MVC project using maven-eclipse and the following error is thrown: (I tried some solutions from the stackoverflow which is not working in my case. Some problem with the pom.xml which I could not find. I added provided scope for the servlet-api and tried which was not working either.)SEVERE: Servlet /Remindem threw load() exception java.lang.ClassCastException: org.springframework.web.servlet.DispatcherServlet cannot be cast to javax.servlet.ServletMy pom.xml is as fol

  • Arnaud Gourlay
    maven log4j pom.xml
    i’m building java application and suddenly i found problem with compilation:[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project sonda: Compilation failure: Compilation failure: [ERROR] …./service/UserService.java:[7,23] package org.apache.log4j does not existBut i was building this application before and everything was ok. Additionally, when i run this application under Eclipse using tomcat, it’s running well.In pom i have:&l

  • kyerie
    java maven log4j pom.xml
    Intro: I have several projects: proj-a, proj-b, proj-c, and etc. These projects are connected through their pom.xml in the dependencies.Now my problem is this: proj-a is the main framework project where everything common about all the projects are there. Thus my static log handler is contained in that project. It is referenced now by proj-b and the log handler is accessible but everytime I try to log something, it doesn’t write to the specified file or to the console. I know my configuration is

  • Webby
    java maven pom.xml
    What is the maven dependency for j2ee.jar. I tried doing this way. But still its not working..<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 http://maven.apache.org/xsd/maven-4.0.0.xsd”><modelVersion>4.0.0</modelVersion><groupId>com.datasource.pooling</groupId><artifactId>datasource.pooling</artifactId><version>0.0.1-SNAPSHOT</version&

  • mat_boy
    java maven encoding pom.xml
    I need to specify that File objects created at runtime by my Java application are saved in a specific encoding format (i.e. UTF-8). I read here that I should specify the encoding at runtime when I start the JVM.Since I’m developing a Maven project, can I set up the pom.xml file to specify the encoding? If yes, how?

  • ThinkingStiff
    plugins maven compiler pom.xml system-properties
    We’ve specified a bunch of system properties in our maven compiler plugin definition within pom.xml:<build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>2.3.2</version><configuration><source>1.6</source><target>1.6</target><encoding>${project.build.sourceEncoding}</encoding><systemProperties><systemProperty><key>aKe

  • Saffrey Glover
    java google-app-engine maven-2 maven pom.xml
    I have this declaration in my pom.xml:<repositories><repository><id>jboss-repo</id><name>jboss repository</name><url>https://repository.jboss.org/nexus/content/groups/public</url></repository> </repositories>So, when I try to update my project to use the latest version of the Google App Engine SDK (1.5.3), I get this error message from Maven on the command line:Downloading: https://repository.jboss.org/nexus/content/groups/public/com/go

  • Hans En
    apache maven cxf pom.xml
    I am new to Webservices and I need to know what the pom.xml and log4j.properties files are for in an Apache CXF project. I read the POM is used to represent a Maven project so it holds configuration files, dependencies etc. Is that correct? Why would I use Maven bulid instead ob sinpl runnig it as a Java application. And what is the .properties file for?Thanks for any help.

  • Paulo Silveira
    java maven-2 settings jdk pom.xml
    I am trying to build a Hudson plugin I’ve modified and it requires jdk1.6. This is fine, but I don’t see how I can tell maven where the different jdk is. I’ve found few mentions on the internet but they don’t seem to apply to me. Some suggest adding some config to .m2/settings.xml but I don’t have a settings.xml. Plus, I don’t want to use 1.6 for all maven builds. One kink is I am using mvn in cygwin, if that matters at all. It appears I should be able to make the specification in the project po

  • special0ne
    java build maven compiler-errors pom.xml
    I am newbie to maven and i am having some trouble building my project. i have added the log4j dependency to the pom file<dependency><groupId>log4j</groupId><artifactId>log4j</artifactId><version>1.2.16</version><scope>runtime</scope></dependency>and i am using it in a normal use in one of my classesimport org.apache.log4j.Logger;public class ConnectionPoolImpl implements Runnable, ConnectionPool {static Logger logger = Logger.getLogger(

  • Vigneshwaran
    java maven junit pom.xml maven-surefire-plugin
    I am able to do parallel execution by using <plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><version>2.15</version><configuration><parallel>classes</parallel><forkCount>3</forkCount><reuseForks>true</reuseForks><includes><include>**/Test_package1_*.class</include></includes><testFailureIgnore>true</testFailureIgnore></configur

  • ifischer
    ant properties maven pom.xml
    I have the following use case: My application is started with an Ant Script, which asks the user several questions about the project configuration (database settings etc.). These settings are stored in a properties-file. Then i want to run Maven from within my Ant script by Maven Ant Tasks, which should replace the pre-defined properties in my pom.xml with the properties of the properties-file. I don’t want to change the pom.xml.Is there a way to do this? Thanks in advance!(BTW i already tried a

  • kathyayani
    java maven project pom.xml depends
    I have a project, TestA, that depends on another project, TestB and this is mentioned in the pom.xml. Now, I need to load a few configuration files that are present in TestB from TestA at runtime. Any idea how to do it?

  • bluefoot
    runtime maven editing pom.xml
    I need editing POM at runtime. I used Dom4j for read pom and after that set some data. But i need know if exist another form for to do this. Exist a maven utilities for this?

  • VMaleev
    android maven pom.xml auto-build
    I tried to compile my project with maven. Here’s project structure:Root|—- app|—- testtest – robotium test project.Here’s root pom.xml:<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 http://maven.apache.org/maven-v4_0_0.xsd”><modelVersion>4.0.0</modelVersion><groupId>com.tecomgroup</groupId><artifactId>agregator</artifactId><version>6.

  • kaliatech
    java spring maven jasper-reports pom.xml
    I’m trying to add my spring project the jasper dependency but i’m getting this error below I already tried with diferent versions of jasper and log4j but i cant get it working: I use the latest version of spring and oracle weblogic 11g. This only happens when i add jasper dependency. Anyone had the same problem?<1/Mai/2012 16H10m BST> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: java.lang.ExceptionIn

  • Maciej Ziarko
    spring hibernate struts2 spring-security pom.xml
    Possible Duplicate:”java.lang.NoSuchFieldError: NONE” in hibernate with Spring 3, maven, JPA, c3p0 I am trying a integration of Struts2 + Spring Security3.1.1 + Hibernate 4.1.1While starting my tomcat server I am getting the following error :09 Nov 2012 11:06:52 ERROR context.ContextLoader – Context initialization failed java.lang.NoSuchFieldError: NULLat org.springframework.expression.TypedValue.<clinit>(TypedValue.java:32)at org.springframework.expression.spel.support.StandardEvaluation

  • CreeTar
    exception netbeans maven-2 selenium pom.xml
    i have no clue about Maven and Netbeans, i updated my netbeans and now my test is not working anymore:Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to central (http://repo1.maven.org/maven2): pr-dfs-bank- 00.emea.isn.corpintra.net: Unknown host

  • integsrtite
    maven zip pom.xml maven-assembly-plugin maven-dependency-plugin
    I’m trying to have a Project B pull down (and unpack) a ZIP built by Project A and deployed to a remote repository.The ZIP is created and attached using the maven-assembly-plugin, with packaging type pom:<artifactId>project-a</artifactId> <name>ZIP</name> <description>Used by Project B</description> <packaging>pom</packaging>…<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-assembly-plugin</artifactI

  • j0k
    android maven pom.xml android-maven-plugin
    I have the following problem when running mvn clean install in my android project:[INFO] Scanning for projects… [INFO] [INFO] ———————————————————————— [INFO] Building my-project 3.0-SNAPSHOT [INFO] ———————————————————————— [INFO] [INFO] — maven-android-plugin:2.6.0:generate-sources (default-generate-sources) @ my-project —

  • Daniel
    eclipse maven-2 m2e pom.xml
    In my project (inherited BTW, so some aspects of it are still unknown), under Eclipse/m2e I right-click pom.xml > 1 Maven Build and I get a dialog:Select a launch configuration to run:m2 myproj (1):m2 myproj (2):m2 myproj (3):m2 myproj:But looking at the project’s Properties > Run/Debug Settings, there are no launch configurations at all. None whatsoever. What does that mean?Should I select one of the 4 configurations listed above? If so, which one and why?UPDATE 1: Interestingly, when I right-c