You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by mike digioia <mp...@gmail.com> on 2012/04/03 00:38:05 UTC

Adding Eclipse JAR and source files

Hi,

Why so difficult using code from Android Eclipse in Maven?

Just did a search for other threads like this but did not receive any hits.
Hard to believe, since so many googles hits found on this subject without
clear resolution. I have been talking directly with others that have
experience without any real answers to my issue.

I have an extensive project using Whiteboard code from Stanford and trying
to add some code based on Android Eclipse without any success, since it is
my 3rd day woth
I have all the eclipse plugins and have created a new branch off my src
tree for the new path to this code - com.xxx.xxx.xxx.etc.java. Then I did
something like this-

mvn install:install-file -DgeneratePom=true
-Dfile=/home/conalab/mike/jmdns.jar
-DgroupId=com.huawei.cona.android.zeroconf -DartifactId=jmdns -Dversion=1.0
-Dpackaging=jar

and then mvn install

it added the jar file but I get this error message -

 [INFO] skip non existing resourceDirectory
/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/main/resources

then Build Failure!

Anyone know what is the problem. Online I noticed recommendations about
that maybe the version of maven source plugin needs to be updated.

Any one know what is going on here and how to fix it thanks

/mpd

Re: Adding Eclipse JAR and source files

Posted by Wayne Fay <wa...@gmail.com>.
> package R does not exist

Generally I point people looking for help with Maven + Android to the
following site:
http://code.google.com/p/maven-android-plugin/

And corresponding mailing list:
http://groups.google.com/group/maven-android-developers

You should have good luck getting your problems solved through those avenues.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Adding Eclipse JAR and source files

Posted by mike digioia <mp...@gmail.com>.
Oh I see your build works fine. Yes I get many more messages related to not
finding the new JAR file I added with the new POM file automatically
created.

This is what it looks like here -

[INFO] skip non existing resourceDirectory
/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/main/resources
[INFO] skip non existing resourceDirectory
/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/target/generated-sources/extracted-dependencies/src/main/resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 4 source files to
/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/target/classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[5,18]
package javax.jmdns does not exist

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[6,18]
package javax.jmdns does not exist

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[7,18]
package javax.jmdns does not exist

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[8,18]
package javax.jmdns does not exist

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[46,12]
cannot find symbol
symbol  : class JmDNS
location: class com.huawei.cona.android.zeroconf.ServiceDiscovery

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[47,12]
cannot find symbol
symbol  : class ServiceListener
location: class com.huawei.cona.android.zeroconf.ServiceDiscovery

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[48,12]
cannot find symbol
symbol  : class ServiceInfo
location: class com.huawei.cona.android.zeroconf.ServiceDiscovery

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[23,24]
package R does not exist

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[55,20]
cannot find symbol
symbol  : variable JmDNS
location: class com.huawei.cona.android.zeroconf.ServiceDiscovery

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[56,58]
cannot find symbol
symbol  : class ServiceListener
location: class com.huawei.cona.android.zeroconf.ServiceDiscovery

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[89,26]
cannot find symbol
symbol  : variable ServiceInfo
location: class com.huawei.cona.android.zeroconf.ServiceDiscovery

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[102,45]
package R does not exist


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Mon Apr 02 12:46:38 PDT 2012
[INFO] Final Memory: 31M/273M



Any help thanks

On Tue, Apr 3, 2012 at 3:26 AM, Mariusz Plucinski <
plucinski.mariusz@gmail.com> wrote:

> Wiadomość napisana przez mike digioia w dniu 3 kwi 2012, o godz. 00:38:
>
> > [INFO] skip non existing resourceDirectory
> >
> /home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/main/resources
>
> I am getting this message during successful builds, so I suppose this is
> not directly related to your problem. Isn't there any other message before
> build failure?
>
> Best regards,
> Mariusz Pluciński
>
>
>
>
>

Re: Adding Eclipse JAR and source files

Posted by Mariusz Plucinski <pl...@gmail.com>.
Wiadomość napisana przez mike digioia w dniu 3 kwi 2012, o godz. 00:38:

> [INFO] skip non existing resourceDirectory
> /home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/main/resources

I am getting this message during successful builds, so I suppose this is not directly related to your problem. Isn't there any other message before build failure?

Best regards,
Mariusz Pluciński