Project

General

Profile

create tarball from git

Justin Karneges
Added over 5 years ago

Hi,

I cloned tigase-server and used "mvn package" to create a jar. How do I now create a release tarball from this?

Thanks.


Replies (10)

Added by Wojciech Kapcia TigaseTeam over 5 years ago

It is explained in article Tigase XMPP Server 5.2.0 and later - compilation and generating distribution packages :

mvn -f modules/master/pom.xml clean install

Added by Justin Karneges over 5 years ago

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Failed to resolve artifact.

Missing:


1) tigase:tigase-acs:jar:2.0.1-tigase-5.2.0-beta3

Try downloading the file manually from the project website.

Then, install it using the command:

  mvn install:install-file -DgroupId=tigase -DartifactId=tigase-acs -Dversion=2.0.1-tigase-5.2.0-beta3 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:

  mvn deploy:deploy-file -DgroupId=tigase -DartifactId=tigase-acs -Dversion=2.0.1-tigase-5.2.0-beta3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:

    1) tigase:tigase-server-dist:pom:5.2.0-beta3

    2) tigase:tigase-acs:jar:2.0.1-tigase-5.2.0-beta3

1 required artifact is missing.

for artifact:

tigase:tigase-server-dist:pom:5.2.0-beta3

How do I resolve this?

Added by Wojciech Kapcia TigaseTeam over 5 years ago

artifact tigase-acs wasn't prepared to be available in public maven repository when we released beta3 version thus failed build. It should be working with any subsequent SNAPSHOT version of Tigase and any subsequent release (beta or stable).

Added by Justin Karneges over 5 years ago

I prefer being able to work from git in case I make any changes and need to track them. What do you suggest? Is there a way I can extract the tigase-acs files from a tigase snapshot and insert them into my local git environment so that distribution package generation succeeds?

Added by Wojciech Kapcia TigaseTeam over 5 years ago

No, it looks like you are trying to build from git tag tigse-5.2.0-beta3 for which there was a depencency on tigase:tigase-acs:jar:2.0.1-tigase-5.2.0-beta3 which was not released. Simply checking out master of tigase-server-5.2.0 should work as it has depencency on tigase:tigase-acs:jar:2.0.1-SNAPSHOT, which in turn is available in maven repository and should be downloaded.

Added by Justin Karneges over 5 years ago

I am using master branch, latest commit 28e0f557b8109b8991e5f3fc59035817a7a34540

Added by Wojciech Kapcia TigaseTeam over 5 years ago

One clarificiation: I've enabled deployment of tigase-acs after your post so please try now (apologies for confusion). Using -U flag for mvn may be needed to update dependencies from repository.

Added by Justin Karneges over 5 years ago

Okay, I ran mvn with -U and now it reports different missing files:

1) tigase:licence-lib:jar:1.0.0-SNAPSHOT

2) tigase:tigase-stats-collector-library:jar:1.0.0-SNAPSHOT

3) tigase:tigase-stats-collector-provider:jar:1.0.0-SNAPSHOT

Added by Wojciech Kapcia TigaseTeam over 5 years ago

It turned out those were missing from repositories as well (we have split regular and SNAPSHOT maven repository and some artifacts were in one and the other in another). I've updated all dependencies, re-deployed them and configured our CI to do so daily. Should work now.

Added by Justin Karneges over 5 years ago

It works! Thanks.

    (1-10/10)