When one needs to use a JAR for compilation only in Maven, one needs to select scope='provided' emul
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 31 Jan 2013 16:13:04 +0100
branchemul
changeset 6216daa39b17563
parent 614 dac6be4a1fbc
child 622 a07253cf2ca4
When one needs to use a JAR for compilation only in Maven, one needs to select scope='provided'
core/pom.xml
emul/compact/pom.xml
javaquery/api/pom.xml
javaquery/demo-calculator/pom.xml
vmtest/pom.xml
     1.1 --- a/core/pom.xml	Wed Jan 30 18:34:02 2013 +0100
     1.2 +++ b/core/pom.xml	Thu Jan 31 16:13:04 2013 +0100
     1.3 @@ -38,6 +38,7 @@
     1.4      <dependency>
     1.5        <groupId>org.netbeans.api</groupId>
     1.6        <artifactId>org-openide-util-lookup</artifactId>
     1.7 +      <scope>provided</scope>
     1.8      </dependency>
     1.9    </dependencies>
    1.10      <description>Contains esential annotations for associating JavaScript code with
     2.1 --- a/emul/compact/pom.xml	Wed Jan 30 18:34:02 2013 +0100
     2.2 +++ b/emul/compact/pom.xml	Thu Jan 31 16:13:04 2013 +0100
     2.3 @@ -27,6 +27,11 @@
     2.4        <version>${project.version}</version>
     2.5        <scope>test</scope>
     2.6      </dependency>
     2.7 +    <dependency>
     2.8 +      <groupId>org.netbeans.api</groupId>
     2.9 +      <artifactId>org-openide-util-lookup</artifactId>
    2.10 +      <scope>test</scope>
    2.11 +    </dependency>
    2.12    </dependencies>
    2.13    <build>
    2.14        <plugins>
     3.1 --- a/javaquery/api/pom.xml	Wed Jan 30 18:34:02 2013 +0100
     3.2 +++ b/javaquery/api/pom.xml	Thu Jan 31 16:13:04 2013 +0100
     3.3 @@ -43,6 +43,7 @@
     3.4      <dependency>
     3.5        <groupId>org.netbeans.api</groupId>
     3.6        <artifactId>org-openide-util-lookup</artifactId>
     3.7 +      <scope>provided</scope>
     3.8      </dependency>
     3.9      <dependency>
    3.10        <groupId>org.apidesign.bck2brwsr</groupId>
     4.1 --- a/javaquery/demo-calculator/pom.xml	Wed Jan 30 18:34:02 2013 +0100
     4.2 +++ b/javaquery/demo-calculator/pom.xml	Thu Jan 31 16:13:04 2013 +0100
     4.3 @@ -68,12 +68,6 @@
     4.4        <groupId>org.apidesign.bck2brwsr</groupId>
     4.5        <artifactId>emul.mini</artifactId>
     4.6        <version>0.3-SNAPSHOT</version>
     4.7 -      <exclusions>
     4.8 -        <exclusion>
     4.9 -          <artifactId>org-openide-util-lookup</artifactId>
    4.10 -          <groupId>org.netbeans.api</groupId>
    4.11 -        </exclusion>
    4.12 -      </exclusions>
    4.13      </dependency>
    4.14      <dependency>
    4.15        <groupId>org.apidesign.bck2brwsr</groupId>
     5.1 --- a/vmtest/pom.xml	Wed Jan 30 18:34:02 2013 +0100
     5.2 +++ b/vmtest/pom.xml	Thu Jan 31 16:13:04 2013 +0100
     5.3 @@ -58,5 +58,10 @@
     5.4        <artifactId>launcher</artifactId>
     5.5        <version>${project.version}</version>
     5.6      </dependency>
     5.7 +    <dependency>
     5.8 +      <groupId>org.netbeans.api</groupId>
     5.9 +      <artifactId>org-openide-util-lookup</artifactId>
    5.10 +      <scope>provided</scope>
    5.11 +    </dependency>
    5.12    </dependencies>
    5.13  </project>