maven-2

Need presentation materials for convincing a customer to use Maven

余生颓废 提交于 2019-12-06 01:31:04
问题 My customer needs a more organized inventory of all 3rd-party libraries (such as JAR files) that are used in production for their projects. I am involved with a number of their Java-based projects. Their inventory has not been consistently maintained in the past and the time has come to account for all the libraries that are currently being used (there are quite a few!) and to enforce a structured process for introducing new libraries into the build environment. I have tried pitching the idea

Maven compiler error

一笑奈何 提交于 2019-12-06 01:27:04
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 to load the mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile' in the plugin 'org

Maven2 Multiproject Cobertura Reporting Problems During mvn site Build

自古美人都是妖i 提交于 2019-12-06 00:26:07
We've got a multiproject we're trying to run Cobertura test coverage reports on as part of our mvn site build. I can get Cobertura to run on the child projects, but it erroneously reports 0% coverage, even though the reports still highlight the lines of code that were hit by the unit tests. We are using mvn 2.0.8. I have tried running mvn clean site , mvn clean site:stage and mvn clean package site . I know the tests are running, they show up in the surefire reports (both the txt/xml and site reports). Am I missing something in the configuration? Does Cobertura not work right with

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

对着背影说爱祢 提交于 2019-12-06 00:13:00
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 user and the others are Windows users. We have worked around this problem by letting Netbeans take care

Maven project variables for dependencies

本秂侑毒 提交于 2019-12-06 00:11:31
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. Pascal Thivent You'll need something like ${project.dependencies[0].artifactId} where 0 is the index

Hibernate confusion. What are the differences between ga, GA and Final Releases? Compatibility? Repository?

元气小坏坏 提交于 2019-12-06 00:07:55
问题 Can anyone please explain: 1. The difference between ga, GA and Final Hibernate releases? 2. Should I use the maven repository or the jboss nexus repository? 3. Why does the latest compatibility matrix (http://community.jboss.org/wiki/HibernateCompatibilityMatrix) not list anything higher than 3.2.6GA? I'm using the following versions and I'm having the hardest time trying to figure out if I should upgrade: <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate</artifactId>

Maven Plugin to automatically generate setters/getters?

偶尔善良 提交于 2019-12-05 23:29:38
Is there a Maven Plugin that will automatically generate setters and getters with the corresponding JavaDocs? I am aware that Eclipse/Netbeans will do this when you tell it to; however, it would be nice for the source to simply contain the skeleton and have Maven or another tool generate the repetitive stuff. I would want to modify the source code so that a source jar can be compiled and used when debugging. Thanks, Walter Dominic Mitchell This isn't necessarily something that you want maven to do for you. It will make working with the code in the IDE harder, as the IDE won't necessarily know

Maven Building Error

こ雲淡風輕ζ 提交于 2019-12-05 23:06:39
When I try to run mvn clean package I am getting the following error Downloading: http://repo.maven.apache.org/maven2/org/apache/maven /plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] YCSB Root ......................................... FAILURE [21.334s] [INFO] Core YCSB ......................................... SKIPPED [INFO] Cassandra DB Binding .............................. SKIPPED [INFO] HBase DB Binding .................................. SKIPPED [INFO]

How to deploy remotely EAR to JBoss 5.1.0.GA using Cargo maven plugin?

你离开我真会死。 提交于 2019-12-05 23:01:10
Has someone successfully deployed EAR remotely to JBoss 5.1.0.GA? My pom.xml configuration is as follows: <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.1-SNAPSHOT</version> <configuration> <container> <containerId>jboss51x</containerId> <type>remote</type> <timeout>600000</timeout> </container> <configuration> <type>runtime</type> <properties> <cargo.remote.username>username</cargo.remote.username> <cargo.remote.password>password</cargo.remote.password> <cargo.hostname>myserver</cargo.hostname> <cargo.servlet.port>8888</cargo.servlet

Maven install-file won't generate pom.xml

回眸只為那壹抹淺笑 提交于 2019-12-05 22:59:44
问题 I've installed some third party jars to my repository using the following command: mvn install:install-file -Dfile=/home/anotherCoder/Downloads/nifty-1.0.jar -DgroupId=nifty-gui -DartifactId=nifty-gui -Dversion=1.0 -Dpackaging=jar However, once I do mvn compile, maven complains that there is no pom file in the repository and attempts to download it, but can't cause it is not published at any remote repository. Here is the exact message from maven: Downloading: http://repo1.maven.org/maven2