Questions tagged [maven-clean-plugin]

27 questions
0
votes
1 answer

Maven issue in Amazon workspace: Unknown host uk.maven.org`

How to resolve the below issue in Amazon workspace? I tried all the sources in Stack overflow, but not resolved while doing Maven clean/install: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be…
0
votes
0 answers

Why does Maven clean remove my codes that I have coded?

Background: I am using an appian-plugin where Java is the main language to do customizations. I have inserted codes into a class that belongs to the plugin working space and whenever I maven clean install, at the clean process, my codes will be…
Marcus Moo
  • 196
  • 1
  • 2
  • 20
0
votes
1 answer

What is the difference between mvn pre-clean / clean / post-clean?

what is the difference between these 3 commands: mvn pre-clean / clean / post-clean? Pre and post are unusual to be used. We go straight forward with mvn clean but why?
35Zoll
  • 23
  • 3
0
votes
3 answers

Maven clean failing to delete files

Attempting to configure the maven clean plugin to remove additional directories in my project but it is not working properly. Here is a trivial reproduction using maven 3.5. Get started with the simple demo app:…
djthoms
  • 3,026
  • 2
  • 31
  • 56
0
votes
0 answers

Maven: Cannot delete filtered resources

Within my pom.xml, I filter some resources and set the output directory ("asciidoc-filtered") to a folder within my /target folder: /target/asciidoc-filtered. After some build steps, I want to delete this "asciidoc-filtered" folder with the…
0
votes
1 answer

Why maven task is giving error with Java 8?

I am using maven to build my application. when I tried to run the clean install it is giving me an error, but it's the same thing working fine on my friend's computer. The difference is I am using java 8 while he is using java 7. Here is my debug…
Nitin
  • 2,701
  • 2
  • 30
  • 60
0
votes
1 answer

Clear local maven repository via maven-plugin on install phase

I'd like to delete the content of my entire repository (.m2/repository) before the installation phase. Of course I don't want to do it by hand so I am looking for a plugin which does the magic. So far I came across maven-clean-plugin and I am trying…
Schütze
  • 1,044
  • 5
  • 28
  • 48
0
votes
1 answer

'mvn clean install': why does 'clean' run after 'install'?

If I run mvn clean install why does maven do the clean after the install? The reason I ask is because I want to grab the generated EAR from the workspace and not the repo location after jenkins has called maven Here's a section of the console…
Mark W
  • 5,824
  • 15
  • 59
  • 97
0
votes
0 answers

Clean lifecycle in Travis CI Maven build

When I review .travis.yml configs I very often see mvn clean verify or mvn clean install. Is there any point in invoking clean lifecycle in the Travis CI builds when it is first invocation of mvn in script? Are there any cases when clean might be…
Michal Kordas
  • 10,475
  • 7
  • 58
  • 103
0
votes
1 answer

How to customize maven-java-doc plugin, that only changed java source code sections will be updated in the complete generated java docfiles?

I have a question concerning the Maven javadoc plugin in Apache Maven. My current configuration allows to create a complete new java doc of my maven project, if the install phase will be executed. If I called the command "mvn clean install", the…
user2504767
0
votes
1 answer

Maven clean not deleting files

I have two files in my directory like this: a.b.so a.so I want to delete only a.b.so. So here is my Maven clean plugin entry in my pom.xml file: maven-clean-plugin
saurav
  • 5,388
  • 10
  • 56
  • 101
-1
votes
1 answer

How to stop Eclipse from recreating files deleted by Maven?

I have a bunch of files which are created during Maven's process-resources phase and cleaned during install phase. This clean-up is performed without trouble when I'm not working in Eclipse. e.g: when I execute mvn clean install on git bash. The…
Razorblade
  • 85
  • 1
  • 2
  • 9
1
2