You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Ceki Gulcu (JIRA)" <ji...@apache.org> on 2008/11/24 18:43:44 UTC

[jira] Created: (GERONIMO-4429) mytime sample application's pom.xml file is too complex

mytime sample application's pom.xml file is too complex 
--------------------------------------------------------

                 Key: GERONIMO-4429
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4429
             Project: Geronimo
          Issue Type: Improvement
      Security Level: public (Regular issues)
          Components: sample apps
            Reporter: Ceki Gulcu


Hello,

I have downloaded the mytime sample application. In my opinion, it takes a very long time to build. 

In fact,

org.apache.geronimo.samples:mytime depends on
org.apache.geronimo.samples:samples:2.12 .pom which in turn depends on
org.apache.geronimo.samples:samples-parent-2.1.2 pom which in turn depends on
org.apache.geronimo.genesis.config:project-config:1.4:pom  which in turn depends on
org.apache.geronimo.genesis.config:config:1.4:pom which in turn depends on
org.apache.geronimo.genesis:genesis:1.4:pom etc...

As mentioned earlier, obtaining all the dependencies takes over two hours, at least on my machine. Would it be possible to simplify the pom dependencies. For example, by including zero or at most one pom file transitively? Such simplification would have a pedagogical value as well. 



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4429) mytime sample application's pom.xml file is too complex

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650633#action_12650633 ] 

Donald Woods commented on GERONIMO-4429:
----------------------------------------

Thanks for the suggestion, but we use the same parent POM structure as the server so the samples will inherit the same build prereqs as the server build they are targeted towards.  I don't see us changing this anytime soon, as that would greatly complicate the maintenance and release process for our samples.
But, feel free to download the source and make changes for your own environment.
Also, you could look at how we point to our svn repo for some build artifacts and include an additional repository pointer to a local Geronimo server you have installed on your machine, which would help to decrease the build times, like ~/geronimo-tomcat6-javaee5-2.1.3/repository


> mytime sample application's pom.xml file is too complex 
> --------------------------------------------------------
>
>                 Key: GERONIMO-4429
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4429
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: sample apps
>            Reporter: Ceki Gulcu
>         Attachments: failure.txt, star-sample.zip
>
>
> Hello,
> I have downloaded the mytime sample application. In my opinion, it takes a very long time to build. 
> In fact,
> org.apache.geronimo.samples:mytime depends on
> org.apache.geronimo.samples:samples:2.12 .pom which in turn depends on
> org.apache.geronimo.samples:samples-parent-2.1.2 pom which in turn depends on
> org.apache.geronimo.genesis.config:project-config:1.4:pom  which in turn depends on
> org.apache.geronimo.genesis.config:config:1.4:pom which in turn depends on
> org.apache.geronimo.genesis:genesis:1.4:pom etc...
> As mentioned earlier, obtaining all the dependencies takes over two hours, at least on my machine. Would it be possible to simplify the pom dependencies. For example, by including zero or at most one pom file transitively? Such simplification would have a pedagogical value as well. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-4429) mytime sample application's pom.xml file is too complex

Posted by "Ceki Gulcu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ceki Gulcu updated GERONIMO-4429:
---------------------------------

    Attachment: star-sample.zip

I am attaching a very simple Enterprise Application built using Maven. The pom.xml files are extremely simple and do not make any external references. In my humble opinion, the impact of samples included with Geronimo would be higher, especially to newcomers, if they contained less or no external references. 

Jack,

Thank you for the tip regarding the heap size.

> mytime sample application's pom.xml file is too complex 
> --------------------------------------------------------
>
>                 Key: GERONIMO-4429
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4429
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: sample apps
>            Reporter: Ceki Gulcu
>         Attachments: failure.txt, star-sample.zip
>
>
> Hello,
> I have downloaded the mytime sample application. In my opinion, it takes a very long time to build. 
> In fact,
> org.apache.geronimo.samples:mytime depends on
> org.apache.geronimo.samples:samples:2.12 .pom which in turn depends on
> org.apache.geronimo.samples:samples-parent-2.1.2 pom which in turn depends on
> org.apache.geronimo.genesis.config:project-config:1.4:pom  which in turn depends on
> org.apache.geronimo.genesis.config:config:1.4:pom which in turn depends on
> org.apache.geronimo.genesis:genesis:1.4:pom etc...
> As mentioned earlier, obtaining all the dependencies takes over two hours, at least on my machine. Would it be possible to simplify the pom dependencies. For example, by including zero or at most one pom file transitively? Such simplification would have a pedagogical value as well. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4429) mytime sample application's pom.xml file is too complex

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650278#action_12650278 ] 

David Jencks commented on GERONIMO-4429:
----------------------------------------

Hi Ceki,

IIUC maven is not recommending use of ibiblio as a repository because it is too slow too much of the time.  What happens if you completely remove your settings.xml file and try to build the samples?  Again IIUC the recommended standard repo http://repo1.maven.org/maven2/ is configured somewhere in the default maven settings and you don't need to do anything to include it.

> mytime sample application's pom.xml file is too complex 
> --------------------------------------------------------
>
>                 Key: GERONIMO-4429
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4429
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: sample apps
>            Reporter: Ceki Gulcu
>
> Hello,
> I have downloaded the mytime sample application. In my opinion, it takes a very long time to build. 
> In fact,
> org.apache.geronimo.samples:mytime depends on
> org.apache.geronimo.samples:samples:2.12 .pom which in turn depends on
> org.apache.geronimo.samples:samples-parent-2.1.2 pom which in turn depends on
> org.apache.geronimo.genesis.config:project-config:1.4:pom  which in turn depends on
> org.apache.geronimo.genesis.config:config:1.4:pom which in turn depends on
> org.apache.geronimo.genesis:genesis:1.4:pom etc...
> As mentioned earlier, obtaining all the dependencies takes over two hours, at least on my machine. Would it be possible to simplify the pom dependencies. For example, by including zero or at most one pom file transitively? Such simplification would have a pedagogical value as well. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4429) mytime sample application's pom.xml file is too complex

Posted by "Ceki Gulcu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650286#action_12650286 ] 

Ceki Gulcu commented on GERONIMO-4429:
--------------------------------------

Regardless of the contents of $MAVEN_HOME/conf/settings.xml, I get a java.lang.OutOfMemoryError while building mytime-jetty. I have attached the build results in a separate file. 

I was able to successfully deploy the mytime-ear file produced by the build, even if building the mytime-jetty module fails. 

You might still want to consider simplifying the mytime sample application, although I might be missing something terribly obvious.







> mytime sample application's pom.xml file is too complex 
> --------------------------------------------------------
>
>                 Key: GERONIMO-4429
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4429
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: sample apps
>            Reporter: Ceki Gulcu
>         Attachments: failure.txt
>
>
> Hello,
> I have downloaded the mytime sample application. In my opinion, it takes a very long time to build. 
> In fact,
> org.apache.geronimo.samples:mytime depends on
> org.apache.geronimo.samples:samples:2.12 .pom which in turn depends on
> org.apache.geronimo.samples:samples-parent-2.1.2 pom which in turn depends on
> org.apache.geronimo.genesis.config:project-config:1.4:pom  which in turn depends on
> org.apache.geronimo.genesis.config:config:1.4:pom which in turn depends on
> org.apache.geronimo.genesis:genesis:1.4:pom etc...
> As mentioned earlier, obtaining all the dependencies takes over two hours, at least on my machine. Would it be possible to simplify the pom dependencies. For example, by including zero or at most one pom file transitively? Such simplification would have a pedagogical value as well. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4429) mytime sample application's pom.xml file is too complex

Posted by "Jack Cai (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650465#action_12650465 ] 

Jack Cai commented on GERONIMO-4429:
------------------------------------

To avoid the OutOfMemoryError, you can try to set the MAVEN_OPTS environment varible. e.g., 

set MAVEN_OPTS= -Xms128m -Xmx512m

If you are using SUN JDK, 

set MAVEN_OPTS=-Xms64m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m


> mytime sample application's pom.xml file is too complex 
> --------------------------------------------------------
>
>                 Key: GERONIMO-4429
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4429
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: sample apps
>            Reporter: Ceki Gulcu
>         Attachments: failure.txt
>
>
> Hello,
> I have downloaded the mytime sample application. In my opinion, it takes a very long time to build. 
> In fact,
> org.apache.geronimo.samples:mytime depends on
> org.apache.geronimo.samples:samples:2.12 .pom which in turn depends on
> org.apache.geronimo.samples:samples-parent-2.1.2 pom which in turn depends on
> org.apache.geronimo.genesis.config:project-config:1.4:pom  which in turn depends on
> org.apache.geronimo.genesis.config:config:1.4:pom which in turn depends on
> org.apache.geronimo.genesis:genesis:1.4:pom etc...
> As mentioned earlier, obtaining all the dependencies takes over two hours, at least on my machine. Would it be possible to simplify the pom dependencies. For example, by including zero or at most one pom file transitively? Such simplification would have a pedagogical value as well. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4429) mytime sample application's pom.xml file is too complex

Posted by "Ceki Gulcu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650269#action_12650269 ] 

Ceki Gulcu commented on GERONIMO-4429:
--------------------------------------

Hello David,

Thank you for your response. We don't use a repo manager such as nexus. I use the ibiblio repository. My $MAVEN_HOME/conf/settings.xml
reads

 <mirror>
   <id>ibiblio.org</id>
   <url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
   <mirrorOf>central</mirrorOf>
 </mirror> 

changing it to 

 <mirror>
   <id>sunsite.dk</id>
   <url>http://mirrors.sunsite.dk/maven2</url>
   <mirrorOf>central</mirrorOf>
 </mirror>

does accelerate things a little, but still a very large number of dependencies are being downloaded. The samples were obtained via Subversion from http://svn.apache.org/repos/asf/geronimo/samples/trunk/samples

In any case, you are right that I have not inquired on the mailing list before filing a jira issue, as proper etiquette requires. My apologies.



> mytime sample application's pom.xml file is too complex 
> --------------------------------------------------------
>
>                 Key: GERONIMO-4429
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4429
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: sample apps
>            Reporter: Ceki Gulcu
>
> Hello,
> I have downloaded the mytime sample application. In my opinion, it takes a very long time to build. 
> In fact,
> org.apache.geronimo.samples:mytime depends on
> org.apache.geronimo.samples:samples:2.12 .pom which in turn depends on
> org.apache.geronimo.samples:samples-parent-2.1.2 pom which in turn depends on
> org.apache.geronimo.genesis.config:project-config:1.4:pom  which in turn depends on
> org.apache.geronimo.genesis.config:config:1.4:pom which in turn depends on
> org.apache.geronimo.genesis:genesis:1.4:pom etc...
> As mentioned earlier, obtaining all the dependencies takes over two hours, at least on my machine. Would it be possible to simplify the pom dependencies. For example, by including zero or at most one pom file transitively? Such simplification would have a pedagogical value as well. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (GERONIMO-4429) mytime sample application's pom.xml file is too complex

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks closed GERONIMO-4429.
----------------------------------

    Resolution: Won't Fix

Downloading the poms you mention should take less than 15 seconds.  There must be something wrong with your maven setup such as including a non-responsive repository or using a broken repo manager.

If you want help figuring out what is wrong the user list or irc might be more appropriate.

If you mentioned this problem somewhere before I certainly missed it.... where?

> mytime sample application's pom.xml file is too complex 
> --------------------------------------------------------
>
>                 Key: GERONIMO-4429
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4429
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: sample apps
>            Reporter: Ceki Gulcu
>
> Hello,
> I have downloaded the mytime sample application. In my opinion, it takes a very long time to build. 
> In fact,
> org.apache.geronimo.samples:mytime depends on
> org.apache.geronimo.samples:samples:2.12 .pom which in turn depends on
> org.apache.geronimo.samples:samples-parent-2.1.2 pom which in turn depends on
> org.apache.geronimo.genesis.config:project-config:1.4:pom  which in turn depends on
> org.apache.geronimo.genesis.config:config:1.4:pom which in turn depends on
> org.apache.geronimo.genesis:genesis:1.4:pom etc...
> As mentioned earlier, obtaining all the dependencies takes over two hours, at least on my machine. Would it be possible to simplify the pom dependencies. For example, by including zero or at most one pom file transitively? Such simplification would have a pedagogical value as well. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-4429) mytime sample application's pom.xml file is too complex

Posted by "Ceki Gulcu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ceki Gulcu updated GERONIMO-4429:
---------------------------------

    Attachment: failure.txt

> mytime sample application's pom.xml file is too complex 
> --------------------------------------------------------
>
>                 Key: GERONIMO-4429
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4429
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: sample apps
>            Reporter: Ceki Gulcu
>         Attachments: failure.txt
>
>
> Hello,
> I have downloaded the mytime sample application. In my opinion, it takes a very long time to build. 
> In fact,
> org.apache.geronimo.samples:mytime depends on
> org.apache.geronimo.samples:samples:2.12 .pom which in turn depends on
> org.apache.geronimo.samples:samples-parent-2.1.2 pom which in turn depends on
> org.apache.geronimo.genesis.config:project-config:1.4:pom  which in turn depends on
> org.apache.geronimo.genesis.config:config:1.4:pom which in turn depends on
> org.apache.geronimo.genesis:genesis:1.4:pom etc...
> As mentioned earlier, obtaining all the dependencies takes over two hours, at least on my machine. Would it be possible to simplify the pom dependencies. For example, by including zero or at most one pom file transitively? Such simplification would have a pedagogical value as well. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.