You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Christian Schulte <cs...@schulte.it> on 2017/02/20 00:53:59 UTC

Build of maven-dependency-analyzer fails on Windows.

Hi,

I cannot build 'maven-dependency-analyzer' trunk on Windows. Is there
some dependency I could upgrade to get this going? This is what I am
doing locally:

svn checkout ..../repos/asf/maven/shared/trunk/maven-dependency-analyzer
cd maven-dependency-analyzer
mvn verify -Papache-snapshots,run-its

Jenkins build job is here:

<https://builds.apache.org/view/Maven%20Master%20Release%20Status/job/maven-master-release-status-test-shared-windows/>

Regards,
-- 
Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Build of maven-dependency-analyzer fails on Windows.

Posted by Robert Scholte <rf...@apache.org>.
On Thu, 23 Feb 2017 03:08:10 +0100, Christian Schulte <cs...@schulte.it>  
wrote:

> Am 02/20/17 um 18:28 schrieb Robert Scholte:
>> On Mon, 20 Feb 2017 02:17:12 +0100, Christian Schulte <cs...@schulte.it>
>> wrote:
>>
>>> Am 02/20/17 um 01:53 schrieb Christian Schulte:
>>>> Hi,
>>>>
>>>> I cannot build 'maven-dependency-analyzer' trunk on Windows. Is there
>>>> some dependency I could upgrade to get this going? This is what I am
>>>> doing locally:
>>>>
>>>> svn checkout  
>>>> ..../repos/asf/maven/shared/trunk/maven-dependency-analyzer
>>>> cd maven-dependency-analyzer
>>>> mvn verify -Papache-snapshots,run-its
>>>>
>>>> Jenkins build job is here:
>>>>
>>>> <https://builds.apache.org/view/Maven%20Master%20Release%20Status/job/maven-master-release-status-test-shared-windows/>
>>>>
>>>> Regards,
>>>>
>>>
>>> Seems we cannot rename the mvn.bat file to mvn.cmd. Can someone clarify
>>> this, please. Is it "just" our invoker relying on this?
>>
>> Effective pom says maven-invoker-plugin-2.0.0 is used, which is aware of
>> both mvn.bat and mvn.cmd
>>
>> Robert
>
> Can you build the shared trunk on Windows using 3.5.0-SNAPSHOT? I am
> running into issues related to something not finding the mvn.bat file. I
> manually copied the mvn.cmd to mvn.bat and things started to work.
>
> Regards,

Ok, got it. The *unit-tests* were failing due to an ancient version of  
maven-plugin-testing-tools (which is kind of weird, since  
dependency-analyzing should not be aware of plugins...). Easiest fix is to  
ensure that at least maven-invoker-2.2 is used. The project depends on  
Maven-2.0.5 dependencies, so we could also upgrade it all, in which case  
is faces similar issues for these tests as when upgrading plugins[1]
In case of *integration-tests* with maven-invoker-plugin, you can use  
version maven-invoker-plugin:2.0.0

Robert

[1]  
https://cwiki.apache.org/confluence/display/MAVEN/Plugin+migration+to+Maven3+dependencies

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Build of maven-dependency-analyzer fails on Windows.

Posted by Christian Schulte <cs...@schulte.it>.
Am 02/20/17 um 18:28 schrieb Robert Scholte:
> On Mon, 20 Feb 2017 02:17:12 +0100, Christian Schulte <cs...@schulte.it>  
> wrote:
> 
>> Am 02/20/17 um 01:53 schrieb Christian Schulte:
>>> Hi,
>>>
>>> I cannot build 'maven-dependency-analyzer' trunk on Windows. Is there
>>> some dependency I could upgrade to get this going? This is what I am
>>> doing locally:
>>>
>>> svn checkout ..../repos/asf/maven/shared/trunk/maven-dependency-analyzer
>>> cd maven-dependency-analyzer
>>> mvn verify -Papache-snapshots,run-its
>>>
>>> Jenkins build job is here:
>>>
>>> <https://builds.apache.org/view/Maven%20Master%20Release%20Status/job/maven-master-release-status-test-shared-windows/>
>>>
>>> Regards,
>>>
>>
>> Seems we cannot rename the mvn.bat file to mvn.cmd. Can someone clarify
>> this, please. Is it "just" our invoker relying on this?
> 
> Effective pom says maven-invoker-plugin-2.0.0 is used, which is aware of  
> both mvn.bat and mvn.cmd
> 
> Robert

Can you build the shared trunk on Windows using 3.5.0-SNAPSHOT? I am
running into issues related to something not finding the mvn.bat file. I
manually copied the mvn.cmd to mvn.bat and things started to work.

Regards,
-- 
Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Build of maven-dependency-analyzer fails on Windows.

Posted by Robert Scholte <rf...@apache.org>.
On Mon, 20 Feb 2017 02:17:12 +0100, Christian Schulte <cs...@schulte.it>  
wrote:

> Am 02/20/17 um 01:53 schrieb Christian Schulte:
>> Hi,
>>
>> I cannot build 'maven-dependency-analyzer' trunk on Windows. Is there
>> some dependency I could upgrade to get this going? This is what I am
>> doing locally:
>>
>> svn checkout ..../repos/asf/maven/shared/trunk/maven-dependency-analyzer
>> cd maven-dependency-analyzer
>> mvn verify -Papache-snapshots,run-its
>>
>> Jenkins build job is here:
>>
>> <https://builds.apache.org/view/Maven%20Master%20Release%20Status/job/maven-master-release-status-test-shared-windows/>
>>
>> Regards,
>>
>
> Seems we cannot rename the mvn.bat file to mvn.cmd. Can someone clarify
> this, please. Is it "just" our invoker relying on this?

Effective pom says maven-invoker-plugin-2.0.0 is used, which is aware of  
both mvn.bat and mvn.cmd

Robert

>
> Regards,

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Build of maven-dependency-analyzer fails on Windows.

Posted by Christian Schulte <cs...@schulte.it>.
Am 02/20/17 um 01:53 schrieb Christian Schulte:
> Hi,
> 
> I cannot build 'maven-dependency-analyzer' trunk on Windows. Is there
> some dependency I could upgrade to get this going? This is what I am
> doing locally:
> 
> svn checkout ..../repos/asf/maven/shared/trunk/maven-dependency-analyzer
> cd maven-dependency-analyzer
> mvn verify -Papache-snapshots,run-its
> 
> Jenkins build job is here:
> 
> <https://builds.apache.org/view/Maven%20Master%20Release%20Status/job/maven-master-release-status-test-shared-windows/>
> 
> Regards,
> 

Seems we cannot rename the mvn.bat file to mvn.cmd. Can someone clarify
this, please. Is it "just" our invoker relying on this?

Regards,
-- 
Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org