Hello All,

I'm working on the bug you have opened for EASE 
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=420319). And I have encountered 
some issues with the build. I think that I know where it comes from but I would 
like to know what you think about it.

In the ease project we have an Xtext editor. In order for maven to generate the 
necessary source for the build, I have added this to my pom.

<build>
             <plugins>
                    <plugin>
                           <groupId>org.eclipse.xtend</groupId>
                           <artifactId>xtend-maven-plugin</artifactId>
                           <version>${xtext-version}</version>
                           <configuration>
                                  <encoding>UTF-8</encoding>
                           </configuration>
                           <executions>
                                  <execution>
                                        <goals>
                                               <goal>compile</goal>
                                        </goals>
                                        <configuration>
                                               <!-- need to prefix by basedir 
to generate to currently built module -->
                                               
<outputDirectory>${basedir}/xtend-gen</outputDirectory>
                                        </configuration>
                                  </execution>
                           </executions>
                           <dependencies>
                                  <!-- these dependencies are contributed in 
Eclipse by the "Xtend Library"
                                        classpath container -->
                                  <dependency>
                                        <groupId>org.eclipse.xtend</groupId>
                                        
<artifactId>org.eclipse.xtend.lib</artifactId>
                                        <version>${xtext-version}</version>
                                        <type>pom</type>
                                  </dependency>
                           </dependencies>
                    </plugin>
             </plugins>
       </build>



Which comes from :

       <pluginRepositories>
             <!-- Repository to resolve xtend-maven-plugin -->
             <pluginRepository>
                    <id>xtend</id>
                    <url>http://build.eclipse.org/common/xtend/maven/</url>
             </pluginRepository>
       </pluginRepositories>

This plugin uses Antlr 3.2 to generate the source. This is available from the 
Maven Central repository. However when I try to run the build on Hudson I get :



[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)

[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.eclipse.xtend:xtend-maven-plugin:2.3.1:compile (default) on project 
org.eclipse.ease.releng: Execution default of goal 
org.eclipse.xtend:xtend-maven-plugin:2.3.1:compile failed: Plugin 
org.eclipse.xtend:xtend-maven-plugin:2.3.1 or one of its dependencies could not 
be resolved: Could not find artifact org.antlr:antlr-runtime:jar:3.2

[DEBUG] Closing connection to remote

[ERROR] Failed to execute goal 
org.eclipse.xtend:xtend-maven-plugin:2.3.1:compile (default) on project 
org.eclipse.ease.releng: Execution default of goal 
org.eclipse.xtend:xtend-maven-plugin:2.3.1:compile failed: Plugin 
org.eclipse.xtend:xtend-maven-plugin:2.3.1 or one of its dependencies could not 
be resolved: Could not find artifact org.antlr:antlr-runtime:jar:3.2 -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please 
read the following articles:

[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

[DEBUG] Waiting for process to finish

[DEBUG] Result: 1



My guess is that Antlr is not compatible with the Eclipse license so it has 
been removed from the Central Repository. Can you confirm ?

Although I will not integrate Antlr,  I just want to use it to build EASE. Is 
it still illegal?

If my guess is good could you tell me how I can find out what is available from 
Eclipse side.

The solution for EASE is to contribute the generated sources to git repository, 
this way this plugin will not be mandatory anymore.



Thanks for your help,



Regards,







Arthur Daussy
Atos
[email protected]
+33 5 34 36 32 90
[LogoAtosPapyrus]




________________________________

Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos ne pourra être 
engagée quant au contenu de ce message. Bien que les meilleurs efforts soient 
faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne 
donne aucune garantie à cet égard et sa responsabilité ne saurait être engagée 
pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos group liability cannot be triggered for the 
message content. Although the sender endeavors to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.

<<inline: image003.png>>

_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

Reply via email to