Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1AA4A1059F for ; Sun, 21 Jul 2013 19:12:45 +0000 (UTC) Received: (qmail 1929 invoked by uid 500); 21 Jul 2013 19:12:43 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 1860 invoked by uid 500); 21 Jul 2013 19:12:43 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 1852 invoked by uid 99); 21 Jul 2013 19:12:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Jul 2013 19:12:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [194.9.95.113] (HELO s87.loopia.se) (194.9.95.113) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Jul 2013 19:12:37 +0000 Received: from s87.loopia.se (localhost [127.0.0.1]) by s87.loopia.se (Postfix) with ESMTP id 8EAB31E26777 for ; Sun, 21 Jul 2013 21:12:15 +0200 (CEST) X-Virus-Scanned: amavisd-new at outgoing-smtp.loopia.se X-Spam-Score: 0 X-Spam-Level: Received: from s87.loopia.se ([127.0.0.1]) by s87.loopia.se (s87.loopia.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TpJIW8M0KriP for ; Sun, 21 Jul 2013 21:12:14 +0200 (CEST) Received: from s326.loopia.se (mailcluster.loopia.se [194.9.94.72]) by s87.loopia.se (Postfix) with ESMTP id A8B821E2677D for ; Sun, 21 Jul 2013 21:12:14 +0200 (CEST) Received: (qmail 52081 invoked from network); 21 Jul 2013 19:12:14 -0000 Received: from c-7dc1e555.04-92-73746f39.cust.bredbandsbolaget.se (HELO [192.168.1.18]) (tommy@natusoft.se@[85.229.193.125]) (envelope-sender ) by s326.loopia.se (qmail-ldap-1.03) with SMTP for ; 21 Jul 2013 19:12:14 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: No class files!! From: Tommy Svensson In-Reply-To: <82E1CAF1-5A36-41D3-81DF-D21AD9974414@natusoft.se> Date: Sun, 21 Jul 2013 21:12:11 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <82E1CAF1-5A36-41D3-81DF-D21AD9974414@natusoft.se> To: "Maven Users List" X-Mailer: Apple Mail (2.1508) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO X-Old-Spam-Status: No, score=0 tagged_above=-999 required=15 tests=[none] autolearn=disabled I just upgraded from _21 to _25, but no difference! That javac will not = produce class files either. It does everything but write class files. If = I change a source file so that there is an error in it I will get the = error when I compile, but when everything is OK and no errors it is = quiet, but it produces no class files.=20 Have anyone else experienced this problem with JDK 1.7 on a Mac ? If so, = what did you do about it ? That is if there is a solution that does not = involve reinstalling the whole machine! Regards, Tommy Svensson 21 jul 2013 kl. 20:10 skrev Tommy Svensson : > I found the problem: > ________________________________________________________________ >=20 > Tommys-MacBook-Pro:APSOpenJPAProvider tommy$ echo $cp > = /Users/tommy/.m2/repository/se/natusoft/osgi/aps/aps-apis/0.9.2/aps-apis-0= .9.2.jar:/Users/tommy/.m2/repository/se/natusoft/osgi/aps/aps-tools-lib/0.= 9.2/aps-tools-lib-0.9.2.jar:/Users/tommy/.m2/repository/org/osgi/org.osgi.= core/4.2.0/org.osgi.core-4.2.0.jar:/Users/tommy/.m2/repository/org/osgi/or= g.osgi.compendium/4.2.0/org.osgi.compendium-4.2.0.jar:/Users/tommy/.m2/rep= ository/org/osgi/org.osgi.enterprise/4.2.0/org.osgi.enterprise-4.2.0.jar:/= Users/tommy/.m2/repository/org/apache/openjpa/openjpa-all/2.2.0/openjpa-al= l-2.2.0.jar:/Users/tommy/.m2/repository/se/natusoft/tools/xob/xob/5.0/xob-= 5.0.jar >=20 > Tommys-MacBook-Pro:APSOpenJPAProvider tommy$ = /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/bin/javac = -classpath $cp -d target/classes -s target/generated-sources/annotations = `find src/main/java -type f` >=20 > Tommys-MacBook-Pro:APSOpenJPAProvider tommy$ ls -l target/classes/ > total 0 > drwxr-xr-x 3 tommy staff 102 21 Jul 19:36 META-INF > drwxr-xr-x 4 tommy staff 136 21 Jul 19:36 lib > ________________________________________________________________ >=20 > Damn you Oracle! >=20 > /Tommy >=20 >=20 > 21 jul 2013 kl. 19:06 skrev Tommy Svensson : >=20 >> Hello,=20 >>=20 >> Can someone please inform me why maven-compiler-plugin is clearly = saying that it is compiling 12 classes into my target/classes directory = but after build there are only resources and no classes there! >>=20 >> Here is the output of a build: >> _______________________________________________________________ >>=20 >> Tommys-MacBook-Pro:APSOpenJPAProvider tommy$ mvn -version >> Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) >> Maven home: /usr/share/maven >> Java version: 1.7.0_21, vendor: Oracle Corporation >> Java home: = /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre >> Default locale: sv_SE, platform encoding: UTF-8 >> OS name: "mac os x", version: "10.8.4", arch: "x86_64", family: "mac" >>=20 >> Tommys-MacBook-Pro:APSOpenJPAProvider tommy$ mvn clean >> [INFO] Scanning for projects... >> [INFO] = =20 >> [INFO] = ------------------------------------------------------------------------ >> [INFO] Building APS OpenJPA Provider 0.9.2 >> [INFO] = ------------------------------------------------------------------------ >> [INFO]=20 >> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ = aps-openjpa-provider --- >> [INFO] Deleting = /Users/tommy/Development/Projects/OSGi/OSGiApplicationPlatformServices/APS= -Data/APSOpenJPAProvider/target >> [INFO] = ------------------------------------------------------------------------ >> [INFO] BUILD SUCCESS >> [INFO] = ------------------------------------------------------------------------ >> [INFO] Total time: 0.294s >> [INFO] Finished at: Sun Jul 21 18:43:08 CEST 2013 >> [INFO] Final Memory: 6M/131M >> [INFO] = ------------------------------------------------------------------------ >>=20 >> Tommys-MacBook-Pro:APSOpenJPAProvider tommy$ ls -l=20 >> total 24 >> -rw-r--r-- 1 tommy staff 2218 21 Jul 18:37 = aps-openjpa-provider.iml >> drwxr-xr-x 8 tommy staff 272 21 Jul 12:17 docs >> -rw-r--r-- 1 tommy staff 5469 21 Jul 18:37 pom.xml >> drwxr-xr-x 3 tommy staff 102 21 Jul 12:17 src >>=20 >> Tommys-MacBook-Pro:APSOpenJPAProvider tommy$ find src/main/java -type = f -print >> = src/main/java/se/natusoft/osgi/aps/jpa/APSOpenJPAProviderActivator.java >> = src/main/java/se/natusoft/osgi/aps/jpa/service/APSOpenJPAServiceProvider.j= ava >> src/main/java/se/natusoft/osgi/aps/jpa/service/ContextCache.java >> = src/main/java/se/natusoft/osgi/aps/jpa/service/ContextEntityManager.java >> = src/main/java/se/natusoft/osgi/aps/jpa/service/ContextEntityManagerFactory= .java >> src/main/java/se/natusoft/osgi/aps/jpa/service/ContextMetaModel.java >> = src/main/java/se/natusoft/osgi/aps/jpa/service/ContextPersistenceUnitUtil.= java >> = src/main/java/se/natusoft/osgi/aps/jpa/service/MultiBundleClassLoader.java= >> src/main/java/se/natusoft/osgi/aps/jpa/xml/Persistence.java >> src/main/java/se/natusoft/osgi/aps/jpa/xml/PersistenceUnit.java >> src/main/java/se/natusoft/osgi/aps/jpa/xml/Properties.java >> src/main/java/se/natusoft/osgi/aps/jpa/xml/Property.java >>=20 >> Tommys-MacBook-Pro:APSOpenJPAProvider tommy$ mvn install >> [INFO] Scanning for projects... >> [INFO] = =20 >> [INFO] = ------------------------------------------------------------------------ >> [INFO] Building APS OpenJPA Provider 0.9.2 >> [INFO] = ------------------------------------------------------------------------ >> [INFO]=20 >> [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ = aps-openjpa-provider --- >> [debug] execute contextualize >> [INFO] Using 'UTF-8' encoding to copy filtered resources. >> [INFO] Copying 3 resources >> [INFO]=20 >> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ = aps-openjpa-provider --- >> [INFO] Compiling 12 source files to = /Users/tommy/Development/Projects/OSGi/OSGiApplicationPlatformServices/APS= -Data/APSOpenJPAProvider/target/classes >> [INFO]=20 >> [INFO] --- maven-resources-plugin:2.5:testResources = (default-testResources) @ aps-openjpa-provider --- >> [debug] execute contextualize >> [INFO] Using 'UTF-8' encoding to copy filtered resources. >> [INFO] skip non existing resourceDirectory = /Users/tommy/Development/Projects/OSGi/OSGiApplicationPlatformServices/APS= -Data/APSOpenJPAProvider/src/test/resources >> [INFO]=20 >> [INFO] --- maven-compiler-plugin:2.3.2:testCompile = (default-testCompile) @ aps-openjpa-provider --- >> [INFO] No sources to compile >> [INFO]=20 >> [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ = aps-openjpa-provider --- >> [INFO] No tests to run. >> [INFO] Surefire report directory: = /Users/tommy/Development/Projects/OSGi/OSGiApplicationPlatformServices/APS= -Data/APSOpenJPAProvider/target/surefire-reports >>=20 >> ------------------------------------------------------- >> T E S T S >> ------------------------------------------------------- >>=20 >> Results : >>=20 >> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 >>=20 >> [INFO]=20 >> [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ = aps-openjpa-provider --- >> [INFO] Building jar: = /Users/tommy/Development/Projects/OSGi/OSGiApplicationPlatformServices/APS= -Data/APSOpenJPAProvider/target/aps-openjpa-provider-0.9.2.jar >> [INFO]=20 >> [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ = aps-openjpa-provider --- >> [INFO] Installing = /Users/tommy/Development/Projects/OSGi/OSGiApplicationPlatformServices/APS= -Data/APSOpenJPAProvider/target/aps-openjpa-provider-0.9.2.jar to = /Users/tommy/.m2/repository/se/natusoft/osgi/aps/aps-openjpa-provider/0.9.= 2/aps-openjpa-provider-0.9.2.jar >> [INFO] Installing = /Users/tommy/Development/Projects/OSGi/OSGiApplicationPlatformServices/APS= -Data/APSOpenJPAProvider/pom.xml to = /Users/tommy/.m2/repository/se/natusoft/osgi/aps/aps-openjpa-provider/0.9.= 2/aps-openjpa-provider-0.9.2.pom >> [INFO] = ------------------------------------------------------------------------ >> [INFO] BUILD SUCCESS >> [INFO] = ------------------------------------------------------------------------ >> [INFO] Total time: 2.206s >> [INFO] Finished at: Sun Jul 21 18:43:21 CEST 2013 >> [INFO] Final Memory: 13M/189M >> [INFO] = ------------------------------------------------------------------------ >>=20 >> Tommys-MacBook-Pro:APSOpenJPAProvider tommy$ ls -l target/classes/ >> total 0 >> drwxr-xr-x 3 tommy staff 102 21 Jul 18:43 META-INF >> drwxr-xr-x 4 tommy staff 136 21 Jul 18:43 lib >>=20 >> Tommys-MacBook-Pro:APSOpenJPAProvider tommy$ jar tvf = target/aps-openjpa-provider-0.9.2.jar=20 >> 0 Sun Jul 21 18:43:22 CEST 2013 META-INF/ >> 1578 Sun Jul 21 18:43:20 CEST 2013 META-INF/MANIFEST.MF >> 0 Sun Jul 21 18:43:20 CEST 2013 lib/ >> 6712450 Sun Jul 21 18:43:20 CEST 2013 lib/openjpa-all-2.2.0.jar >> 62978 Sun Jul 21 18:43:20 CEST 2013 lib/xob-5.0.jar >> 0 Sun Jul 21 18:43:22 CEST 2013 META-INF/maven/ >> 0 Sun Jul 21 18:43:22 CEST 2013 = META-INF/maven/se.natusoft.osgi.aps/ >> 0 Sun Jul 21 18:43:22 CEST 2013 = META-INF/maven/se.natusoft.osgi.aps/aps-openjpa-provider/ >> 5469 Sun Jul 21 18:37:44 CEST 2013 = META-INF/maven/se.natusoft.osgi.aps/aps-openjpa-provider/pom.xml >> 126 Sun Jul 21 18:43:22 CEST 2013 = META-INF/maven/se.natusoft.osgi.aps/aps-openjpa-provider/pom.properties >> _______________________________________________________________ >>=20 >> My pom looks like this: >> _______________________________________________________________ >>=20 >> > xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 = http://maven.apache.org/xsd/maven-4.0.0.xsd"> >> 4.0.0 >>=20 >> se.natusoft.osgi.aps >> aps-openjpa-provider >> 0.9.2 >> jar >>=20 >> APS OpenJPA Provider >>=20 >> >> Provides an implementation of APSJPAService using OpenJPA. >> >>=20 >> >> >> = UTF-8 >> >>=20 >> >> >> >> se.natusoft.osgi.aps >> aps-apis >> ${project.version} >> provided >> >> >> se.natusoft.osgi.aps >> aps-tools-lib >> ${project.version} >> provided >> >>=20 >> >> >> org.osgi >> org.osgi.enterprise >> 4.2.0 >> provided >> >>=20 >> >> org.apache.openjpa >> openjpa-all >> 2.2.0 >> compile >> >>=20 >> >> se.natusoft.tools.xob >> xob >> 5.0 >> compile >> >>=20 >> >>=20 >> >> >> maven-natusoft-se >> >> Natusofts maven repository >> >> http://maven.natusoft.se/ >> >>=20 >> >> chrel >> codehaus-releases >> = https://nexus.codehaus.org/content/repositories/releases/ >> >> >>=20 >> >> >>=20 >> >> >> org.apache.maven.plugins >> maven-jar-plugin >> 2.4 >> >> >> = >> = src/main/resources/META-INF/MANIFEST.MF >> >> >> >>=20 >> >> >>=20 >> >> _______________________________________________________________ >>=20 >> This is really part of a larger multi module build, but I isolated it = to troubleshoot. It now builds using only this pom, but still does not = produce any class files!=20 >>=20 >> This is just completely insane! It is driving me nuts! Pleeeease, = someone, explain to me why I'm not getting any class files!=20 >>=20 >> I can add that I did get class files up to the point where I added = the maven-shade-plugin version 2.1. The first build with that plugin = resulted in no class files. I removed the maven-shade-plugin again, but = it did not help. After that it has been 100% impossible to get class = files. Could the shade plugin have installed something somewhere that I = need to remove ? I know this is far fetched, but this whole problem is = so completely ridiculous! Before this if someone had told me that they = had this problem i would say, "that is not possible!". Actually, I still = keep saying to myself, this is not possible!=20 >>=20 >> Regards, >> Tommy Svensson >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> For additional commands, e-mail: users-help@maven.apache.org >>=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org