Java and Scala not working together -


i have 2 projects, 1 maven java , maven scala.

the scala 1 library, want use in java application.

i have following dependencies in both :

<dependency>             <groupid>org.scala-lang</groupid>             <artifactid>scala-compiler</artifactid>             <version>2.9.0-1</version>             <scope>compile</scope>         </dependency>         <dependency>             <groupid>org.scala-lang</groupid>             <artifactid>scala-library</artifactid>             <version>2.9.0-1</version>         </dependency> 

and found on googling, maven-scala-plugin in both apps

<plugin>                 <groupid>org.scala-tools</groupid>                 <artifactid>maven-scala-plugin</artifactid>                 <version>2.14.3</version>                 <configuration>                     <charset>utf-8</charset>                     <jvmargs>                         <jvmarg>-xmx1024m</jvmarg>                     </jvmargs>                 </configuration>                 <executions>                     <execution>                         <id>compile</id>                         <goals>                             <goal>compile</goal>                         </goals>                         <phase>compile</phase>                     </execution>                     <execution>                         <id>test-compile</id>                         <goals>                             <goal>testcompile</goal>                         </goals>                         <phase>test-compile</phase>                     </execution>                     <execution>                         <phase>process-resources</phase>                         <goals>                             <goal>compile</goal>                         </goals>                     </execution>                 </executions>             </plugin> 

the source & target specified in maven both java 1.6 , i'm using netbeans (tried command-line no use)

i build scala project , mark system dependency in maven java project.

infact, i'm using goose parser (scala project - https://github.com/jiminoc/goose)

but whenever run java project/file, classnotfoundexception parser classes.

tried out there hours no success.

please help.

also, mention i've tried building scala version 2.10.4 has same issue.

i build scala project , mark system dependency in maven java project.

system dependencies:

dependencies scope system available and not looked in repository. used tell maven dependencies provided jdk or vm.

since scala project isn't provided jdk or vm, isn't system dependency. run same problem if had 2 java projects. remove <scope>system</scope>.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -