You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Dominik Süß <do...@gmail.com> on 2018/10/10 13:06:17 UTC

Failing with internal release for packageinit

Hi everyone,

Karl somehow managed to get
https://github.com/apache/sling-org-apache-sling-jcr-packageinit/ up and
running and added the codebase from whiteboard.
But when I tried to create an internal release I failed with

[ERROR] Failed to execute goal
org.codehaus.mojo:ianal-maven-plugin:1.0-alpha-1:verify-legal-files
(verify-legal-files) on project org.apache.sling.jcr.packageinit: Artifact
does not contain any legal files:
org.apache.sling.jcr.packageinit-0.0.1-T20181010134901-51674eb-javadoc.jar

The problem is that the META-INF directory in the javadoc.jar in contrast
to the jar and sources.jar doesn't contain
the maven-shared-archive-resources (which also contain the LICENSE file).

Does anyone have an idea what's going on? I have nothing javadoc specific
in and have no clue how to fix this.

Cheers
Dominik

Re: Failing with internal release for packageinit

Posted by Robert Munteanu <ro...@apache.org>.
On Wed, 2018-10-17 at 11:55 +0200, Dominik Süß wrote:
> Yes - is this also generated when you generated when you build the
> javadoc
> via javadoc:jar ?
> It somehow isn't for me.

No, the legal files are not included in the javadoc jar when invoking
the goal separately.

I think the reason is that you're invoking various goals + the install
phase, so basically you are piping 4 separate executions instead of a
single one with the same context.

Your example had

$ mvn 
  clean \
  javadoc:jar \
  source:jar \
  install \
  org.codehaus.mojo:ianal-maven-plugin:verify-legal-files

So when the javadoc:jar and source:jar goals have been executed the
process-resource-bundles and remote-resources-custom-notice were not
run. So there is no addition of LICENSE and NOTICE file.

I suggest you use the -Papache-release goal for creating 'proper'
sources and javadoc jars.

Robert

P.S. Please try to not top-post, it makes following the conversation
harder :-)


Re: Failing with internal release for packageinit

Posted by Dominik Süß <do...@gmail.com>.
Yes - is this also generated when you generated when you build the javadoc
via javadoc:jar ?
It somehow isn't for me.

Cheers
Dominik


On Wed, Oct 17, 2018 at 10:48 AM Robert Munteanu <ro...@apache.org> wrote:

> On Mon, 2018-10-15 at 20:06 +0200, Dominik Süß wrote:
> > Hi Robert,
> >
> > I had the feeling that it’s related to dirctly invoking javadoc:jar
> >
> > If you crosscheck the javadoc of your release does it actually
> > contain the
> > license information?
>
> $ jar tf
> target/org.apache.sling.jcr.packageinit-0.0.1-SNAPSHOT-javadoc.jar | grep
> -e LICENSE -e NOTICE
> META-INF/NOTICE
> META-INF/LICENSE
>
> Is this what you were looking for?
>
> Robert
>
>

Re: Failing with internal release for packageinit

Posted by Robert Munteanu <ro...@apache.org>.
On Mon, 2018-10-15 at 20:06 +0200, Dominik Süß wrote:
> Hi Robert,
> 
> I had the feeling that it’s related to dirctly invoking javadoc:jar
> 
> If you crosscheck the javadoc of your release does it actually
> contain the
> license information?

$ jar tf target/org.apache.sling.jcr.packageinit-0.0.1-SNAPSHOT-javadoc.jar | grep -e LICENSE -e NOTICE
META-INF/NOTICE
META-INF/LICENSE

Is this what you were looking for?

Robert


Re: Failing with internal release for packageinit

Posted by Dominik Süß <do...@gmail.com>.
Hi Robert,

I had the feeling that it’s related to dirctly invoking javadoc:jar

If you crosscheck the javadoc of your release does it actually contain the
license information?

Cheers
Dominik

Robert Munteanu <ro...@apache.org> schrieb am Mo. 15. Okt. 2018 um 15:37:

> Hi Dominik,
>
> On Wed, 2018-10-10 at 15:06 +0200, Dominik Süß wrote:
> > Hi everyone,
> >
> > Karl somehow managed to get
> > https://github.com/apache/sling-org-apache-sling-jcr-packageinit/ up
> > and
> > running and added the codebase from whiteboard.
> > But when I tried to create an internal release I failed with
> >
> > [ERROR] Failed to execute goal
> > org.codehaus.mojo:ianal-maven-plugin:1.0-alpha-1:verify-legal-files
> > (verify-legal-files) on project org.apache.sling.jcr.packageinit:
> > Artifact
> > does not contain any legal files:
> > org.apache.sling.jcr.packageinit-0.0.1-T20181010134901-51674eb-
> > javadoc.jar
> >
> > The problem is that the META-INF directory in the javadoc.jar in
> > contrast
> > to the jar and sources.jar doesn't contain
> > the maven-shared-archive-resources (which also contain the LICENSE
> > file).
> >
> > Does anyone have an idea what's going on? I have nothing javadoc
> > specific
> > in and have no clue how to fix this.
>
> I have tried to run
>
>   mvn clean install -Papache-release
>
> which works just fine for me. I have no idea where your problem is
> coming from, sorry.
>
> Robert
>
>

Re: Failing with internal release for packageinit

Posted by Robert Munteanu <ro...@apache.org>.
Hi Dominik,

On Wed, 2018-10-10 at 15:06 +0200, Dominik Süß wrote:
> Hi everyone,
> 
> Karl somehow managed to get
> https://github.com/apache/sling-org-apache-sling-jcr-packageinit/ up
> and
> running and added the codebase from whiteboard.
> But when I tried to create an internal release I failed with
> 
> [ERROR] Failed to execute goal
> org.codehaus.mojo:ianal-maven-plugin:1.0-alpha-1:verify-legal-files
> (verify-legal-files) on project org.apache.sling.jcr.packageinit:
> Artifact
> does not contain any legal files:
> org.apache.sling.jcr.packageinit-0.0.1-T20181010134901-51674eb-
> javadoc.jar
> 
> The problem is that the META-INF directory in the javadoc.jar in
> contrast
> to the jar and sources.jar doesn't contain
> the maven-shared-archive-resources (which also contain the LICENSE
> file).
> 
> Does anyone have an idea what's going on? I have nothing javadoc
> specific
> in and have no clue how to fix this.

I have tried to run 

  mvn clean install -Papache-release

which works just fine for me. I have no idea where your problem is
coming from, sorry.

Robert


Re: Failing with internal release for packageinit

Posted by Dominik Süß <do...@gmail.com>.
Update:
This seems to fail in other locations as well - no clue how this works in
releases but:
mvn clean javadoc:jar source:jar install
org.codehaus.mojo:ianal-maven-plugin:verify-legal-files
on https://github.com/apache/sling-org-apache-sling-installer-core

Leads to the same problem.

Cheers
Dominik

On Wed, Oct 10, 2018 at 3:06 PM Dominik Süß <do...@gmail.com> wrote:

> Hi everyone,
>
> Karl somehow managed to get
> https://github.com/apache/sling-org-apache-sling-jcr-packageinit/ up and
> running and added the codebase from whiteboard.
> But when I tried to create an internal release I failed with
>
> [ERROR] Failed to execute goal
> org.codehaus.mojo:ianal-maven-plugin:1.0-alpha-1:verify-legal-files
> (verify-legal-files) on project org.apache.sling.jcr.packageinit: Artifact
> does not contain any legal files:
> org.apache.sling.jcr.packageinit-0.0.1-T20181010134901-51674eb-javadoc.jar
>
> The problem is that the META-INF directory in the javadoc.jar in contrast
> to the jar and sources.jar doesn't contain
> the maven-shared-archive-resources (which also contain the LICENSE file).
>
> Does anyone have an idea what's going on? I have nothing javadoc specific
> in and have no clue how to fix this.
>
> Cheers
> Dominik
>