[ 
https://issues.apache.org/jira/browse/TOMEE-1324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14130010#comment-14130010
 ] 

karim djaafar commented on TOMEE-1324:
--------------------------------------

The problem is easy to reproduce and is still here even if you delete 
.m2\repository\org\apache\openejb' directory.

To solve this issue:

1) create a project using the Apache TomEE plugin for example:
mvn archetype:generate -DarchetypeGroupId=org.apache.openejb.maven 
-DarchetypeArtifactId=tomee-webapp-archetype -DarchetypeVersion=1.7.0. Give the 
name of groupId/packagename, and so on ...
2) Import your Maven Tomee generatedd project in Eclipse (Eclipse Luna is the 
version I used)
3) You can see the error in the generated POM.XML open file of your project in 
Eclipse: Plugin execution not covered by lifecyle configuration: 
org.apache.openjpa:openjpa-maven-plugin:2.3.0:enhance (execution: enhancer, 
phase: process-classes)
4) fix the problem by adding the tag <pluginManagement> after the build section 
and </pluginManagement> before build section in the POM.xml file
5) Save the modifications. Fixed !
SO now the archetype must be modified to take into account this tag. I have 
change accordingly  in the source code of TomEE Maven archetype the 
modification, regenerated the archetype and it work with no problem...


> Problem with TomEE Maven archetype
> ----------------------------------
>
>                 Key: TOMEE-1324
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1324
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Maven Plugin
>    Affects Versions: 1.7.0
>            Reporter: karim djaafar
>            Assignee: Andy Gumbrecht
>             Fix For: 2.0.0, 1.7.1
>
>         Attachments: pom.xml
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to