1. Wizard 2. Yes. Have been working to get dependencies on webservices.rest right.
From: dev@openmrs.org [mailto:dev@openmrs.org] On Behalf Of Ben Wolfe Sent: Wednesday, December 14, 2011 8:32 AM To: openmrs-deve...@listserv.iupui.edu Subject: Re: [OPENMRS-DEV] OpenMRS Maven Plug-in Maven usually is helpful. :-) The problem is that when its not it is really not. 1) How did you create your pom.xml file? Wizard? Conversion? copy/paste from another module? 2) Did you modify it at all? 3) Attach the poms here Ben On Wed, Dec 14, 2011 at 4:15 PM, Friedman, Roger (CDC/CGH/DGHA) (CTR) <r...@cdc.gov<mailto:r...@cdc.gov>> wrote: I get an error flag on the POM file: "Plugin execution not covered by lifecycle configuration: org.openmrs.maven.plugins:maven-openmrs-plugin:1.0.1:initialize-module (execution: default-initialize-module, phase:initialize)" The same message appears as a Maven problem when I try to build the module. Maven is pretty much a black box to me, I just want it to be helpful. From: dev@openmrs.org<mailto:dev@openmrs.org> [mailto:dev@openmrs.org<mailto:dev@openmrs.org>] On Behalf Of Ben Wolfe Sent: Wednesday, December 14, 2011 7:42 AM To: openmrs-deve...@listserv.iupui.edu<mailto:openmrs-deve...@listserv.iupui.edu> Subject: Re: [OPENMRS-DEV] OpenMRS Maven Plug-in I can give you a one paragraph description, but I want Matt to expound on it: This plugin is used by maven when compiling openmrs modules. The plugin will find and package the necessary files into the omod. (I'm sure theres more that it does too) You shouldn't have to import this into your eclipse at all. Maven will see you reference it in the pom and get it from the openmrs maven repo (http://mavenrepo.openmrs.org/nexus/) and put it into your local maven repo. Ben On Tue, Dec 13, 2011 at 11:40 PM, Friedman, Roger (CDC/CGH/DGHA) (CTR) <r...@cdc.gov<mailto:r...@cdc.gov>> wrote: @Matt Blanchette -- I'm looking to install maven-openmrs-plugin and can't figure out how to do it. I've looked in and around http://svn.openmrs.org/openmrs-contrib/maven/plugins/maven-openmrs-plugin/tags/1.0.1/ but I don't see anything that looks like I could simply add it via Eclipse. Could you give me some help here? Also, Ben has asked me to do a wiki page about it, so if you could give me a 1 paragraph description of what it does, that would be a big help. Thanks, Roger ________________________________ Click here to unsubscribe<mailto:lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l> from OpenMRS Developers' mailing list ________________________________ Click here to unsubscribe<mailto:lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l> from OpenMRS Developers' mailing list ________________________________ Click here to unsubscribe<mailto:lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l> from OpenMRS Developers' mailing list _________________________________________ To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to lists...@listserv.iupui.edu with "SIGNOFF openmrs-devel-l" in the body (not the subject) of your e-mail. [mailto:lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l]
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.openmrs.module</groupId> <artifactId>JSSLab</artifactId> <version>1.0-SNAPSHOT</version> </parent> <groupId>org.openmrs.module</groupId> <artifactId>JSSLab-omod</artifactId> <packaging>omod</packaging> <name>JSSLab Module OMOD</name> <description>Omod project for JSSLab</description> <dependencies> <dependency> <groupId>org.openmrs.module</groupId> <artifactId>jsslab-api</artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>org.openmrs.api</groupId> <artifactId>openmrs-api</artifactId> <type>jar</type> </dependency> <dependency> <groupId>org.openmrs.web</groupId> <artifactId>openmrs-web</artifactId> <type>jar</type> </dependency> <dependency> <groupId>org.openmrs.api</groupId> <artifactId>openmrs-api</artifactId> <version>${openMRSVersion}</version><!--$NO-MVN-MAN-VER$--> <type>test-jar</type> <scope>test</scope> </dependency> <dependency> <groupId>org.openmrs.web</groupId> <artifactId>openmrs-web</artifactId> <version>${openMRSVersion}</version><!--$NO-MVN-MAN-VER$--> <type>test-jar</type> <scope>test</scope> </dependency> <dependency> <groupId>org.openmrs.test</groupId> <artifactId>openmrs-test</artifactId> <type>pom</type> <scope>test</scope> </dependency> <dependency> <groupId>org.openmrs.module</groupId> <artifactId>webservices.rest-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.openmrs.module</groupId> <artifactId>webservices.rest-omod</artifactId> <scope>provided</scope> </dependency> </dependencies> <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> <resource> <directory>src/main/webapp</directory> <filtering>true</filtering> <excludes> <exclude>resources</exclude> </excludes> <targetPath>web/module</targetPath> </resource> <resource> <directory>src/main/webapp</directory> <filtering>false</filtering> <includes> <include>resources</include> </includes> <targetPath>web/module</targetPath> </resource> </resources> <testResources> <testResource> <directory>src/test/resources</directory> <filtering>true</filtering> <includes> <include>**/*.xml</include> <include>**/*.txt</include> </includes> </testResource> <testResource> <directory>src/test/resources</directory> <filtering>false</filtering> <excludes> <exclude>**/*.xml</exclude> <exclude>**/*.txt</exclude> </excludes> </testResource> </testResources> <pluginManagement> <plugins> <plugin> <artifactId>maven-resources-plugin</artifactId> <configuration> <includeEmptyDirs>true</includeEmptyDirs> </configuration> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.openmrs.maven.plugins</groupId> <artifactId>maven-openmrs-plugin</artifactId> <extensions>true</extensions> <configuration> <verifyOmod>false</verifyOmod> </configuration> </plugin> </plugins> </build> </project>
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.openmrs.module</groupId> <artifactId>JSSLab</artifactId> <version>1.0-SNAPSHOT</version> <packaging>pom</packaging> <name>JSSLab Module</name> <description>Specimen-based lab module for JSS</description> <url>http://openmrs.org</url> <scm> <connection>scm:svn:http://svn.openmrs.org/openmrs-modules/JSSLab/trunk/</connection> <developerConnection>scm:svn:http://svn.openmrs.org/openmrs-modules/JSSLab/trunk/</developerConnection> <url>http://svn.openmrs.org/openmrs-modules/JSSLab/trunk/</url> </scm> <modules> <module>api</module> <module>omod</module> </modules> <dependencyManagement> <dependencies> <!-- Libraries from lib to add as dependencies with compile or runtime scope: Find matching dependencies in maven central repository. <dependency> <groupId>org.other.library</groupId> <artifactId>library-name</artifactId> <version>library.version</version> <scope>compile</scope> </dependency> --> <dependency> <groupId>org.openmrs.module</groupId> <artifactId>webservices.rest-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.openmrs.api</groupId> <artifactId>openmrs-api</artifactId> <version>${openMRSVersion}</version> <type>jar</type> <scope>provided</scope> </dependency> <dependency> <groupId>org.openmrs.web</groupId> <artifactId>openmrs-web</artifactId> <version>${openMRSVersion}</version> <type>jar</type> <scope>provided</scope> </dependency> <dependency> <groupId>org.openmrs.api</groupId> <artifactId>openmrs-api</artifactId> <version>${openMRSVersion}</version> <type>test-jar</type> <scope>test</scope> </dependency> <dependency> <groupId>org.openmrs.web</groupId> <artifactId>openmrs-web</artifactId> <version>${openMRSVersion}</version> <type>test-jar</type> <scope>test</scope> </dependency> <dependency> <groupId>org.openmrs.test</groupId> <artifactId>openmrs-test</artifactId> <version>${openMRSVersion}</version> <type>pom</type> <scope>test</scope> </dependency> <dependency> <groupId>org.openmrs.module</groupId> <artifactId>logic</artifactId> <version>0.5</version> <type>jar</type> <scope>provided</scope> </dependency> <dependency> <groupId>org.openmrs.module</groupId> <artifactId>webservices.rest-omod</artifactId> <scope>provided</scope> </dependency> </dependencies> </dependencyManagement> <properties> <openMRSVersion>1.8.0-alpha</openMRSVersion> </properties> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <target>1.5</target> <source>1.5</source> </configuration> </plugin> <plugin> <groupId>org.openmrs.maven.plugins</groupId> <artifactId>maven-openmrs-plugin</artifactId> <version>1.0.1</version> </plugin> </plugins> </pluginManagement> </build> <repositories> <repository> <id>openmrs-repo</id> <name>OpenMRS Nexus Repository</name> <url>http://mavenrepo.openmrs.org/nexus/content/repositories/public</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>openmrs-repo</id> <name>OpenMRS Nexus Repository</name> <url>http://mavenrepo.openmrs.org/nexus/content/repositories/public</url> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </project>