Oh that's right. This is something I wanted to look at changing in that
karaf plugin I contribute to. Normally you define artifacts for publishing
via the task that produces them; Gradle will then automatically add that
task as a dep to the publishing related tasks. But Gradle expects the task
to implement certain extra interfaces. So in the short term I just named
the file. Anyway, for now setting up the task deps manually or running the
task directly as I mentioned before should work.
On Fri, May 15, 2015 at 7:12 AM, Steve Ebersole <steve(a)hibernate.org> wrote:
Hmm I might not have set up the task deps properly for the task that
generates that file. It should depend on the hibernate-osgi jar task. You
can try setting the deps or you can try running the task directly. It's
called something like generateKarafFeatures
On May 15, 2015 6:52 AM, "Sanne Grinovero" <sanne(a)hibernate.org> wrote:
> I need to build local snapshots of ORM to test things with Hibernate
> Search, but invoking "publishToMavenLocal" produces an error on the
> OSGi module:
>
> FAILURE: Build failed with an exception.
> * What went wrong:
> Execution failed for task
> ':hibernate-osgi:publishMavenJavaPublicationToMavenLocal'.
> Failed to publish publication 'mavenJava' to repository 'MavenLocal'
> > Invalid publication 'mavenJava': artifact file does not exist:
>
>
'/home/sanne/workspaces/hibernate/hibernate-core-parent/hibernate-osgi/target/karafFeatures/hibernate-osgi-5.0.0-SNAPSHOT-karaf.xml'
>
> All I know is that indeed that file isn't there.
>
> I tried to workaround the problem by deploying a snapshot to Nexus,
> but that failed with a similar error.
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/hibernate-dev
>