In order to set up the Artifactory build-info integration (
http://wiki.jfrog.org/confluence/display/RTF/Build+Integration) for a
standalone Maven 3 build, please follow these instructions:
(1) First, download the latest version of our Maven injector library from
our public repository:
http://repo.jfrog.org/artifactory/libs-releases-local/org/jfrog/buildinfo/build-info-extractor-maven3/2.0.6/build-info-extractor-maven3-2.0.6-uber.jar
(In the future you can check the latest version of this library here:
http://repo.jfrog.org/artifactory/libs-releases-local/org/jfrog/buildinfo/build-info-extractor-maven3/
)
(2) Install the injector:
Place the Maven3 extractor uber jar in ${MAVEN_HOME}/lib folder
-or-
Add the following line to ${MAVEN_HOME}/bin/m2.conf:
load /path/to/uber.jar
(3) The build-info injector functionality is activated and controlled by
passing properties to the Maven build.
The simplest way to achieve this is to configure all required properties in
a properties file and pass the path of this file as a parameter to Maven:
mvn install *-DbuildInfoConfig.propertiesFile=/path/to/buildinfo.properties*
The minimum required properties are:
org.jfrog.build.extractor.maven.recorder.activate=true
artifactory.contextUrl=http://repohost:8080/artifactory
artifactory.publish.artifacts=true
artifactory.publish.buildInfo=true
artifactory.publish.username=admin
artifactory.publish.password=password
artifactory.publish.repoKey=libs-snapshots-local
artifactory.timeout=300
When using the Artifactory out-of-the-box CI integration (the Jenkins,
TeamCity and Bamboo plugins) you are shielded from changes in property
names. That said, property names have been pretty stable.
Programmatic property file generation is also possible and can be done by
using the org.jfrog.build.client.ArtifactoryClientConfiguration class located
in the client module of the build-info project:
https://github.com/JFrogDev/build-info
Enjoy,
Yoav
On Thu, Apr 12, 2012 at 5:18 PM, Rajwinder Makkar
<[email protected]>wrote:
> Yes , We are using MS Team Foundation Server.
>
> -Ral
>
> On Thu, Apr 12, 2012 at 4:07 AM, Yoav Landman <[email protected]> wrote:
>
>> Are you running Maven builds from MS-TFS?
>>
>>
>> On Wed, Apr 11, 2012 at 10:41 PM, Rajwinder Makkar <
>> [email protected]> wrote:
>>
>>> Hi Yoav,
>>>
>>> Thanks for the information , Currently i am evalutaing the pro version
>>> and given we are using Microsft TFS build server , it is currently not
>>> supported by Artifactory.
>>>
>>> So if you guide me through the process of integrating artifactory ci
>>> plugin that will be really a deal maker.
>>>
>>> Thanks much
>>> Raj
>>>
>>>
>>> On Tue, Apr 10, 2012 at 12:31 AM, Yoav Landman <[email protected]> wrote:
>>>
>>>> Hello Raj,
>>>>
>>>> The license check process relies on the actual real dependencies used
>>>> at build time. To know these dependencies it is required to intercept the
>>>> build as it runs and record this information. This is extremely importnat
>>>> with Maven builds, since pom files include dynamic information (such as
>>>> profiles, properties, version ranges, etc.) that makes it impossible to
>>>> reliably extract this information from deployed poms only.
>>>>
>>>> The Artifactory plugins for CI servers (currently Jenkins, Bamboo and
>>>> TeamCity) provide a convient way to register this integration and record
>>>> the dependencies at the time of build. Moreover, since your final
>>>> distribution will come from a CI build (rather from a dev machine run) the
>>>> process of discovering and notifying about potential license violation is
>>>> tied to the dev-to-build cycle: when a commit triggers a new direct or
>>>> transitive dependency the CI will pick that up and will notify you almost
>>>> instantly. You can then view this information via the UI or query it via
>>>> REST<http://wiki.jfrog.org/confluence/display/RTF/Artifactory%27s+REST+API#ArtifactorysRESTAPI-LicenseSearch>to
>>>> get a license report.
>>>>
>>>> That being said, it is quite easy to replicate the Maven integration
>>>> offered by the Artifactory CI plugins in a standalone build, and we there
>>>> are users who are doing it. So, if you prefer to go this way we can provide
>>>> you the instructions for how achieve this.
>>>>
>>>> Thanks,
>>>> Yoav
>>>>
>>>> On Tue, Apr 10, 2012 at 7:43 AM, Rajwinder Makkar <
>>>> [email protected]> wrote:
>>>>
>>>>> So we are using artifactory to store artifacts produced by maven.
>>>>>
>>>>> We are using artifactory pro version. ( eval ) with 3rd party license
>>>>> control activated.
>>>>>
>>>>> Now i want to run a manual license check on the artifacts present in
>>>>> our repo.
>>>>>
>>>>> The only i can see is if i run the build from one of the supported
>>>>> build servers.
>>>>>
>>>>> Why artifactory cannot run a manual check on the artifacts in a repo
>>>>> wihout a need for first running a build from a supported build server ?
>>>>> How
>>>>> it has any thing to do with build server ? As i can upload artifacts from
>>>>> so many sources and if 3rd party license plugin is installed i just need
>>>>> to
>>>>> run what all artifacts got valid license?
>>>>>
>>>>> Please suggest.
>>>>>
>>>>> -Raj
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Better than sec? Nothing is better than sec when it comes to
>>>>> monitoring Big Data applications. Try Boundary one-second
>>>>> resolution app monitoring today. Free.
>>>>> http://p.sf.net/sfu/Boundary-dev2dev
>>>>> _______________________________________________
>>>>> Artifactory-users mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>>>>
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Better than sec? Nothing is better than sec when it comes to
>>>> monitoring Big Data applications. Try Boundary one-second
>>>> resolution app monitoring today. Free.
>>>> http://p.sf.net/sfu/Boundary-dev2dev
>>>> _______________________________________________
>>>> Artifactory-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Better than sec? Nothing is better than sec when it comes to
>>> monitoring Big Data applications. Try Boundary one-second
>>> resolution app monitoring today. Free.
>>> http://p.sf.net/sfu/Boundary-dev2dev
>>> _______________________________________________
>>> Artifactory-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> For Developers, A Lot Can Happen In A Second.
>> Boundary is the first to Know...and Tell You.
>> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
>> http://p.sf.net/sfu/Boundary-d2dvs2
>>
>> _______________________________________________
>> Artifactory-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users