Ok, I got around the issue with number 3 by removing the modules and building 
the top pom, then adding the modules.  I am now getting  an error with 
murmur-events that is preventing installation and preventing murmur from 
building.  Here is the error with PMD:

[INFO] Reactor Summary:
[INFO]
[INFO] top ............................................... SUCCESS [2.171s]
[INFO] murmur-events ..................................... FAILURE [6.766s]
[INFO] Murmur ............................................ SKIPPED
[INFO] Genesis ........................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.341s
[INFO] Finished at: Sat Oct 06 06:26:03 EDT 2012
[INFO] Final Memory: 14M/34M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-pmd-plugin:2.7.1:check (default) on project 
murmur-events: You have 17 PMD violations. For more de
tails see:C:\rob\comp\workspace\murmur-events\target\pmd.xml -> [Help 1]

Why are PMD warnings failing the murmur-events install?

Thanks,
Rob


> -----Original Message-----
> From: Rob Withers [mailto:reefed...@gmail.com]
> Sent: Saturday, October 06, 2012 6:12 AM
> To: 'Maven Users List'
> Subject: RE: noob confusion about dependencies and repositories
> 
> Thanks for your response, Steinar...
> 
> > From: Steinar Bang [mailto:s...@dod.no]
> > >>>>> "Rob Withers" <reefed...@gmail.com>:
> >
> > > Here are my questions, I suppose:
> > >   1.. How can I install murmur-events, even though pmd/findbugs is
> > > issuing warnings?  The mvn install is failing.
> >
> > What's the directory layout of your projects?  Where do you issue the
> > command?  What are the error messages you're getting.
> 
> workspace/
>     murmur/
>         pom.xml
>     murmur-events/
>         pom.xml
> 
> I issue the command in the murmur-events dir and I have no parent pom.xml
> and the error is:
> 
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-pmd-
> plugin:2.7.1:check (default) on project murmur-events: You have 17 PMD
> violations. For more de tails see:C:\rob\comp\workspace\murmur-
> events\target\pmd.xml -> [Help 1]
> 
> 
> 
> > >   3.. Do I need to have a parent pom with two modules, one for each
> > >   project?
> >
> > That would be "the maven way", yes, structured so:
> >
> >  murmur-top/
> >    pom.xml
> >    murmur-events/
> >      pom.xml
> >    murmur/
> >      pom.xml
> 
> Ok, I tried this and got an error in both the parent dir, when issuing the mvn
> command:
> 
> C:\rob\comp\workspace>mvn
> [INFO] Scanning for projects...
> [ERROR] The build could not read 3 projects -> [Help 1] [ERROR]
> [ERROR]   The project org.murmur:murmur-events:1.0.1-SNAPSHOT
> (C:\rob\comp\workspace\murmur-events\pom.xml) has 1 error
> [ERROR]     Non-resolvable parent POM: Could not find artifact
> org.murmur:murmur-top:pom:1.0-SNAPSHOT and 'parent.relativePath'
> points at wrong local POM @ line
>  5, column 11 -> [Help 2]
> [ERROR]
> [ERROR]   The project org.murmur:murmur:0.0.1-SNAPSHOT
> (C:\rob\comp\workspace\murmur\pom.xml) has 1 error
> [ERROR]     Non-resolvable parent POM: Could not find artifact
> org.murmur:murmur-top:pom:1.0-SNAPSHOT and 'parent.relativePath'
> points at wrong local POM @ line
>  4, column 11 -> [Help 2]
> 
> and an error in the subdir, when issuing the mvn command:
> 
> C:\rob\comp\workspace\murmur-events>mvn
> [INFO] Scanning for projects...
> [ERROR] The build could not read 1 project -> [Help 1] [ERROR]
> [ERROR]   The project org.murmur:murmur-events:1.0.1-SNAPSHOT
> (C:\rob\comp\workspace\murmur-events\pom.xml) has 1 error
> [ERROR]     Non-resolvable parent POM: Could not find artifact
> org.murmur:murmur-top:pom:1.0-SNAPSHOT and 'parent.relativePath'
> points at wrong local POM @ line
>  5, column 11 -> [Help 2]
> 
> These are really the same error.
> 
> 
> 
> > >   5.. If the jar is named ‘murmur-events-1.0.1-SNAPSHOT.jar’, will
> > > the above dependency of the following find it?
> >
> > Um... not sure I understood that...?
> 
> This dependency section in the murmur pom:
> 
> <dependency>
>   <groupId>org.reefedjib</groupId>
>   <artifactId>murmur-events</artifactId>
>   <version>1.0.1-SNAPSHOT</version>
> </dependency>
> 
> 
> 
> > >   6.. What about setting up an internal repository?  Would that be a
> > > better solution?
> >
> > What do you mean by an internal repository?  A repository for internal
> > to your project?  Or a repository local to your site?
> 
> Instead of a local repository, have a public repository at
> http://callistosheart.org/maven or something.
> 
> 
> 
> > >   7.. If I have the dependency in maven, will eclipse pick it up?
> >
> > Not eclipse by itself.  But you can either use the eclipse m2e plugin
> > that will make maven projects appear as eclipse projects, or you can
> > use the maven- eclipse-plugin to let maven generate the eclipse
> > project settings.  You can also use maven as an external build tool in
> eclipse.
> 
> Does Eclipse Juno include these plugins?  It does have some level of support,
> but I am finding I need to go to the command line to generate new projects.
> Thinking about this, I think I will establish a sample project with everything
> and just copy it over to new projects I want to create and update the
> artifactId in the pom.  This way I can have all my default dependencies setup.
> 
> 
> Thanks,
> Rob


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

Reply via email to