Maven Import Problem?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Maven Import Problem?

fran
Hi all,

I have recently set up a new Ubuntu machine on to which I have installed Eclipse and am trying to set it up with Maven so I can develop 52n WPS processes as I used to previously.

Unfortunately, I seem to be having problems extending AbstractAlgorithm.  I keep getting errors saying that "AbstractAlgorithm" cannot be resolved to a type, and the import org.n52.wps.server.AbstractAlgorithm cannot be found.  This is strange because the process is running on the external server I deployed it to fine - I just cannot work on it in Eclipse due to these errors.

Here are the repositories and dependencies I have in my pom.xml in Eclipse, am I missing something?

 <repositories>
                <repository>
                        <id>n52-releases</id>
                        <name>n52-releases</name>
                        <url>http://52north.org/maven/repo/releases/</url>
                         <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
                </repository>

<repository>
            <id>n52-snapshots</id>
            <name>52n Snapshots</name>
            <url>http://52north.org/maven/repo/snapshots/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
                 
                 
        </repositories>
       
 

  <dependencies>
      <dependency>
    <groupId>org.n52.wps</groupId>
    <artifactId>52n-wps-client-lib</artifactId>
    <version>3.3.0</version>
        </dependency>
       
         <dependency>
    <groupId>org.n52.wps</groupId>
    <artifactId>52n-wps-commons</artifactId>
    <version>3.3.0</version>
        </dependency>
       
       
        <dependency>
            <groupId>org.geoviqua.qim</groupId>
            <artifactId>schemas</artifactId>
            <version>4.0</version>
        </dependency>
       
     
<dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>   

<dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-api</artifactId>
       <version>2.3</version>
</dependency>

</dependencies>

Thanks,
Fran
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Maven Import Problem?

Daniel
Hi Fran,

just to cover the basics: mvn clean install works fine on command line?

More importantly: Which version of Eclipse and which plugins (are you using WTP?) are you using? Which release or branch of the WPS?

How does the build path configuration of the Eclipse project look?

/Daniel




Am 14. August 2015 17:38:59 MESZ, schrieb fran <[hidden email]>:
Hi all,

I have recently set up a new Ubuntu machine on to which I have installed
Eclipse and am trying to set it up with Maven so I can develop 52n WPS
processes as I used to previously.

Unfortunately, I seem to be having problems extending AbstractAlgorithm. I
keep getting errors saying that "AbstractAlgorithm" cannot be resolved to a
type, and the import org.n52.wps.server.AbstractAlgorithm cannot be found.
This is strange because the process is running on the external server I
deployed it to fine - I just cannot work on it in Eclipse due to these
errors.

Here are the repositories and dependencies I have in my pom.xml in Eclipse,
am I missing something?

<repositories>
<repository>
<id>n52-releases</id>
<name>n52-releases</name>
<url>http://52north.org/maven/repo/releases/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>

<repository>
<id>n52-snapshots</id>
<name>52n Snapshots</name>
<url>http://52north.org/maven/repo/snapshots/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>


</repositories>



<dependencies>
<dependency>
<groupId>org.n52.wps</groupId>
<artifactId>52n-wps-client-lib</artifactId>
<version>3.3.0</version>
</dependency>

<dependency>
<groupId>org.n52.wps</groupId>
<artifactId>52n-wps-commons</artifactId>
<version>3.3.0</version>
</dependency>


<dependency>
<groupId>org.geoviqua.qim</groupId>
<artifactId>schemas</artifactId>
<version>4.0</version>
</dependency>


<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.3</version>
</dependency>

</dependencies>

Thanks,
Fran




--
View this message in context: http://geoprocessing.forum.52north.org/Maven-Import-Problem-tp4026121.html
Sent from the 52° North - Geoprocessing Community Forum mailing list archive at Nabble.com.


Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines

--
Daniel Nüst
52° North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-0
Fax: +49-(0)-251–396371-11
http://52north.org/
General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849
_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Maven Import Problem?

fran
Hi Daniel,

When I run a mvn clean install on the command line - I get the following error:

[ERROR] Failed to execute goal com.mycila:license-maven-plugin:2.2:check (defaul                                                                     t) on project 52n-wps-webapp: Resource ../misc/licenses/license_header.txt not f                                                                     ound in file system, classpath or URL: no protocol: ../misc/licenses/license_hea                                                                     der.txt -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit                                                                     ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea                                                                     d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc           

I am using Eclipse Mars release - 4.5.0, and I do have the WTP plugin, along with the m2e plugins for Maven.  I am using release 3.3.0 of the WPS.

The build path configuration of the project I have included in the attached image.



Thanks,
Fran
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Maven Import Problem?

Daniel
Am 17/08/2015 um 10:40 schrieb fran:

> Hi Daniel,
>
> When I run a mvn clean install on the command line - I get the following
> error:
>
> [ERROR] Failed to execute goal com.mycila:license-maven-plugin:2.2:check
> (defaul
> t) on project 52n-wps-webapp: Resource ../misc/licenses/license_header.txt
> not f
> ound in file system, classpath or URL: no protocol:
> ../misc/licenses/license_hea
> der.txt -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> swit                                                                     ch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> rea                                                                     d
> the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc

I cannot replicate this problem. These are the steps that I did.

git clone https://52North/WPS.git
cd WPS
git checkout tags/WPS-3.3.0
mvn clean install

> I am using Eclipse Mars release - 4.5.0, and I do have the WTP plugin, along
> with the m2e plugins for Maven.  I am using release 3.3.0 of the WPS.

The latest release is 3.3.1 - recommend to use that.

Did you geht the release source code from GitHub?


It would be helpful to make sure that the Maven-based build works,
because then the remaining issues will be Eclipse...


/Daniel

> The build path configuration of the project I have included in the attached
> image.
>
> <http://geoprocessing.forum.52north.org/file/n4026125/screenshot.png>
>
> Thanks,
> Fran
>
>
>
> --
> View this message in context: http://geoprocessing.forum.52north.org/Maven-Import-Problem-tp4026121p4026125.html
> Sent from the 52° North - Geoprocessing Community Forum mailing list archive at Nabble.com.
> _______________________________________________
> Geoprocessingservices mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/geoprocessingservices
> http://geoprocessing.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
>


--
Daniel Nüst
52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-36
Fax: +49-(0)-251–396371-11

http://52north.org/
Twitter: @FiveTwoN

General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849
_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Maven Import Problem?

fran
This post was updated on .
Hi Daniel,

I have managed to fix this problem now, I was missing the 52n-wps-algorithm from my pom.xml.  Thanks for your help with this.

Thanks,
Fran
Loading...