maven-2

Maven: How to create assembly with snapshot artifacts without timestamps file name?

ε祈祈猫儿з 提交于 2019-12-03 04:44:26
问题 I've a repository containing snapshot artifacts with timestamps. I want to create an assembly, that contains the dependencies. This works fine. But the artifact names contains the timestamp. So i wonder how to remove the timestamp from filename for the assembly only. I've used this dependencySet : <outputFileNameMapping>${artifact.artifactId}-${artifact.version}.${artifact.extension}</outputFileNameMapping> But version seams to contain already the timestamp. So is there any chance to get a 1

Publish a library to maven repositories

隐身守侯 提交于 2019-12-03 04:43:04
问题 I have a stable opensource library and was wondering how (and if) I can publish my lib to maven official repositories so people can include it in their pom.xml files and get the dependency downloaded automatically. 回答1: The process to get your library in the central repostiory is documented in the Guide to uploading artifacts to the Central Repository. In short, the new process is to get your project hosted by one of the approved Forges that will be synced with central, the Maven folks don't

Maven:Non-resolvable parent POM and 'parent.relativePath' points at wrong local POM

China☆狼群 提交于 2019-12-03 04:39:14
I am using maven 3 to run the application but I am getting the following error: [ERROR] The build could not read 1 project -> [Help 1] org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM: Failure to find com.topdesk:tis-parent:pom:3. 4 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 3, column 11 at org.apache.maven

Maven or Ivy for Managing Dependencies from Ant?

这一生的挚爱 提交于 2019-12-03 04:13:39
问题 I was wondering about the best way to manage projects dependencies from ant. What are the pros and cons of the Maven Ant task and of Ivy? 回答1: Since what you're wanting to do is add dependency management to an existing Ant project, that's precisely what Ivy's designed to do. Dependency management is a big part of Maven, but far from all of it. Maven is more of a project-oriented tool that does several other things in addition to dependencies. It would be worth considering if you were planning

How to create new Eclipse RCP project using Maven?

為{幸葍}努か 提交于 2019-12-03 03:57:06
How to create new Eclipse RCP project using Maven ( preferably m2eclipse )? I read that there's plug-in for Maven that have idea about Eclipse. ( Maven Eclipse Plugin ) And then it looks like I need to find some Maven Archetype to create Eclipse RCP project, but I could not. At this point I am in doubt if I go right way. I just want to use maven dependencies resolution and other features in my RCP application development. P.S. I found that it is possible to "Enable Dependency Management" via m2eclipse. The other option is to make 2 project: maven project and Eclipse RCP project that will

Create a GWT Maven Project

 ̄綄美尐妖づ 提交于 2019-12-03 03:47:50
I'm trying to create a new project with Eclipse in order to create GWT application under maven 2 system. I have create the project with the follow mvn command mvn archetype:generate -DarchetypeRepository=repo1.maven.org -DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersion=2.3.0 I have installed the follow eclipse plugins: * m2eclipse * egit * gwt plugin Here my POM file: <?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

Declare dependency in <dependencyManagement> section even if dependency not used everywhere?

百般思念 提交于 2019-12-03 03:47:41
问题 We're using maven 2.1.0. I have multiple modules that are completely separate, but still have many common dependencies. Like log4J, but some modules don't need it. I am wondering if it is a good idea to declare all common dependencies in one parent file in the <dependencyManagement> section or is there a better way to deal with this? A follow up question about <dependencyManagement> . If I declare Log4J in the <dependencyManagement> section of the parent and a sub project does not use it,

How to use Maven in my Java Project and Why?

人盡茶涼 提交于 2019-12-03 03:47:23
问题 I am trying to figure out the use of Maven and I got many articles describing its features and uses. But I am just not able to understand the actual use of Maven from productivity standpoint. From what I am used to in our school projects was just create a new Java project in Eclipse, write your Code, create a .war (if web-based) and paste the code to the webapps folder of Tomcat and start the server! So, Where does Maven come into picture? I have used Ant and I understand Ants benefit of a

Jenkins time-out while fetching from Github in 10 mins.

旧街凉风 提交于 2019-12-03 03:43:32
问题 I've stuck with this issue while configuring Jenkins for Nightly build. Please note that the repository project "project1" is large and is about 900MB. Please let me know how should I go around this problem. Started by user anonymous Building in workspace C:\Users\user1\.jenkins\jobs\Nightly Build\workspace Fetching changes from the remote Git repository Fetching upstream changes from git@github.com:MyOrg/projectgroup/project1 ERROR: Timeout after 10 minutes FATAL: Failed to fetch from git

Reading a file from a jar, or anywhere on the classpath?

青春壹個敷衍的年華 提交于 2019-12-03 03:40:54
I'm trying to build an application that builds a resource file into a jar, but I'd like to have the project runnable within eclipse. I have a basic maven 2 structure for my project, and I'm unsure how to read in the file such that it's found and used when run from the JAR or from within eclipse. Thought? Structure: src/main/java src/main/resources/file.txt Current reading method: getClass().getResourceAsStream("/file.txt") Is there reading method that will pick up src/main/resources/*, as well as the root level of the JAR (where resources are deployed)? I don't understand your problem.