Maven 2.x Source Plugin

Don't add a source jar file for packaging pom

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: 2.1.1
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    1

Description

Don't add a source jar file for packaging pom

Activity

Hide
Alexandre Navarro added a comment -

Same for test source file.

Show
Alexandre Navarro added a comment - Same for test source file.
Hide
Wendy Smoak added a comment -

Not sure this is correct – a project with a packaging of 'pom' may actually contain source code.

Show
Wendy Smoak added a comment - Not sure this is correct – a project with a packaging of 'pom' may actually contain source code.
Hide
Alexandre Navarro added a comment -

I don't think so.
A packaging pom is just a reactor pom (so no source inside) or a parent pom (no source also inside).

I added sources plugin in a parent in my enterprise to force project to add sources jar, useful to debug but it is so painful to have source or test jar where there is no jar.

Show
Alexandre Navarro added a comment - I don't think so. A packaging pom is just a reactor pom (so no source inside) or a parent pom (no source also inside). I added sources plugin in a parent in my enterprise to force project to add sources jar, useful to debug but it is so painful to have source or test jar where there is no jar.
Hide
Benjamin Bentmann added a comment -

The attached demo project has "pom" packaging and doesn't produce any source JARs for me.

Show
Benjamin Bentmann added a comment - The attached demo project has "pom" packaging and doesn't produce any source JARs for me.
Hide
Alexandre Navarro added a comment -

It is strange but it seems to work at home. I will retest at work next week.
Sorry, but I think the problem is not on source-plugin but it jar-plugin for test jar (after a quick test).

Show
Alexandre Navarro added a comment - It is strange but it seems to work at home. I will retest at work next week. Sorry, but I think the problem is not on source-plugin but it jar-plugin for test jar (after a quick test).

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: