maven-2

GWT, Maven, Spring - Getting com.thoughtworks.qdox.parser.ParseException: syntax error on Maven Build

末鹿安然 提交于 2019-12-11 08:56:14
问题 I am trying to integrate the code from this demo: http://code.google.com/p/gwt-spring-starter-app/ into my main Spring application. I am able to run the gwt-spring-start-app as itself but when I integrate it into an existing Spring app that has a lot of non-GWT classes I am getting the error (on maven build): com.thoughtworks.qdox.parser.ParseException: syntax error I've spent a while searching on this and seems others have the same problem but I just can't comprehend what they say to do to

How to exclude jars from ear

别来无恙 提交于 2019-12-11 08:47:39
问题 I am bundling EAR from a WAR file. The JARS are placed both in WARFile/WEB-INF/lib folder as well as EARFile/lib folder with duplication. Do we need the JARS again in EARFile/lib folder inspite of having in WARFile/WEB-INF/lib? If we do not need in EAR/lib filder, How can we remove them? The EAR file size became double due to duplication JARs presence in both WAR and EAR. Please help me. Thanks 回答1: Good read here on "skinny" wars. Basically, you put the jars in the ear, but not the war files

The eclipse autobuilder often ignore the resource directory

别等时光非礼了梦想. 提交于 2019-12-11 08:36:56
问题 I use eclipse and the maven plugin. I have a big multi-module project (~6 modules in the workspace). I often have the problem that when running my program (jetty:run) my application does not start because resource files are missing. Looking in the target folder, I noticed they haven't been copied. Only "project" "clean" helps in this case. Any idea what is going wrong or where I could start debugging the issue? It really slows down my development. Cheers, Jan EDIT: Upgrade to eclipse Helios

Why is Gin generating source files in the “target/classes” directory?

时光总嘲笑我的痴心妄想 提交于 2019-12-11 08:28:26
问题 I am using Maven to build my GWT project. I am using Gin to generate some boilerplate code: package com.lokur.motd.client.events; import com.gwtplatform.dispatch.annotation.GenEvent; @GenEvent public class EditorChange { } But, when I run "mvn clean install" command, Maven is generating Gin related Java source in the target/classes/com/lokur/motd/client/events directory. Why are there .java files going into the classes directory? I'm using the Maven plug-ins below to generate Java source in

How can I compile and run my Custom Doclet class in my project?

ぃ、小莉子 提交于 2019-12-11 08:09:34
问题 I'm trying to dump all class javadoc comment (preferabbly subclasses of a libraries WebPage class) at compile time into a .properties file in the format classname=comment . So far I have: created doclet class SiteMapDoclet the class is defined to scan all the javadocs in the project and dump them to a .properties file Added the necessary configs to my pom.xml for it to work. Versions: Java 1.6.0.21, Maven 2.2.1 Problem: mvn site returns: Embedded error: Error rendering Maven report: Exit code

osgi spring hibernate virgo example ClassNotFoundException: org.hibernate.cfg.Configuration

让人想犯罪 __ 提交于 2019-12-11 07:42:40
问题 I'm trying to build very simple app that saving data to DB run as osgi bundle (under Virgo). When I try to upload jar to virgo trough webinterface, and get next error. [2011-02-13 23:19:26.317] start-signalling-4 org.eclipse.virgo.medic.eventlog.default DE0006E Start failed for bundle 'com.company.heartbeat' version '0.1.0'. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'beatDao' defined in URL [bundleentry://63.fwk1755147655/META-INF/spring

Transitive dependency not included in war package

北战南征 提交于 2019-12-11 07:19:55
问题 A war project is dependent on com.mycompany:somejarname:1.0. It is dependent on slf4j-log4j12 (this is needed only at runtime by that jar). The packaged war doesn't include slf4j-log4j12- my understanding is that it should be included since because of transitive dependency: war --> somejarname --> slf4j-log4j12. The dependency tree does show the dependency but it is not included in the final war package. [INFO] +- com.mycompany:somejarname:jar:1.0:compile [INFO] | +- common-crypt:common-crypt

How do I set file permissions in Maven POM file

一笑奈何 提交于 2019-12-11 07:17:44
问题 I need to set "execute" permissions on a file which is a part of the WAR project. Can I do this without resorting to Ant script? 回答1: Actually I found the answer in the "Maven: The Definitive Guide": http://www.sonatype.com/books/maven-book/reference/assemblies-sect-filesets.html Strange Google wasn't able to find it. 来源: https://stackoverflow.com/questions/1056403/how-do-i-set-file-permissions-in-maven-pom-file

Maven workspace resolution horked

[亡魂溺海] 提交于 2019-12-11 06:56:21
问题 I'm using m2eclipse to manage maven projects. Somehow I did a bad thing, and now the system is behaving as if workspace resolution is disabled. I have several projects that depend on a main project. This project has a version of 4.0-SNAPSHOT, and all the dependent projects reference it in the dependencies section of their poms. Everything was working fine until I created an entirely new project and mistakenly copied the pom from the main project into the new project. Suddenly, all of the

Maven Failing download the JBoss dependency

喜你入骨 提交于 2019-12-11 06:17:32
问题 Below are my maven settings from behind the proxy User Settings: <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository>D:\path\mvn_repo</localRepository> <pluginGroups></pluginGroups> <proxies> <proxy> <active>true</active> <protocol>https</protocol> <username>myusername<