You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guillaume Boué (JIRA)" <ji...@apache.org> on 2016/10/08 18:30:20 UTC
[jira] [Commented] (MSHARED-594) NullPointerException is thrown
when trying to install a project without POM file
[ https://issues.apache.org/jira/browse/MSHARED-594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15558482#comment-15558482 ]
Guillaume Boué commented on MSHARED-594:
----------------------------------------
Fixed in [r1763928|http://svn.apache.org/viewvc?view=revision&revision=1763928].
> NullPointerException is thrown when trying to install a project without POM file
> --------------------------------------------------------------------------------
>
> Key: MSHARED-594
> URL: https://issues.apache.org/jira/browse/MSHARED-594
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-artifact-transfer
> Reporter: Guillaume Boué
> Assignee: Guillaume Boué
> Fix For: maven-artifact-transfer-3.0.0
>
>
> When creating in-memory Maven projects with the {{ProjectBuilder}}, it could not have a POM file: the intent is that it only has attached artifacts and only those should get installed.
> As such, the component should not try to install the POM file returned by {{project.getFile()}} when this returns {{null}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Re: [jira] [Commented] (MSHARED-594) NullPointerException is thrown
when trying to install a project without POM file
Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi Buillaume,
On 08/10/16 22:08, Guillaume Bou� wrote:
> Hi,
>
> It is allowed by install:install-file when you set generatePom=false. It
> would install for example a JAR without any POM. It is true that you
> won't be able to depend on the artifact as-is... perhaps we should force
> generatePom=true then?
Haven't thought about that case...
generatePom = true ? may be this is worth to think about it more in detail..
Thanks for explanation..
Kind regards
Karl Heinz
>
> This was a corner-case that I hit for
> https://issues.apache.org/jira/browse/MINSTALL-128, and I wanted to keep
> the current behaviour.
>
> Guillaume
>
> Le 08/10/2016 � 20:38, Karl Heinz Marbaise a �crit :
>> Hi Guillaume,
>>
>> On 08/10/16 20:30, Guillaume Bou� (JIRA) wrote:
>>>> When creating in-memory Maven projects with the {{ProjectBuilder}},
>> > it could not have a POM file: the intent is that
>> > it only has attached artifacts and only those should get installed.
>>
>> Maybe I misunderstand a thing here...
>>
>> But if the project has only attached artifacts and those artifacts
>> will be installed without a POM how should I ever use them ?
>>
>>
>> Kind regards
>> Karl Heinz Marbaise
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [jira] [Commented] (MSHARED-594) NullPointerException is thrown
when trying to install a project without POM file
Posted by Guillaume Boué <gb...@apache.org>.
Hi,
It is allowed by install:install-file when you set generatePom=false. It
would install for example a JAR without any POM. It is true that you
won't be able to depend on the artifact as-is... perhaps we should force
generatePom=true then?
This was a corner-case that I hit for
https://issues.apache.org/jira/browse/MINSTALL-128, and I wanted to keep
the current behaviour.
Guillaume
Le 08/10/2016 � 20:38, Karl Heinz Marbaise a �crit :
> Hi Guillaume,
>
> On 08/10/16 20:30, Guillaume Bou� (JIRA) wrote:
>>> When creating in-memory Maven projects with the {{ProjectBuilder}},
> > it could not have a POM file: the intent is that
> > it only has attached artifacts and only those should get installed.
>
> Maybe I misunderstand a thing here...
>
> But if the project has only attached artifacts and those artifacts
> will be installed without a POM how should I ever use them ?
>
>
> Kind regards
> Karl Heinz Marbaise
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---
L'absence de virus dans ce courrier �lectronique a �t� v�rifi�e par le logiciel antivirus Avast.
https://www.avast.com/antivirus
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [jira] [Commented] (MSHARED-594) NullPointerException is thrown
when trying to install a project without POM file
Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi Guillaume,
On 08/10/16 20:30, Guillaume Bou� (JIRA) wrote:
>> When creating in-memory Maven projects with the {{ProjectBuilder}},
> it could not have a POM file: the intent is that
> it only has attached artifacts and only those should get installed.
Maybe I misunderstand a thing here...
But if the project has only attached artifacts and those artifacts will
be installed without a POM how should I ever use them ?
Kind regards
Karl Heinz Marbaise
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org