- This topic has 1 reply, 2 voices, and was last updated 10 years, 9 months ago by sdc-support.
-
AuthorPosts
-
ken.linck@crowncastle.comParticipantI was having some trouble doing this. Thought maybe I am missing something stupid so figured I would ask here.
In an environmental policy i have, I added a file called “lifecyclemapping.wrkspc” I assume this the best way to get the maven lifecycle mapping file into MyEclipse 11. In preferences, you can get to the lifecycle mapping preference(if you have the m2eclipse pluging) and it referenes an xml file that you can open and add your lifecycle mappings into.
Well, I tried this but, after I created a new workspace, applied updates, restarted myeclipse, the file was not there. I don’t know if the m2e plugin was possible trumping the file at somepoint after SDC put it there or it never got there to begin with.
Anyway advice?
The content of the lifecyclemapping.wrkspc file is below:
[FileStart]
#(once|workspace).metadata/.plugins/org.eclipse.m2e.core/lifecycle-mapping-metadata.xml
<?xml version=”1.0″ encoding=”UTF-8″?>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<versionRange>0.6.4.201312101107</versionRange>
<goals>
<goal>prepare-agent</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.sun.tools.jxc.maven2</groupId>
<artifactId>maven-jaxb-schemagen-plugin</artifactId>
<versionRange>1.2</versionRange>
<goals>
<goal>generate</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<versionRange>1.6</versionRange>
<goals>
<goal>run</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
[FileEnd]
sdc-supportMemberHello Ken,
based on the paste you did of the content of your lifecyclemapping.wrkspc file,
are you including the ‘[FileStart]’ and ‘[FileEnd]’ tags as part of the content of the file?They should not exist on it. They are for information purposes only to let users know where file example begins and ends within our Documentation page.
So, if you are including them, can you please remove them and try again?
Please, let us know if that works. We appreciate your comments.
Regards Hugo Herrera.
-
AuthorPosts