maven-2

loader constraint violation [duplicate]

不问归期 提交于 2020-01-20 04:27:04
问题 This question already has answers here : java.lang.LinkageError: javax.servlet.jsp.JspApplicationContext.getExpressionFactory (6 answers) Closed 3 years ago . I encountered the problem of having the same .jar (for my case, el-api.jar v2.1)twice for one project, hence, the following error stack when I try to run my project using Tomcat 6. WARNING: Unexpected error forwarding to login page javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving

Finding the right version of the right JAR in a maven repository

让人想犯罪 __ 提交于 2020-01-20 00:45:28
问题 I'm converting a build that has 71 .jar files in its global lib/ directory to use Maven. Of course, these have been pulled from the web by lots of developers over the past ten years of this project's history, and weren't always added to VCS with all the necessary version info, etc. Is there an easy, automated way to go from that set of .jar files to the corresponding <dependency/> elements for use in my pom.xml files? I'm hoping for a web page where I can submit the checksum of a jar file and

Testing against Java EE 6 API

有些话、适合烂在心里 提交于 2020-01-18 21:35:53
问题 I write an addition to JAX-RS and included the Java EE 6 API as a Maven dependency. <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> <scope>provided</scope> </dependency> Then I have a little test case: @Test public void testIsWriteable() { class SpecialViewable extends Viewable { public SpecialViewable() { super("test"); } } FreeMarkerViewProcessor processor = new FreeMarkerViewProcessor(null); assertTrue(processor.isWriteable(SpecialViewable

Testing against Java EE 6 API

北战南征 提交于 2020-01-18 21:35:30
问题 I write an addition to JAX-RS and included the Java EE 6 API as a Maven dependency. <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> <scope>provided</scope> </dependency> Then I have a little test case: @Test public void testIsWriteable() { class SpecialViewable extends Viewable { public SpecialViewable() { super("test"); } } FreeMarkerViewProcessor processor = new FreeMarkerViewProcessor(null); assertTrue(processor.isWriteable(SpecialViewable

Testing against Java EE 6 API

人走茶凉 提交于 2020-01-18 21:35:28
问题 I write an addition to JAX-RS and included the Java EE 6 API as a Maven dependency. <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> <scope>provided</scope> </dependency> Then I have a little test case: @Test public void testIsWriteable() { class SpecialViewable extends Viewable { public SpecialViewable() { super("test"); } } FreeMarkerViewProcessor processor = new FreeMarkerViewProcessor(null); assertTrue(processor.isWriteable(SpecialViewable

Compilation failure in maven

空扰寡人 提交于 2020-01-17 12:23:27
问题 I don't know why and already read many articles about this. But I set every part related the setting java version to 1.7. But It still occurs the error [WARNING] The requested profile "anyframe" could not be activated because it does not exist. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project faro-jpa: Compilation failure: Compilation failure: [ERROR] /D:/workspace/camel/faro-jpa/src/main/java/com/sds/redca/hub/admin/module

maven-jetty-plugin question

家住魔仙堡 提交于 2020-01-17 01:21:41
问题 I need to start jetty before module tests. Example: <?xml version="1.0" encoding="UTF-8"?> <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>jetty-test</groupId> <artifactId>jetty-test</artifactId> <version>1.0</version> <packaging>war</packaging> <build> <extensions> <extension> <groupId>org

Why can't I run the example from storm-starter using this command?

强颜欢笑 提交于 2020-01-15 15:28:54
问题 I've have had no experience using Storm or Maven before, and I'm working on my starter project. When I compile the starter project uploaded on the git website using the command given there i.e. this: mvn compile exec:java -Dexec.classpathScope=compile -Dexec.mainClass=storm.starter.ExclamationTopology I can run the Exclamation topology class, but when I use this command: java -cp ./target/storm-starter-0.0.1-SNAPSHOT-jar-with-dependencies.jar storm.starter.ExclamationTopology I can't run it.

How to deploy maven artifacts if they are not present in the central repository

谁都会走 提交于 2020-01-15 12:07:01
问题 What would be the mechanism to deploy rar artifacts if they are not present in the repository. (e.g. I would like to deploy jackrabbit to my j2ee application, but it is not available as part of the maven repositories. Should I have to store the binary locally in SVN and use the antrun plugin to copy it? 回答1: A more specific answer to your question however is that Jackrabbit is available in the central repository: http://repo2.maven.org/maven2/org/apache/jackrabbit/jackrabbit-jca/2.0.0/ You

How to deploy maven artifacts if they are not present in the central repository

和自甴很熟 提交于 2020-01-15 12:05:11
问题 What would be the mechanism to deploy rar artifacts if they are not present in the repository. (e.g. I would like to deploy jackrabbit to my j2ee application, but it is not available as part of the maven repositories. Should I have to store the binary locally in SVN and use the antrun plugin to copy it? 回答1: A more specific answer to your question however is that Jackrabbit is available in the central repository: http://repo2.maven.org/maven2/org/apache/jackrabbit/jackrabbit-jca/2.0.0/ You