maven-3

Check artifacts status on maven local repository

匆匆过客 提交于 2019-12-12 03:56:19
问题 There are any way to check if the artifacts in the local maven repostiry are valid? Some artifacts in my local repostory has a valid name (artifact.jar) but the content is html with error messages (the artifacts were downloaded from codehaus or openqa repositires, offline currently): <html> <head> <title>OpenQA, RIP (2006 - 2013)</title> </head> <body> <h1>Looking for a different OpenQA?</h1> <p> There are a few other projects with similar names. They are not related to this OpenQA but they

Maven - a set-up query

大城市里の小女人 提交于 2019-12-12 03:52:24
问题 Given a group of developers, each one has the following requirements on the respective (local)Windows machines: Through IDEs like Eclipse, STS etc., run Spring, Hibernate etc. projects Quickly build, deploy , run, change if required, rebuild and redeploy(everything, preferably via IDEs) the projects available on Github There are following constraints/objectives : The individual developer machines have restricted or no Internet access The developers must take the required jars from a single

GlassFish 4, no logging framework dependencies is working in pom.xml

两盒软妹~` 提交于 2019-12-12 03:30:30
问题 Each spring mvc project library uses its own logging framework viz. log4j, slf4j, logback, jboss-logging, commons-logging etc. as given below with maven integration. pom.xml <log4j.version>1.6.5</log4j.version> <slf4j.version>1.7.16</slf4j.version> <slf4j.log4j13.version>1.0.1</slf4j.log4j13.version> <logback.version>1.1.2</logback.version> <jboss.logging.version>3.3.0.Final</jboss.logging.version> <commons.logging.version>1.2</commons.logging.version> <dependencyManagement> <dependencies>

type org.osgi.util.tracker.ServiceTrackerCustomizer does not take parameters

僤鯓⒐⒋嵵緔 提交于 2019-12-12 02:28:15
问题 I'm working on osgi application which uses com.ibm.ws.admin.client_8.5.0.jar because I need to use WebSphere with JMX. When I import as dependency this jar I get error in bundle activators: public abstract class AbstractServiceTracker implements ServiceTrackerCustomizer<Object, Object> { ... private ServiceTracker<Object, Object> tracker = new ServiceTracker<>(bc, bc.createFilter(builder.toString()), this); I get error in Netbeans type ServiceTrackerCustomizer does not take parameters and

Maven dependencies with different versions of the same sub-dependency

情到浓时终转凉″ 提交于 2019-12-12 01:48:38
问题 I have this scenario with my Maven dependencies: X1 needs D2.2. Y1 needs Z1 which needs D2.1. If I force everyone to use D2.2, then Z1 fails at runtime because it needs a version of a class in D2.1 (which is no longer in D2.2). If I force everyone to use D2.1, then X1 fails because it needs a newer version of a class, which is now in D2.2. Upgrading Z1 to the latest version has no effect because it still uses D2.1. The same goes for X1 and Y1. How can I make this work? Thanks, Alvaro 回答1: You

share code between projects with maven

穿精又带淫゛_ 提交于 2019-12-12 00:43:00
问题 I have to create 2 projects. For this I will user Spring,JPA,JSF and Maven. My projects will be structures on a 3 layer architecture, so I will have view,service and DAO layers. The persistence layer will be provided by hibernate with JPA2.0. The problem is that this two projects will share a big part of code, basically both projects operates on the same database, and will share the majority of entities, DAO`s and maybe even services. After I googled a little bit i found that this task cand

Are Maven 3 parallel builds stable

泄露秘密 提交于 2019-12-12 00:33:24
问题 I am currently running maven parallel builds using maven 3. mvn -T 2C clean install can some one tell are these are stable or not. 回答1: The parallel build feature per se is pretty stable for me. Just watch out for the plugins that you are using because they need to be thread safe. You will receive a warning if the plugins are not thread safe yet. 来源: https://stackoverflow.com/questions/18589626/are-maven-3-parallel-builds-stable

Error Could not find or load main class

霸气de小男生 提交于 2019-12-12 00:15:31
问题 I have a embedded jetty java application, which starts itself up and serving requests at the mentioned routes. While testing it is working good. Now that I want to deploy this java application via war file it is giving me issues. While running java -jar server--1.0-SNAPSHOT.war : It is giving me error as Error: Could not find or load main class com.server.core.App This one will come after the 1st issue is fixed, how to include all the dependencies into the war file. Here is my pom.xml https:/

ClassFormatError - Surefire?

心已入冬 提交于 2019-12-11 23:51:51
问题 When I attempt to deploy artifacts, I get a ClassFormatError for my projects that do have tests: [INFO] --- maven-surefire-plugin:2.5:test (default-test) @ ssh-exec --- [INFO] Concurrency config is {threadCount=10, parallel=methods, configurableParallelComputerPresent=false} [INFO] Surefire report directory: /home/walterjwhite/storage/projects/software/active/stable/task/impl/ssh-exec/target/surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: Incompatible magic value

Vaadin: Maven: Not start on production mode. Failed to find the bundle manifest file 'frontend://vaadin-flow-bundle-manifest.json'

雨燕双飞 提交于 2019-12-11 23:48:48
问题 Vaadin 12.0.4 Maven 3+ I download simple project from Vaadin's official site https://vaadin.com/start/latest/simple-ui In my Vaadin Maven and Jetty project. In my pom.xml <profiles> <profile> <!-- Production mode can be activated with either property or profile --> <id>production-mode</id> <activation> <property> <name>vaadin.productionMode</name> </property> </activation> <properties> <vaadin.productionMode>true</vaadin.productionMode> </properties> <dependencies> <dependency> <groupId>com