Compiling artifactory (4.3.2) from source?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling artifactory (4.3.2) from source?

Austin English
Howdy all,

I'm attempting to build artifactory from source, but running into a
lot of issues:

1) Why are there not source releases available? This would make
packaging efforts much easier. I've found the source at
http://subversion.jfrog.org/artifactory/public/, but artifactory is
the only open source project I've worked with that doesn't make source
available with its binary releases.

2) Are there build instructions published anywhere? The best I found
was http://forums.jfrog.org/Building-Compiling-Artifactory-2-0-2-td4945242.html#a4945243,
which points to http://www.jfrog.org/source.php, which is 404. The
current version of that page (https://www.jfrog.com/open-source/)
mentions the SVN repo, but has no instructions or references to how to
build (nor is there anything in the repo AFAICT).

3) A *lot* of jars used are not in
https://repo.maven.apache.org/maven2, meaning I'm having to manually
track them down one at a time and build them manually.

My current issue is:
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/austin/4.3.2/base/api/src/main/java/org/artifactory/api/bintray/BintrayService.java:[21,8]
1. ERROR in /home/austin/4.3.2/base/api/src/main/java/org/artifactory/api/bintray/BintrayService.java
(at line 21)
    import com.jfrog.bintray.client.api.handle.Bintray;
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import com.jfrog.bintray.client.api cannot be resolved

[ERROR] /home/austin/4.3.2/base/api/src/main/java/org/artifactory/api/bintray/BintrayService.java:[230,1]
2. ERROR in /home/austin/4.3.2/base/api/src/main/java/org/artifactory/api/bintray/BintrayService.java
(at line 230)
    Bintray createBintrayClient(BasicStatusHolder status) throws
IllegalArgumentException;
    ^^^^^^^
Bintray cannot be resolved to a type

I've tried to build com.jfrog.bintray.client.api from source and put
the .jar in ~/.m2, which appeared to work. But, I see in the log:
[WARNING] The POM for
com.jfrog.bintray.client:bintray-client-java-service:jar:0.8.2 is
missing, no dependency information available

There was no pom.xml produced by building with gradle, which is what
that project uses:
https://github.com/bintray/bintray-client-java

So, has anyone built this beast _from source_ or can provide any tips?

------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|

Re: Compiling artifactory (4.3.2) from source?

Austin English
On Fri, Dec 18, 2015 at 5:19 PM, Austin English <[hidden email]> wrote:

> Howdy all,
>
> I'm attempting to build artifactory from source, but running into a
> lot of issues:
>
> 1) Why are there not source releases available? This would make
> packaging efforts much easier. I've found the source at
> http://subversion.jfrog.org/artifactory/public/, but artifactory is
> the only open source project I've worked with that doesn't make source
> available with its binary releases.
>
> 2) Are there build instructions published anywhere? The best I found
> was http://forums.jfrog.org/Building-Compiling-Artifactory-2-0-2-td4945242.html#a4945243,
> which points to http://www.jfrog.org/source.php, which is 404. The
> current version of that page (https://www.jfrog.com/open-source/)
> mentions the SVN repo, but has no instructions or references to how to
> build (nor is there anything in the repo AFAICT).
>
> 3) A *lot* of jars used are not in
> https://repo.maven.apache.org/maven2, meaning I'm having to manually
> track them down one at a time and build them manually.
>
> My current issue is:
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] /home/austin/4.3.2/base/api/src/main/java/org/artifactory/api/bintray/BintrayService.java:[21,8]
> 1. ERROR in /home/austin/4.3.2/base/api/src/main/java/org/artifactory/api/bintray/BintrayService.java
> (at line 21)
>     import com.jfrog.bintray.client.api.handle.Bintray;
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> The import com.jfrog.bintray.client.api cannot be resolved
>
> [ERROR] /home/austin/4.3.2/base/api/src/main/java/org/artifactory/api/bintray/BintrayService.java:[230,1]
> 2. ERROR in /home/austin/4.3.2/base/api/src/main/java/org/artifactory/api/bintray/BintrayService.java
> (at line 230)
>     Bintray createBintrayClient(BasicStatusHolder status) throws
> IllegalArgumentException;
>     ^^^^^^^
> Bintray cannot be resolved to a type
>
> I've tried to build com.jfrog.bintray.client.api from source and put
> the .jar in ~/.m2, which appeared to work. But, I see in the log:
> [WARNING] The POM for
> com.jfrog.bintray.client:bintray-client-java-service:jar:0.8.2 is
> missing, no dependency information available
>
> There was no pom.xml produced by building with gradle, which is what
> that project uses:
> https://github.com/bintray/bintray-client-java
>
> So, has anyone built this beast _from source_ or can provide any tips?

Ping. I see that another release was made in the meantime (4.4.0), but
it too fails to build in my environment and also lacks instructions.

Is there an alternative mailing list I should be using (a developer
list, perhaps)?

------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|

Re: Compiling artifactory (4.3.2) from source?

joshuah
Hi Austin,

You may fix the issue by using the following steps:

1. svn co http://subversion.jfrog.org/artifactory/public/trunk/
2. cd trunk/
3. curl -X GET https://bintray.com/repo/downloadMavenRepoSettingsFile/downloadSettings?repoPath=%2Fbintray%2Fjcente... > settings.xml
4. mvn install -Prelease -s settings.xml -Dmaven.repo.local=repo


Best regards,
Joshua
Reply | Threaded
Open this post in threaded view
|

Re: Compiling artifactory (4.3.2) from source?

Austin English
Thanks very much Joshua, that does indeed build for me!

Where is that documented / how should I have known that? I filed
https://www.jfrog.com/jira/browse/RTFACT-8960 for this earlier today.

On Wed, Jan 6, 2016 at 3:50 PM, joshuah <[hidden email]> wrote:

> Hi Austin,
>
> You may fix the issue by using the following steps:
>
> 1. svn co http://subversion.jfrog.org/artifactory/public/trunk/
> 2. cd trunk/
> 3. curl -X GET
> https://bintray.com/repo/downloadMavenRepoSettingsFile/downloadSettings?repoPath=%2Fbintray%2Fjcente...
>> settings.xml
> 4. mvn install -Prelease -s settings.xml -Dmaven.repo.local=repo
>
>
> Best regards,
> Joshua
>
>
>
> --
> View this message in context: http://forums.jfrog.org/Compiling-artifactory-4-3-2-from-source-tp7580679p7580706.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Artifactory-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users

------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users