No. But I do know a Nexus specific url (REST call) which you can use by
populating it with groupId, artifactId and version [1].

/Anders

[1]
https://docs.sonatype.com/display/SPRTNXOSS/Nexus+FAQ#NexusFAQ-Q.HowcanIretrieveasnapshotifIdon%27tknowtheexactfilename%3F

On Fri, May 20, 2011 at 23:02, Freeman, Brian <
[email protected]> wrote:

> Hi,
>
> Sorry to bother everyone, but I've looked online and have been looking at
> the Maven source code for a while and still haven't figured this out.  Any
> help you could give is greatly appreciated!
>
> Here is my issue: I am currently using Maven with Nexus to save our build
> artifacts.  After we create the artifact and it has been deployed out to
> Nexus I would like to run an Ant script that we use to publish the URL as
> part of a build result.
>
> The output from running maven prints the URL several times, for example:
>
> [INFO] --- maven-deploy-plugin:2.5:deploy (default-deploy) @
> PmInetAutoQuoteClient ---
> Uploading:
> http://nexus.mydomain.com/content/repositories/releases/com/mydomain/test/TestProject/1.0.0/TestProject-1.0.0.zip
> Uploaded:
> http://nexus.mydomain.com/content/repositories/releases/com/mydomain/test/TestProject/1.0.0/TestProject-1.0.0.zip(1717
>  KB at 2058.3 KB/sec)
>
> Here is the ant call I'm running, I basically want to replace ${nexusUrl}
> with something like ${project.deploy.url}
>
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <execution>
>                <!-- Adds a link to the deployed zip directory out on Nexus
> -->
>                <id>rtcLinkPublisher</id>
>                <phase>deploy</phase>
>                <configuration>
>                        <tasks>
>                                <taskdef name="linkPublisher"
>
>  classname="com.ibm.team.build.ant.task.LinkPublisherTask">
>                                        <classpath>
>                                                <fileset
> dir="/opt/IBM/jazz/buildsystem/buildtoolkit">
>                                                        <include
> name="*.jar" />
>                                                </fileset>
>                                        </classpath>
>                                </taskdef>
>                                <echo>nexusUrl: ${nexusUrl}</echo>
>                                <!--
>                                        uname/pwd need to be set in your
> settings.xml
>                                        repositoryAddress and
> buildResultUUID are passed in by the
>                                        buildEngine
>                                -->
>                                <linkPublisher
> repositoryAddress="${repositoryAddress}"
>                                        userId="${rtc.username}"
> passwordFile="${rtc.passwordFile}"
>                                        buildResultUUID="${buildResultUUID}"
> url="${nexusUrl}" label="${nexusUrl}"
>                                        failOnError="false" />
>                        </tasks>
>                </configuration>
>                <goals>
>                        <goal>run</goal>
>                </goals>
> </execution>
>
>
> Does anyone have any ideas or know of a way for me to access this URL via
> the POM so I can add it to the ant call?
>
> Thanks,
> Brian
>
>

Reply via email to