Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

maven plugin problem
 Post subject: maven plugin problem Post rating: 0   New post Posted: Wed 19 Dec, 2012, 10:32 

User rating: 1
Joined: Wed 07 Mar, 2012, 05:56
Posts: 101
Location: New CaledoniaNew Caledonia
hello support,

when i build my project, it give me an error :

Some problems were encountered while building the effective model for com.dukascopy.dds2:JForex-SDK:jar:2.22.1
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 65, column 12

how to fix it please.

this is my pom file:
<?xml version="1.0" encoding="UTF-8"?>
<!--
The following is an example Maven pom file which allows the user to
to build JForex-SDK by using the latest version of  dependencies
from dukascopy public repository with command: mvn clean install
-->
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <groupId>com.dukascopy.dds2</groupId>
   <artifactId>JForex-SDK</artifactId>
   <version>2.22.1</version>
   <name>JForex-SDK</name>
   <description></description>
   <organization>
      <name>DUKASCOPY (Suisse) SA</name>
      <url>https://www.dukascopy.com</url>
   </organization>
   <repositories>
      <repository>
         <id>dc_public</id>
         <name>Dukascopy public repository</name>
         <url>https://www.dukascopy.com/client/jforexlib/publicrepo/</url>
      </repository>
   </repositories>
    <dependencies>
      <dependency>
         <groupId>com.dukascopy.dds2</groupId>
         <artifactId>DDS2-jClient-JForex</artifactId>
         <!-- find the latest available version here:
            https://publicrepo.site.dukascopy.com/jforexlib/publicrepo/com/dukascopy/dds2/DDS2-jClient-JForex/
         -->
         <version>2.22.1</version>
         <exclusions>
            <exclusion>
               <groupId>org.slf4j</groupId>
               <artifactId>slf4j-jdk14</artifactId>
            </exclusion>
         </exclusions>
      </dependency>
      <!-- find the latest available version here:
         https://publicrepo.site.dukascopy.com/jforexlib/publicrepo/com/dukascopy/api/JForex-API/
      -->
      <dependency>
         <groupId>com.dukascopy.api</groupId>
         <artifactId>JForex-API</artifactId>
         <version>2.7.7</version>
         <classifier>sources</classifier>
      </dependency>
      <dependency>
         <groupId>org.slf4j</groupId>
         <artifactId>slf4j-log4j12</artifactId>
         <version>1.6.4</version>
         <optional>true</optional>
      </dependency>
   </dependencies>
   <build>
       <sourceDirectory>src</sourceDirectory>
       <resources>
         <resource>
            <directory>rc</directory>
         </resource>
      </resources>
      <plugins>
         <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <inherited>true</inherited>
            <configuration>
               <source>1.6</source>
               <target>1.6</target>
               <fork>true</fork>
               <encoding>UTF-8</encoding>
            </configuration>
         </plugin>
      </plugins>
   </build>
</project>


 
 Post subject: Re: maven plugin problem Post rating: 0   New post Posted: Wed 19 Dec, 2012, 10:42 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Is it an error or actually a warning? Does it prevent you from running the Main.java? See here more on the warning, you can also try to check if the project works without explicitly defining the compiler plugin, i.e. try removing the plugins tag and rebuilding the project.


 
 Post subject: Re: maven plugin problem Post rating: 0   New post Posted: Wed 19 Dec, 2012, 11:14 

User rating: 1
Joined: Wed 07 Mar, 2012, 05:56
Posts: 101
Location: New CaledoniaNew Caledonia
it's happen when i try to compile the entire project
i don't know if it's an error or a warning, it isn't notify.
i removed the plugins tag, all is good.

but What is a useful plugin if I can remove?

eric


 
 Post subject: Re: maven plugin problem Post rating: 0   New post Posted: Wed 19 Dec, 2012, 12:03 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
ericbiz wrote:
but What is a useful plugin if I can remove?
If you don't define it, it uses the default one - the one from the effective-pom


 
 Post subject: Re: maven plugin problem Post rating: 0   New post Posted: Wed 19 Dec, 2012, 12:44 

User rating: 1
Joined: Wed 07 Mar, 2012, 05:56
Posts: 101
Location: New CaledoniaNew Caledonia
ok thanks


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com