It's already in JIRA. On 5/26/05, Anatol Pomozov <[EMAIL PROTECTED]> wrote: > Converting my project to M2 I got a lot of 'missing pom' errors, one > of them printed below. > [INFO] maven-surefire-plugin: using locally installed snapshot > [INFO] [resources:resources] > Downloading: http://repo1.maven.org/maven2/icu4j/icu4j/2.6.1/icu4j-2.6.1.pom > [WARNING] Unable to get resource from repository http://repo1.maven.org/maven2 > [INFO] > ---------------------------------------------------------------------------- > [INFO] BUILD FAILURE > > > It would be very handy for figuring out missing dependency if m2 > prints out full chain of dependencies. Something like this > [WARNING] Unable to get resource from repository http://repo1.maven.org/maven2 > myproject[1.0]=>hibernate[3.0.3]=>dom4j[1.6]=>....=>icu4j[2.6.1] could > not be downloaded. > > On 5/26/05, Brett Porter <[EMAIL PROTECTED]> wrote: > > (adding back the users list) > > > > On 5/26/05, Anatol Pomozov <[EMAIL PROTECTED]> wrote: > > > [ERROR] Error while rewriting file or POM for artifact: > > > 'generama:generama:jar:1.1.1-SNAPSHOT'. See report at: > > > 'generama/generama/jar/1.1.1-SNAPSHOT.report.txt'.java.lang.NullPointerException > > > > I'm not sure why this is - looks like a missing group ID, but it > > should have determined that from the path. > > > > > As I understand that is because of poms absence. Most of my M1 > > > artifacts have no pom in repository. > > > > It does add poms when they are missing. > > > > > Another question. What is default scope for artifact in M2 pom.xml?? > > > > compile (ie, available to all classpaths) > > > > > As I understand that dependency used only in dom4j for testing but > > > when I run 'm2 package' for my project maven tries to download this > > > dependency. Is it normal?? I don't want to run tests for dom4j and I > > > dont need this dependency. > > > > We will be adding filtering for this in alpha-3 so you can prevent it. > > For now, you must report it in JIRA under the MEV project so we can > > fix the dom4j POM and get them to fix it at the source too (you can > > adda hint in your m1 project files to set > > <properties><scope>test</scope></properties>). > > > > > Probably we need to to add some heuristic algorithm to evaluate scope > > > of the dependency from M1 pom. For example if for dependency present > > > property <dist.bundle> then it has runtime or compile scope otherwise > > > - test. > > > > Most compile dependencies won't have that property, unfortunately. > > > > Cheers, > > Brett > > > > > -- > anatol > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]