building edukapp

20 views
Skip to first unread message

Niels van Dijk (SURFnet)

unread,
Apr 8, 2012, 6:52:54 PM4/8/12
to widgetstore
Hi,

I'm trying to build edukapp (rev 206) but this fails as wookie is a
dependency, but is not available. Snip from the error logs below. Am I
doing something wrong?

thanks!
Niels

-----------------------------------------------
[INFO] Copying 4 resources
Downloading:
http://repository.apache.org/snapshots/org/apache/wookie/wookie/0.9.2-incubating-SNAPSHOT/wookie-0.9.2-incubating-SNAPSHOT.pom
[INFO] Unable to find resource 'org.apache.wookie:wookie:pom:0.9.2-
incubating-SNAPSHOT' in repository apache.snapshots (http://
repository.apache.org/snapshots)
Downloading:
http://repository.apache.org/snapshots/org/apache/wookie/wookie/0.9.2-incubating-SNAPSHOT/wookie-0.9.2-incubating-SNAPSHOT.war
[INFO] Unable to find resource 'org.apache.wookie:wookie:war:0.9.2-
incubating-SNAPSHOT' in repository apache.snapshots (http://
repository.apache.org/snapshots)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.wookie:wookie:war:0.9.2-incubating-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.wookie -
DartifactId=wookie -Dversion=0.9.2-incubating-SNAPSHOT -Dpackaging=war
-Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the
file there:
mvn deploy:deploy-file -DgroupId=org.apache.wookie -
DartifactId=wookie -Dversion=0.9.2-incubating-SNAPSHOT -Dpackaging=war
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) uk.ac.edukapp:edukapp:war:0.0.1-SNAPSHOT
2) org.apache.wookie:wookie:war:0.9.2-incubating-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
uk.ac.edukapp:edukapp:war:0.0.1-SNAPSHOT

from the specified remote repositories:
apache.snapshots (http://repository.apache.org/snapshots),
central (http://repo1.maven.org/maven2)


Lucas Anastasiou

unread,
Apr 8, 2012, 10:49:09 PM4/8/12
to widge...@googlegroups.com
Hi Niels,

Yes you are right, it seems that wookie 0.9.2 does not exist anymore in the apache repository
which we could not observe since we have a cached version of it in our machines.

But 0.10.0 seems to be out there so I just updated the pom file with this dependency and project now builds as expected..

Best,
Lucas

Scott Wilson

unread,
Apr 9, 2012, 7:11:00 AM4/9/12
to widge...@googlegroups.com
On 9 Apr 2012, at 03:49, Lucas Anastasiou wrote:

Hi Niels,

Yes you are right, it seems that wookie 0.9.2 does not exist anymore in the apache repository
which we could not observe since we have a cached version of it in our machines.

But 0.10.0 seems to be out there so I just updated the pom file with this dependency and project now builds as expected..

Although it doesn't quite work as expected as there are a few changes in Wookie between 0.9.2 and 0.10.0 so you're better off chopping the "SNAPSHOT" off the end until we're ready to move to 0.10.0

Niels van Dijk

unread,
Apr 10, 2012, 11:05:50 AM4/10/12
to widge...@googlegroups.com
Hi,

thanks for the feedback so far.

I've update my pom to use wookie 0.9.2-incubating, which seems to work.

I then ran into errors like:
"/srv/users/niels/dev/edukapp-read-only/src/main/java/uk/ac/edukapp/service/WidgetService.java:[35,12] generics are not supported in -source 1.3
(use -source 5 or higher to enable generics)
    public List<Widget> findWidgets(String query){

/srv/users/niels/dev/edukapp-read-only/src/main/java/uk/ac/edukapp/service/WidgetService.java:[40,3] annotations are not supported in -source 1.3
(use -source 5 or higher to enable annotations)
        @SuppressWarnings("unchecked")
"

These seem to have to do something with locking down the version in the pom (sorry - I'm not much into maven...). Adding something like:
"                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <!-- best lock down version of the plugin too -->
                                <configuration>
                                        <source>1.6</source>
                                        <target>1.6</target>
                                </configuration>
                        </plugin>
"
Fixed that problem.

Thanks so far,
Niels
niels_vandijk.vcf

Scott Wilson

unread,
Apr 10, 2012, 5:31:38 PM4/10/12
to widge...@googlegroups.com
On 10 Apr 2012, at 16:05, Niels van Dijk wrote:

Hi,

thanks for the feedback so far.

I've update my pom to use wookie 0.9.2-incubating, which seems to work.

I then ran into errors like:
"/srv/users/niels/dev/edukapp-read-only/src/main/java/uk/ac/edukapp/service/WidgetService.java:[35,12] generics are not supported in -source 1.3
(use -source 5 or higher to enable generics)
    public List<Widget> findWidgets(String query){

/srv/users/niels/dev/edukapp-read-only/src/main/java/uk/ac/edukapp/service/WidgetService.java:[40,3] annotations are not supported in -source 1.3
(use -source 5 or higher to enable annotations)
        @SuppressWarnings("unchecked")
"

These seem to have to do something with locking down the version in the pom (sorry - I'm not much into maven...). Adding something like:
"                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <!-- best lock down version of the plugin too -->
                                <configuration>
                                        <source>1.6</source>
                                        <target>1.6</target>
                                </configuration>
                        </plugin>
"
Fixed that problem.


Thanks Niels  - I guess otherwise Maven will default to whatever the system JDK is - which may be 1.4 or 1.5.

- S

<niels_vandijk.vcf>

Reply all
Reply to author
Forward
0 new messages