maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Heinz Marbaise <khmarba...@gmx.de>
Subject Re: RuntimeInfo.init() not found
Date Sun, 10 Jan 2016 18:04:33 GMT
Hi,

I assume you are building with Maven 3.2.X or newer ?

Kind regards
Karl Heinz Marbaise
On 1/10/16 6:54 PM, Nulik Nol wrote:
> Hi,
> I am compiling a beta distribution of liferay7.0 and I have a problem
> with maven-ant-tasks.jar the method RuntimeInfo.init() does not exist
> in the jar but is required by the build process.
>
> The error I get when I build is this:
> BUILD FAILED
> /home/niko/lrdev/master/portal/build.xml:69: The following error
> occurred while executing this line:
> /home/niko/lrdev/master/portal/build.xml:329: The following error
> occurred while executing this line:
> /home/niko/lrdev/master/portal/build.xml:545: The following error
> occurred while executing this line:
> /home/niko/lrdev/master/portal/build-common.xml:900:
> java.lang.NoSuchMethodError:
> org.apache.maven.settings.RuntimeInfo.<init>(Lorg/apache/maven/settings/Settings;)V
>          at org.apache.maven.artifact.ant.AbstractArtifactTask.loadSettings(AbstractArtifactTask.java:328)
>          at org.apache.maven.artifact.ant.AbstractArtifactTask.initSettings(AbstractArtifactTask.java:278)
>          at org.apache.maven.artifact.ant.AbstractArtifactTask.getSettings(AbstractArtifactTask.java:223)
>          at org.apache.maven.artifact.ant.AbstractArtifactTask.getDefaultLocalRepository(AbstractArtifactTask.java:212)
>          at org.apache.maven.artifact.ant.AbstractArtifactTask.getLocalRepository(AbstractArtifactTask.java:700)
>          at org.apache.maven.artifact.ant.AbstractArtifactTask.createLocalArtifactRepository(AbstractArtifactTask.java:110)
>          at org.apache.maven.artifact.ant.Pom.getMavenProject(Pom.java:272)
>          at org.apache.maven.artifact.ant.Pom.setVersion(Pom.java:570)
> .......
>
> There is also one error complaining about non-existent antlib.xml that
> is shown few lines above, but I think it manages to pass over it:
> ------------------------ log begins ---------------
> install-portal-snapshots:
> [antlib:org.apache.maven.artifact.ant] Could not load definitions from
> resource org/apache/maven/artifact/ant/antlib.xml. It could not be
> found.
> Class java.util.ArrayList loaded from parent loader (parentFirst)
> Class java.io.File loaded from parent loader (parentFirst)
> Finding class org.apache.maven.artifact.ant.AttachedArtifact
> Loaded from /home/niko/lrdev/master/portal/lib/development/maven-ant-tasks-2.1.3.jar
> org/apache/maven/artifact/ant/AttachedArtifact.class
> Class org.apache.maven.artifact.ant.AttachedArtifact loaded from ant
> loader (parentFirst)
> Finding class org.apache.maven.artifact.Artifact
> Loaded from /home/niko/lrdev/master/portal/lib/development/maven-ant-tasks-2.1.3.jar
> org/apache/maven/artifact/Artifact.class
> Class java.lang.Comparable loaded from parent loader (parentFirst)
> Class org.apache.maven.artifact.Artifact loaded from ant loader (parentFirst)
> Class org.apache.maven.model.Contributor loaded from parent loader (parentFirst)
> Class org.apache.maven.model.Dependency loaded from parent loader (parentFirst)
> Class org.apache.maven.model.DependencyManagement loaded from parent
> loader (parentFirst)
> Class org.apache.maven.model.Developer loaded from parent loader (parentFirst)
> Class org.apache.maven.model.IssueManagement loaded from parent loader
> (parentFirst)
> Class org.apache.maven.model.License loaded from parent loader (parentFirst)
> Class org.apache.maven.model.MailingList loaded from parent loader (parentFirst)
> Class org.apache.maven.model.Organization loaded from parent loader
> (parentFirst)
> Class org.apache.maven.model.Scm loaded from parent loader (parentFirst)
> Class org.apache.maven.model.DistributionManagement loaded from parent
> loader (parentFirst)
> Class org.apache.maven.model.Model loaded from parent loader (parentFirst)
> Finding class org.apache.maven.artifact.ant.Profile
> Loaded from /home/niko/lrdev/master/portal/lib/development/maven-ant-tasks-2.1.3.jar
> org/apache/maven/artifact/ant/Profile.class
> Class org.apache.maven.artifact.ant.Profile loaded from ant loader (parentFirst)
> Finding class org.apache.maven.project.MavenProjectBuilder
> Loaded from /home/niko/lrdev/master/portal/lib/development/maven-ant-tasks-2.1.3.jar
> org/apache/maven/project/MavenProjectBuilder.class
> Class org.apache.maven.project.MavenProjectBuilder loaded from ant
> loader (parentFirst)
> Finding class org.apache.maven.project.MavenProject
> Loaded from /home/niko/lrdev/master/portal/lib/development/maven-ant-tasks-2.1.3.jar
> org/apache/maven/project/MavenProject.class
> Class java.lang.Cloneable loaded from parent loader (parentFirst)
> Class org.apache.maven.project.MavenProject loaded from ant loader (parentFirst)
> Class org.apache.maven.model.Build loaded from parent loader (parentFirst)
> Class java.util.Properties loaded from parent loader (parentFirst)
> Class org.apache.maven.model.Parent loaded from parent loader (parentFirst)
> Class org.apache.maven.model.CiManagement loaded from parent loader
> (parentFirst)
> Class org.apache.maven.model.Reporting loaded from parent loader (parentFirst)
> Finding class org.apache.maven.artifact.DependencyResolutionRequiredException
> Loaded from /home/niko/lrdev/master/portal/lib/development/maven-ant-tasks-2.1.3.jar
> org/apache/maven/artifact/DependencyResolutionRequiredException.class
> Class org.apache.maven.artifact.DependencyResolutionRequiredException
> loaded from ant loader (parentFirst)
> Class java.util.Map loaded from parent loader (parentFirst)
> Class java.lang.NullPointerException loaded from parent loader (parentFirst)
> Class org.codehaus.plexus.logging.Logger loaded from parent loader (parentFirst)
> Finding class org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout
> Loaded from /home/niko/lrdev/master/portal/lib/development/maven-ant-tasks-2.1.3.jar
> org/apache/maven/artifact/repository/layout/ArtifactRepositoryLayout.class
> Class org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout
> loaded from ant loader (parentFirst)
> Class java.lang.Class loaded from parent loader (parentFirst)
> Class java.lang.System loaded from parent loader (parentFirst)
> Class org.apache.tools.ant.taskdefs.Execute loaded from parent loader
> (parentFirst)
> Class org.apache.maven.settings.Settings loaded from parent loader (parentFirst)
> Class org.apache.maven.settings.RuntimeInfo loaded from parent loader
> (parentFirst)
>    [antcall] Exiting /home/niko/lrdev/master/portal/build.xml.
>    [antcall] Exiting /home/niko/lrdev/master/portal/build.xml.
> ---------------- log ends ------------------------
>
> these are my files:
> [niko@dev1 development]$ ls -l maven-ant*
> -rw-rw-r--. 1 niko niko 1316000 Jan 10 09:13 maven-ant-tasks-2.1.3.jar
> -rw-rw-r--. 1 niko niko   13149 Jan 10 09:14 maven-ant-tasks-2.1.3.pom
> lrwxrwxrwx  1 niko niko      25 Jan 10 11:36 maven-ant-tasks.jar ->
> maven-ant-tasks-2.1.3.jar
> lrwxrwxrwx  1 niko niko      25 Jan 10 11:37 maven-ant-tasks.pom ->
> maven-ant-tasks-2.1.3.pom
> [niko@dev1 development]$
>
>
> I have looked into the file maven-ant-tasks.jar and indeed, there is
> no such method called "init()"
> [root@dev1 settings]# ls -l RuntimeInfo.class
> -rw-r--r-- 1 root root 2679 Apr 13  2011 RuntimeInfo.class
> [root@dev1 settings]# javap -p RuntimeInfo.class |grep init
> [root@dev1 settings]# javap -p RuntimeInfo.class
> Compiled from "RuntimeInfo.java"
> public class org.apache.maven.settings.RuntimeInfo {
>    private java.io.File file;
>    private java.lang.Boolean pluginUpdateForced;
>    private java.lang.Boolean applyToAllPluginUpdates;
>    private java.util.Map activeProfileToSourceLevel;
>    private java.lang.String localRepositorySourceLevel;
>    private java.util.Map pluginGroupIdSourceLevels;
>    private final org.apache.maven.settings.Settings settings;
>    public org.apache.maven.settings.RuntimeInfo(org.apache.maven.settings.Settings);
>    public void setFile(java.io.File);
>    public java.io.File getFile();
>    public void setPluginUpdateOverride(java.lang.Boolean);
>    public java.lang.Boolean getPluginUpdateOverride();
>    public java.lang.Boolean getApplyToAllPluginUpdates();
>    public void setApplyToAllPluginUpdates(java.lang.Boolean);
>    public void setActiveProfileSourceLevel(java.lang.String, java.lang.String);
>    public java.lang.String getSourceLevelForActiveProfile(java.lang.String);
>    public void setPluginGroupIdSourceLevel(java.lang.String, java.lang.String);
>    public java.lang.String getSourceLevelForPluginGroupId(java.lang.String);
>    public void setLocalRepositorySourceLevel(java.lang.String);
>    public java.lang.String getLocalRepositorySourceLevel();
> }
> [root@dev1 settings]#
>
> I have a fresh Fedora 23 installation with the folowing packages:
> [root@dev1 settings]# rpm -qa|grep maven
> maven-wagon-file-2.9-4.fc23.noarch
> maven-doxia-module-xdoc-1.6-3.fc23.noarch
> maven-osgi-0.2.0-11.fc23.noarch
> maven-mapping-1.0-2.fc23.noarch
> antlr-maven-plugin-2.2-15.fc23.noarch
> maven-settings-2.2.1-52.fc23.noarch
> maven-war-plugin-2.5-3.fc23.noarch
> maven-3.3.3-3.fc23.noarch
> maven-shared-utils-0.8-1.fc23.noarch
> maven-doxia-module-fo-1.6-3.fc23.noarch
> maven-doxia-sitetools-1.6-2.fc23.noarch
> maven-reporting-impl-2.3-2.fc23.noarch
> maven-jar-plugin-2.6-2.fc23.noarch
> maven-wagon-http-shared-2.9-4.fc23.noarch
> maven-model-2.2.1-52.fc23.noarch
> maven-profile-2.2.1-52.fc23.noarch
> maven-doxia-core-1.6-3.fc23.noarch
> maven-plugin-registry-2.2.1-52.fc23.noarch
> maven-plugin-bundle-2.5.4-1.fc23.noarch
> maven-doxia-logging-api-1.6-3.fc23.noarch
> maven-doxia-module-apt-1.6-3.fc23.noarch
> maven-project-2.2.1-52.fc23.noarch
> maven-eclipse-plugin-2.9-14.fc23.noarch
> maven-wagon-http-2.9-4.fc23.noarch
> maven-artifact-manager-2.2.1-52.fc23.noarch
> maven-reporting-api-3.0-9.fc23.noarch
> maven-dependency-tree-2.2-2.fc23.noarch
> maven-antrun-plugin-1.8-2.fc23.noarch
> maven-artifact-2.2.1-52.fc23.noarch
> maven-archiver-2.6-2.fc23.noarch
> maven-ant-plugin-2.3-17.fc23.noarch
> maven-doxia-sink-api-1.6-3.fc23.noarch
> maven-wagon-provider-api-2.9-4.fc23.noarch
> maven-doxia-module-xhtml-1.6-3.fc23.noarch
> maven-doxia-module-fml-1.6-3.fc23.noarch
> maven-filtering-1.3-2.fc23.noarch
> [root@dev1 settings]# rpm -qa|grep maven-ant
> maven-antrun-plugin-1.8-2.fc23.noarch
> maven-ant-plugin-2.3-17.fc23.noarch
> [root@dev1 settings]#
>
> I am stuck, have no idea what is wrong here , any ideas?
>

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


Mime
View raw message