I install my artifact inside the local repository with the command:
mvn install:install-file -DgroupId=com.rules 
-DartifactId=rulesID -Dversion=0.1 -Dpackaging=jar -Dfile=rules.jar
then i resolve the artifact into my java code using:
org.drools.compiler.kproject.ReleaseIdImpl releaseId = 
new ReleaseIdImpl("com.rules", "rulesID", "LATEST");
And every thing works pretty well.
The day after, it seems that the repository expires, and I need another "mvn install" to get things to work again. The exception I get is this:
Caused by: org.eclipse.aether.resolution.VersionResolutionException: 
Failed to resolve version for com.rules:rulesID:pom:LATEST: Could not find metadata com.rules:rulesID/maven-metadata.xml 
in local (C:\Users\gpiazzolla\.m2\repository)
 at org.apache.maven.repository.internal.DefaultVersionResolver.resolveVersion(DefaultVersionResolver.java:312)
In fact, the maven-metadata.xml inside that directory seems to disappear.
The content of "maven-metadata-local.xml" after reinstall is:
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
  <groupId>com.rules</groupId>
  <artifactId>rulesID</artifactId>
  <versioning>
    <release>0.1</release>
    <versions>
      <version>0.1</version>
    </versions>
    <lastUpdated>20150604080940</lastUpdated>
  </versioning>
</metadata>
 
     
    