Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
181 votes
15 answers
321k views

Deploying Maven project throws java.util.zip.ZipException: invalid LOC header (bad signature)

I am getting the below exception when I run my mvn install. I have even deleted the local repository and ran again getting same exception. [ERROR] Failed to execute goal org.apache.maven.plugins:...
Karthick's user avatar
  • 1,963
135 votes
3 answers
175k views

How to specify maven's distributionManagement organisation wide?

I'm trying to figure out how to organize many (around 50+) maven2 projects, so that they can deploy into a central nexus repository. When using the mvn deploy goal, one does need to specify the target ...
mglauche's user avatar
  • 3,364
134 votes
16 answers
254k views

Error when deploying an artifact in Nexus

Im' getting an error when deploying an artifact in my own repository in a Nexus server: "Failed to deploy artifacts: Could not transfer artifact" "Failed to transfer file http:///my_artifact. Return ...
acimutal's user avatar
  • 2,205
92 votes
3 answers
168k views

repository element was not specified in the POM inside distributionManagement element or in -DaltDep loymentRepository=id::layout::url parameter

I'm having a problem while deploying and here is the error message I get: [INFO] [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ core --- [INFO] -------------------------------------------...
blodrayne's user avatar
  • 1,195
53 votes
11 answers
92k views

maven deploy:deploy-file fails (409 Conflict), yet artifact uploads successfully

NOTE: I now realize that the jar got placed into my repository, but the pom.xml did not. Now, I have another project where the pom.xml fails to get promoted, but the jar is placed in the ...
David W.'s user avatar
  • 106k
52 votes
4 answers
29k views

What is the minimal set of privileges required to deploy artifacts to Nexus 3?

I'm using Nexus Repository Manager 3.1.0-04, and I want to create a user to just have deployment permissions. What are the minimal set of privileges required for that? Right now I created a role nx-...
Jane Wayne's user avatar
  • 8,655
45 votes
7 answers
70k views

sun.reflect.annotation.TypeNotPresentExceptionProxy error when deploy web-ear

When I try to deploy ejd-ear, web-ear on to glassfish server. I added an ejb client dependency in web project. The ejb-ear deploys successfully. But when I try to deploy web-ear, it throws an ...
Oops's user avatar
  • 451
45 votes
5 answers
66k views

How do I include a dependency's test jar into a Maven project's deployment?

I have two projects, foo and foo-web under the com.example group. foo-web depends on foo. To be able to develop the UI part of the application without depending on external services, dummy DAOs were ...
Alex Ciminian's user avatar
42 votes
5 answers
43k views

Maven deploy:deploy using -DaltDeploymentRepository

I have maven projects and I want to deploy my artifacts on internal nexus repository which is configured to have my snapshots and releases on two separate places. So I can not use '...
SJunejo's user avatar
  • 1,336
41 votes
2 answers
67k views

Maven: Trying to Deploy with credentials in settings.xml file

This seemed to be working last week and now it doesn't. We use Artifactory as our Maven repository. I am deploying a jar and pom using the deploy:deploy-file goal Our Artifactory repository requires ...
David W.'s user avatar
  • 106k
41 votes
5 answers
16k views

maven profiles or spring profiles?

a lot java applications are build with maven. maven has Profiles concept, it is really handy to build release package for different environments. e.g. dev/test/prod using different path / jndiname / ...
Kent's user avatar
  • 193k
31 votes
3 answers
54k views

How to configure maven project to deploy both snapshot and releases to Nexus?

How to configure maven project to deploy both snapshot and releases to Nexus? <distributionManagement> <repository> <id>InternalReleases</id> <name>...
Paul Verest's user avatar
  • 62.5k
30 votes
3 answers
27k views

How to skip the release or specific modules in the maven repo

Heyho, I have a maven project with this scructure: parent: List item API module module2 ... module5 test distribution/assembly So first i run the parent module, then I run the module which builds ...
maxammann's user avatar
  • 1,048
29 votes
9 answers
34k views

The username you provided is not allowed to use the text-based Tomcat Manager (error 403) when deploying on remote Tomcat8 using Jenkins

I am trying to deploy a WAR on the remote Tomcat (Remote Machine) using Jenkins deploy to container Plugin. I have done the following configuration in tomcat-users.xml <user username="deployer&...
harshlal028's user avatar
  • 1,579
26 votes
6 answers
24k views

Why can't I deploy from my local repository to a remote Maven repository?

I'm using Maven 3.0.4 and want to deploy something in my local repository to a remote repository, to which I've verified I have access. I'm using the below command … mvn -X deploy:deploy-file -...
Dave's user avatar
  • 17.2k
24 votes
1 answer
16k views

Alpha, Beta, Snapshot, Release, Nightly, Milestone, Release Candidate(RC)... When to use which terminology

As a build, release and deployment engineer, there are multiple types of releases as below: Alpha Beta Snapshot Release Nightly Milestone Release Candidate(RC) [Anything else] Would ...
vijayinani's user avatar
  • 2,574
24 votes
5 answers
25k views

Maven deploy jar with dependencies to repo

I can deploy a jar by using the following in my pom.xml and running mvn deploy: <distributionManagement> <repository> <id>releases</id> <url>http:...
djechlin's user avatar
  • 60.3k
23 votes
11 answers
42k views

Error when I try deploy application to tomcat7 server

I am trying deploy a web application to tomcat7 via eclipse luna, but I am getting this error: Uploading: http://localhost:8080/manager/text/deploy?path=%2Floja [INFO] I/O exception (java.net....
Kleber Mota's user avatar
  • 8,795
23 votes
4 answers
68k views

WARNING The requested profile "projectname" could not be activated because it does not exist

I get this WARNING when I try to build my maven project. I have searched google but with no luck. This is really annoying since I wanna release my project but it wont work with this warning (I think). ...
benskiiii's user avatar
  • 459
22 votes
6 answers
15k views

The simplest way to deploy to production with builds

I must confess I'm new to maven world after years of living in the world of monstrous debuild/ant/makefile chimeric constructions. I just don't have yet that very feeling which helps seasoned ...
shabunc's user avatar
  • 24.3k
22 votes
2 answers
8k views

JBAS015893: Encountered invalid class name

I'm currently cleaning up my Project and related Errors / Warnings a bit. Everytime i deploy my Maven Project to the JBoss AS 7.1.1.Final I get a lot of Warnings. I found a lot of posts / comments ...
dognose's user avatar
  • 20.7k
20 votes
3 answers
21k views

Netbeans Maven Project Not adding Main Class to Manifest

I am having a similar problem to this question. I have tried all the suggestions listed and am still at a loss. My issue is that I am trying to build a maven project and distribute it to other ...
derigible's user avatar
  • 964
20 votes
5 answers
31k views

Jenkins : how to check out artifact from Nexus and Deploy on Tomcat-

I am tying to set up a Jenkins Pipeline. The first stage is done, the code compiles, is tested, inspected and deployed to Nexus. I would like now to make a second stage on the pipeline where the war ...
user1003331's user avatar
20 votes
2 answers
19k views

How to use maven plugin tomcat7:run with multiple contexts (WARs)?

I've been using mvn tomcat7-maven-plugin:run -am -pl :foo successfully to run just a single project at a time in Tomcat like is shown here. Now I'd like to have multiple modules run under the same ...
mckamey's user avatar
  • 17.5k
19 votes
1 answer
26k views

Trying to get Maven to deploy to Artifactory Server

I'm trying to get a project to deploy to our Artifactory repository. The user qazwart is an administrator and has the permission to deploy to the server. I have that user's correct information in the ...
David W.'s user avatar
  • 106k
19 votes
3 answers
13k views

Bundle native dependencies in runnable .jar with Maven

I have a project managed in Maven that has some native dependencies (LWJGL). Everything works fine in development, but now I want to set up Maven so that it will build a runnable .jar file that I can ...
mikera's user avatar
  • 106k
18 votes
1 answer
31k views

Eclipse + Maven + Dynamic Web Project -> Maven overwrites Deployment Assembly

Summary In Eclipse, when I "Maven->Update Project Configuration" "Maven Dependencies" gets removed from the "Deployment Assembly" of my project. Details I started with a pre-configured Eclipse ...
Alex Averbuch's user avatar
17 votes
3 answers
9k views

Maven multi-module deploy to repository only after successful unit tests

Question: What is the best solution for executing a 'mvn deploy' such that the deploy part is only run after all unit tests succeed and no processing steps are duplicated? I was hoping the simple ...
Jared's user avatar
  • 365
17 votes
5 answers
29k views

maven : deploy artifact file name

Hi : Im finding that maven deploys by default change the file name to match the version+artifact id. For example Deploying a jar file, with artifact=A and version=V-0.1 will result in a jar file ...
jayunit100's user avatar
  • 17.5k
17 votes
3 answers
2k views

Combining multiple Maven goals into one transaction (e.g. deploy and site-deploy, what if site-deploy fails?) [closed]

I configured the build server to do clean javadoc:jar deploy site-deploy Now if site-deploy fails (because the site did not build, or somebody used the wrong parent pom), the build server shows a ...
J Fabian Meier's user avatar
16 votes
3 answers
30k views

Maven - deploy dependencies to remote repository

I have a few projects with LOTS of maven dependencies. When I invoke the command mvn deploy (or some variation of it), I would like to not only have the project itself deployed to the remote ...
jacosta's user avatar
  • 447
15 votes
1 answer
31k views

Setting up Maven to allow deployment to different repositories easily

I'm currently working in an environment where I define the rules for a lot of people. We currently use Hudson and Artifactory, and I want to evaluate if the switch to Jenkins and Nexus are worth the ...
mliebelt's user avatar
  • 15.5k
15 votes
2 answers
3k views

Modern alternatives to packaging and deploying enterprise applications? [closed]

What are the modern alternatives to package and deploy server side java software1) in heterogeneous environments2) ? I could not find a lot of coherent or up to date information on the topic but I ...
Johan Sjöberg's user avatar
15 votes
3 answers
930 views

Deploy Only Diffs in Webapp with Maven to Remote Server

I am using cargo:deploy with maven to deploy applications to servers. This works well, but I recently tried using CloudBees. They have a similar plugin for their infrastructure. However, it deploys ...
Mark's user avatar
  • 1,238
14 votes
8 answers
30k views

Maven project in eclipse - deployment assembly fails build

Sorry for being verbose... I have some existing maven projects. I imported them into Eclipse using Maven -> Import existing Maven projects. This gave me 6 individual projects and one project which ...
Vishal's user avatar
  • 1,199
14 votes
1 answer
23k views

Why the snapshot name always has date in its jar file name ? How to remove it

When I deploy jar, maven always add date in its file name, this make the file name repository different from the file in my local. How can I remove the date in file name ? Thanks
zjffdu's user avatar
  • 27.5k
13 votes
3 answers
47k views

JENKINS how to deploy artifacts to maven repo

I use jenkins 1.500 and I looking for plugin that will provide possibility to deploy artifacts to maven repository, in previuos version of jenkins it was possible in post build actions using maven-...
user1013149's user avatar
12 votes
3 answers
10k views

Can I modify the Maven deploy phase to replace the maven-deploy-plugin with my own plugin?

I'm pretty new to Maven... What I'm trying to do is skip the maven-deploy-plugin during the deploy phase, while replacing it with my own plugin (i.e. I'm deploying to a non-repository location). I ...
jbeck's user avatar
  • 2,254
12 votes
2 answers
20k views

maven not picking username for repository from settings.xml

I have this in my ~/.m2/settings.xml: <servers> <server> <username>deployment</username> <password>xxxxxx</password> <id>central&...
praddy's user avatar
  • 121
12 votes
2 answers
6k views

How to exclude one of Maven's lifecycle phase

I have .war file and I need to do "deploy script". Is it possible to do this with maven? Can I execute only deploy phase of lifecycle? Or it will be better to use some other instruments for deployment ...
Sergey's user avatar
  • 1,089
12 votes
2 answers
452 views

Creating a Java application that downloads its own dependencies

I'm interested in how to distribute a Java application that has a lot of dependencies (specified in a pom.xml in Maven). Obviously it would be possible to just package everything in one big .jar file....
mikera's user avatar
  • 106k
12 votes
2 answers
13k views

Jenkins: deploying war files from artifactory

We are using Jenkins to build (maven) & deploy artifacts (JARs & *WAR*s) to an in-house artifactory server (both snapshots and releases). For deployment, currently, we got Jenkins jobs that ...
Rehan's user avatar
  • 156
11 votes
3 answers
17k views

How to deploy the sources file with the jar using deploy:deploy-file

I have the following plugins for creating a -sources.jar and deploying a specific named jar to a repository. <plugin> <groupId>org.apache.maven.plugins</groupId> <...
Yoztastic's user avatar
  • 862
11 votes
1 answer
14k views

Update Nexus repository with local artifacts

i recently downloaded some maven artifacts directly to my local repository (.m2/repository). Now i installed the Nexus Repository Manager and need to fill its storage without to download all the ...
mamuesstack's user avatar
  • 1,161
11 votes
2 answers
49k views

[error]Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy

I've created Maven-project in Intellij Idea and with trying to deploy of application, i've got an error. Help me to solve this problem, please. [INFO] -----------------------------------------------...
user2285891's user avatar
10 votes
1 answer
4k views

Perform a maven deploy-file with gradle

I need to deploy an external zip file to my private maven repository. This file will content my application version release, internally the archive will content the file structure of my application ...
Beto Neto's user avatar
  • 4,042
9 votes
2 answers
18k views

How to solve the error "java.lang.NoClassDefFoundError: Could not initialize class com.google.inject.internal.cglib.core.$MethodWrapper"

thanks for your attention, this is my first post so please be lenient towards me. My problem is a bit strange, I've been deploying my spring boot application on Azure App Service for several months ...
devrol's user avatar
  • 91
8 votes
3 answers
26k views

Running Maven project on Tomcat from Eclipse

I have a Maven Project in Eclipse. I want to deploy it in my local tomcat server and run it like normal J2EE projects. But What i found is in tomcat add/remove projects option, no project is shown. ...
RaceBase's user avatar
  • 18.6k
8 votes
9 answers
26k views

jboss-as-maven-plugin can't deploy to remote JBoss AS7?

I've tried for days to use jboss-as-maven-plugin to deploy web projects to remote JBoss AS7, but it didn't work. Here is my pom.xml: <!-- JBoss Application Server --> <plugin> <...
Junv's user avatar
  • 530
8 votes
1 answer
4k views

Can JRebel redeploy changes in Maven dependencies?

So I have a multi module Maven web app running in eclipse and tomcat with wtp. However the deployment of the application takes some time: building sub modules if changed and starting the application ...
suicide's user avatar
  • 780

1
2 3 4 5
16