Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Getting error on artifact deploy

Igor, please let me know what you're looking for.  Deeper in the stack, it only points to my code.  The method that initiates the DefaultRepositorySystem.deploy invocation looks like this:


public void deployArtifact(String groupId, String artifactId, String classifier, String extension, String version, File artifactFile) throws Exception {
    Artifact main Artifact = new DefaultArtifact(groupId, artifactId, "", extension, version, null, artifactFile);
    DeployRequest deployRequest = new DeployRequest();
    deployRequest.addArtifact(mainArtifact);
    deployRequest.setRepository(deploymentRepository);
    repositorySystem.deploy(repositorySystemSession, deployRequest);
}

The deploymentRepository is created the standard way, and has an Authentication object set on it with the proper username and password.

We have a web form to enter metadata about an artifact, and to specify the artifact itself.  It then posts this data (multipart) and saves the uploaded jar file to /tmp on the system.  The interesting thing is that the FNFE is referencing a filename that is of this format:
/tmp/<groupId>/<artifactId>/maven-metadata-<nexusRepoUrl>/.xml.part.lock

The part of the stack under this cause is as follows:
java.io.RandomAccessFile.open
java.io.RandomAccessFile.<init>:243
org.eclipse.aether.connector.basic.PartialFile$LockFile.tryLock:123
org.eclipse.aether.connector.basic.PartialFile$lock:71

Does this help?  Please let me know if I can provide more information.  I have to type all of this by hand. :)

Thanks,
Steve

On Wed, Jan 21, 2015 at 9:31 AM, Igor Fedorenko <igor@xxxxxxxxxxxxxx> wrote:
Unfortunately, this does not provide sufficient information to help you
troubleshoot the problem.

--
Regards,
Igor

On 2015-01-21 9:25, Steve973 wrote:
Igor, thanks for the response.  We develop on an enclave, so I cannot
provide a full stack trace, but I can tell you the aether classes and
line numbers at the top of the stack trace:

DefaultDeployer.upload:447
DefaultDeployer.deploy:329
DefaultDeployer.deploy:245
DefaultRepositorySystem.deploy:413

I am using CentOS 6.5 and this is a remote Nexus-hosted repo that I am
deploying to.

Thanks,
Steve

On Wed, Jan 21, 2015 at 9:18 AM, Igor Fedorenko <igor@xxxxxxxxxxxxxx
<mailto:igor@xxxxxxxxxxxxxx>> wrote:

    Can you provide full stack trace?

    What operating system and filesystem you are using? Is it a remote mount
    by any chance?

    --
    Regards,
    Igor


    On 2015-01-21 9:08, Steve973 wrote:

        Hello.  When I deploy an artifact (done exactly as in the
        examples, but
        without a pom sub-artifact) I get a FileNotFoundException for a file
        ending in .xml.part.lock.  I am using version 1.0.0.v20140518,
        though I
        don't have control over the version that we are using.

        Thanks,
        Steve


        _________________________________________________
        aether-users mailing list
        aether-users@xxxxxxxxxxx <mailto:aether-users@eclipse.org>
        To change your delivery options, retrieve your password, or
        unsubscribe from this list, visit
        https://dev.eclipse.org/__mailman/listinfo/aether-users
        <https://dev.eclipse.org/mailman/listinfo/aether-users>

    _________________________________________________
    aether-users mailing list
    aether-users@xxxxxxxxxxx <mailto:aether-users@eclipse.org>
    To change your delivery options, retrieve your password, or
    unsubscribe from this list, visit
    https://dev.eclipse.org/__mailman/listinfo/aether-users
    <https://dev.eclipse.org/mailman/listinfo/aether-users>




_______________________________________________
aether-users mailing list
aether-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/aether-users

_______________________________________________
aether-users mailing list
aether-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/aether-users


Back to the top