GithubHelp home page GithubHelp logo

Comments (6)

chonton avatar chonton commented on September 24, 2024

I will need a pom that demonstrates this behavior in order to diagnose the problem.

from exists-maven-plugin.

Jaime97 avatar Jaime97 commented on September 24, 2024

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.

chonton avatar chonton commented on September 24, 2024

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.

Jaime97 avatar Jaime97 commented on September 24, 2024

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.

chonton avatar chonton commented on September 24, 2024

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.

Jaime97 avatar Jaime97 commented on September 24, 2024

Ok, solved. It was failing because of a incorrect configuration in Nexus, sorry for the inconvenience.

from exists-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.