How are binary releases being built?

I’m trying to replicate the upstream build using maven. I’m able to get it to compile (using mvn package), but when using the generated jar, it fails because of the missing dependencies.

I tried using mvn dependency:copy-dependencies to copy the dependencies to the target folder, but that failed for me:
19:26:44,728 INFO

  • [ERROR] Plugin org.apache.maven.plugins:maven-dependency-plugin:2.8 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-dependency-plugin:jar:2.8: 1 problem was encountered while building the effective model

19:26:44,728 INFO

  • [ERROR] [FATAL] Non-parseable POM /home/build/workdir/build/local_maven_repo/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom:
    end tag name must match start tag name
    from line 5 (position: TEXT seen …\r\n… @6:8)
    @ line 6, column 8

Could someone share how the official releases on central.maven.org (i.e., http://central.maven.org/maven2/com/floragunn/search-guard-6/6.3.1-22.3/search-guard-6-6.3.1-22.3.zip) are being built?

For reference, trying to build git tag v6.3.1-22.3.

Thanks!

-Austin

It seems that I had a bad copy of maven-dependency-plugin-2.8.pom. I rm
-rf'ed the 2.8 directory and retried, which worked for
dependency:copy-dependencies.

···

On 07/26/2018 07:33 PM, austin.m.english@sony.com wrote:

I'm trying to replicate the upstream build using maven. I'm able to get
it to compile (using mvn package), but when using the generated jar, it
fails because of the missing dependencies.

I tried using mvn dependency:copy-dependencies to copy the dependencies
to the target folder, but that failed for me:
19:26:44,728 INFO - [ERROR] Plugin
org.apache.maven.plugins:maven-dependency-plugin:2.8 or one of its
dependencies could not be resolved: Failed to read artifact descriptor
for org.apache.maven.plugins:maven-dependency-plugin:jar:2.8: 1 problem
was encountered while building the effective model
19:26:44,728 INFO - [ERROR] [FATAL] Non-parseable POM
/home/build/workdir/build/local_maven_repo/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom:
end tag name </body> must match start tag name <hr> from line 5
(position: TEXT seen ...</center>\r\n</body>... @6:8) @ line 6, column 8

Could someone share how the official releases on central.maven.org
(i.e.,
http://central.maven.org/maven2/com/floragunn/search-guard-6/6.3.1-22.3/search-guard-6-6.3.1-22.3.zip)
are being built?

For reference, trying to build git tag v6.3.1-22.3.

Thanks!
-Austin

--
You received this message because you are subscribed to the Google
Groups "Search Guard Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to search-guard+unsubscribe@googlegroups.com
<mailto:search-guard+unsubscribe@googlegroups.com>.
To post to this group, send email to search-guard@googlegroups.com
<mailto:search-guard@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/search-guard/a2141b60-2fca-42fa-b73a-74a562b17475%40googlegroups.com
<https://groups.google.com/d/msgid/search-guard/a2141b60-2fca-42fa-b73a-74a562b17475%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
Austin English
Austin.M.English@sony.com
Senior Build & Release Engineer
Sony Interactive Entertainment LLC
GPG: 8C5B 6C3A 8207 4209

Hi,

the proper way to build Search Guard as an installable zip is to just activate the enterprise profile by adding, e.g.

mvn clean install -Penterprise

``

Of course, also check that the dependencies in pom.xml are correct.

···

On Friday, July 27, 2018 at 5:58:45 PM UTC+2, austin.m.english@sony.com wrote:

It seems that I had a bad copy of maven-dependency-plugin-2.8.pom. I rm
-rf’ed the 2.8 directory and retried, which worked for
dependency:copy-dependencies.


Austin English
Austin.M.English@sony.com
Senior Build & Release Engineer
Sony Interactive Entertainment LLC
GPG: 8C5B 6C3A 8207 4209

On 07/26/2018 07:33 PM, austin.m.english@sony.com wrote:

I’m trying to replicate the upstream build using maven. I’m able to get
it to compile (using mvn package), but when using the generated jar, it
fails because of the missing dependencies.

I tried using mvn dependency:copy-dependencies to copy the dependencies
to the target folder, but that failed for me:
19:26:44,728 INFO - [ERROR] Plugin
org.apache.maven.plugins:maven-dependency-plugin:2.8 or one of its
dependencies could not be resolved: Failed to read artifact descriptor
for org.apache.maven.plugins:maven-dependency-plugin:jar:2.8: 1 problem
was encountered while building the effective model
19:26:44,728 INFO - [ERROR] [FATAL] Non-parseable POM
/home/build/workdir/build/local_maven_repo/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom:
end tag name must match start tag name


from line 5
(position: TEXT seen …\r\n… @6:8) @ line 6, column 8

Could someone share how the official releases on central.maven.org
(i.e.,
http://central.maven.org/maven2/com/floragunn/search-guard-6/6.3.1-22.3/search-guard-6-6.3.1-22.3.zip)
are being built?

For reference, trying to build git tag v6.3.1-22.3.

Thanks!
-Austin


You received this message because you are subscribed to the Google
Groups “Search Guard Community Forum” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to search-guard+unsubscribe@googlegroups.com
mailto:search-guard+unsubscribe@googlegroups.com.
To post to this group, send email to search-guard@googlegroups.com
mailto:search-guard@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/search-guard/a2141b60-2fca-42fa-b73a-74a562b17475%40googlegroups.com
<https://groups.google.com/d/msgid/search-guard/a2141b60-2fca-42fa-b73a-74a562b17475%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

Lovely, worked perfectly, thanks!

···

On 07/27/2018 04:55 PM, Jochen Kressin wrote:

Hi,

the proper way to build Search Guard as an installable zip is to just
add the enterprise profile by adding, e.g.

>
mvn clean install -Penterprise
>

Of course, also check that the dependencies in pom.xml are correct.

On Friday, July 27, 2018 at 5:58:45 PM UTC+2, austin.m.english@sony.com > wrote:

    On 07/26/2018 07:33 PM, austin.m.english@sony.com > <mailto:austin.m.english@sony.com> wrote:
    > I'm trying to replicate the upstream build using maven. I'm able
    to get
    > it to compile (using mvn package), but when using the generated
    jar, it
    > fails because of the missing dependencies.
    >
    > I tried using mvn dependency:copy-dependencies to copy the
    dependencies
    > to the target folder, but that failed for me:
    > 19:26:44,728 INFO - [ERROR] Plugin
    > org.apache.maven.plugins:maven-dependency-plugin:2.8 or one of its
    > dependencies could not be resolved: Failed to read artifact descriptor
    > for org.apache.maven.plugins:maven-dependency-plugin:jar:2.8: 1
    problem
    > was encountered while building the effective model
    > 19:26:44,728 INFO - [ERROR] [FATAL] Non-parseable POM
    >
    /home/build/workdir/build/local_maven_repo/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom:
    > end tag name </body> must match start tag name <hr> from line 5
    > (position: TEXT seen ...</center>\r\n</body>... @6:8) @ line 6,
    column 8
    >
    > Could someone share how the official releases on central.maven.org
    <http://central.maven.org>
    > (i.e.,
    >
    http://central.maven.org/maven2/com/floragunn/search-guard-6/6.3.1-22.3/search-guard-6-6.3.1-22.3.zip
    <http://central.maven.org/maven2/com/floragunn/search-guard-6/6.3.1-22.3/search-guard-6-6.3.1-22.3.zip>)
    > are being built?
    >
    > For reference, trying to build git tag v6.3.1-22.3.
    >
    > Thanks!
    > -Austin
    >
    > --
    > You received this message because you are subscribed to the Google
    > Groups "Search Guard Community Forum" group.
    > To unsubscribe from this group and stop receiving emails from it, send
    > an email to search-guard+unsubscribe@googlegroups.com
    <mailto:search-guard%2Bunsubscribe@googlegroups.com>
    > <mailto:search-guard+unsubscribe@googlegroups.com
    <mailto:search-guard%2Bunsubscribe@googlegroups.com>>.
    > To post to this group, send email to search-guard@googlegroups.com
    <mailto:search-guard@googlegroups.com>
    > <mailto:search-guard@googlegroups.com
    <mailto:search-guard@googlegroups.com>>.
    > To view this discussion on the web visit
    >
    https://groups.google.com/d/msgid/search-guard/a2141b60-2fca-42fa-b73a-74a562b17475%40googlegroups.com
    <https://groups.google.com/d/msgid/search-guard/a2141b60-2fca-42fa-b73a-74a562b17475%40googlegroups.com>
    >
    <https://groups.google.com/d/msgid/search-guard/a2141b60-2fca-42fa-b73a-74a562b17475%40googlegroups.com?utm_medium=email&utm_source=footer
    <https://groups.google.com/d/msgid/search-guard/a2141b60-2fca-42fa-b73a-74a562b17475%40googlegroups.com?utm_medium=email&utm_source=footer>>.
    > For more options, visit https://groups.google.com/d/optout
    <https://groups.google.com/d/optout>.

    It seems that I had a bad copy of maven-dependency-plugin-2.8.pom. I rm
    -rf'ed the 2.8 directory and retried, which worked for
    dependency:copy-dependencies.

    --
    Austin English
    Austin.M.English@sony.com <mailto:Austin.M.English@sony.com>
    Senior Build & Release Engineer
    Sony Interactive Entertainment LLC
    GPG: 8C5B 6C3A 8207 4209

--
You received this message because you are subscribed to the Google
Groups "Search Guard Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to search-guard+unsubscribe@googlegroups.com
<mailto:search-guard+unsubscribe@googlegroups.com>.
To post to this group, send email to search-guard@googlegroups.com
<mailto:search-guard@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/search-guard/b7fa8742-19ba-4a39-b660-1cbff6aa35da%40googlegroups.com
<https://groups.google.com/d/msgid/search-guard/b7fa8742-19ba-4a39-b660-1cbff6aa35da%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
Austin English
Austin.M.English@sony.com
Senior Build & Release Engineer
Sony Interactive Entertainment LLC
GPG: 8C5B 6C3A 8207 4209