Hi,

thanks for pointing this out. I actually have the same problem even if I
don't make any CLI interactions. The "problem" occurs even if you use the
m2e plugin inside RAD 8.5. However, I haven't any side effects from this
problem inside RAD and if you haven't mention it I'd most probably overlook
it.

The actual deployment in our case is done via SVN co and jenkins build -
the generated war there is ok, because the artifacts are not in the svn.

But maybe this should be filed as a bug.


On Fri, Nov 23, 2012 at 11:07 AM, Bjørn-Willy Arntzen <[email protected]> wrote:

> Actually, the best this is to not include anything maven metadata in a
> deployment artifact. Is it possible to exclude these files ?****
>
> ** **
>
> Hope this is not out of scope of this list … J****
>
> ** **
>
> ** **
>
> Med vennlig hilsen
>
> *Bjørn Willy Arntzen**
> *Seniorkonsulent****
>
> *
>
> **Kommunal Landspensjonskasse *gjensidig forsikringsselskap
> Dronning Eufemias gate 10, 0191 Oslo, Pb 400, Sentrum, 0103 Oslo
> Mob: +4797759007
> www.klp.no
>
> *Vennligst tenk på miljøet før du skriver ut denne e-posten*****
>
> *Fra:* [email protected] [mailto:[email protected]]
> *På vegne av* Bjørn-Willy Arntzen
> *Sendt:* 21. november 2012 10:25
>
> *Til:* Maven Integration for Eclipse users mailing list
> *Emne:* Re: [m2e-users] duplicate pom.properties****
>
> ** **
>
> Thank for fast answer, but a ‘mvn clean verify’ still generates duplicate
> files …****
>
> ** **
>
> I also installed Maven CLI 3.0.4, but no change of output.****
>
> ** **
>
> ** **
>
> Med vennlig hilsen
>
> *Bjørn Willy Arntzen
> *Seniorkonsulent****
>
> *
>
> Kommunal Landspensjonskasse *gjensidig forsikringsselskap
> Dronning Eufemias gate 10, 0191 Oslo, Pb 400, Sentrum, 0103 Oslo
> Mob: +4797759007
> www.klp.no
>
> *Vennligst tenk på miljøet før du skriver ut denne e-posten*****
>
> *Fra:* [email protected] 
> [mailto:[email protected]<[email protected]>]
> *På vegne av* Fred Bricon
> *Sendt:* 21. november 2012 09:33
> *Til:* Maven Integration for Eclipse users mailing list
> *Emne:* Re: [m2e-users] duplicate pom.properties****
>
> ** **
>
> m2e-wtp (via the mavenarchiver plugin) automatically generates the maven
> pom and properties files as part of eclipse's incremental build.****
>
> The actual problem lies in the packaging done during CLI builds, where
> these files are also generated and added to the archive, regardless of the
> presence of existing files with the same name.****
>
> ** **
>
> The workaround is simple : when doing a CLI build, always invoke the clean
> goal like : mvn clean verify.****
>
> ** **
>
> On Wed, Nov 21, 2012 at 9:26 AM, Bjørn-Willy Arntzen <[email protected]> wrote:**
> **
>
> Hello all. I’m using m2e 1.2 with IBM RAD 8.5 and most of maven stuff
> actually works very fine now. Especially deployment to local WebSphere test
> environment. This is really great, Well done!****
>
>  ****
>
> I still have one strange issue... I’m using  command line to build an ear
> artifact to deploy to the sentral server, but here I got duplicate files in
> META_INF\maven\<artifact>\directory****
>
>  ****
>
> In my web-module****
>
>  ****
>
>
> c:\RAD85\workspace\asaptrigger\asaptrigger-web\target\asaptrigger-web-2.5.0-SNAPSHOT.war\META-INF\maven\no.klp.asaptrigger\asaptrigger-web\
> ****
>
> there is 4 files, instead of 2. It contains two pom.properties and 2
> pom.xml. This is not possible on a file system, but inside a war(zip) there
> is possible.****
>
>  ****
>
> One pom.properties has #Generated by Maven Integration for Eclipse the
> other has #Generated by Maven****
>
>  ****
>
> The reason seems to be that my m2e is generating a pom.properties and
> pom.xml, and also a maven (v 3.0.3) clean install from the command line is
> creating the same set of files.****
>
>  ****
>
> I see clearly that m2e is generating (and instantly re-generating on a
> delete) 2 new pom files in the workspace.****
>
>  ****
>
> How can I get rid of this ? ****
>
> Med vennlig hilsen
>
> *Bjørn Willy Arntzen*****
>
>
> _______________________________________________
> m2e-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/m2e-users****
>
>
>
> ****
>
> ** **
>
> --
> "Have you tried turning it off and on again" - The IT Crowd****
>
> _______________________________________________
> m2e-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
>
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to