You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by manmaujin2 <jo...@oocl.com> on 2014/03/31 08:26:32 UTC

skip deploy maven parent pom to artifactory

Total the project has 3 layer, the parent root and there are contain two
major component in the project, i.e. console and server. For each component
has so many sub component. And I only want to deploy the ear file in sub
component. So I tried to skip deploying the parent pom to artifactory.
It is successes but the user cannot download the EAR from the artifactory.
It shows the cannot find out the parent pom. 

Could anyone tell me is it possible to deploy EAR file to artifactory
without any parent pom?



--
View this message in context: http://maven.40175.n5.nabble.com/skip-deploy-maven-parent-pom-to-artifactory-tp5790174.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: skip deploy maven parent pom to artifactory

Posted by Wayne Fay <wa...@gmail.com>.
> Thanks for your advise. One more question, the following is our project maven
> structure. There are too many pom exist after deploy. For example, not only
> the ear pom.xml deploy to artifactory, but also the console A pom , the
> console pom and the parent pom. They separate to different directories.
> Therefore, I want to reduce the layer of the this structure. Could you mind
> to give me some idea again ?

What does "too many" mean?
What harm do the "extra" pom files cause?

If you must reduce the number of deployed pom, then you must
consolidate your projects, resulting in fewer poms to be deployed.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: skip deploy maven parent pom to artifactory

Posted by manmaujin2 <jo...@oocl.com>.
Thanks for your advise. One more question, the following is our project maven
structure. There are too many pom exist after deploy. For example, not only
the ear pom.xml deploy to artifactory, but also the console A pom , the
console pom and the parent pom. They separate to different directories.
Therefore, I want to reduce the layer of the this structure. Could you mind
to give me some idea again ?

 Many thanks

Parent
  L---console
     L----console A
         L---<module> ear file
              L--- pom for build ear
         L---<module> war file
              L ----pom for build war
     L----console B
         L---<module> ear file </module>
              L--- pom for build ear
         L---<module> war file </module>
               L ----pom for build war


  L---server

      L----server A
         L---<module> ear file
              L--- pom for build ear
         L---<module> war file
              L ----pom for build war
      L----server B
         L---<module> ear file </module>
              L--- pom for build ear
         L---<module> war file </module>
               L ----pom for build war



--
View this message in context: http://maven.40175.n5.nabble.com/skip-deploy-maven-parent-pom-to-artifactory-tp5790174p5790256.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: skip deploy maven parent pom to artifactory

Posted by Anders Hammar <an...@hammar.net>.
As you've noticed, if you don't deploy the parent pom(s) the chain of
parent pom(s) for the ear artifact is not complete. The correct way is to
deploy the parent pom(s) as well. If you don't do this then you will have
this problem.

/Anders


On Mon, Mar 31, 2014 at 8:26 AM, manmaujin2 <jo...@oocl.com> wrote:

> Total the project has 3 layer, the parent root and there are contain two
> major component in the project, i.e. console and server. For each component
> has so many sub component. And I only want to deploy the ear file in sub
> component. So I tried to skip deploying the parent pom to artifactory.
> It is successes but the user cannot download the EAR from the artifactory.
> It shows the cannot find out the parent pom.
>
> Could anyone tell me is it possible to deploy EAR file to artifactory
> without any parent pom?
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/skip-deploy-maven-parent-pom-to-artifactory-tp5790174.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>