Thanks for your response, Steinar... > From: Steinar Bang [mailto:[email protected]] > >>>>> "Rob Withers" <[email protected]>: > > > 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: [email protected] For additional commands, e-mail: [email protected]
