maven-2

Is it possible to read a properties file from all .war files deployed in a JBoss container

岁酱吖の 提交于 2019-12-22 17:51:25
问题 I've managed to deploy a .war to the Jboss web container containing and read the pom.properties located under /META-INF/groupid-dir/artifactid-dir/ To access the file I've used the following code inside a JSP in the same war: ServletContext servletContext = getServletConfig().getServletContext(); InputStream in = servletContext.getResourceAsStream("META-INF/maven/groupid-dir/artifactid-dir/pom.properties"); This works just fine. But I want to be able to dynamically read pom.propertes from ALL

Junit fails on french string assertion

霸气de小男生 提交于 2019-12-22 14:03:55
问题 I have a unit test that works well on most machine but one ubuntu box seems to not be able to compare special characters "?". The character itself should be â. On my machine the eclipse console displays it normally which encoding should we be playing with to ensure that this works. The extracted text was wrong expected:<...tons. Il jette le bl[?me sur .... but was:<...tons. Il jette le bl[?me sur ..... The test is ran within Eclipse Juno using Maven 2 using java 1.7 Does anyone have an idea..

What apps have nifty maven poms and are good as examples of maven capabilites

孤街浪徒 提交于 2019-12-22 12:26:09
问题 I'm looking for applications that have "rich" maven pom(s) and can show lot of maven capabilities(plugins). These applications are needed as showcase examples - how fast and how many this can be done with maven and appropriate set of plugins. There are no constraint to technology or application type - it must be opensorce and easy to build. I'm not looking for best one but thouse which are worth to look and build. In yours examples please add comments, what cool features that projects's maven

Maven compiler error

a 夏天 提交于 2019-12-22 11:15:57
问题 Hello I've got a project that builds from my computer just fine, I however encountered this issue in the other environment (server) : ----------------------------------------------------- [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile': Unable

Problems by import of a multiple modules maven 2 project into eclipse workspace

梦想与她 提交于 2019-12-22 11:11:09
问题 I was wondering if someone has experienced the same problem as me and can help me. I have a maven project which contains 6 modules. Some of modules are depending on each other. The project is written in Java and builds to jars, wars and aar. I've been trying to import it to Eclipse with the m2eclipse plug-in. It seems to work fine until the project builds. During the build process I get hundreds of errors complaining about missing Java files which are generated. As I found out eclipse can't

Running IntelliJ inspections via Maven/TeamCity

假装没事ソ 提交于 2019-12-22 10:45:55
问题 I have a Maven project, and I'm trying to configure TeamCity to run IntelliJ's inspections on it. TeamCity's documentation refers me to IntelliJ's documentation, but I didn't find anything useful there. Can you refer me to how do you configure it? 回答1: The documentation was incorrect, you can't reference inspections profile directly from the pom.xml . Thanks for noticing, we've fixed it. In case of the Maven project you need to open it in IDEA, define the inspections profile, export the

Failed eclipse update when trying to install eclipse

纵然是瞬间 提交于 2019-12-22 10:44:28
问题 When trying to install eclipse using the eclipse new software feature, I get this error: Cannot complete the install because one or more required items could not be found. Software being installed: Maven SCM handler for Subclipse (Optional) 0.9.8.200905041414 (org.maven.ide.eclipse.subclipse.feature.feature.group 0.9.8.200905041414) Missing requirement: Maven SCM handler for Subclipse (Optional) 0.9.8.200905041414 (org.maven.ide.eclipse.subclipse.feature.feature.group 0.9.8.200905041414)

Maven project variables for dependencies

房东的猫 提交于 2019-12-22 10:43:40
问题 I have an html file which loads an applet. The html needs to refer to the jar by name, and since maven names it based on the artifactid, version, etc, the html needs to be dynamically updated as the project evolves. It seems like resource filtering is the way to go, but I can't figure out what the variable to interpolate should look like. I'd like something along the lines of ${project.dependencies.myartifactid.version}, but that doesn't seem to be an option and I've had woeful luck googling.

Jetty JNDI error within Maven Jetty Plugin

孤人 提交于 2019-12-22 10:19:47
问题 I am trying to configure a JNDI data source that can be used from an invocation of the Maven Jetty Plugin. I am trying to do this external to the WAR file, so that anyone who might later deploy our webapp with Jetty will not have to edit a configuration file inside the WAR's WEB-INF directory. I created a jetty.xml file as follows: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> <Configure

Glassfish application not working with maven library (gf-client)

梦想的初衷 提交于 2019-12-22 10:09:33
问题 For a school assignment I received a Netbeans project using JNDI and JMS with Glassfish (3 open source edition). All the Glassfish libraries this application is using are referenced by absolute path and all the other libraries (in the "lib" folder) are referenced by relative path. Since my group is working with a version control system the "lib" folder is included in the repository. This works fine because it is a small project. However the Glassfish libraries are problematic as I am a Linux