maven-3

maven can't find archetype in my repository

你说的曾经没有我的故事 提交于 2019-12-21 18:14:31
问题 I'm trying to create my own maven archetype. For now, I'm going through this tutorial [here][1] without success. I'm able to build the archetype project okay, but when I try to generate a project from that archetype I get the error below. Maven can't seem to find the archetype I created . Can any one spot my problem? Is there some other recomended tutorial for createing a maven archetype? Thanks. Maven version 3.0.3 Build Error: AR3Y35-LAPTOP:EclipseWS Albert$ mvn archetype:generate -DgroupId

Bitbucket Pipelines - mvn clean install not working with JavaFX

六眼飞鱼酱① 提交于 2019-12-21 17:04:16
问题 I am using Bitbucket Pipelines for building a project from our university. Here is my configuration from bitbucket-pipelines.yml: image: maven:3.3.9-jdk-8 pipelines: default: - step: script: # Modify the commands below to build your repository. - mvn -f EasyDiet_JavaFX_View/pom.xml clean install And here is some of the compilation error -> relates to JavaFX: ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /opt/atlassian/pipelines/agent

How to populate parameter “defaultValue” in Maven “AbstractMojoTestCase”?

一曲冷凌霜 提交于 2019-12-21 16:56:59
问题 I have a Maven plugin that I am attempting to test using a subclass of the AbstractMojoTestCase . The plugin Mojo defines an outputFolder parameter with a defaultValue . This parameter is not generally expected to be provided by the user in the POM. @Parameter(defaultValue = "${project.build.directory}/someOutputFolder") private File outputFolder; And if I use the plugin in a real scenario then the outputFolder gets defaulted as expected. But if I test the Mojo using the AbstractMojoTestCase

How to configure embedded OpenEJB container for tests properly?

梦想与她 提交于 2019-12-21 15:24:10
问题 This is my SLSB: @Stateless public class MyService { PersistenceContext(unitName = "abc") EntityManager em; public boolean exists(int id) { return this.em.find(Employee.class, id) != null; } } This is my persistence.xml (I'm using Glassfish v3): <persistence> <persistence-unit name="abc"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <jta-data-source>java:/MyDS</jta-data-source> <properties> <property name="hibernate.archive.autodetection" value="class" /> <property name=

maven applying proxy to nonProxyHost

亡梦爱人 提交于 2019-12-21 11:29:58
问题 I have the following proxy set up in my settings.xml file <proxy> <id>optional</id> <active>true</active> <protocol>http</protocol> <username>someusername</username> <password>somepassword</password> <host>some.proxy.host.com</host> <port>5150</port> <nonProxyHosts>localhost|127.0.0.1</nonProxyHosts> </proxy> But it still applies the proxy to my localhost, everytime I have to do something with localhost I have to change active to false. 回答1: According to the docs[1] you can set <useProxy

artifact:install pushes the super-pom instead of the POM I define

别说谁变了你拦得住时间么 提交于 2019-12-21 11:00:13
问题 I have a POM defined in the Ant file, the build works correctly, pulling the correct artifacts from the Repository, however, the artifact:install tasks pushes to 'super-pom' instead of the pom I specify I use the following POM file <project name="my-proj" default="build" xmlns:artifact="antlib:org.apache.maven.artifact.ant"> <!-- Define the Maven tasks --> <path id="mvn.classpath" path="${env.MAVEN_HOME}/lib/maven-ant-tasks-2.1.1.jar" /> <typedef resource="org/apache/maven/artifact/ant/antlib

Maven discovery completed without finding any extensions

放肆的年华 提交于 2019-12-21 09:16:49
问题 I have installed eclipse 4.3 on my system and recently installed the Maven integration plugin. I get the following error: Discovery completed without finding any extensions. Please check your network connection and try again. The catalog url is http://download.eclipse.org/technology/m2e/discovery/directory-1.4.xml Note : No proxies, no network issues 回答1: There is a Java update 1.7.0_45 which fixes that problem. 回答2: I was having the same issue on Mac OS X 10.8.5 with eclipse-kepler and Java

Jenkins Test Result Trend Graph Empty, but Tests Are Run

一世执手 提交于 2019-12-21 07:56:03
问题 Where does the data that produces the "Test Result Trend" graph actually come from? I have a "Test Only" job that produces 2 files in target/surefire-reports. (Produced by maven) Inspecting the files directly shows that the tests are executing and passing. The graph shows successful builds along x-axis but no test results. If I click on a specific build from the project page, it shows "(no tests)" next to the "Test Result" link. Is there some sort of post-processing I need to do on the XML

custom pom.xml filename in maven multimodule

笑着哭i 提交于 2019-12-21 07:27:14
问题 I have a maven3 multimodule project, and for a strange reason i need to customize POM filename for one of my child module (ie: module-pom.xml) Is it possible to configure this in the parent pom ? The strange reason is a bit long to explain sorry, but you will have the plain context. Context I'm working on a closed source project that also use LGPLed projects. this project is called main I want main to declare modules of every projects, closed and opened. The full build should be made with a

Should Maven dependency version ranges be considered deprecated?

筅森魡賤 提交于 2019-12-21 07:23:27
问题 Given that it's very hard to find anything about dependency version ranges in the official documentation (the best I could come up with is http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution), I wonder if they're still considered a 1st class citizen of Maven POMs. I think most people would agree that they're a bad practice anyway, but I wonder why it's so hard to find anything official about it. 回答1: They are not deprecated in the formal sense that they will be