Hi all I'm new to Apache Meven I've imported a project in NetBinx, but everything looks well , But I get this error when trying to create it:
[Warning] Rule 2: failed with org.apache.maven.plugins.enforcer.RequireProperty message: Property "Load Version" this Required for build.
I think that this means that the version of one of the dependencies in the pom.xml file is false but not sure. Any help is appreciated.
More details than the question poster:
I am working on a small part of a project. I am working on a Pom.xml file. There are no implementing rules in this file. However, there is an enforcer rule with the required version in the top level (or highest level pom.xml file):
& lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven-Enforceer-plugin & lt; / ArtifactId> & Lt; Version & gt; 1.0 Beta 1 & lt; / Edition & gt; & Lt; / Plugin & gt; Should not it be enough?
More details than OP:
It seems that I could only comment on this line in the top-level palm file:
& lt; NeededProperty & gt; & Lt; Property & gt; LoadVersion & lt; / Property & gt; & Lt; / RequireProperty & gt; But then I will get other errors. Then I read the project sites well and found out that the code of the project should be made along with the available script. Build is successful when building with my script It is good and bad because now I have to edit the code in the IDE and then make it in the terminal, but at least this is a solution
Your project is using something that is configured (in parent palm, in active profile) "existence and assets Apply the values of " using the rule Area, a loadVersion property in your case.
This type of custom property can be declared with Maven under Project element or in profile or profile By adding settings.xml to pom.xml the following:
& lt; Properties & gt; & Lt; LoadVersion & gt; SomeValue & lt; / LoadVersion> & Lt; / Properties & gt; And this property can then be referred to by $ {loadVersion} I definitely have no idea of value that should be set.
Comments
Post a Comment