Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Is there a convention for the location for local repos so the jar are only in one folder?

I have two jars from a vendor that adds a Maven plugin to the pom.  The vendor does not have a public repository.  The example pom.xml snippet the vendor gives is below.

 

      <plugin>

              <!--  original GAV-->

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-resources-plugin</artifactId>

        <version>2.6</version>

        <executions>

          <execution>

            <id>copy-and-filter-allatori-config</id>

            <phase>package</phase>

            <goals>

              <goal>copy-resources</goal>

            </goals>

            <configuration>

              <outputDirectory>${basedir}/target</outputDirectory>

              <resources>

                <resource>

                  <directory>${basedir}/allatori</directory>

                  <includes>

                    <include>allatori.xml</include>

                  </includes>

                  <filtering>true</filtering>

                </resource>

              </resources>

            </configuration>

          </execution>

        </executions>

      </plugin>

 

 

      <!-- Running Allatori -->

      <plugin>

        <groupId>org.codehaus.mojo</groupId>

        <artifactId>exec-maven-plugin</artifactId>

        <version>1.2.1</version>

        <executions>

          <execution>

            <id>run-allatori</id>

            <phase>package</phase>

            <goals>

              <goal>exec</goal>

            </goals>

          </execution>

        </executions>

        <configuration>

          <executable>java</executable>

          <arguments>

            <argument>-Xms128m</argument>

            <argument>-Xmx512m</argument>

            <argument>-jar</argument>

 

            <!-- Copy allatori.jar to 'allatori' directory to use the commented line -->

            <argument>${basedir}\lib\allatori.jar</argument>

            <!-- <argument>${basedir}/allatori/allatori.jar</argument> -->

 

            <argument>${basedir}\target\allatori.xml</argument>

          </arguments>

        </configuration>

      </plugin>

 

 

But this example makes me put the jar files in multiple places in the same Eclipse e4 JavaFX FXML application set of projects.

 

Question 1) Is there a convention for the location for local repos so the jar are only in one folder?

Question 2) If yes, what is the convention.

Question 3) If there is no convention what is the best approach?


I have seen the structure here http://www.vogella.com/tutorials/EclipseTycho/article.html  but it does not address my issue.

 

 

 

 


Back to the top