pom.xml

Non-resolvable parent POM

元气小坏坏 提交于 2020-03-18 05:08:30
问题 I am trying to develop a custom connector for mule by following http://www.mulesoft.org/documentation/display/current/Creating+a+Connector+Project tutorial. As shown in the tutorial, I am creating the project through command line by executing mvn archetype:generate -DarchetypeGroupId=org.mule.tools.devkit -DarchetypeArtifactId=mule-devkit-archetype-cloud-connector -DarchetypeVersion=3.4.3 -DgroupId=org.hello -DartifactId=hello-connector -Dversion=1.0-SNAPSHOT -DmuleConnectorName=Hello

Apache Jersey POST not working when posting JSON

丶灬走出姿态 提交于 2020-03-05 11:46:39
问题 I am using Apache Jersey and trying to POST valid JSON data to the service and it was giving me HTTP 415 error. So with the help of following links I was able to fix this error. Stack Overflow issue for the same error Basically I added some dependencies in pom.xml and some init-params in web.xml explained here This is in answer for above question My method signature @POST @Produces(MediaType.APPLICATION_JSON) @Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) public Response

比较全的pom.xml maven依赖

被刻印的时光 ゝ 提交于 2020-03-02 08:01:32
自行搜索地址: http://mvnrepository.com/tags/maven <?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>jeefw</groupId> <artifactId>jeefw</artifactId> <version>1.0-SNAPSHOT</version> <properties> <spring.version>3.2.8.RELEASE</spring.version> <struts2.version>2.3.16.1</struts2.version> <hibernate.version>4.3.4.Final</hibernate.version> <mybatis.version>3.2.6</mybatis

Maven: Selecting Parent Project Based On Profile

試著忘記壹切 提交于 2020-02-22 07:41:09
问题 I have a maven project - it is a plugin for jenkins. It's parent should be a: <parent> <groupId>org.jenkins-ci.plugins</groupId> <artifactId>plugin</artifactId> <version>1.414</version> </parent> But at the same time this plugin can be also used for hudson, without changing any line of code. But the parent project for it should be: <parent> <groupId>org.jvnet.hudson.plugins</groupId> <artifactId>hudson-plugin-parent</artifactId> <version>2.0.1</version> </parent> Can I specify 2 different

Maven: Selecting Parent Project Based On Profile

柔情痞子 提交于 2020-02-22 07:38:45
问题 I have a maven project - it is a plugin for jenkins. It's parent should be a: <parent> <groupId>org.jenkins-ci.plugins</groupId> <artifactId>plugin</artifactId> <version>1.414</version> </parent> But at the same time this plugin can be also used for hudson, without changing any line of code. But the parent project for it should be: <parent> <groupId>org.jvnet.hudson.plugins</groupId> <artifactId>hudson-plugin-parent</artifactId> <version>2.0.1</version> </parent> Can I specify 2 different

Maven: The packaging for this project did not assign a file to the build artifact

我的梦境 提交于 2020-01-27 08:54:05
问题 I'm using Maven 3.0.3 on Mac 10.6.6. I have a JAR project and when I run the command "mvn clean install:install", I'm getting the error, [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install (default-cli) on project StarTeamCollisionUtil: The packaging for this project did not assign a file to the build artifact -> [Help 1] What does this mean and how can I fix it? Below is my pom.xml. Let me know what other info would be helpful and I'll edit this post.

Maven: The packaging for this project did not assign a file to the build artifact

蓝咒 提交于 2020-01-27 08:53:21
问题 I'm using Maven 3.0.3 on Mac 10.6.6. I have a JAR project and when I run the command "mvn clean install:install", I'm getting the error, [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install (default-cli) on project StarTeamCollisionUtil: The packaging for this project did not assign a file to the build artifact -> [Help 1] What does this mean and how can I fix it? Below is my pom.xml. Let me know what other info would be helpful and I'll edit this post.

Choosing dependency version in maven and maven plugin

社会主义新天地 提交于 2020-01-25 07:25:08
问题 I have a maven plugin which is using hsqldb 1.8.0.10. In my pom.xml from the plugin, it is declared like this: <dependency> <groupId>hsqldb</groupId> <artifactId>hsqldb</artifactId> <version>1.8.0.10</version> </dependency> But if I run that plugin from another maven project, and that project has a newer version of hsqldb (for instance 1.9.0), how can I configure my plugin that he will use the newest version of hsqldb, without changing it's pom.xml? And is it possible to do this the other way

MAVEN BUILD FAILURE - Could not resolve dependencies for project XYZ

只谈情不闲聊 提交于 2020-01-25 02:56:48
问题 I am integrating jersey and spring, for which I have following dependencies, but I am unable to build due to following error: My POM file: <dependencies> <!-- Jersey --> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-server</artifactId> <version>1.8</version> </dependency> <!-- Spring 3 dependencies --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>3.0.5.RELEASE</version> </dependency> <dependency> <groupId>org

Maven: Command line to download the dependencies described in the pom.xml

风流意气都作罢 提交于 2020-01-24 16:16:29
问题 I would like to know the maven command line to download the dependencies described in the pom.xml. It is that : mvn dependency:copy-dependencies ? 回答1: Try the dependency:go-offline goal. It's meant to be used to resolve dependencies to the local repo before using the -o switch to go to offline mode. But the goal itself has no bearing on going offline. The name may be misleading. Goal that resolves all project dependencies, including plugins and reports and their dependencies. Here's the