Comments (6)
I will need a pom that demonstrates this behavior in order to diagnose the problem.
from exists-maven-plugin.
Well the POM belongs to a private project but I'll try to add it the best I can. Be aware that's not exactly the same. I do not think this POM has anything special:
`
4.0.0
<groupId>com.company</groupId>
<artifactId>myproject</artifactId>
<version>1.3.6</version>
<packaging>jar</packaging>
<name>Myproject</name>
<dependencies>
</dependencies>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.8</version>
<configuration>
<projectNameTemplate>MobbLicense-Java</projectNameTemplate>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.honton.chas</groupId>
<artifactId>exists-maven-plugin</artifactId>
<version>0.0.6</version>
<executions>
<execution>
<goals>
<goal>remote</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>releases</id>
<name>Releases</name>
<url>http://myNexus/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>Snapshots</name>
<url>http://myNexus/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
from exists-maven-plugin.
I see no concerns with the attached pom. Are you sure the build is attempting to upload to remote? -- the deploy plugin is attached by default to the deploy phase, which will not be run with 'mvn clean install'
Please run with the -X flag and capture the output. You should see something like the following:
[DEBUG] Configuring mojo org.honton.chas:exists-maven-plugin:0.0.6:remote from plugin realm ClassRealm[plugin>org.honton.chas:exists-maven-plugin:0.0.6, parent: sun.misc.Launcher$AppClassLoader@55f96302]
[DEBUG] Configuring mojo 'org.honton.chas:exists-maven-plugin:0.0.6:remote' with basic configurator -->
[DEBUG] (f) artifact = exists-deploy-it-0.0.6.jar
[DEBUG] (f) mavenProject = MavenProject: org.honton.chas:exists-deploy-it:0.0.6 @ /Users/chas/exists-maven-plugin/src/it/deploy/interpolated-pom.xml
[DEBUG] (f) project = org.honton.chas:exists-deploy-it:0.0.6
[DEBUG] (f) property = maven.deploy.skip
[DEBUG] (f) repository = http://myNexus/nexus/content/repositories/releases
[DEBUG] (f) serverId = with-auth
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@5da7cee2
[DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@2f74900b
[DEBUG] (f) skip = false
[DEBUG] (f) skipIfSnapshot = true
[DEBUG] (f) snapshotRepository = http://myNexus/nexus/content/repositories/snapshots
[DEBUG] (f) snapshotServerId = test
[DEBUG] (f) userProperty = false
[DEBUG] -- end configuration --
[DEBUG] checking for resource at http://localhost:63707/auth/repo/org/honton/chas/exists-deploy-it/0.0.6/exists-deploy-it-0.0.6.jar
http://myNexus/nexus/content/repositories/releases - Session: Opened
http://myNexus/nexus/content/repositories/releases - Session: Disconnecting
http://myNexus/nexus/content/repositories/releases - Session: Disconnected
[INFO] setting maven.deploy.skip=false
from exists-maven-plugin.
Sorry, maybe I didn't explain it correctly. I don't mean that when you execute "mvn clean install" it deploys directly (which it doesn't). What I meant was that, after running "mvn clean install" if you run "mvn deploy" it will override the current file at the remote (even if there are no real changes).
from exists-maven-plugin.
Run “mvn verify -X”. Look at debug output for line that starts with “[DEBUG] checking for resource at”.
Is the artifact at the location which the plugin is checking?
Is there an authentication failure?
from exists-maven-plugin.
Ok, solved. It was failing because of a incorrect configuration in Nexus, sorry for the inconvenience.
from exists-maven-plugin.
Related Issues (20)
- Duplicated results in a multi-project HOT 1
- Make exists goal thread-safe HOT 1
- Authentication not passed properly into wagon when using encryption in settings.xml
- Remote checks fails because of missing security file
- Question : profile activation HOT 1
- SNAPSHOT check exists HOT 2
- The artifact exists, but the plugin says otherwise HOT 2
- Provide option to skip remote check if deploy lifecycle is not executed HOT 1
- Cannot get it to fail as expected HOT 13
- Checking an artifact with pom packaging fails HOT 3
- How to handle .bundle? HOT 2
- Version 0.7.0 doesn't work when using Amazon S3 HOT 8
- Did you intend to abandon Java 8 support? HOT 1
- Check if artifact exists in remote repository not working for test-jar HOT 11
- Version 0.9.0 - cmpChecksum doesn't work when using Amazon S3 HOT 4
- Not detecting artifacts with packaging maven-plugin HOT 2
- Looking for the wrong artifact when using <packaging>content-package</packaging> HOT 2
- failure with `Cannot invoke "String.length()" because "path" is null` HOT 6
- Wrong path in RemoteExistsMojo log printout
- failure when pom packaging HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exists-maven-plugin.