[
https://issues.apache.org/jira/browse/MNG-7078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17270759#comment-17270759
]
Michael Osipov commented on MNG-7078:
-------------------------------------
In general, settings should only be overridden if the usecase requires it. But
having a mirror of {{central}} is perfectly normal!
Looking at the failure
{noformat}
[ERROR] Failed to determine activation for profile disable-java8-doclint @
(external profiles): For input string: ""
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString
(NumberFormatException.java:68)
at java.lang.Integer.parseInt (Integer.java:662)
at java.lang.Integer.parseInt (Integer.java:770)
at
org.apache.maven.model.profile.activation.JdkVersionProfileActivator.getRelationOrder
(JdkVersionProfileActivator.java:143)
at
org.apache.maven.model.profile.activation.JdkVersionProfileActivator.isInRange
(JdkVersionProfileActivator.java:111)
at
org.apache.maven.model.profile.activation.JdkVersionProfileActivator.isActive
(JdkVersionProfileActivator.java:82)
at org.apache.maven.model.profile.DefaultProfileSelector.isActive
(DefaultProfileSelector.java:125)
at org.apache.maven.model.profile.DefaultProfileSelector.getActiveProfiles
(DefaultProfileSelector.java:77)
at org.apache.maven.model.building.DefaultModelBuilder.activateFileModel
(DefaultModelBuilder.java:318)
at org.apache.maven.model.building.DefaultModelBuilder.build
(DefaultModelBuilder.java:293)
at org.apache.maven.model.building.DefaultModelBuilder.build
(DefaultModelBuilder.java:275)
at org.apache.maven.project.DefaultProjectBuilder.build
(DefaultProjectBuilder.java:470)
at org.apache.maven.project.DefaultProjectBuilder.build
(DefaultProjectBuilder.java:435)
at org.apache.maven.project.DefaultProjectBuilder.build
(DefaultProjectBuilder.java:392)
at
org.apache.maven.project.collector.DefaultProjectsSelector.selectProjects
(DefaultProjectsSelector.java:63)
at
org.apache.maven.project.collector.MultiModuleCollectionStrategy.collectProjects
(MultiModuleCollectionStrategy.java:71)
at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor
(DefaultGraphBuilder.java:426)
at org.apache.maven.graph.DefaultGraphBuilder.build
(DefaultGraphBuilder.java:97)
at org.apache.maven.DefaultMaven.buildGraph (DefaultMaven.java:559)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:233)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:206)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:119)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:979)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:197)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:64)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:564)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch
(Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
(Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main
(Launcher.java:347)
{noformat}
If you look at the original ticket it uses (abuses) properties from {{java.*}}
which is undefined behavior. {{<java.version>1.6</java.version>}} should never
be allowed. Unfortunately, Oracle did not make them read only in JDK-8066709. I
consider this testcase broken as well as the request especially with
{{java.version}}. Thanks for the finding. Though, I am not really sure that's
the right path here.
[~rfscholte], WDYT?
> The integration tests use the default maven settings
> ----------------------------------------------------
>
> Key: MNG-7078
> URL: https://issues.apache.org/jira/browse/MNG-7078
> Project: Maven
> Issue Type: Improvement
> Components: Integration Tests
> Reporter: Guillaume Nodet
> Assignee: Michael Osipov
> Priority: Major
>
> I have a profile that caused one integration test to fail, but it took me
> some time to realise the problem came from my {{~/.m2/settings.xml}} file.
> It would be better to have the tests use an empty settings file.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)