Hello,
I'm a member of
palich.ru team and we are migrating our system to iDempiere 10 from iDempiere 3.1.
Because of that we need to learn how to use Maven instead of Buckminster.
I created a test plugins for that purpose. One plugin contains a process and it works fine while server is running in Eclipse. Another one is for Target Platform.
I was looking at
this page trying to understand basic principles. Now I have a following structure:
>org.ipalich.targetplatform
>>org.ipalich.targetplaform.target
>>pom.xml
>org.ipalich.test
>>src
>>>...
>>pom.xml
>pom.xml
First level pom.xml:
<groupId>org.idempiere</groupId>
<artifactId>org.ipalich.allplugins</artifactId>
<version>10.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>org.ipalich.test</module>
<module>org.ipalich.targetplatform</module>
</modules>
</project>
Two other pom.xml have "org.idempiere.parent" as a Parent.
After executing this command:
[org.ipalich.allplugins]$ mvn clean verify -Didempiere.target=org.ipalich.targetplatform -X
I get:
...
[WARNING] Failed to build parent project for org.ipalich:org.ipalich.targetplatform:eclipse-target-definition:10.0.0-SNAPSHOT
org.apache.maven.project.ProjectBuildingException: Error resolving project artifact: org.idempiere:org.idempiere.parent:pom:${revision} was not found in https://repo1.maven.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not
reattempted until the update interval of Central has elapsed or updates are forced for project org.idempiere:org.idempiere.parent:pom:${revision}
(and same erros for org.ipalich.test)
...
[ERROR] Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.idempiere:org.ipalich.targetplatform:target:10.0.0-SNAPSHOT -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.idempiere:org.ipalich.targetplatform:target:10.0.0-SNAPSHOT
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:120)
What am I missing?
Is there any tutorial that can help me to understand how to create new plugins using Maven and how to build jars from command line? On Wiki I found only some pieces of information.